/* reset */
.bx-widget,
.bx-widget *,
.bx-widget *::before,
.bx-widget *::after {
  box-sizing: border-box;
}

.bx-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* header styles */
/*noinspection CssUnresolvedCustomProperty*/
.bx-header {
  color: var(--bx-header-text-color);
  font-size: var(--bx-header-text-font-size);
  font-style: var(--bx-header-text-font-style);
  font-weight: var(--bx-header-text-font-weight);
  line-height: var(--bx-header-text-line-height);
  position: relative;
  text-align: var(--bx-header-text-position);
  word-break: break-word;
}

.bx-header-center_line_through {
  align-items: center;
  display: flex;
  gap: 8px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-header-center_line_through::before,
.bx-header-center_line_through::after {
  background-color: var(--bx-header-center-line-color, #f2f2f2);
  content: '';
  flex-grow: 1;
  height: var(--bx-header-center-line-height, 2px);
}

/* footer styles */
/*noinspection CssUnresolvedCustomProperty*/
.bx-footer {
  align-items: center;
  color: var(--bx-footer-color);
  display: flex;
  font-size: var(--bx-footer-font-size);
  font-style: var(--bx-footer-font-style);
  font-weight: var(--bx-footer-font-weight);
  justify-content: space-between;
  line-height: var(--bx-footer-line-height);
}

.bx-footer-right {
  align-items: center;
  display: flex;
  gap: 4px;
  margin-left: auto;
}

/* layout */
.bx-layout-horizontal .bx-offers {
  display: grid;
  row-gap: 8px;
}

.bx-layout-vertical .bx-offers {
  align-items: start;
  display: grid;
  gap: 8px;
}

/* equal-size: stretch grid cards to the tallest one (grid layout only) */
.bx-offers-equal.bx-layout-vertical .bx-offers {
  align-items: stretch;
}

.bx-layout-vertical .bx-offers-col-3 {
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.bx-layout-vertical .bx-offers-col-2 {
  grid-template-columns: 1fr 1fr;
}

/* offer */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-main {
  padding: var(--bx-offer-padding-y, 16px) var(--bx-offer-padding-x, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--bx-offer-gap, 8px);
  container-type: inline-size;
}

/* Keyboard focus: soft offset ring in the card's own text color; none on mouse click. */
.bx-offer-wrap:focus {
  outline: none;
}
.bx-offer-wrap:focus-visible {
  border-radius: var(--bx-offer-border-radius, 8px);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* Inline "add" affordance right after the heading; the bar's right side stays free for the price. */
.bx-gift-picker-trigger-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 6px;
  opacity: 0.9;
  vertical-align: -3px;
}
.bx-gift-picker-trigger-icon svg {
  height: 16px;
  width: 16px;
}
.bx-gift-picker-trigger:focus {
  outline: none;
}
.bx-gift-picker-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.bx-gift-modal button:focus-visible {
  outline: 2px solid var(--bx-gift-modal-text-color, #303030);
  outline-offset: 2px;
}
.bx-offer-wrap {
  position: relative;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer {
  background-color: var(--bx-offer-background-color);
  cursor: pointer;
  height: 100%;
  position: relative;
  transition: all 0.1s ease;
  overflow: hidden;
  border-radius: var(--bx-offer-border-radius);
  display: grid;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  box-shadow: var(--bx-offer-box-shadow);
  border-radius: var(--bx-offer-border-radius);
  z-index: 2;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer:hover {
  background-color: var(--bx-offer-background-color-hover);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer:hover::after {
  box-shadow: var(--bx-offer-box-shadow-hover);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-offer {
  background-color: var(--bx-offer-background-color-active);
  /* Already selected — clicking the offer again does nothing, so drop the pointer affordance.
     Cross-sell product links inside keep their own pointer cursor. */
  cursor: default;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-offer::after {
  box-shadow: var(--bx-offer-box-shadow-active);
}

/* ── Decorative background effects ── */
.bx-offer-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}
.bx-offer-wrap.bx-active .bx-offer-deco {
  opacity: 1;
}
.bx-offer-main,
.bx-extras {
  position: relative;
  z-index: 1;
}

.bx-deco-child {
  position: absolute;
  animation: bx-blob-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bx-blob-in {
  from {
    transform: scale(0.35);
    opacity: 0;
  }
  to {
    transform: scale(1);
  }
}
@keyframes bx-blob-pop {
  from {
    transform: scale(0.35);
  }
  60% {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes bx-ring-ripple-center {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes bx-clock-ping {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* ── Blobs ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--blobs .bx-deco-child {
  border-radius: 50%;
  animation-name: bx-blob-pop;
  animation-duration: 0.5s;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--blobs .bx-deco-child-1 {
  width: 120px;
  height: 120px;
  background: var(--bx-deco-color-1);
  opacity: 0.9;
  top: -30px;
  left: -30px;
  animation-delay: 0ms;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--blobs .bx-deco-child-2 {
  width: 90px;
  height: 90px;
  background: var(--bx-deco-color-2);
  opacity: 0.6;
  bottom: -25px;
  right: -20px;
  animation-delay: 40ms;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--blobs .bx-deco-child-3 {
  width: 70px;
  height: 70px;
  background: var(--bx-deco-color-3);
  opacity: 0.75;
  top: -45px;
  left: 40%;
  animation-delay: 80ms;
}
.bx-offer-deco--blobs .bx-deco-child-4,
.bx-offer-deco--blobs .bx-deco-child-5,
.bx-offer-deco--blobs .bx-deco-child-6,
.bx-offer-deco--blobs .bx-deco-child-7,
.bx-offer-deco--blobs .bx-deco-child-8 {
  display: none;
}

/* ── Rings ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--rings .bx-deco-child {
  border-radius: 50%;
  border: 1px solid var(--bx-deco-color-5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-name: bx-ring-ripple-center;
  animation-duration: 0.5s;
}
.bx-offer-deco--rings .bx-deco-child-1 {
  width: 60px;
  height: 60px;
  opacity: 0.5;
  animation-delay: 0ms;
}
.bx-offer-deco--rings .bx-deco-child-2 {
  width: 110px;
  height: 110px;
  opacity: 0.4;
  animation-delay: 80ms;
}
.bx-offer-deco--rings .bx-deco-child-3 {
  width: 180px;
  height: 180px;
  opacity: 0.25;
  animation-delay: 160ms;
}
.bx-offer-deco--rings .bx-deco-child-4 {
  width: 260px;
  height: 260px;
  opacity: 0.12;
  animation-delay: 240ms;
}
.bx-offer-deco--rings .bx-deco-child-5,
.bx-offer-deco--rings .bx-deco-child-6,
.bx-offer-deco--rings .bx-deco-child-7,
.bx-offer-deco--rings .bx-deco-child-8 {
  display: none;
}

/* ── Hearts ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child {
  clip-path: polygon(
    50% 20%,
    20% 0%,
    0% 20%,
    0% 50%,
    25% 78%,
    50% 100%,
    75% 78%,
    100% 50%,
    100% 20%,
    80% 0%
  );
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child-1 {
  width: 52px;
  height: 48px;
  background: var(--bx-deco-color-2);
  top: 8px;
  left: -8px;
  opacity: 0.4;
  animation-delay: 40ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child-2 {
  width: 34px;
  height: 32px;
  background: var(--bx-deco-color-1);
  top: 12%;
  right: 6%;
  opacity: 0.5;
  animation-delay: 120ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child-3 {
  width: 24px;
  height: 22px;
  background: var(--bx-deco-color-2);
  top: 48%;
  left: 22%;
  opacity: 0.3;
  animation-delay: 200ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child-4 {
  width: 40px;
  height: 37px;
  background: var(--bx-deco-color-1);
  bottom: -8px;
  right: 15%;
  opacity: 0.35;
  animation-delay: 280ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--hearts .bx-deco-child-5 {
  width: 18px;
  height: 16px;
  background: var(--bx-deco-color-2);
  top: 25%;
  left: 55%;
  opacity: 0.4;
  animation-delay: 360ms;
}
.bx-offer-deco--hearts .bx-deco-child-6,
.bx-offer-deco--hearts .bx-deco-child-7,
.bx-offer-deco--hearts .bx-deco-child-8 {
  display: none;
}

/* ── Starburst ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--starburst .bx-deco-child {
  clip-path: polygon(
    50% 0%,
    58% 31%,
    85% 15%,
    69% 42%,
    100% 50%,
    69% 58%,
    85% 85%,
    58% 69%,
    50% 100%,
    42% 69%,
    15% 85%,
    31% 58%,
    0% 50%,
    31% 42%,
    15% 15%,
    42% 31%
  );
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--starburst .bx-deco-child-1 {
  width: 80px;
  height: 80px;
  background: var(--bx-deco-color-2);
  top: -15px;
  left: -15px;
  opacity: 0.45;
  animation-delay: 50ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--starburst .bx-deco-child-2 {
  width: 54px;
  height: 54px;
  background: var(--bx-deco-color-5);
  top: 20%;
  right: 8%;
  opacity: 0.35;
  animation-delay: 150ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--starburst .bx-deco-child-3 {
  width: 36px;
  height: 36px;
  background: var(--bx-deco-color-2);
  bottom: 12%;
  left: 32%;
  opacity: 0.3;
  animation-delay: 250ms;
}
.bx-offer-deco--starburst .bx-deco-child-4,
.bx-offer-deco--starburst .bx-deco-child-5,
.bx-offer-deco--starburst .bx-deco-child-6,
.bx-offer-deco--starburst .bx-deco-child-7,
.bx-offer-deco--starburst .bx-deco-child-8 {
  display: none;
}

/* ── Percent ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--percent .bx-deco-child {
  font-weight: 800;
  line-height: 1;
  color: var(--bx-deco-color-5);
}
.bx-offer-deco--percent .bx-deco-child::before {
  content: '%';
  display: block;
}
.bx-offer-deco--percent .bx-deco-child-1 {
  font-size: 72px;
  top: -10px;
  left: -8px;
  opacity: 0.07;
  animation-delay: 40ms;
}
.bx-offer-deco--percent .bx-deco-child-2 {
  font-size: 44px;
  top: 30%;
  left: 38%;
  opacity: 0.1;
  animation-delay: 120ms;
}
.bx-offer-deco--percent .bx-deco-child-3 {
  font-size: 58px;
  top: 5px;
  right: 10px;
  opacity: 0.06;
  animation-delay: 200ms;
}
.bx-offer-deco--percent .bx-deco-child-4 {
  font-size: 32px;
  bottom: 4px;
  left: 20%;
  opacity: 0.14;
  animation-delay: 280ms;
}
.bx-offer-deco--percent .bx-deco-child-5 {
  font-size: 52px;
  bottom: -8px;
  right: 18%;
  opacity: 0.08;
  animation-delay: 360ms;
}
.bx-offer-deco--percent .bx-deco-child-6,
.bx-offer-deco--percent .bx-deco-child-7,
.bx-offer-deco--percent .bx-deco-child-8 {
  display: none;
}

/* ── Stars ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--stars .bx-deco-child {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: var(--bx-deco-color-2);
}
.bx-offer-deco--stars .bx-deco-child-1 {
  width: 32px;
  height: 32px;
  top: 12%;
  left: 6%;
  opacity: 0.35;
  animation-delay: 40ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--stars .bx-deco-child-2 {
  width: 20px;
  height: 20px;
  top: 55%;
  left: 18%;
  opacity: 0.25;
  background: var(--bx-deco-color-1);
  animation-delay: 120ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--stars .bx-deco-child-3 {
  width: 26px;
  height: 26px;
  top: 8%;
  left: 42%;
  opacity: 0.5;
  background: var(--bx-deco-color-3);
  animation-delay: 200ms;
}
.bx-offer-deco--stars .bx-deco-child-4 {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 65%;
  opacity: 0.35;
  animation-delay: 280ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--stars .bx-deco-child-5 {
  width: 16px;
  height: 16px;
  top: 70%;
  left: 50%;
  opacity: 0.6;
  background: var(--bx-deco-color-1);
  animation-delay: 360ms;
}
.bx-offer-deco--stars .bx-deco-child-6 {
  width: 22px;
  height: 22px;
  top: 20%;
  left: 82%;
  opacity: 0.5;
  animation-delay: 440ms;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--stars .bx-deco-child-7 {
  width: 14px;
  height: 14px;
  top: 75%;
  left: 80%;
  opacity: 0.7;
  background: var(--bx-deco-color-3);
  animation-delay: 520ms;
}
.bx-offer-deco--stars .bx-deco-child-8 {
  display: none;
}

/* ── Clock (radar ping) ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--clock .bx-deco-child {
  border-radius: 50%;
  /*noinspection CssNonIntegerLengthInPixels*/
  border: 1.5px solid var(--bx-deco-color-5);
  width: 70px;
  height: 70px;
  top: 50%;
  left: 50%;
  opacity: 0;
  animation: bx-clock-ping 2.4s ease-out infinite;
}
.bx-offer-deco--clock .bx-deco-child-1 {
  animation-delay: 0s;
}
.bx-offer-deco--clock .bx-deco-child-2 {
  animation-delay: 0.8s;
}
.bx-offer-deco--clock .bx-deco-child-3 {
  animation-delay: 1.6s;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--clock .bx-deco-child-4 {
  width: 8px;
  height: 8px;
  border: none;
  background: var(--bx-deco-color-5);
  opacity: 0.5;
  animation: none;
  transform: translate(-50%, -50%);
}
.bx-offer-deco--clock .bx-deco-child-5,
.bx-offer-deco--clock .bx-deco-child-6,
.bx-offer-deco--clock .bx-deco-child-7,
.bx-offer-deco--clock .bx-deco-child-8 {
  display: none;
}

/* ── Money ($) ── */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-deco--money .bx-deco-child {
  font-weight: 800;
  line-height: 1;
  color: var(--bx-deco-color-5);
}
.bx-offer-deco--money .bx-deco-child::before {
  content: '$';
  display: block;
}
.bx-offer-deco--money .bx-deco-child-1 {
  font-size: 72px;
  top: -10px;
  left: -8px;
  opacity: 0.07;
  animation-delay: 40ms;
}
.bx-offer-deco--money .bx-deco-child-2 {
  font-size: 44px;
  top: 25%;
  left: 40%;
  opacity: 0.1;
  animation-delay: 120ms;
}
.bx-offer-deco--money .bx-deco-child-3 {
  font-size: 58px;
  top: 5px;
  right: 10px;
  opacity: 0.06;
  animation-delay: 200ms;
}
.bx-offer-deco--money .bx-deco-child-4 {
  font-size: 32px;
  bottom: 4px;
  left: 20%;
  opacity: 0.14;
  animation-delay: 280ms;
}
.bx-offer-deco--money .bx-deco-child-5 {
  font-size: 52px;
  bottom: -8px;
  right: 18%;
  opacity: 0.08;
  animation-delay: 360ms;
}
.bx-offer-deco--money .bx-deco-child-6,
.bx-offer-deco--money .bx-deco-child-7,
.bx-offer-deco--money .bx-deco-child-8 {
  display: none;
}

/* badge base */
.bx-offer-badge-wrap {
  position: absolute;
  z-index: 3;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-badge {
  background-color: var(--bx-offer-badge-background-color);
  border-radius: 4px;
  color: var(--bx-offer-badge-color);
  font-size: var(--bx-offer-badge-font-size);
  font-style: var(--bx-offer-badge-font-style);
  font-weight: var(--bx-offer-badge-font-weight);
  line-height: var(--bx-offer-badge-line-height);
  padding-left: 4px;
  padding-right: 4px;
  position: relative;
  white-space: nowrap;
}

/* badge type: default */
.bx-layout-horizontal [data-badge-type='default'] {
  right: 12px;
  top: -4px;
}

.bx-layout-vertical [data-badge-type='default'] {
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
}

/* badge type: pill */
.bx-layout-horizontal [data-badge-type='pill'] {
  right: 12px;
  top: -6px;
}

.bx-layout-vertical [data-badge-type='pill'] {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

[data-badge-type='pill'] .bx-offer-badge {
  border-radius: 999px;
  padding: 2px 10px;
}

/* badge type: arrow-right */
.bx-layout-horizontal [data-badge-type='arrow-right'] {
  right: 12px;
  top: -6px;
}

.bx-layout-vertical [data-badge-type='arrow-right'] {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

[data-badge-type='arrow-right'] .bx-offer-badge {
  border-radius: 2px 0 0 2px;
  clip-path: polygon(
    0 0,
    calc(100% - 7px) 0,
    100% 50%,
    calc(100% - 7px) 100%,
    0 100%
  );
  padding: 3px 14px 3px 8px;
}

/* badge type: arrow-left */
.bx-layout-horizontal [data-badge-type='arrow-left'] {
  right: 12px;
  top: -6px;
}

.bx-layout-vertical [data-badge-type='arrow-left'] {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

[data-badge-type='arrow-left'] .bx-offer-badge {
  border-radius: 0 2px 2px 0;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  padding: 3px 8px 3px 12px;
}

/* badge type: square */
.bx-layout-horizontal [data-badge-type='square'] {
  right: 12px;
  top: -6px;
}

.bx-layout-vertical [data-badge-type='square'] {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

[data-badge-type='square'] .bx-offer-badge {
  border-radius: 0;
  padding: 3px 8px;
}

/* badge type: folded */
.bx-layout-horizontal [data-badge-type='folded'] {
  right: 12px;
  top: -4px;
}

.bx-layout-vertical [data-badge-type='folded'] {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

[data-badge-type='folded'] .bx-offer-badge {
  --fold-size: 5px;
  --fold-height: 4px;
  border-radius: 0 0 5px 5px;
  margin: 0 var(--fold-size);
  padding: 2px 6px;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='folded'] .bx-offer-badge::before {
  border-bottom: var(--fold-height) solid var(--bx-offer-badge-background-color);
  border-left: var(--fold-size) solid transparent;
  content: '';
  filter: brightness(0.7);
  height: 0;
  left: calc(-1 * var(--fold-size));
  position: absolute;
  top: 0;
  width: 0;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='folded'] .bx-offer-badge::after {
  border-bottom: var(--fold-height) solid var(--bx-offer-badge-background-color);
  border-right: var(--fold-size) solid transparent;
  content: '';
  filter: brightness(0.7);
  height: 0;
  position: absolute;
  right: calc(-1 * var(--fold-size));
  top: 0;
  width: 0;
}

.bx-layout-vertical [data-badge-type='folded'] .bx-offer-badge {
  --fold-size: 8px;
  --fold-height: 6px;
}

/* badge type: corner-ribbon */
[data-badge-type='corner-ribbon'] {
  left: auto;
  right: 0;
  top: 0;
}

[data-badge-type='corner-ribbon'] .bx-offer-badge {
  --f: 0.5em;
  border-image: conic-gradient(#0008 0 0) 51% / var(--f);
  border-radius: 0;
  clip-path: polygon(
    100% calc(100% - var(--f)),
    100% 100%,
    calc(100% - var(--f)) calc(100% - var(--f)),
    var(--f) calc(100% - var(--f)),
    0 100%,
    0 calc(100% - var(--f)),
    999px calc(100% - var(--f) - 999px),
    calc(100% - 999px) calc(100% - var(--f) - 999px)
  );
  line-height: 1.8;
  padding-bottom: var(--f);
  padding-inline: 1lh;
  transform: translate(calc((1 - cos(45deg)) * 100%), -100%) rotate(45deg);
  transform-origin: 0 100%;
}

/* badge type: banner */
[data-badge-type='banner'] {
  left: -3px;
  right: -3px;
  top: 5px;
}

.bx-layout-horizontal [data-badge-type='banner'] {
  left: -8px;
  right: -8px;
}

[data-badge-type='banner'] .bx-offer-badge {
  --d: 3px;
  border-bottom: var(--d) solid #0008;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--d)),
    calc(100% - var(--d)) 100%,
    calc(100% - var(--d)) calc(100% - var(--d)),
    var(--d) calc(100% - var(--d)),
    var(--d) 100%,
    0 calc(100% - var(--d))
  );
  line-height: 1.8;
  padding: 0;
  text-align: center;
  width: 100%;
}

.bx-layout-horizontal [data-badge-type='banner'] .bx-offer-badge {
  --d: 8px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-wrap:has([data-badge-type='banner']) .bx-offer {
  padding-top: calc(var(--bx-offer-badge-font-size) * 1.5);
}

/* badge type: banner-rounded */
[data-badge-type='banner-rounded'] {
  left: -3px;
  right: -3px;
  top: 5px;
}

.bx-layout-horizontal [data-badge-type='banner-rounded'] {
  left: -8px;
  right: -8px;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='banner-rounded'] .bx-offer-badge {
  --r: 3px;
  --_g: 100% / var(--r) calc(2 * var(--r)) no-repeat;
  background:
    radial-gradient(100% 50% at right, #0005 98%, #0000 101%) 0 var(--_g),
    radial-gradient(100% 50% at left, #0005 98%, #0000 101%) 100% var(--_g),
    conic-gradient(
        from 90deg at var(--r) calc(100% - 2 * var(--r)),
        #0000 25%,
        var(--bx-offer-badge-background-color) 0
      )
      0 0 / calc(100% - var(--r)) 100%;
  background-color: transparent;
  border-radius: var(--r);
  line-height: 1.8;
  padding: 0 8px calc(2 * var(--r));
  text-align: center;
  width: 100%;
}

.bx-layout-horizontal [data-badge-type='banner-rounded'] .bx-offer-badge {
  --r: 8px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-wrap:has([data-badge-type='banner-rounded']) .bx-offer {
  padding-top: calc(var(--bx-offer-badge-font-size) * 1.5);
}

/* badge type: side-ribbon */
[data-badge-type='side-ribbon'] {
  left: auto;
  right: 0;
  top: -4px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon'] {
  right: -5px;
}

.bx-layout-vertical [data-badge-type='side-ribbon'] {
  right: -5px;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='side-ribbon'] .bx-offer-badge {
  --f: 3px;
  --r: 8px;
  border-bottom: var(--f) solid #0005;
  border-left: var(--r) solid transparent;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--f)),
    calc(100% - var(--f)) 100%,
    calc(100% - var(--f)) calc(100% - var(--f)),
    0 calc(100% - var(--f)),
    var(--r) calc(50% - var(--f) / 2)
  );
  line-height: 1.8;
  padding-inline: 4px;
}

.bx-layout-vertical [data-badge-type='side-ribbon'] .bx-offer-badge {
  --f: 5px;
  --r: 10px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon'] .bx-offer-badge {
  --f: 5px;
  --r: 10px;
}

/* badge type: side-ribbon-alt */
[data-badge-type='side-ribbon-alt'] {
  left: auto;
  right: 0;
  top: -4px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon-alt'] {
  right: -5px;
}

.bx-layout-vertical [data-badge-type='side-ribbon-alt'] {
  right: -5px;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='side-ribbon-alt'] .bx-offer-badge {
  --f: 3px;
  --r: 8px;
  border-bottom: var(--f) solid #0005;
  border-left: var(--r) solid transparent;
  border-radius: 0;
  clip-path: polygon(
    var(--r) 0,
    100% 0,
    100% calc(100% - var(--f)),
    calc(100% - var(--f)) 100%,
    calc(100% - var(--f)) calc(100% - var(--f)),
    var(--r) calc(100% - var(--f)),
    0 calc(50% - var(--f) / 2)
  );
  line-height: 1.8;
  padding-inline: 4px;
}

.bx-layout-vertical [data-badge-type='side-ribbon-alt'] .bx-offer-badge {
  --f: 5px;
  --r: 10px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon-alt'] .bx-offer-badge {
  --f: 5px;
  --r: 10px;
}

/* badge type: side-ribbon-rounded */
[data-badge-type='side-ribbon-rounded'] {
  left: auto;
  right: 0;
  top: -4px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon-rounded'] {
  right: -5px;
}

.bx-layout-vertical [data-badge-type='side-ribbon-rounded'] {
  right: -5px;
}

/*noinspection CssUnresolvedCustomProperty*/
[data-badge-type='side-ribbon-rounded'] .bx-offer-badge {
  --r: 3px;
  background:
    radial-gradient(
        100% 50% at right,
        var(--bx-offer-badge-background-color) 98%,
        #0000 101%
      )
      0 0 / 6px calc(100% - 2 * var(--r)),
    radial-gradient(100% 50% at left, #0005 98%, #0000 101%) 100% 100% /
      var(--r) calc(2 * var(--r)),
    conic-gradient(
        from 180deg at calc(100% - var(--r)) calc(100% - 2 * var(--r)),
        #0000 25%,
        var(--bx-offer-badge-background-color) 0
      )
      100% 0 / calc(101% - 6px) 100%;
  background-color: transparent;
  background-repeat: no-repeat;
  border-radius: 0 var(--r) var(--r) 0;
  line-height: 1.8;
  padding: 0 8px calc(2 * var(--r));
}

.bx-layout-vertical [data-badge-type='side-ribbon-rounded'] .bx-offer-badge {
  --r: 5px;
}

.bx-layout-horizontal [data-badge-type='side-ribbon-rounded'] .bx-offer-badge {
  --r: 5px;
}

/* offer content */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-title {
  color: var(--bx-offer-title-color);
  font-size: var(--bx-offer-title-font-size);
  font-style: var(--bx-offer-title-font-style);
  font-weight: var(--bx-offer-title-font-weight);
  line-height: var(--bx-offer-title-line-height);
  word-break: break-word;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-subtitle {
  color: var(--bx-offer-subtitle-color);
  font-size: var(--bx-offer-subtitle-font-size);
  font-style: var(--bx-offer-subtitle-font-style);
  font-weight: var(--bx-offer-subtitle-font-weight);
  line-height: var(--bx-offer-subtitle-line-height);
  word-break: break-word;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-label {
  background-color: var(--bx-offer-label-background-color);
  border-radius: 4px;
  color: var(--bx-offer-label-color);
  display: inline-block;
  font-size: var(--bx-offer-label-font-size);
  font-style: var(--bx-offer-label-font-style);
  font-weight: var(--bx-offer-label-font-weight);
  line-height: var(--bx-offer-label-line-height);
  padding: 2px 8px;
  word-break: break-word;
}

/* offer image (replaces radio when an offer has an image) */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-image {
  aspect-ratio: var(--bx-offer-image-aspect-ratio, auto);
  border-color: var(--bx-offer-image-border-color, transparent);
  border-radius: var(--bx-offer-image-border-radius, 0px);
  border-style: solid;
  border-width: var(--bx-offer-image-border-width, 0px);
  box-shadow: var(--bx-offer-image-shadow, none);
  flex-shrink: 0;
  height: auto;
  max-width: 150px;
  object-fit: var(--bx-offer-image-object-fit, contain);
  object-position: var(--bx-offer-image-object-position, center);
  width: var(--bx-offer-image-width, 50px);
}

/* wrapper for offer image with optional badge overlay */
.bx-offer-image-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* grid of repeated offer images by quantity */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-image-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
  width: var(--bx-offer-image-width, 50px);
}

.bx-offer-image-grid .bx-offer-image {
  width: 100%;
  max-width: none;
}

/* quantity badge overlay on offer image */
/*noinspection CssUnresolvedCustomProperty*/
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-quantity-badge {
  position: absolute;
  top: var(--bx-offer-quantity-badge-top, -6px);
  right: var(--bx-offer-quantity-badge-right, -6px);
  bottom: var(--bx-offer-quantity-badge-bottom, auto);
  left: var(--bx-offer-quantity-badge-left, auto);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bx-offer-quantity-badge-background-color, #e0e0e0);
  color: var(--bx-offer-quantity-badge-color, #333333);
  border-radius: var(--bx-offer-quantity-badge-border-radius, 50px);
  font-size: var(--bx-offer-quantity-badge-font-size, 11px);
  font-weight: var(--bx-offer-quantity-badge-font-weight, 600);
  line-height: 1;
}

/* hide radio when offer_hide_radio is enabled */
.bx-hide-radio .bx-radio {
  display: none;
}

/* radio */
/*noinspection CssUnresolvedCustomProperty*/
.bx-radio {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--bx-radio-border-color, #8a8a8a);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid;
  font: inherit;
  height: 20px;
  place-content: center;
  transition: border-color 100ms cubic-bezier(0.25, 0.1, 0.25, 1);
  width: 20px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-radio::before {
  background-color: var(--bx-radio-inner-color, #fff);
  border: 5px solid var(--bx-radio-color, #303030);
  border-radius: 50%;
  content: '';
  height: 18px;
  transform: scale(0);
  transition: 200ms transform ease-in-out;
  width: 18px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-radio:hover {
  background: #f9f9f9;
  border: 1px solid var(--bx-radio-color, #616161);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-radio:active {
  border: 2px solid var(--bx-radio-color, #303030);
}

.bx-active .bx-radio::before {
  transform: scale(1);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-radio {
  background: var(--bx-radio-color, #303030);
  border-color: var(--bx-radio-color, #303030);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-radio:active {
  background: var(--bx-radio-color, #303030);
}

.bx-radio:focus {
  box-shadow: none;
  outline: none;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-radio:hover,
.bx-active .bx-radio:focus {
  background: var(--bx-radio-color, #303030);
  border-color: var(--bx-radio-color, #303030);
}

.bx-layout-horizontal .bx-offer-items {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  container-type: inline-size;
}

@container (max-width: 250px) {
  .bx-offer-items .bx-content {
    min-width: 50%;
  }

  .bx-offer-items .bx-offer-prices {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Variants inside bx-offer-items: wrap to next line (preserves horizontal design) */
.bx-layout-horizontal .bx-offer-items > .bx-offer-variants-wrap {
  flex-basis: 100%;
  order: 1;
}

.bx-layout-vertical .bx-offer-items {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.bx-layout-horizontal .bx-content {
  align-items: center;
  column-gap: 4px;
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 50%;
}

.bx-layout-vertical .bx-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bx-layout-horizontal .bx-offer-subtitle {
  order: 9999;
  width: 100%;
}

/* offer price */
/*noinspection CssUnresolvedCustomProperty*/
.bx-offer-price {
  align-items: var(--bx-offer-price-align, baseline);
  display: flex;
  flex-direction: var(--bx-offer-price-direction, row);
  gap: var(--bx-offer-price-gap, 4px);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-original-price {
  color: var(--bx-offer-compare-price-color);
  font-size: var(--bx-offer-compare-price-font-size);
  font-style: var(--bx-offer-compare-price-font-style);
  font-weight: var(--bx-offer-compare-price-font-weight);
  line-height: var(--bx-offer-compare-price-line-height);
  order: var(--bx-offer-compare-price-order, 0);
  text-decoration: line-through;
  white-space: nowrap;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-discounted-price {
  color: var(--bx-offer-price-color);
  font-size: var(--bx-offer-price-font-size);
  font-style: var(--bx-offer-price-font-style);
  font-weight: var(--bx-offer-price-font-weight);
  line-height: var(--bx-offer-price-line-height);
  white-space: nowrap;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-discounted-price-alternative {
  color: var(--bx-offer-price-color);
  font-size: var(--bx-offer-compare-price-font-size);
  font-style: var(--bx-offer-price-font-style);
  font-weight: var(--bx-offer-price-font-weight);
  line-height: var(--bx-offer-compare-price-line-height);
  white-space: nowrap;
}

/* offer price unit */
/*noinspection CssUnresolvedCustomProperty*/
.bx-price-unit {
  color: var(--bx-offer-price-unit-color);
  font-size: var(--bx-offer-price-unit-font-size);
  font-style: var(--bx-offer-price-unit-font-style);
  font-weight: var(--bx-offer-price-unit-font-weight);
  line-height: var(--bx-offer-price-unit-line-height);
  white-space: nowrap;
}

/* total price */
.js-bx-total-price {
  white-space: nowrap;
}

/* price horizontal */
/*noinspection CssUnresolvedCustomProperty*/
.bx-layout-horizontal .bx-offer-prices {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--bx-offer-prices-gap, 4px);
  margin-left: auto;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-layout-horizontal .bx-offer-prices > div {
  display: flex;
  flex-direction: column;
  gap: var(--bx-offer-prices-gap, 2px);
}

.bx-layout-horizontal .bx-offer-price {
  justify-content: flex-end;
}

/* price vertical */
/*noinspection CssUnresolvedCustomProperty*/
.bx-layout-vertical .bx-offer-prices {
  display: flex;
  flex-direction: column;
  gap: var(--bx-offer-prices-gap, 4px);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-layout-vertical .bx-offer-prices > div {
  display: flex;
  flex-direction: column;
  gap: var(--bx-offer-prices-gap, 4px);
}

.bx-layout-vertical .bx-offer-price {
  align-items: center;
}

.bx-layout-vertical .bx-price-unit {
  order: 9999;
}

/* variants */
.bx-hidden {
  display: none;
}

.bx-offer-variants-wrap {
  display: none;
}

.bx-active .bx-offer-variants-wrap:not(.bx-hidden) {
  display: block;
}

.bx-variants {
  display: none;
  font-size: 13px;
  line-height: 15px;
}

.bx-active .bx-variants {
  display: block;
}

.bx-variants-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bx-variants-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-variants-title {
  display: var(--bx-variant-label-display, block);
  color: var(--bx-variant-label-color, #333333);
  font-size: var(--bx-variant-label-font-size, 12px);
  font-weight: var(--bx-variant-label-font-weight, 400);
  font-style: var(--bx-variant-label-font-style, normal);
  line-height: var(--bx-variant-label-line-height, 16px);
}

.bx-variant-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-nr {
  flex-shrink: 0;
  min-width: 12px;
  color: var(--bx-variant-label-color, #333333);
  font-size: var(--bx-variant-label-font-size, 12px);
  font-weight: var(--bx-variant-label-font-weight, 400);
  font-style: var(--bx-variant-label-font-style, normal);
}

.bx-variant-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bx-variant-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Reuses the offer ("main") image style vars so the selector thumbnail matches it. */
/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-select-image {
  flex-shrink: 0;
  width: var(--bx-offer-image-width, 40px);
  max-width: 150px;
  aspect-ratio: var(--bx-offer-image-aspect-ratio, 1 / 1);
  object-fit: var(--bx-offer-image-object-fit, contain);
  border-radius: var(--bx-offer-image-border-radius, 6px);
  border: var(--bx-offer-image-border-width, 0px) solid
    var(--bx-offer-image-border-color, transparent);
  box-shadow: var(--bx-offer-image-shadow, none);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-error {
  font-size: 13px;
  margin-top: 12px;
  color: var(--bx-alert-color, #e53e3e);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-group--unavailable .bx-select,
.bx-variant-group--unavailable .bx-select:hover,
.bx-variant-group--unavailable .bx-select:focus,
.bx-variant-group--unavailable .bx-select:focus-visible,
.bx-variant-group--unavailable .bx-select:active {
  border-color: var(--bx-alert-color, #e53e3e);
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-error {
  color: var(--bx-alert-color, #e53e3e);
  font-size: 12px;
  min-height: 0;
  line-height: 1.4;
  width: 100%;
}

.bx-variant-error:empty {
  display: none;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-low-stock {
  color: var(--bx-alert-color, #e53e3e);
  font-size: 12px;
  line-height: 1.4;
  width: 100%;
}

.bx-low-stock:empty {
  display: none;
}

/* ─── Swatch group container ──────────────────────────────────────────────── */

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bx-swatch-gap, 8px);
  align-items: center;
  padding: 3px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-group--pill {
  gap: var(--bx-pill-gap, 4px);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-group--image {
  gap: var(--bx-variant-image-gap, 6px);
}

/* ─── Color swatch ──────────────────────────────────────────────────────────── */

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--color {
  width: var(--bx-swatch-size, 28px);
  height: var(--bx-swatch-size, 28px);
  border-radius: var(--bx-swatch-border-radius, 50%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--bx-swatch-color, #cccccc);
  cursor: pointer;
  padding: 0;
  position: relative;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition:
    outline-color 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
    outline-offset 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 80ms ease;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--color:hover {
  outline: 1px dotted var(--bx-swatch-ring-color, #333333);
  outline-offset: 2px;
}

.bx-swatch--color:active:not(.bx-swatch--unavailable) {
  transform: scale(0.88);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--color.bx-swatch--active {
  outline: 1px solid var(--bx-swatch-ring-color, #333333);
  outline-offset: 2px;
}

.bx-swatch--color.bx-swatch--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.bx-swatch--color.bx-swatch--unavailable::after {
  content: '';
  position: absolute;
  inset: 0;
  /*noinspection CssNonIntegerLengthInPixels*/
  background: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    #999 calc(50% - 0.5px),
    #999 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  border-radius: 50%;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-group--unavailable .bx-swatch--color.bx-swatch--active {
  outline: 1px solid var(--bx-alert-color, #e53e3e);
  outline-offset: 2px;
}

/* ─── Pill swatch ───────────────────────────────────────────────────────────── */

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--pill {
  padding: var(--bx-pill-padding-y, 4px) var(--bx-pill-padding-x, 10px);
  border-radius: var(--bx-pill-border-radius, 999px);
  border: 1px solid var(--bx-pill-border-color, #d1d5db);
  background: transparent;
  color: var(--bx-pill-color, #333333);
  font-size: var(--bx-pill-font-size, 12px);
  font-weight: var(--bx-pill-font-weight, 400);
  font-style: var(--bx-pill-font-style, normal);
  cursor: pointer;
  line-height: 1.4;
  transition:
    border-color 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
    background 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
    color 100ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 80ms ease;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--pill:hover:not(.bx-swatch--unavailable):not(.bx-swatch--active) {
  border-color: var(--bx-pill-active-border-color, #333333);
}

.bx-swatch--pill:active:not(.bx-swatch--unavailable) {
  transform: scale(0.96);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--pill.bx-swatch--active {
  border-color: var(--bx-pill-active-border-color, #333333);
  background: var(--bx-pill-active-background, #333333);
  color: var(--bx-pill-active-color, #ffffff);
}

.bx-swatch--pill.bx-swatch--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-variant-group--unavailable .bx-swatch--pill.bx-swatch--active {
  border-color: var(--bx-alert-color, #e53e3e);
  background: var(--bx-alert-color, #e53e3e);
}

/* Pill with image */
.bx-swatch--pill-image {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-pill-image {
  width: var(--bx-pill-image-size, 20px);
  height: var(--bx-pill-image-size, 20px);
  border-radius: var(--bx-pill-image-border-radius, 4px);
  object-fit: cover;
  flex-shrink: 0;
}

.bx-pill-image--placeholder {
  background: #e5e7eb;
}

/* Variant image swatch */
/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--image {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--bx-variant-image-padding-y, 3px)
    var(--bx-variant-image-padding-x, 3px);
  border-radius: var(--bx-variant-image-border-radius, 4px);
  border: var(--bx-variant-image-outer-border-width, 1px) solid
    color-mix(
      in srgb,
      var(--bx-variant-image-border-color, #d1d5db) 40%,
      transparent
    );
  background: transparent;
  cursor: pointer;
  transition:
    border-color 80ms ease,
    opacity 80ms ease,
    transform 80ms ease;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--image:hover:not(.bx-swatch--unavailable):not(.bx-swatch--active) {
  border-color: var(--bx-variant-image-border-color, #d1d5db);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch--image.bx-swatch--active {
  border: var(--bx-variant-image-outer-border-width, 1px) solid
    var(--bx-pill-active-border-color, #333333);
}

.bx-swatch--image:active:not(.bx-swatch--unavailable) {
  transform: scale(0.94);
}

.bx-swatch--image.bx-swatch--unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-image-wrap {
  position: relative;
  display: block;
  border-radius: var(--bx-variant-image-inner-border-radius, 2px);
  border: var(--bx-variant-image-inner-border-width, 0px) solid
    var(--bx-variant-image-inner-border-color, #d1d5db);
  overflow: hidden;
  line-height: 0;
}

.bx-swatch--image.bx-swatch--unavailable .bx-swatch-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  /*noinspection CssNonIntegerLengthInPixels*/
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    rgba(120, 120, 120, 0.7) calc(50% - 0.5px),
    rgba(120, 120, 120, 0.7) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-image {
  display: block;
  width: var(--bx-variant-image-size, 48px);
  height: var(--bx-variant-image-size, 48px);
  object-fit: cover;
  border-radius: var(--bx-variant-image-border-radius, 4px);
}

.bx-swatch-image--placeholder {
  background: #e5e7eb;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-swatch-label {
  display: var(--bx-variant-image-show-label, none);
  font-size: var(--bx-variant-image-label-font-size, 11px);
  font-weight: var(--bx-variant-image-label-font-weight, 400);
  font-style: var(--bx-variant-image-label-font-style, normal);
  line-height: 1.2;
  color: var(--bx-variant-image-label-color, #333333);
  text-align: center;
  max-width: var(--bx-variant-image-size, 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────── */

/*noinspection CssUnresolvedCustomProperty*/
.bx-select {
  appearance: auto;
  max-width: 160px;
  min-width: 80px;
  padding: var(--bx-select-padding-y) var(--bx-select-padding-x);
  border-radius: var(--bx-select-border-radius);
  border-width: var(--bx-select-border-width);
  border-color: var(--bx-select-border-color);
  background: var(--bx-select-background-color);
  color: var(--bx-select-color);
  font-size: var(--bx-select-font-size);
  font-style: var(--bx-select-font-style);
  font-weight: var(--bx-select-font-weight);
}

/* remove outline */
/*noinspection CssUnresolvedCustomProperty*/
.bx-select:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--bx-select-border-color);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-select:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--bx-select-border-color);
}

/* For browsers that don't support :focus-visible */
/*noinspection CssUnresolvedCustomProperty*/
@supports not selector(:focus-visible) {
  .bx-select:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--bx-select-border-color);
  }
}

/* cross-sell items (inside offer main) */

.bx-cross-sell-separator {
  position: relative;
  height: 20px;
}

/* horizontal dashed line with gap in the center */
/*noinspection CssUnresolvedCustomProperty*/
.bx-cross-sell-separator::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px var(--bx-bundle-border-style, dashed)
    var(--bx-offer-border-color, #cccccc);
  -webkit-mask-image: linear-gradient(
    to right,
    black calc(50% - 12px),
    transparent calc(50% - 12px),
    transparent calc(50% + 12px),
    black calc(50% + 12px)
  );
  mask-image: linear-gradient(
    to right,
    black calc(50% - 12px),
    transparent calc(50% - 12px),
    transparent calc(50% + 12px),
    black calc(50% + 12px)
  );
}

/* + icon in the gap */
/*noinspection CssUnresolvedCustomProperty*/
.bx-cross-sell-separator::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--bx-bundle-plus-size, 12px);
  height: var(--bx-bundle-plus-size, 12px);
  border: var(--bx-bundle-plus-border-width, 0) solid
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.3));
  border-radius: 50%;
  /*noinspection CssNonIntegerLengthInPixels*/
  background:
    linear-gradient(
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3)),
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3))
      )
      center / 10px 1.5px no-repeat,
    linear-gradient(
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3)),
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3))
      )
      center / 1.5px 10px no-repeat,
    var(--bx-bundle-plus-bg, transparent);
}

.bx-cross-sell-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cross-sell product links (title/image open the product). Look like plain text/image until hover. */
.bx-cross-sell-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.bx-cross-sell-image-link {
  display: inline-flex;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

/* Slight dim on hover so the image reads as clickable. */
.bx-cross-sell-image-link:hover {
  opacity: 0.9;
}

.bx-cross-sell-link:hover .bx-offer-title,
.bx-cross-sell-title-link:hover {
  text-decoration: underline;
}

/* Product links activate only once the offer is selected; on a non-selected offer the click passes
   through to select it (and no link affordance shows). */
.bx-offer-wrap:not(.bx-active) .bx-cross-sell-link {
  pointer-events: none;
}

.bx-cross-sell-item .bx-content {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
}

.bx-cross-sell-variants {
  display: none;
  width: 100%;
}

.bx-active .bx-cross-sell-variants {
  display: block;
}

.bx-cross-sell-variants .bx-variants {
  display: block;
}

/* bundle products wrapper */
/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-products {
  border: 1px var(--bx-bundle-border-style, dashed)
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.12));
  border-radius: var(--bx-offer-border-radius, 8px);
  padding: 10px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.35);
  container-type: inline-size;
}

/* horizontal layout: plain stack (default, line-by-line) — matches widget layout convention */
.bx-bundle-stacked {
  display: flex;
  flex-direction: column;
}

/* compact stack: image pinned top-left, with title -> variant -> price stacked beside it.
   display:contents on the inner wrapper lets image/content/price join the item grid so the
   variant selector can sit directly under the title instead of below the whole row. */
.bx-bundle-stacked-compact {
  display: flex;
  flex-direction: column;
}

.bx-bundle-stacked-compact .bx-cross-sell-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* Not selected: no variants, so image/title/price share one row and centre together. */
  grid-template-areas: 'image title price';
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  text-align: left;
}

/* Only items with a variant selector use the two-row template; items without variants keep the
   single-row template above so the title stays vertically centred with the image and price. */
.bx-active
  .bx-bundle-stacked-compact
  .bx-cross-sell-item:has(.bx-cross-sell-variants) {
  grid-template-areas:
    'image title price'
    'image variants price';
}

.bx-bundle-stacked-compact .bx-offer-items {
  display: contents;
}

.bx-bundle-stacked-compact .bx-preview-image-wrap,
.bx-bundle-stacked-compact .bx-offer-image,
.bx-bundle-stacked-compact .bx-offer-image-wrap,
.bx-bundle-stacked-compact .bx-cross-sell-image-link {
  grid-area: image;
  align-self: center;
}

.bx-bundle-stacked-compact .bx-content {
  grid-area: title;
  align-items: start;
  text-align: left;
}

.bx-bundle-stacked-compact .bx-cross-sell-variants {
  grid-area: variants;
}

/* Price stays on the right; combined wrapper classes beat the .bx-bundle-products
   price-centring rule below. */
.bx-bundle-products.bx-bundle-stacked-compact .bx-offer-prices {
  grid-area: price;
  margin-left: 0;
  align-items: flex-end;
}

.bx-bundle-products.bx-bundle-stacked-compact .bx-offer-price {
  align-items: flex-end;
  justify-content: flex-end;
}

/* Narrow column (grid offer layout): the compact horizontal row can't fit, so restack it into a
   centred column. Container query keys off the actual column width, not the layout class. */
@container (max-width: 260px) {
  .bx-bundle-stacked-compact .bx-cross-sell-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      'image'
      'title'
      'price';
    justify-items: center;
    text-align: center;
  }

  .bx-active
    .bx-bundle-stacked-compact
    .bx-cross-sell-item:has(.bx-cross-sell-variants) {
    grid-template-areas:
      'image'
      'title'
      'variants'
      'price';
  }

  .bx-bundle-stacked-compact .bx-content {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .bx-bundle-products.bx-bundle-stacked-compact .bx-offer-prices {
    align-items: center;
  }

  .bx-bundle-products.bx-bundle-stacked-compact .bx-offer-price {
    align-items: center;
    justify-content: center;
  }
}

/* grid layout: CSS Grid with configurable columns. Vertical dashed lines via
   border-left on non-first-column items; horizontal row separators via .bx-bundle-row-sep. */
/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-grid {
  display: grid;
  grid-template-columns: repeat(var(--bx-bundle-cols, 2), 1fr);
  column-gap: 0;
  row-gap: 8px;
  align-items: stretch;
}

/* vertical dashed line between columns — padding creates centered gap */
/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-grid .bx-cross-sell-item {
  position: relative;
  padding: 0 10px;
  /* Override the CSS Grid default min-width:auto so a wide select/long text can't
     stretch its column past its 1fr share; keeps every column equal width. */
  min-width: 0;
}

/* In grid mode columns are narrow; let selects fill their column instead of
   forcing it wider via the fixed min-width used in stacked layout. */
.bx-bundle-grid .bx-select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* dashed line with a gap in the center for the + sign */
/*noinspection CssUnresolvedCustomProperty,CssMissingComma*/
.bx-bundle-grid
  .bx-cross-sell-item:not(:first-child):not(.bx-grid-first-col)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px var(--bx-bundle-border-style, dashed)
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.12));
  -webkit-mask-image: linear-gradient(
    to bottom,
    black calc(50% - 12px),
    transparent calc(50% - 12px),
    transparent calc(50% + 12px),
    black calc(50% + 12px)
  );
  mask-image: linear-gradient(
    to bottom,
    black calc(50% - 12px),
    transparent calc(50% - 12px),
    transparent calc(50% + 12px),
    black calc(50% + 12px)
  );
}

/* + icon in the gap — pure CSS cross using background gradients */
/*noinspection CssUnresolvedCustomProperty,CssMissingComma*/
.bx-bundle-grid
  .bx-cross-sell-item:not(:first-child):not(.bx-grid-first-col)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--bx-bundle-plus-size, 12px);
  height: var(--bx-bundle-plus-size, 12px);
  border: var(--bx-bundle-plus-border-width, 0) solid
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.3));
  border-radius: 50%;
  /*noinspection CssNonIntegerLengthInPixels*/
  background:
    linear-gradient(
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3)),
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3))
      )
      center / 10px 1.5px no-repeat,
    linear-gradient(
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3)),
        var(--bx-offer-border-color, rgba(0, 0, 0, 0.3))
      )
      center / 1.5px 10px no-repeat,
    var(--bx-bundle-plus-bg, transparent);
}

/* first column items: no left border */
.bx-bundle-grid .bx-cross-sell-item:first-child,
.bx-bundle-grid .bx-cross-sell-item.bx-grid-first-col {
  border-left: none;
  padding-left: 0;
}

/* horizontal row separator — spans full grid width */
/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-row-sep {
  grid-column: 1 / -1;
  border-top: 1px var(--bx-bundle-border-style, dashed)
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.12));
}

/* force card layout (column, centred) inside each grid cell */
.bx-bundle-grid .bx-offer-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* Override the horizontal-layout flex:1 so the card doesn't stretch to fill the equal-height
     column and shove the variants to the bottom — keep image/title/price/variants grouped at top. */
  flex: 0 0 auto;
}

.bx-bundle-grid .bx-content {
  align-items: center;
  text-align: center;
}

/* Grid bundle: centre the variant label and selectors like the rest of the card. */
.bx-bundle-grid .bx-cross-sell-variants {
  text-align: center;
}
.bx-bundle-grid .bx-variants-options,
.bx-bundle-grid .bx-variant-body {
  align-items: center;
}
.bx-bundle-grid .bx-variant-group,
.bx-bundle-grid .bx-variant-selects,
.bx-bundle-grid .bx-swatch-group {
  justify-content: center;
}

/* Reset the horizontal-layout price alignment so prices centre inside the bundle.
   Stacked (line-by-line) price layout sets align-items:flex-end for the right-hugging
   widget rows, so re-centre on the cross axis too. Covers grid and stacked bundles. */
/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-products .bx-offer-prices {
  margin-left: 0;
  align-items: center;
}

.bx-bundle-products .bx-offer-price {
  align-items: center;
  justify-content: center;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-products .bx-offer-title {
  font-size: var(--bx-offer-bundle-title-font-size);
  line-height: var(--bx-offer-bundle-title-line-height);
  color: var(--bx-offer-bundle-title-color);
  font-weight: var(--bx-offer-bundle-title-font-weight);
  font-style: var(--bx-offer-bundle-title-font-style);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-products .bx-discounted-price {
  font-size: var(--bx-offer-compare-price-font-size);
  line-height: var(--bx-offer-compare-price-line-height);
}

/* gallery layout: product images showcased in a row on top, then a stacked title + price list
   below. The per-product image in the list is hidden (the showcased images replace it). */
.bx-bundle-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bx-gallery-images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-gallery-plus {
  color: var(--bx-offer-border-color, rgba(0, 0, 0, 0.3));
  font-size: 18px;
  line-height: 1;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-bundle-gallery .bx-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px var(--bx-bundle-border-style, dashed)
    var(--bx-offer-border-color, rgba(0, 0, 0, 0.12));
}

/* the showcased images (in .bx-gallery-images) replace the per-row image in the list, so hide it
   there — covers the preview wrapper and the embed's bare <img>, but not the showcase row above. */
.bx-bundle-gallery .bx-gallery-list .bx-offer-image,
.bx-bundle-gallery .bx-gallery-list .bx-offer-image-wrap,
.bx-bundle-gallery .bx-gallery-list .bx-preview-image-wrap {
  display: none;
}

/* Each product row: title + variants form one block on the left; price on the right, vertically
   centred against that block. display:contents lets the title and price join the item grid so the
   variants (a sibling) can sit directly under the title. */
.bx-bundle-gallery .bx-cross-sell-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'title price';
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  text-align: left;
}

/* Selected: variants appear under the title; price spans both rows so it stays centred. */
.bx-active .bx-bundle-gallery .bx-cross-sell-item {
  grid-template-areas:
    'title price'
    'variants price';
}

.bx-bundle-gallery .bx-offer-items {
  display: contents;
}

.bx-bundle-gallery .bx-content {
  grid-area: title;
  min-width: 0;
}

.bx-bundle-gallery .bx-cross-sell-variants {
  grid-area: variants;
}

.bx-bundle-products.bx-bundle-gallery .bx-offer-prices {
  grid-area: price;
  margin-left: 0;
  align-items: flex-end;
}

.bx-bundle-products.bx-bundle-gallery .bx-offer-price {
  align-items: flex-end;
  justify-content: flex-end;
}

/* extras (gifts) */

/*noinspection CssUnresolvedCustomProperty*/
.bx-extras {
  align-items: start;
  margin-top: -4px;
  background: var(--bx-extra-background-color);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
}

/* Only the first extras band tucks up under the offer; later bands (gifts + selectors, or
   multiple selectors) sit flush instead of overlapping the band above. */
.bx-extras ~ .bx-extras {
  margin-top: 0;
}

.bx-extra-show-when-selected,
.bx-extras-show-when-selected {
  display: none;
}

.bx-active .bx-extra-show-when-selected,
.bx-active .bx-extras-show-when-selected {
  display: grid;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-extras {
  background: var(--bx-extra-background-color-active);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-extra-title {
  color: var(--bx-extra-title-color);
  font-size: var(--bx-extra-title-font-size);
  font-style: var(--bx-extra-title-font-style);
  font-weight: var(--bx-extra-title-font-weight);
  line-height: var(--bx-extra-title-line-height);
  word-break: break-word;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-extra-title {
  color: var(--bx-extra-title-color-active);
  font-size: var(--bx-extra-title-font-size-active);
  font-style: var(--bx-extra-title-font-style-active);
  font-weight: var(--bx-extra-title-font-weight-active);
  line-height: var(--bx-extra-title-line-height-active);
}

/* Single-gift + cards-layout title stays one line + ellipsis; long product titles would otherwise
   wrap and break the row. The trigger CTA keeps its own wrapping. */
.bx-extras > .bx-extra .bx-extra-text,
.bx-gift-row .bx-extra-text {
  min-width: 0;
  max-width: 100%;
}

.bx-extras > .bx-extra .bx-extra-title,
.bx-gift-row .bx-extra-title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gift rows + cards stay on one line: image + price (+ variant select) are reserved at their natural
   size, and the title fills whatever is left and truncates. */
.bx-gift-row .bx-extra-content {
  flex-wrap: nowrap;
}

.bx-extras > .bx-extra .bx-extra-content > .bx-extra-title,
.bx-extras > .bx-extra .bx-extra-content > .bx-extra-text,
.bx-gift-row .bx-extra-content > .bx-extra-title,
.bx-gift-row .bx-extra-content > .bx-extra-text {
  flex: 1 1 0;
}

.bx-extra-content > .bx-extra-prices,
.bx-extra-content > .bx-extra-options {
  flex-shrink: 0;
}

/* Optional gift subtitle (line 2 under the title), subdued like the selector status line. */
.bx-extra-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-extra-subtitle {
  color: var(--bx-extra-title-color);
  font-size: var(--bx-extra-title-font-size);
  line-height: 1.2;
  opacity: 0.75;
  word-break: break-word;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-extra-subtitle {
  color: var(--bx-extra-title-color-active);
  font-size: var(--bx-extra-title-font-size-active);
}

/* Free gift price — mirrors .bx-offer-prices > .bx-offer-price DOM so layout/order/alignment inherit from the offer's CSS vars.
   Tight line-height + small gap so stacked prices sit close together at the gift-row font size. */
.bx-extra-prices .bx-offer-price {
  gap: 2px;
}
/* Vertical layout: .bx-extra-content is a grid that stretches children full-width, so the prices wrapper has to self-center its content (the main offer wrapper gets this from .bx-offer-items in vertical, which the gift row doesn't pass through). */
.bx-layout-vertical .bx-offer-prices.bx-extra-prices {
  align-items: center;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-extra-prices .bx-discounted-price,
.bx-extra-prices .bx-original-price {
  color: var(--bx-extra-title-color);
  font-size: var(--bx-extra-title-font-size);
  line-height: 1.1;
}
/* Subdue the strikethrough so it reads as subordinate info (mirrors the offer's gray compare-price treatment via opacity since we can't reuse its color in the gift's theme-aware row). */
.bx-extra-prices .bx-original-price {
  opacity: 0.7;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-active .bx-extra-prices .bx-discounted-price,
.bx-active .bx-extra-prices .bx-original-price {
  color: var(--bx-extra-title-color-active);
  font-size: var(--bx-extra-title-font-size-active);
  line-height: 1.1;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-extra-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bx-offer-label-background-color, #333);
  color: var(--bx-offer-label-color, #fff);
  white-space: nowrap;
}

.bx-extra-options {
  display: none;
}

.bx-active .bx-extra-options {
  display: block;
  overflow: hidden;
}

.bx-layout-horizontal .bx-extra-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.bx-layout-vertical .bx-extra-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: min-content;
  text-align: center;
  gap: 4px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-extra-image {
  display: var(--bx-extra-image-display) !important;
  width: var(--bx-extra-image-width);
  height: var(--bx-extra-image-width);
  border-radius: var(--bx-extra-image-radius);
  flex-shrink: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Gift placeholder icon, stacked-thumbnail ring and +N badge track the gift extra's own colors,
   including the active-state switch the label/surface use when the offer is selected. */
.bx-gift-picker {
  --bx-gift-icon-color: var(--bx-extra-title-color, #808080);
  --bx-gift-surface-color: var(--bx-extra-background-color, #cccccc);
}

/* Stable wrapper so the embed can swap the trigger image (placeholder ⇄ configured ⇄ picked stack)
   on each pick; display:contents keeps the inner image as the flex item, no layout change. */
.bx-gift-picker-trigger-image {
  display: contents;
}

.bx-active .bx-gift-picker {
  --bx-gift-icon-color: var(
    --bx-extra-title-color-active,
    var(--bx-extra-title-color, #808080)
  );
  --bx-gift-surface-color: var(
    --bx-extra-background-color-active,
    var(--bx-extra-background-color, #cccccc)
  );
}

.bx-gift-picker-image--placeholder {
  background-color: color-mix(
    in srgb,
    var(--bx-gift-icon-color) 14%,
    transparent
  );
  color: var(--bx-gift-icon-color);
}

.bx-gift-picker-image--placeholder svg {
  display: block;
  width: 55%;
  height: 55%;
  margin: 22.5%;
  opacity: 0.7;
}

/* Picked gifts: overlapping thumbnails in place of the single image box. Not .bx-extra-image so
   the stack can grow wider than one box; honours the show/hide-images toggle via the display var. */
.bx-gift-picker-image-stack {
  display: var(--bx-extra-image-display, block) !important;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0;
}

.bx-gift-picker-image-thumb,
.bx-gift-picker-image-more {
  width: var(--bx-extra-image-width);
  height: var(--bx-extra-image-width);
  border-radius: var(--bx-extra-image-radius);
  /* Only a right edge divides overlapping photos; inherits the surface color's own alpha. */
  border-right: 1px solid var(--bx-gift-surface-color);
  box-sizing: border-box;
  vertical-align: middle;
}

/* The last item has nothing tucked under it, so it needs no divider. */
.bx-gift-picker-image-thumb:last-child,
.bx-gift-picker-image-more:last-child {
  border-right: 0;
}

.bx-gift-picker-image-thumb {
  display: inline-block;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bx-gift-picker-image-thumb + .bx-gift-picker-image-thumb,
.bx-gift-picker-image-more {
  margin-left: calc(var(--bx-extra-image-width) * -0.4);
}

.bx-gift-picker-image-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(
    in srgb,
    var(--bx-gift-icon-color) 14%,
    transparent
  );
  color: var(--bx-gift-icon-color);
  font-size: calc(var(--bx-extra-image-width) * 0.3);
  font-weight: 600;
}

/* Trigger reads as clickable: image dims and the heading underlines on hover, like cross-sell gifts.
   The ⊕ icon is inline-flex, so the underline naturally skips it. */
.bx-gift-picker-trigger .bx-gift-picker-image,
.bx-gift-picker-trigger .bx-gift-picker-image-stack {
  transition: opacity 0.15s ease;
}

.bx-gift-picker-trigger:hover .bx-gift-picker-image,
.bx-gift-picker-trigger:hover .bx-gift-picker-image-stack {
  opacity: 0.9;
}

.bx-gift-picker-trigger:hover .bx-gift-picker-trigger-label {
  text-decoration: underline;
}

/* ── Chips layout: selected gifts as compact removable tags + an add tag ── */
.bx-gift-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bx-gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--bx-offer-border-radius, 8px);
  background-color: color-mix(
    in srgb,
    var(--bx-gift-icon-color) 12%,
    transparent
  );
  color: var(--bx-gift-icon-color);
  font-size: var(--bx-extra-title-font-size);
  line-height: 1.2;
}

.bx-gift-chip-image {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--bx-extra-image-radius, 4px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bx-gift-chip-title {
  min-width: 0;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bx-gift-chip-remove,
.bx-gift-row-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bx-gift-icon-color);
  cursor: pointer;
  opacity: 0.55;
}

.bx-gift-chip-remove {
  width: 13px;
  height: 13px;
}

.bx-gift-chip-remove svg,
.bx-gift-row-remove svg {
  width: 100%;
  height: 100%;
}

.bx-gift-chip-remove:hover,
.bx-gift-row-remove:hover {
  opacity: 1;
}

.bx-gift-chip-add,
.bx-gift-row-add {
  cursor: pointer;
  color: var(--bx-gift-icon-color);
  font: inherit;
  font-size: var(--bx-extra-title-font-size);
  background-color: transparent;
  transition: background-color 0.15s ease;
}

/* Slight fill on hover so the open-modal block reads as clickable, like the trigger image dim. */
.bx-gift-chip-add:hover,
.bx-gift-row-add:hover {
  background-color: color-mix(
    in srgb,
    var(--bx-gift-icon-color) 10%,
    transparent
  );
}

.bx-gift-chip-add {
  border: 1px dashed
    color-mix(in srgb, var(--bx-gift-icon-color) 45%, transparent);
}

.bx-gift-chip-add svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Cards layout: selected gifts as rows (reusing .bx-extra-* styling) + an add row ── */
.bx-gift-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bx-gift-row {
  padding: 8px 12px;
  border-radius: var(--bx-offer-border-radius, 8px);
  background-color: color-mix(
    in srgb,
    var(--bx-gift-icon-color) 8%,
    transparent
  );
}

.bx-gift-row .bx-extra-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bx-gift-row .bx-extra-title,
.bx-gift-row .bx-extra-text {
  flex: 1 1 auto;
  min-width: 0;
}

.bx-gift-row-remove {
  margin-left: auto;
}

.bx-gift-row-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed
    color-mix(in srgb, var(--bx-gift-icon-color) 45%, transparent);
  border-radius: var(--bx-offer-border-radius, 8px);
}

.bx-gift-row-add svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Chip/card product image + title read as clickable to open the product, like the single-gift image
   affordance. Real <a> links come from the embed; the preview just shows the hover treatment. */
.bx-gift-chip-image,
.bx-gift-chip-title,
.bx-gift-row .bx-extra-image,
.bx-gift-row .bx-extra-title {
  cursor: pointer;
}

.bx-gift-chip-image,
.bx-gift-row .bx-extra-image {
  transition: opacity 0.15s ease;
}

.bx-gift-chip-image:hover,
.bx-gift-row .bx-extra-image:hover {
  opacity: 0.85;
}

.bx-gift-chip-title:hover,
.bx-gift-row .bx-extra-title:hover {
  text-decoration: underline;
}

.bx-layout-vertical .bx-extra-image,
.bx-layout-vertical .bx-extra-content > .bx-cross-sell-image-link {
  justify-self: center;
}

/* benefits */

/*noinspection CssUnresolvedCustomProperty*/
.bx-benefits {
  display: grid;
  gap: 4px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-benefits--card {
  border: 1px dashed var(--bx-offer-border-color, rgba(0, 0, 0, 0.12));
  border-radius: var(--bx-offer-border-radius, 8px);
  background: rgba(255, 255, 255, 0.35);
  padding: 10px;
}

.bx-benefits-show-when-selected {
  display: none;
}

.bx-active .bx-benefits-show-when-selected {
  display: grid;
}

.bx-benefit-item {
  align-items: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-benefit-icon {
  align-self: center;
  color: var(--bx-benefits-icon-color, #333333);
  display: inline-flex;
  flex-shrink: 0;
  height: var(--bx-benefits-font-size, 12px);
  width: var(--bx-benefits-font-size, 12px);
}
.bx-benefit-icon svg {
  height: 100%;
  width: 100%;
}

.bx-benefit-icon-none {
  display: none;
}

.bx-benefit-icon-livedot {
  position: relative;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-benefit-icon-livedot-core {
  background: var(--bx-benefits-icon-color, #333333);
  border-radius: 50%;
  height: 50%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}
/*noinspection CssUnresolvedCustomProperty*/
.bx-benefit-icon-livedot-ring {
  animation: bx-benefit-livedot-pulse 1.6s ease-out infinite;
  background: var(--bx-benefits-icon-color, #333333);
  border-radius: 50%;
  height: 100%;
  left: 0;
  opacity: 0.35;
  position: absolute;
  top: 0;
  width: 100%;
}
@keyframes bx-benefit-livedot-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-benefit-icon-image {
  align-self: center;
  border-radius: 2px;
  flex-shrink: 0;
  height: calc(var(--bx-benefits-font-size, 12px) + 4px);
  object-fit: cover;
  width: calc(var(--bx-benefits-font-size, 12px) + 4px);
}

/*noinspection CssUnresolvedCustomProperty*/
.bx-benefit-text {
  color: var(--bx-benefits-text-color, #333333);
  font-size: var(--bx-benefits-font-size, 12px);
  font-style: var(--bx-benefits-font-style, normal);
  font-weight: var(--bx-benefits-font-weight, 400);
  line-height: var(--bx-benefits-line-height, 16px);
  word-break: break-word;
}

/* #7 multiple gifts — selector trigger + modal. Themeable via --bx-gift-* vars
   (see docs/frontend/GIFT_SELECTOR_STYLING.md); defaults match the pre-variable look. */
/* Trigger reuses the single-gift row look: the button is stripped bare so the .bx-extra-content
   row (image + title + --bx-extra-* vars) shows through, with the count/+ pushed to the right. */
.bx-gift-picker-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bx-gift-picker-trigger .bx-extra-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}
/* Heading (line 1) + status (line 2) stack on the left and take the row width; price sits alone on the right. */
.bx-gift-picker-trigger-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
/* Tight line-heights so the heading/status stack matches the price block's compact spacing. */
.bx-gift-picker-trigger .bx-extra-title {
  line-height: 1.25;
}
.bx-gift-picker-trigger-status {
  color: var(--bx-extra-title-color, inherit);
  font-size: var(--bx-extra-title-font-size);
  line-height: 1.2;
  opacity: 0.75;
}
/* Match the gift-row title's active treatment so the status line stays readable on a selected offer. */
.bx-active .bx-gift-picker-trigger-status {
  color: var(--bx-extra-title-color-active, inherit);
  font-size: var(--bx-extra-title-font-size-active);
}
/* Selected-gifts total on the trigger; hidden until something is picked so it adds no gap. */
.bx-gift-picker-trigger-price {
  flex-shrink: 0;
}
.bx-gift-picker-trigger-price:empty {
  display: none;
}
/* Vertical layout: stack the gift-selector trigger centered, price under the heading/status (not on the right). */
.bx-layout-vertical .bx-gift-picker-trigger {
  text-align: center;
}
.bx-layout-vertical .bx-gift-picker-trigger .bx-extra-content {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bx-layout-vertical .bx-gift-picker-trigger-text {
  flex: 0 0 auto;
  align-items: center;
}
.bx-gift-modal-backdrop {
  align-items: center;
  background: var(--bx-gift-modal-overlay-color, rgba(0, 0, 0, 0.5));
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: var(--bx-gift-modal-overlay-padding, 16px);
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 2147483646;
}
.bx-gift-modal-backdrop--visible {
  opacity: 1;
}
.bx-gift-modal {
  background: var(--bx-gift-modal-bg, #fff);
  border-radius: var(--bx-gift-modal-radius, 12px);
  box-shadow: var(--bx-gift-modal-shadow, 0 12px 40px rgba(0, 0, 0, 0.25));
  color: var(--bx-gift-modal-text-color, #333333);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  max-width: var(--bx-gift-modal-max-width, 460px);
  overflow: hidden;
  width: 100%;
}
/* Dividers derive from the text color so they adapt to any panel background. */
.bx-gift-modal-header {
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 15%,
      transparent
    );
  display: flex;
  justify-content: space-between;
  padding: 13px var(--bx-gift-modal-padding, 16px);
}
.bx-gift-modal-title {
  font-size: var(--bx-gift-modal-title-font-size, 15px);
  font-style: var(--bx-gift-font-style, normal);
  font-weight: var(--bx-gift-font-weight, 600);
}
.bx-gift-modal-close {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease;
  width: 28px;
}
/* SVG mark centers geometrically (the old &times; glyph never did). */
.bx-gift-modal-close svg {
  display: block;
  height: 15px;
  width: 15px;
}
.bx-gift-modal-close:hover {
  background: var(--bx-gift-modal-close-hover-bg, rgba(0, 0, 0, 0.06));
}
.bx-gift-modal-body {
  overflow-y: auto;
}
/* Borderless list rows separated by a hairline divider (no per-card border/radius) so the modal
   reads as a clean list. Horizontal padding lives on the row, not the body, so the selected row's
   tint + left accent bar run full-bleed to the panel edges. A 2nd grid row (the variant/remove
   block) appears only when chosen, indented past the image via grid-column. */
.bx-gift-card {
  align-items: center;
  background: var(--bx-gift-card-bg, transparent);
  border-bottom: 1px solid #e0e0e0;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 15%,
      transparent
    );
  column-gap: var(--bx-gift-card-gap, 12px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: var(--bx-gift-card-padding, 10px) var(--bx-gift-modal-padding, 16px);
  row-gap: 0;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.bx-gift-card:last-child {
  border-bottom: 0;
}
.bx-gift-card:hover {
  background: rgba(0, 0, 0, 0.015);
  background: var(
    --bx-gift-card-hover-bg,
    color-mix(in srgb, var(--bx-gift-modal-text-color, #333333) 2%, transparent)
  );
}
/* Selected row: full-bleed tint + a left accent bar (inset shadow adds no layout shift). Placed
   after :hover so it wins on equal specificity and the row stays tinted while hovered. The accent
   is the inverted panel pair (text color on panel background) so it stays on-theme. */
.bx-gift-card--chosen {
  background: #f6f6f6;
  background: var(
    --bx-gift-card-selected-bg,
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 5%,
      var(--bx-gift-modal-bg, #fff)
    )
  );
  box-shadow: inset 2px 0 0 0
    var(
      --bx-gift-card-selected-border,
      var(--bx-gift-modal-text-color, #303030)
    );
}
/* Two-class selector + explicit display: themes (Dawn, Horizon) ship `div:empty { display: none }`,
   which would hide this background-image-only div at lower specificity. */
.bx-gift-card .bx-gift-card-image {
  background-color: var(--bx-gift-card-image-placeholder, #f3f3f3);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border: 1px solid
    var(
      --bx-gift-card-image-border,
      color-mix(
        in srgb,
        var(--bx-gift-control-border, #cccccc) 55%,
        transparent
      )
    );
  border-radius: var(--bx-gift-card-image-radius, 8px);
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
  height: var(--bx-gift-card-image-size, 44px);
  position: relative;
  width: var(--bx-gift-card-image-size, 44px);
}
/* Subtle gift glyph so empty/no-image gifts don't read as a broken gray box. */
/* Two-class selector so the glyph size beats the card image's `background-size: cover`. */
.bx-gift-card .bx-gift-card-image--empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcbcbc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8.5' width='18' height='12.5' rx='1.2'/%3E%3Cpath d='M3 13h18M12 8.5V21M12 8.5C12 8.5 10.5 4 8 4.6 6.3 5 6.8 8.5 12 8.5ZM12 8.5C12 8.5 13.5 4 16 4.6 17.7 5 17.2 8.5 12 8.5Z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
}
/* Checkmark badge on the chosen gift's image, ringed in the panel color so it pops off the edge. */
.bx-gift-card--chosen .bx-gift-card-image::after {
  align-items: center;
  background: var(
    --bx-gift-card-selected-border,
    var(--bx-gift-modal-text-color, #303030)
  );
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bx-gift-modal-bg, #fff);
  color: var(--bx-gift-modal-bg, #fff);
  content: '✓';
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
}
.bx-gift-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bx-gift-card-title {
  font-size: var(--bx-gift-card-title-font-size, 14px);
  font-style: var(--bx-gift-font-style, normal);
  font-weight: var(--bx-gift-font-weight, 600);
}
/* Bold the "free" value inside the modal. The gift price reuses the offer price markup, whose
   weight var is unset in the body-portaled modal, so it would otherwise render at normal weight. */
/* Struck originals are conventionally muted: 55% of the modal text color (the widget-side
   price vars never reach the portaled modal). */
.bx-gift-card .bx-extra-prices .bx-original-price {
  color: #767676;
  color: color-mix(
    in srgb,
    var(--bx-gift-modal-text-color, #333333) 55%,
    transparent
  );
}
.bx-gift-card .bx-extra-prices .bx-discounted-price {
  font-weight: 600;
}
.bx-gift-card-choose {
  background: var(--bx-gift-button-bg, #fff);
  border: 1px solid
    var(--bx-gift-control-border, var(--bx-gift-button-border-color, #cccccc));
  border-radius: var(--bx-gift-button-radius, 8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  color: var(--bx-gift-modal-text-color, #333333);
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: var(--bx-gift-button-font-size, 13px);
  font-weight: 500;
  min-height: var(--bx-gift-control-height, 32px);
  padding: 0 16px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.bx-gift-card-choose:hover:not(:disabled) {
  background: var(--bx-gift-button-hover-bg, rgba(0, 0, 0, 0.03));
  border-color: var(--bx-gift-button-border-hover, #8c9196);
}
.bx-gift-card--chosen .bx-gift-card-choose {
  background: var(--bx-gift-modal-text-color, #303030);
  color: var(--bx-gift-modal-bg, #fff);
}
.bx-gift-card--chosen .bx-gift-card-choose:hover {
  opacity: 0.92;
}
.bx-gift-card-choose:disabled {
  cursor: not-allowed;
  opacity: var(--bx-gift-button-disabled-opacity, 0.4);
}
.bx-gift-modal-footer {
  align-items: center;
  border-top: 1px solid #e0e0e0;
  border-top: 1px solid
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 15%,
      transparent
    );
  display: flex;
  justify-content: space-between;
  padding: 12px var(--bx-gift-modal-padding, 16px);
}
.bx-gift-modal-count {
  font-size: var(--bx-gift-status-font-size, 13px);
  font-style: var(--bx-gift-font-style, normal);
  font-weight: var(--bx-gift-font-weight, 600);
}
.bx-gift-modal-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.bx-gift-modal-cancel {
  background: var(--bx-gift-button-bg, #fff);
  border: 1px solid
    var(
      --bx-gift-control-border,
      color-mix(
        in srgb,
        var(--bx-gift-modal-text-color, #333333) 16%,
        transparent
      )
    );
  border-radius: var(--bx-gift-button-radius, 8px);
  color: var(--bx-gift-modal-text-color, #333333);
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: var(--bx-gift-button-font-size, 13px);
  font-weight: 500;
  height: var(--bx-gift-footer-btn-height, 36px);
  padding: 0 18px;
  transition: background-color 0.15s ease;
}
.bx-gift-modal-cancel:hover {
  background: var(--bx-gift-button-hover-bg, rgba(0, 0, 0, 0.03));
  border-color: var(--bx-gift-button-border-hover, #8c9196);
}
.bx-gift-modal-done {
  background: var(--bx-gift-modal-text-color, #303030);
  border: 0;
  border-radius: var(--bx-gift-button-radius, 8px);
  color: var(--bx-gift-modal-bg, #fff);
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: var(--bx-gift-button-font-size, 13px);
  font-weight: 500;
  height: var(--bx-gift-footer-btn-height, 36px);
  padding: 0 18px;
  transition: opacity 0.15s ease;
}
.bx-gift-modal-done:hover {
  opacity: 0.9;
}
.bx-gift-card-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
}
.bx-gift-stepper {
  align-items: center;
  background: var(--bx-gift-stepper-bg, var(--bx-gift-button-bg, #fff));
  border: 1px solid #babfc3;
  border: 1px solid
    var(
      --bx-gift-control-border,
      var(
        --bx-gift-stepper-border-color,
        color-mix(
          in srgb,
          var(--bx-gift-modal-text-color, #333333) 30%,
          transparent
        )
      )
    );
  border-radius: var(
    --bx-gift-stepper-radius,
    var(--bx-gift-button-radius, 8px)
  );
  display: flex;
  height: var(--bx-gift-control-height, 32px);
  overflow: hidden;
}
.bx-gift-stepper-btn {
  background: var(--bx-gift-stepper-bg, var(--bx-gift-button-bg, #fff));
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--bx-gift-button-font-size, 13px) + 2px);
  height: 100%;
  line-height: 1;
  padding: 0 12px;
}
.bx-gift-stepper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.bx-gift-stepper-val {
  font-size: var(--bx-gift-button-font-size, 13px);
  min-width: 24px;
  padding: 0 4px;
  text-align: center;
}
/* Full-width block under the row (variant pickers + Remove), shown only when the gift is chosen.
   Spans from the content column to the panel edge so the dropdowns sit indented past the image. */
.bx-gift-card-extra {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 2 / -1;
  margin-top: 8px;
  min-width: 0;
}
.bx-gift-card-remove {
  background: none;
  border: 0;
  color: #6b7177;
  color: var(
    --bx-gift-remove-color,
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 65%,
      transparent
    )
  );
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}
.bx-gift-card-variants {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.bx-gift-card-variant-row {
  align-items: center;
  display: flex;
  gap: 8px;
  width: 100%;
}
.bx-gift-card-variant-num {
  color: #888;
  color: var(
    --bx-gift-card-variant-num-color,
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 55%,
      transparent
    )
  );
  flex-shrink: 0;
  font-size: 12px;
}
/* Clean, theme-agnostic select — overrides the native appearance:auto look (the browser's
   black border) that .bx-select falls back to inside the body-portaled modal. */
.bx-gift-card-variant-row .bx-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bx-gift-button-bg, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23888888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border: 1px solid
    var(
      --bx-gift-control-border,
      var(
        --bx-gift-select-border,
        color-mix(
          in srgb,
          var(--bx-gift-modal-text-color, #333333) 16%,
          transparent
        )
      )
    );
  border-radius: var(--bx-gift-button-radius, 8px);
  color: inherit;
  cursor: pointer;
  flex: 1 1 auto;
  font: inherit;
  font-size: var(--bx-gift-button-font-size, 13px);
  height: var(--bx-gift-control-height, 32px);
  max-width: none;
  min-width: 0;
  padding: 0 28px 0 10px;
  transition: border-color 0.15s ease;
}
.bx-gift-card-variant-row .bx-select:focus-visible {
  border-color: var(
    --bx-gift-card-selected-border,
    var(--bx-gift-modal-text-color, #303030)
  );
  outline: none;
}
/* Ghost per-unit remove next to each variant select (shown only when several units exist). */
.bx-gift-unit-remove {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(
    --bx-gift-remove-color,
    color-mix(
      in srgb,
      var(--bx-gift-modal-text-color, #333333) 45%,
      transparent
    )
  );
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 24px;
  justify-content: center;
  padding: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  width: 24px;
}
.bx-gift-unit-remove svg {
  height: 11px;
  width: 11px;
}
.bx-gift-unit-remove:hover {
  background: color-mix(
    in srgb,
    var(--bx-gift-modal-text-color, #333333) 7%,
    transparent
  );
  color: var(--bx-gift-modal-text-color, #333333);
}
/* Muted pill on pool products the shopper cannot pick (out of stock or market-excluded). */
.bx-gift-card--unavailable .bx-gift-card-image {
  opacity: 0.55;
}
.bx-gift-card-unavailable {
  background: rgba(0, 0, 0, 0.06);
  background: color-mix(
    in srgb,
    var(--bx-gift-modal-text-color, #333333) 7%,
    transparent
  );
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.55);
  color: color-mix(
    in srgb,
    var(--bx-gift-modal-text-color, #333333) 60%,
    transparent
  );
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
/* Loading skeleton while pool products resolve. */
.bx-gift-card--skeleton:hover {
  background: transparent;
}
.bx-gift-skeleton {
  animation: bx-gift-skeleton-pulse 1.4s ease-in-out infinite;
  background: rgba(0, 0, 0, 0.07);
  background: color-mix(
    in srgb,
    var(--bx-gift-modal-text-color, #333333) 7%,
    transparent
  );
  border: 0;
}
.bx-gift-skeleton-line {
  border-radius: 4px;
  height: 12px;
  width: 55%;
}
.bx-gift-skeleton-line--short {
  width: 35%;
}
.bx-gift-skeleton-btn {
  border-radius: var(--bx-gift-button-radius, 8px);
  height: 28px;
  width: 76px;
}
@keyframes bx-gift-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
/* Mobile: the picker becomes a bottom sheet — full width, top-rounded, taller touch targets. */
@media (max-width: 520px) {
  .bx-gift-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .bx-gift-modal {
    border-radius: var(--bx-gift-modal-radius, 12px)
      var(--bx-gift-modal-radius, 12px) 0 0;
    max-height: 92dvh;
    max-width: none;
    width: 100%;
  }
  .bx-gift-modal-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .bx-gift-modal {
    --bx-gift-control-height: 40px;
  }
  .bx-gift-modal {
    --bx-gift-footer-btn-height: 44px;
  }
}
