.se-preorder {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-block: 8px;
  min-height: 24px;
  padding: 4px 10px;
  background: #edf5f0;
  color: #20533e;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
}

.se-preorder-cart {
  font-size: 14px;
}

.js-opc-delivery-section .se-preorder-cart {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
}

.product-prices .se-preorder-detail {
  font-size: 13px;
  line-height: 1.4;
}

.product-prices .se-preorder-detail > .se-preorder-full {
  display: none !important;
  margin: 0;
  color: #000;
  font-size: inherit;
  line-height: inherit;
}

@media (min-width: 992px) {
  .product-prices .se-preorder-detail > .se-preorder-short {
    display: none !important;
  }

  .product-prices .se-preorder-detail > .se-preorder-full {
    display: block !important;
    width: 100%;
    text-align: left;
  }
}

.se-preorder[data-preorder-id] {
  column-gap: 6px;
  justify-content: center;
  text-align: center;
}

.js-product-miniature .se-preorder:not(.se-preorder-detail) {
  align-items: center;
}

.product-prices:has(.se-preorder-detail) .delivery-information {
  display: none;
}

.se-preorder-info {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 1.4em;
  height: 1.4em;
  font-size: inherit;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.se-preorder-dialog {
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #20533e;
  text-align: center;
}

.se-preorder-dialog p {
  color: #000;
  font-size: 13px;
  line-height: 1.4;
}

.se-preorder-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

@media (max-width: 991px) {
  .js-product-miniature .se-preorder[data-preorder-id]:not(.se-preorder-detail) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    font-size: clamp(10px, 2.8vw, 12px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .js-product-miniature .se-preorder[data-preorder-id]:not(.se-preorder-detail) > :is(strong, span) {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    font-size: inherit;
  }

  .js-product-miniature .se-preorder[data-preorder-id] > button.se-preorder-info {
    appearance: none;
    flex: 0 0 1.4em;
    width: 1.4em;
    height: 1.4em;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  .product-prices .se-preorder-detail[data-preorder-id] {
    display: grid !important;
    grid-template-columns: max-content max-content max-content;
    align-items: center;
    justify-content: flex-start;
    column-gap: 8px;
    text-align: left;
  }

  .product-prices .se-preorder-detail > .se-preorder-short {
    white-space: nowrap;
  }

  .product-prices .se-preorder-detail > :is(strong, span).se-preorder-short {
    width: auto;
    margin: 0;
  }

  body button[data-button-action="add-to-cart"][data-se-preorder-label] {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding-inline: 5px !important;
    white-space: normal !important;
    text-transform: uppercase !important;
    line-height: 1.2;
  }

  #product .se-purchase-row > .add > button[data-se-preorder-label] {
    flex: 1 1 0;
    width: auto;
    margin-inline: 0;
    padding-inline: 2px !important;
  }

  button[data-se-preorder-label] > span {
    font-size: clamp(11px, 3.1vw, 14px);
    overflow-wrap: anywhere;
  }

  button[data-se-preorder-label] > .shopping-cart {
    display: none;
  }
}
