/* Hidden campaign blocks must not remain flex/grid items in the theme's gap layout.
   Limit this to SHOPLINE wrappers containing only one of our widgets. */
[id^="shopline-block-"]:has(> :is(.theme-bundle-widget, .theme-fbt-widget, .theme-add-ons-widget)[hidden]:only-child) {
  display: none !important;
}

.theme-bundle-widget[hidden] {
  display: none !important;
}

.theme-bundle-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bundle-accent, #222222) 14%, #d8e0e8);
  border-radius: 7px;
  padding: 0 20px 20px;
  background: var(--bundle-panel-bg, #f6f6f4);
  color: var(--bundle-text, #0f1720);
}

.theme-bundle-widget--variant-picker-open {
  overflow: visible;
  z-index: 3;
}

.theme-bundle-widget__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  padding: 20px 0 9px;
}

.theme-bundle-widget__header[hidden] {
  display: none;
}

.theme-bundle-widget__header::before {
  display: none;
}

.theme-bundle-widget__header h2 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 0 42px;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: var(--bundle-title-font-size, 19px);
  font-weight: 700;
  color: var(--bundle-text, #0f1720);
}

.theme-bundle-widget__header p {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0 32px;
  text-align: center;
  color: var(--bundle-muted, #52606d);
}

.theme-bundle-widget__badge {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bundle-accent, #222222);
  color: var(--bundle-card-bg, #ffffff);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
  transform: none;
  white-space: nowrap;
}

.theme-bundle-widget__content {
  width: min(100%, 720px);
  margin: 2px auto 0;
  padding: 0 12px;
}

.theme-bundle-widget__offer {
  padding: 0;
  background: transparent;
}

.theme-bundle-widget__offer + .theme-bundle-widget__offer {
  margin-top: 18px;
  padding-top: 18px;
}

.theme-bundle-widget__offer--gift {
  display: grid;
  gap: 12px;
}

.theme-bundle-widget__offer--volume {
  display: grid;
  gap: 12px;
}

.theme-bundle-widget__gift-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.theme-bundle-widget__volume-options {
  display: grid;
  gap: 10px;
}

.theme-bundle-widget__volume-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: var(--bundle-card-bg, #ffffff);
  cursor: pointer;
}

.theme-bundle-widget__volume-option--active {
  border-color: color-mix(in srgb, var(--bundle-accent, #222222) 38%, #dfe6ee);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bundle-accent, #222222) 24%, transparent);
}

.theme-bundle-widget__volume-option--labeled {
  margin-top: 18px;
}

.theme-bundle-widget__volume-label {
  position: absolute;
  top: -19px;
  left: -1px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 24px);
  min-height: 24px;
  border-radius: 5px 5px 0 0;
  padding: 0 12px;
  background: #f56267;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-bundle-widget__volume-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-bundle-widget__volume-radio-ui {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bundle-accent, #222222);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

.theme-bundle-widget__volume-option--active .theme-bundle-widget__volume-radio-ui::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bundle-accent, #222222);
}

.theme-bundle-widget__volume-copy {
  display: grid;
  gap: 6px;
}

.theme-bundle-widget__volume-copy strong {
  font-size: 15px;
}

.theme-bundle-widget__volume-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-bundle-widget__volume-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 3px 8px;
  background: var(--bundle-accent, #2e2e2e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.theme-bundle-widget__volume-badge--secondary {
  background: var(--bundle-secondary-badge-bg, #e9efe9);
  color: var(--bundle-secondary-badge-text, #235c4a);
}

.theme-bundle-widget__volume-price {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.theme-bundle-widget__volume-price small {
  color: var(--bundle-muted, #52606d);
  text-decoration: line-through;
}

.theme-bundle-widget__gift-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--bundle-card-bg, #ffffff);
  box-shadow: none;
}

.theme-bundle-widget__gift-link {
  display: block;
  text-decoration: none;
}

.theme-bundle-widget__gift-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.theme-bundle-widget__gift-copy {
  min-width: 0;
}

.theme-bundle-widget__gift-name {
  display: grid;
  gap: 4px;
  color: var(--bundle-text, #0f1720);
  text-decoration: none;
}

.theme-bundle-widget__gift-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.theme-bundle-widget__gift-variant {
  color: var(--bundle-muted, #52606d);
  font-size: 11px;
}

.theme-bundle-widget__gift-pricing {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.theme-bundle-widget__gift-free {
  color: var(--bundle-gift-free-color, #ff6863);
  font-size: 13px;
  font-weight: 700;
}

.theme-bundle-widget__gift-compare-at {
  color: var(--bundle-muted, #8b9198);
  font-size: 11px;
}

.theme-bundle-widget__gift-quantity {
  justify-self: start;
  margin-top: 3px;
  padding: 0;
  background: transparent;
  color: #5f646b;
  font-size: 10px;
  line-height: 1.2;
}

.theme-bundle-widget__offer--gift .theme-bundle-widget__thumb {
  width: 82px;
  height: 82px;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 0;
}

.theme-bundle-widget__gift-link:hover .theme-bundle-widget__thumb,
.theme-bundle-widget__gift-link:focus-visible .theme-bundle-widget__thumb {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 32, 0.12);
  border-color: color-mix(in srgb, var(--bundle-accent, #0f766e) 40%, #dfe6ee);
}

.theme-bundle-widget__table-head,
.theme-bundle-widget__product,
.theme-bundle-widget__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 82px 54px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.theme-bundle-widget__table-head {
  color: var(--bundle-muted, #52606d);
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e9eef2;
}

.theme-bundle-widget__products {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-bundle-widget__product {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f6;
  background: var(--bundle-card-bg, #ffffff);
  border-radius: 7px;
}

.theme-bundle-widget__product + .theme-bundle-widget__product {
  margin-top: 8px;
}

.theme-bundle-widget__product:last-child {
  border-bottom: 0;
}

.theme-bundle-widget__product-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theme-bundle-widget__thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf2f6;
  color: #516171;
  font-weight: 700;
  object-fit: cover;
}

.theme-bundle-widget__product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.theme-bundle-widget__product-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-bundle-widget__product-copy small {
  color: var(--bundle-muted, #52606d);
}

.theme-bundle-widget__variant-select {
  margin-top: 4px;
  width: 100%;
  max-width: 164px;
  display: grid;
  gap: 6px;
}

.theme-bundle-widget__variant-select-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.theme-bundle-widget__variant-select-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.theme-bundle-widget__variant-select-row--multiple {
  grid-template-columns: 18px minmax(0, 1fr);
}

.theme-bundle-widget__variant-select-index {
  color: var(--bundle-muted, #52606d);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.theme-bundle-widget__variant-trigger {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  padding: 6px 30px 6px 10px;
  background: #fff;
  color: var(--bundle-text, #0f1720);
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-bundle-widget__variant-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #7a8897;
  border-bottom: 2px solid #7a8897;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.theme-bundle-widget__price-copy {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.theme-bundle-widget__price-copy small {
  color: var(--bundle-muted, #52606d);
  text-decoration: line-through;
}

.theme-bundle-widget__qty-copy {
  justify-self: start;
  color: var(--bundle-text, #0f1720);
}

.theme-bundle-widget__footer {
  margin-top: 14px;
  color: var(--bundle-text, #0f1720);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-left: 10px;
  padding-right: 10px;
  border-top: 0;
}

.theme-bundle-widget__totals {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.theme-bundle-widget__totals small {
  color: var(--bundle-muted, #52606d);
  text-decoration: line-through;
}

.theme-bundle-widget__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--bundle-button-bg, #222222);
  border-radius: 7px;
  padding: 11px 14px;
  background: var(--bundle-button-bg, #222222);
  color: var(--bundle-button-text, #ffffff);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

.theme-bundle-widget__button[aria-busy=true] {
  opacity: 1;
  cursor: wait;
}

.theme-bundle-widget__spinner {
  display: inline-block;
  flex: 0 0 auto;
  box-sizing: border-box;
  inline-size: 16px;
  block-size: 16px;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: bundle-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .theme-bundle-widget__spinner { animation: none; }
}

@keyframes bundle-spin {
  to {
    transform: rotate(360deg);
  }
}

.theme-bundle-widget__button:hover:not(:disabled):not([aria-busy=true]),
.theme-bundle-widget__button:focus-visible:not(:disabled):not([aria-busy=true]) {
  border-color: var(--bundle-button-hover-bg, color-mix(in srgb, var(--bundle-button-bg, #222222) 88%, black));
  background: var(--bundle-button-hover-bg, color-mix(in srgb, var(--bundle-button-bg, #222222) 88%, black));
  color: var(--bundle-button-hover-text, var(--bundle-button-text, #ffffff));
}


.theme-bundle-widget__error-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 20px;
}

.theme-bundle-widget__error-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(47 38 30 / 34%);
}

.theme-bundle-widget__error-card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--bundle-border-color, #d9cdbd);
  border-radius: 14px;
  padding: 22px 48px 20px 22px;
  background: var(--bundle-card-bg, #fffdf9);
  color: var(--bundle-text, #2f261e);
  box-shadow: 0 16px 38px rgb(54 39 28 / 16%);
}

.theme-bundle-widget__error-header h3 {
  margin: 0;
  color: #b84b44;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.theme-bundle-widget__error-message {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.theme-bundle-widget__error-description {
  display: block;
  margin-top: 7px;
  color: var(--bundle-muted, #84766a);
  font-size: 12px;
  line-height: 1.5;
}

.theme-bundle-widget__error-auto-close {
  display: block;
  margin-top: 16px;
  color: var(--bundle-muted, #84766a);
  font-size: 12px;
  line-height: 1.4;
}

.theme-bundle-widget__error-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bundle-muted, #84766a);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.theme-bundle-widget__error-close:hover,
.theme-bundle-widget__error-close:focus-visible {
  background: var(--bundle-panel-bg, #f4f0e8);
  color: var(--bundle-text, #2f261e);
  outline: 0;
}

@media (max-width: 640px) {
  .theme-bundle-widget__error-modal {
    padding: 16px;
  }

  .theme-bundle-widget__error-card {
    width: min(360px, calc(100vw - 32px));
    padding: 20px 46px 18px 20px;
  }
}

.theme-bundle-widget__modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.theme-bundle-widget__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.48);
}

.theme-bundle-widget__modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 32, 0.24);
}

body.theme-bundle-widget__modal-open {
  overflow: hidden;
}

.theme-bundle-widget__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.theme-bundle-widget__modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--bundle-text, #0f1720);
}

.theme-bundle-widget__modal-close {
  border: 0;
  background: transparent;
  color: var(--bundle-muted, #52606d);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.theme-bundle-widget__modal-grid {
  display: grid;
  gap: 10px;
}

.theme-bundle-widget__modal-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e8ef;
  border-radius: 16px;
  background: #fff;
  color: var(--bundle-text, #0f1720);
  text-align: left;
  cursor: pointer;
}

.theme-bundle-widget__modal-option:hover,
.theme-bundle-widget__modal-option:focus-visible {
  border-color: color-mix(in srgb, var(--bundle-accent, #0f766e) 36%, #d2d9e0);
  background: color-mix(in srgb, var(--bundle-accent, #0f766e) 5%, white);
}

.theme-bundle-widget__modal-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #edf2f6;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #516171;
}

.theme-bundle-widget__modal-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.theme-bundle-widget__modal-copy strong,
.theme-bundle-widget__modal-copy small {
  display: block;
}

.theme-bundle-widget__modal-copy small {
  color: var(--bundle-muted, #52606d);
}

@media (max-width: 640px) {
  .theme-bundle-widget {
    padding: 0 12px 12px;
  }

  .theme-bundle-widget__header {
    grid-template-columns: minmax(0, 1fr);
    min-height: 56px;
    padding-top: 18px;
  }

  .theme-bundle-widget__badge {
    top: 0;
    left: -31px;
    width: 122px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .theme-bundle-widget__header h2 {
    padding: 0 42px;
    font-size: 18px;
  }

  .theme-bundle-widget__header p {
    padding: 0 32px;
    font-size: 12px;
  }

  .theme-bundle-widget__content {
    padding: 0 8px;
  }

  .theme-bundle-widget__table-head,
  .theme-bundle-widget__product {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
  }

  .theme-bundle-widget__table-head,
  .theme-bundle-widget__footer {
    padding-left: 8px;
    padding-right: 8px;
  }

  .theme-bundle-widget__product {
    padding-left: 8px;
    padding-right: 8px;
  }

  .theme-bundle-widget__product-main {
    gap: 8px;
  }

  .theme-bundle-widget__thumb {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .theme-bundle-widget__gift-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .theme-bundle-widget__offer--gift .theme-bundle-widget__thumb {
    width: 82px;
    height: 82px;
    border-radius: 4px;
  }

  .theme-bundle-widget__gift-title,
  .theme-bundle-widget__gift-free {
    font-size: 13px;
  }

  .theme-bundle-widget__gift-quantity {
    font-size: 10px;
  }

  .theme-bundle-widget__gift-variant {
    font-size: 11px;
  }

  .theme-bundle-widget__variant-select {
    max-width: 100%;
    gap: 8px;
  }

  .theme-bundle-widget__variant-select-row {
    gap: 8px;
    align-items: start;
  }

  .theme-bundle-widget__variant-select-row--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-bundle-widget__variant-select-row--multiple {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .theme-bundle-widget__variant-select-index {
    padding-top: 10px;
    font-size: 10px;
  }

  .theme-bundle-widget__variant-trigger {
    min-height: 30px;
    border-radius: 9px;
    padding: 5px 28px 5px 8px;
    font-size: 12px;
    line-height: 1.2;
  }

  .theme-bundle-widget__variant-trigger::after {
    right: 11px;
    width: 6px;
    height: 6px;
  }

  .theme-bundle-widget__table-head span:last-child,
  .theme-bundle-widget__qty-copy {
    display: none;
  }

  .theme-bundle-widget__button {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .theme-bundle-widget__modal-card {
    margin: 8px auto;
    padding: 14px;
    border-radius: 18px;
  }
}

/* Unified widget contract shared with the admin previews. */
.theme-bundle-widget {
  box-sizing: border-box;
  border-color: var(--bundle-border-color, #d9e2e8);
  border-radius: var(--bundle-corner-radius, 16px);
  padding: 14px;
  background: var(--bundle-panel-bg, #f7f8f8);
}

.theme-bundle-widget__header {
  min-height: 50px;
  padding: 10px 0 6px;
}

.theme-bundle-widget__header h2,
.theme-bundle-widget__header p {
  padding-left: 24px;
  padding-right: 24px;
}

.theme-bundle-widget__content {
  width: 100%;
  margin-top: 8px;
  padding: 0;
}

.theme-bundle-widget__badge {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  width: auto;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--bundle-banner-radius, 4px);
  background: var(--bundle-accent, #222222);
  color: var(--bundle-card-bg, #ffffff);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  transform: none;
  white-space: nowrap;
}

.theme-bundle-widget__badge[hidden] {
  display: none;
}

.theme-bundle-widget__badge--pill {
  border-radius: var(--bundle-banner-radius, 4px);
  padding: 6px 12px;
  background: var(--bundle-accent, #222222);
  color: var(--bundle-card-bg, #ffffff);
}

.theme-bundle-widget__badge--announcement {
  margin: -14px -14px 10px;
  border-radius: 0;
  padding: 8px 14px;
}

.theme-bundle-widget__badge--reward {
  width: max-content;
  height: 27.1875px;
  min-height: 0;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--bundle-border-color, #d9e2e8);
  border-radius: var(--bundle-banner-radius, 4px);
  padding: 0 12px;
  background: var(--bundle-card-bg, #ffffff);
  color: var(--bundle-accent, #222222);
}

.theme-bundle-widget__badge--reward::before {
  content: "＋";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--bundle-banner-bg, #e8b94f);
  color: var(--bundle-banner-text, #2d241d);
}

.theme-bundle-widget__badge--highlight {
  min-height: 0;
  border: 1px solid var(--bundle-banner-border-color, #e8b94f);
  border-radius: var(--bundle-banner-radius, 4px);
  padding: 7px 10px;
  background: color-mix(in srgb, var(--bundle-banner-bg, #e8b94f) 18%, var(--bundle-card-bg, #ffffff));
  color: var(--bundle-accent, #222222);
}

.theme-bundle-widget__badge--social_proof {
  min-height: 24px;
  padding: 0 10px;
  background: transparent;
  color: var(--bundle-accent, #222222);
}

.theme-bundle-widget__badge--social_proof::before {
  content: "★";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--bundle-banner-bg, #e8b94f);
  color: var(--bundle-banner-text, #2d241d);
  font-size: 11px;
  font-weight: 800;
}

.theme-bundle-widget__badge--icon_sparkles,
.theme-bundle-widget__badge--icon_gift,
.theme-bundle-widget__badge--icon_tag {
  justify-content: center;
  min-height: 0;
  border: 1px solid var(--bundle-banner-border-color, #d9e2e8);
  border-radius: var(--bundle-banner-radius, 4px);
  padding: 7px 10px;
  background: var(--bundle-banner-bg, #eef2f4);
  color: var(--bundle-banner-text, #222222);
}

.theme-bundle-widget__badge--icon_gift {
  min-height: 44px;
  border-color: transparent;
  border-radius: var(--bundle-banner-radius, 4px);
  background: var(--bundle-banner-bg, #ff6863);
}

.theme-bundle-widget__badge--icon_tag {
  min-height: 44px;
  border-color: transparent;
  border-radius: var(--bundle-banner-radius, 4px);
  padding: 9px 16px;
}

.theme-bundle-widget__badge--icon_gift,
.theme-bundle-widget__badge--icon_tag {
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1;
}

.theme-bundle-widget__badge-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: center;
  font-size: var(--bundle-banner-font-size, 14px);
}

.theme-bundle-widget__badge-copy strong,
.theme-bundle-widget__badge-copy small {
  white-space: normal;
}

.theme-bundle-widget__badge-copy strong {
  font-size: 15px;
}

.theme-bundle-widget__badge-copy small {
  color: inherit;
  font-size: 10px;
  opacity: .72;
}

.theme-bundle-widget__badge-decoration {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
}

.theme-bundle-widget__badge-decoration svg {
  width: 18px;
  height: 18px;
}

.theme-bundle-widget__badge--icon_gift .theme-bundle-widget__badge-decoration,
.theme-bundle-widget__badge--icon_tag .theme-bundle-widget__badge-decoration {
  display: block;
  width: 32px;
  height: 26px;
  flex: 0 0 32px;
}

.theme-bundle-widget__badge--icon_gift .theme-bundle-widget__badge-decoration svg,
.theme-bundle-widget__badge--icon_tag .theme-bundle-widget__badge-decoration svg {
  display: block;
  width: 32px;
  height: 26px;
}

.theme-bundle-widget__badge-decoration--end {
  transform: scaleX(-1);
}

.theme-bundle-widget__badge--corner_ribbon {
  position: absolute;
  top: 21px;
  left: -34px;
  width: 142px;
  min-height: 0;
  margin: 0;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--bundle-banner-bg, #e8b94f);
  color: var(--bundle-banner-text, #2d241d);
  font-size: 10px;
  transform: rotate(-42deg);
}

.theme-bundle-widget__badge--corner_ribbon {
  overflow: hidden;
}

.theme-bundle-widget__badge--corner_ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.theme-bundle-widget__badge--corner_ribbon {
  text-indent: 0;
}

.theme-bundle-widget__product,
.theme-bundle-widget__volume-option {
  border-color: color-mix(in srgb, var(--bundle-accent, #222222) 16%, var(--bundle-card-bg, #ffffff));
  border-radius: max(0px, calc(var(--bundle-corner-radius, 16px) * .65));
  background: var(--bundle-card-bg, #ffffff);
}

.theme-bundle-widget__button {
  border-radius: max(0px, calc(var(--bundle-corner-radius, 16px) * .65));
}

.theme-bundle-widget__variant-picker {
  position: relative;
  width: min(180px, 100%);
  margin-top: 6px;
}

.theme-bundle-widget__variant-select .theme-bundle-widget__variant-picker {
  width: 100%;
  margin-top: 0;
}

.theme-bundle-widget__variant-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--bundle-accent, #1769e0) 28%, var(--bundle-border-color, #d9e2e8));
  border-radius: 10px;
  padding: 7px 34px 7px 10px;
  background: var(--bundle-card-bg, #ffffff);
  color: var(--bundle-text, #172033);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.theme-bundle-widget__variant-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--bundle-muted, #7a8897);
  border-bottom: 1.5px solid var(--bundle-muted, #7a8897);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.theme-bundle-widget__variant-trigger[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.theme-bundle-widget__variant-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-bundle-widget__variant-trigger:hover,
.theme-bundle-widget__variant-trigger:focus-visible {
  border-color: var(--bundle-accent, #1769e0);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bundle-accent, #1769e0) 18%, transparent);
}

.theme-bundle-widget__variant-listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2;
  width: max-content;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--bundle-border-color, #d9e2e8);
  border-radius: 10px;
  background: var(--bundle-card-bg, #ffffff);
  box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.theme-bundle-widget__variant-listbox[hidden] {
  display: none;
}

.theme-bundle-widget__variant-option {
  display: block;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--bundle-text, #172033);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.theme-bundle-widget__variant-option:hover,
.theme-bundle-widget__variant-option:focus-visible,
.theme-bundle-widget__variant-option[aria-selected="true"] {
  background: var(--bundle-panel-bg, #f5f7fa);
  outline: 0;
}
.theme-add-ons-widget { padding: 24px; border-radius: 10px; margin: 16px 0; }
.theme-add-ons-widget[hidden] { display: none !important; }
.theme-add-ons-widget__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.theme-add-ons-widget__heading h2 { font-size: 20px; margin: 0; }
.theme-add-ons-widget__badge { background: #e00000; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.theme-add-ons-widget > p { font-size: 14px; margin: 10px 0 20px; }
.theme-add-ons-widget__product { background: #fff; border-radius: 8px; border: 1px solid #e7e9eb; padding: 14px; margin-top: 12px; display: flex; gap: 12px; align-items: center; color: #202223; }
.theme-add-ons-widget__product img { width: 54px; height: 64px; object-fit: contain; }
.theme-add-ons-widget__product h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.theme-add-ons-widget__price { font-size: 14px; color: #4f46e5; }
.theme-add-ons-widget__price del { color: #6d7175; margin-left: 8px; }
.theme-add-ons-widget__product select, .theme-add-ons-widget__product input[type=number] { display: block; margin-top: 8px; max-width: 100%; }
/* Global Add-ons display contract; same variables in Admin and storefront. */
.add-ons-preview, .theme-add-ons-widget { background: var(--addon-backgroundColor, #f0f0f0); color: var(--addon-textColor, #202223); font-family: var(--addon-fontFamily, inherit); border-radius: var(--addon-containerRadius, 9px); padding: var(--addon-padding, 24px); }
.add-ons-preview__heading h2, .theme-add-ons-widget__heading h2 { font-size: var(--addon-titleSize, 19px); color: var(--addon-textColor, #202223); }
.add-ons-preview > p, .theme-add-ons-widget > p { font-size: var(--addon-subtitleSize, 14px); color: var(--addon-subtitleColor, #737983); }
.add-ons-preview__badge, .theme-add-ons-widget__badge { background: var(--addon-badgeColor, #e62209); color: var(--addon-badgeTextColor, #fff); font-size: var(--addon-badgeSize, 11px); }
.add-ons-preview__product, .theme-add-ons-widget__product { background: var(--addon-cardColor, #fff); border-radius: var(--addon-cardRadius, 7px); margin-top: var(--addon-cardGap, 14px); color: var(--addon-textColor, #202223); }
.add-ons-preview__product h3, .theme-add-ons-widget__product h3 { font-size: var(--addon-productSize, 12px); color: var(--addon-textColor, #202223); }
.add-ons-preview__product img, .theme-add-ons-widget__product img { border-radius: var(--addon-imageRadius, 6px); }
.add-ons-preview__price, .theme-add-ons-widget__price { font-size: var(--addon-priceSize, 13px); color: var(--addon-priceColor, #1769e0); }
.add-ons-preview__price del, .theme-add-ons-widget__price del { color: var(--addon-originalPriceColor, #858a91); }
.theme-add-ons-widget__controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.theme-add-ons-widget__controls > select { width: 120px; flex: 0 1 120px; min-width: 0; margin: 0; }
.theme-add-ons-widget__controls input.theme-add-ons-widget__quantity { width: 64px; flex: 0 0 64px; height: 30px; min-height: 30px; padding: 4px 6px; border: 1px solid #dce0e5; border-radius: 6px; font: inherit; font-size: 12px; box-sizing: border-box; }
.theme-add-ons-widget__quantity-label { font-size: 12px; white-space: nowrap; }
.theme-add-ons-widget__select { position: relative; width: 120px; min-width: 0; flex: 0 1 120px; }
.theme-add-ons-widget .theme-add-ons-widget__select-trigger { appearance: none; display: block; width: 100%; height: 30px; min-height: 30px; padding: 4px 22px 4px 8px; margin: 0; background: white; color: #202223; border: 1px solid #dce0e5; border-radius: 6px; font: inherit; font-size: 12px; line-height: 20px; text-align: left; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; cursor: pointer; }
.theme-add-ons-widget__select-trigger::after { content: ''; position: absolute; right: 10px; top: 11px; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.theme-add-ons-widget__select-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 220px; max-height: 180px; overflow: auto; z-index: 20; padding: 4px; background: white; border: 1px solid #dce0e5; border-radius: 6px; box-shadow: 0 4px 14px #172b4d20; }
.theme-add-ons-widget__select-menu[hidden] { display: none; }
.theme-add-ons-widget .theme-add-ons-widget__select-option { display: block; width: 100%; min-height: 30px; margin: 0; padding: 6px 8px; border: 0; border-radius: 4px; background: white; color: #202223; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.theme-add-ons-widget .theme-add-ons-widget__select-option:hover, .theme-add-ons-widget .theme-add-ons-widget__select-option[aria-selected=true] { background: #e8f0fe; color: #1769e0; }
.theme-add-ons-widget .theme-add-ons-widget__select-option:disabled { opacity: .4; cursor: not-allowed; }
.theme-add-ons-widget__product { align-items: stretch; }
.theme-add-ons-widget__product > input { align-self: center; }
.theme-add-ons-widget__product > .theme-add-ons-widget__media { position: relative; flex: 0 0 88px; width: 88px; min-height: 96px; overflow: hidden; }
.theme-add-ons-widget__product > .theme-add-ons-widget__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.theme-add-ons-widget__content { flex: 1; min-width: 0; align-self: center; }
.theme-add-ons-widget__stepper { display: inline-flex; flex: 0 0 auto; height: 30px; border: 1px solid #dce0e5; border-radius: 6px; overflow: hidden; background: white; }
.theme-add-ons-widget__stepper button { width: 26px; border: 0; background: transparent; color: #202223; padding: 0; font-size: 15px; cursor: pointer; }
.theme-add-ons-widget__stepper button:disabled { opacity: .35; cursor: not-allowed; }
.theme-add-ons-widget__controls .theme-add-ons-widget__stepper input { appearance: textfield; -moz-appearance: textfield; width: 30px; flex: 0 0 30px; height: 28px; min-height: 0; border: 0; border-radius: 0; text-align: center; padding: 0; }
.theme-add-ons-widget__stepper input::-webkit-inner-spin-button, .theme-add-ons-widget__stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.theme-add-ons-widget .theme-add-ons-widget__product { padding: 14px; cursor: pointer; }
.theme-add-ons-widget .theme-add-ons-widget__controls .theme-add-ons-widget__stepper { display: inline-flex; align-items: stretch; box-sizing: border-box; width: 84px; flex: 0 0 84px; height: 30px; padding: 0; margin: 0; gap: 0; }
.theme-add-ons-widget .theme-add-ons-widget__controls .theme-add-ons-widget__stepper button { appearance: none; display: grid; place-items: center; box-sizing: border-box; min-width: 0; width: 26px; height: 28px; min-height: 0; flex: 0 0 26px; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none; line-height: 1; }
.theme-add-ons-widget .theme-add-ons-widget__controls .theme-add-ons-widget__stepper input.theme-add-ons-widget__quantity { appearance: textfield; -moz-appearance: textfield; box-sizing: border-box; width: 30px; min-width: 0; max-width: 30px; height: 28px; min-height: 0; flex: 0 0 30px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #202223; font-size: 12px; line-height: 28px; text-align: center; box-shadow: none; }
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__heading,
.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__heading{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;text-align:center}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__badge,
.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__badge{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;margin:0;padding:10px 14px;line-height:1.4}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__heading h2,
.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__heading h2{width:100%;margin:0;text-align:center}
.theme-add-ons-widget[data-header-layout="banner"]>p.theme-add-ons-widget__subtitle,
.theme-fbt-widget[data-header-layout="banner"]>p.theme-fbt-widget__subtitle{text-align:center;margin:10px 0 20px}
.theme-fbt-widget .theme-fbt-widget__badge .campaign-heading__badge-label{font:inherit;color:inherit}

.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__heading,.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__heading{gap:10px;margin-bottom:16px}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__badge,.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__badge{padding:10px 12px;border-radius:4px}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__badge svg,.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__badge svg{display:block;flex:0 0 16px;width:16px;height:16px}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__heading p,.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__heading p{margin:0;text-align:center;line-height:1.5}
.theme-add-ons-widget[data-header-layout="banner"] .theme-add-ons-widget__heading p{font-size:var(--addon-subtitleSize,14px);color:var(--addon-subtitleColor,#737983)}
.theme-fbt-widget[data-header-layout="banner"] .theme-fbt-widget__heading p{font-size:var(--fbt-subtitleSize,14px);color:var(--fbt-subtitleColor,#737983)}

/* Shared FBT / Add-ons badge effects; pulse transforms only the background. */
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect] { position:relative; display:inline-flex; align-items:center; isolation:isolate; --campaign-badge-color:var(--fbt-badgeColor,var(--addon-badgeColor,#e62209)); }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="breathe"] { animation:campaign-badge-breathe 2.4s ease-in-out infinite; }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="scale"] { background:transparent; overflow:visible; }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="scale"]::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--campaign-badge-color); pointer-events:none; animation:campaign-badge-scale 2.4s ease-in-out infinite; }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="glow"] { animation:campaign-badge-glow 2.4s ease-in-out infinite; }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="shine"] { overflow:hidden; }
:is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="shine"]::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 25%,#ffffff55 50%,transparent 75%); animation:campaign-badge-shine 2.4s ease-in-out infinite; }
@keyframes campaign-badge-breathe { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.22); } }
@keyframes campaign-badge-scale { 0%,100% { transform:scale(1); } 50% { transform:scale(1.12); } }
@keyframes campaign-badge-glow { 0%,100% { box-shadow:0 0 0 0 transparent; } 50% { box-shadow:0 0 0 5px color-mix(in srgb,var(--campaign-badge-color) 25%,transparent),0 0 15px color-mix(in srgb,var(--campaign-badge-color) 25%,transparent); } }
@keyframes campaign-badge-shine { 0%,25% { transform:translateX(-120%); } 75%,100% { transform:translateX(120%); } }
@media(prefers-reduced-motion:reduce) { :is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect], :is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect]::before, :is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect]::after { animation:none!important; } :is(.add-ons-preview,.theme-add-ons-widget,.theme-fbt-widget) [data-badge-effect="shine"]::after { display:none; } }

/* Gift variant choices use the same compact dimensions as the Admin preview. */
.theme-bundle-widget__gift-item .theme-bundle-widget__variant-picker {
  width: min(140px, 100%);
  margin-top: 4px;
}
.theme-bundle-widget__gift-item .theme-bundle-widget__variant-trigger {
  box-sizing: border-box;
  min-height: 28px;
  height: 28px;
  padding: 4px 26px 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.theme-bundle-widget__gift-item .theme-bundle-widget__variant-trigger::after {
  right: 10px;
  width: 6px;
  height: 6px;
}
.theme-bundle-widget__gift-item .theme-bundle-widget__variant-listbox {
  border-radius: 4px;
}
.theme-bundle-widget__gift-item .theme-bundle-widget__variant-option {
  padding: 6px 8px;
  font-size: 12px;
}
