/* Featured bundle-type demos (shared hub, in-page switch) */
.bxt-page,
.bxt-shell,
.bxt-hub {
  --bxt-accent: #fd4154;
}

.bxt-hub {
  padding: 0;
  background: #fafaf8; /* match homepage surface */
  min-height: calc(100vh - var(--pt-header-h));
}
body:has(.bxt-hub),
body:has(.bxt-hub) .site-main,
body.page-template-demo,
body.page-template-demo-fixed,
body.page-template-demo-fbt,
body.page-template-demo-mix-match,
body.page-template-demo-addons,
body.page-template-demo-builder {
  background: #fafaf8;
}
.bxt-panel[hidden] {
  display: none !important;
}

/* Quick preview: original stage size; section bg full-bleed (no white side gutters) */
.bxt-hub__quick.bxq {
  padding: var(--pt-header-h) 0 28px;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  /* Match homepage / boards mint surface */
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(45, 255, 140, 0.18), transparent 58%),
    radial-gradient(780px 480px at 92% 8%, rgba(23, 106, 218, 0.08), transparent 55%),
    linear-gradient(180deg, #f4fbf7 0%, #fafaf8 100%);
}
.bxt-hub__quick.bxq[data-theme="warm"],
.bxt-hub__quick.bxq[data-theme="dark"] {
  background: var(--bxq-bg);
}
.bxt-hub__quick .bxq-hero {
  padding: 16px 20px 0;
  margin-bottom: 14px;
}
.bxt-hub__quick .bxq-quick {
  padding: 0 20px 20px;
  margin-bottom: 0;
}
.bxt-hub__quick .bxq-stage {
  /* restore prior card size */
  max-width: 980px;
  width: calc(100% - 40px);
  margin: 0 auto;
  border: 1px solid var(--bxq-line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
}

/* Type switch between quick preview and dynamic boards */
.bxt-hub__nav {
  padding: 20px 0 14px;
  border: 0;
  background: #fafaf8; /* homepage default */
  scroll-margin-top: calc(var(--pt-header-h) + 12px);
}
/* Use site .container width (same as header) */
.bxt-hub__nav > .container {
  margin-inline: auto;
  padding: 0;
}
.bxt-hub__boards {
  /* Homepage-aligned stage: soft mint + white on #fafaf8 */
  --bxt-stage:
    radial-gradient(900px 520px at 12% -10%, rgba(45, 255, 140, 0.18), transparent 58%),
    radial-gradient(780px 480px at 92% 8%, rgba(23, 106, 218, 0.08), transparent 55%),
    radial-gradient(640px 420px at 70% 100%, rgba(45, 255, 140, 0.08), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #ffffff 55%, #fafaf8 100%);
  /* Match site header / Featured type nav (.container) width */
  width: min(100% - 40px, var(--pt-max));
  margin-inline: auto;
  padding: 4px 0 40px;
  background: #fafaf8;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
}
@media (max-width: 980px) {
  .bxt-hub__boards { width: min(100% - 32px, var(--pt-max)); }
}
@media (max-width: 560px) {
  .bxt-hub__boards { width: min(100% - 24px, var(--pt-max)); }
}
.bxt-shell {
  padding: calc(var(--pt-header-h) + 28px) 0 8px;
  background: #fafaf8;
}
.bxt-shell + .bxq {
  padding-top: 20px;
}

.bxt-page {
  padding: calc(var(--pt-header-h) + 28px) 0 72px;
  background: #fafaf8;
}

/* Type panel: replace white .bxt-panel with Bundlex gradient (keep side spacing on boards) */
.bxt-hub__boards > .bxt-panel {
  position: relative;
  margin: 0 !important;
  padding: 24px 20px 32px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--bxt-stage) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  overflow: hidden;
}
.bxt-hub__boards > .bxt-panel > .bxd-main,
.bxt-hub__boards > .bxt-panel > .bxt-page--panel {
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.bxt-hub .bxd-main > .container,
.bxt-hub .bxt-page--panel > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.bxt-hub .bxd-board,
.bxt-hub .bxt-page--panel .bxt-grid {
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.bxt-hub .bxd-side {
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(8, 40, 24, 0.07);
}
.bxt-hub .bxd-widget {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(8, 40, 24, 0.08);
}
/* Quantity / Together / Add-ons: preview module tint (rows/cards stay white on top) */
#demo .bxd-widget,
.bx-hero-widget .bxd-widget {
  background: var(--bxt-bg, color-mix(in srgb, var(--fill, #93e380) 12%, #fff)) !important;
  border: 1px solid color-mix(in srgb, var(--fill, #93e380) 16%, #e5e7eb);
  transition: background-color .2s ease, border-color .2s ease;
}
#demo .qv-row:not(.is-on),
.bx-hero-widget .qv-row:not(.is-on) {
  background: #fff;
}
.bxt-hub .bxd-reset {
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(8, 40, 24, 0.07);
}
.bxt-hub .bxt-card {
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 40, 24, 0.07);
}

/* —— Mix & match interactive board (same LCR shell as Fixed / Together) —— */
.bxmm .bxt-nav { margin-bottom: 20px; }
/* White outer shell; products live in tinted .bxmm-panel (title stays outside) */
#demo .bxmm-preview.bxd-widget,
.bxmm-preview {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #111;
  width: 100%;
}
.bxmm-preview.bxd-widget {
  box-shadow: 0 12px 32px rgba(8, 40, 24, 0.08);
}
.bxmm-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease;
}
.bxmm-panel {
  margin: 0 0 14px;
  padding: 12px 12px 12px;
  background: var(--bxt-bg, #f3f3f3);
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #1a1a1a) 18%, #e5e7eb);
  border-radius: 12px;
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease;
}
.bxmm-panel .bxmm-progress {
  margin: 0 0 8px;
}
.bxmm-progress {
  margin: 0 0 14px;
}
.bxmm-progress p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 55%, #374151);
  transition: color .2s ease;
}
.bxmm-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 14%, #e5e7eb);
  overflow: hidden;
  transition: background-color .2s ease;
}
.bxmm-progress__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bxt-accent, #4b5563);
  transition: background-color .2s ease, width .2s ease;
}
.bxmm-list { display: grid; gap: 0; }
.bxmm-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
}
.bxmm-item--empty {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}
.bxmm-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}
.bxmm-item__thumb--empty {
  display: block;
  background: #f3f4f6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 8c0-1.5 1.5-3 4-3h8c2.5 0 4 1.5 4 3v2c0 1-.5 2-1.5 2.5L17 18H7l-1.5-5.5C4.5 12 4 11 4 10V8z' stroke='%23c4c9d1' stroke-width='1.4'/%3E%3C/svg%3E")
    center / 28px 28px no-repeat;
}
.bxmm-item__body { min-width: 0; display: grid; gap: 6px; }
.bxmm-item__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bxt-accent, #1a1a1a);
  line-height: 1.35;
  transition: color .2s ease;
}
.bxmm-item__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bxmm-item__price b {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease;
}
.bxmm-item__price s {
  font-size: 0.78rem;
  color: #9ca3af;
}
.bxmm-save {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f39800;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}
.bxmm-variant .bxt-variant {
  width: 100%;
  max-width: none;
  min-height: 34px;
  border-radius: 8px;
}
.bxmm-item__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bxmm-step {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 96px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.bxmm-step button {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.bxmm-step b {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
}
.bxmm-trash {
  border: 0;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
}
.bxmm-pick {
  border: 0;
  border-radius: 8px;
  background: var(--bxt-accent, #111);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.bxmm .bxt-plus { margin: 2px 0; }
.bxmm .bxt-plus__line {
  border-top-color: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 35%, #9ca3af);
}
.bxmm .bxt-plus__icon {
  border-color: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 45%, #616161);
  color: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 55%, #616161);
}
.bxmm-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  /* Same inset/width as .bxt-plus divider above — no full-bleed negative margin */
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed color-mix(in srgb, var(--bxt-accent, #1a1a1a) 35%, #9ca3af);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease, border-color .2s ease;
}
.bxmm-atc {
  display: flex;
  width: 100%;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bxt-accent, #111) !important;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease;
}
.bxmm-theme-btn-note {
  margin: 12px 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Pick modal */
.bxmm-pick-modal[hidden] { display: none !important; }
.bxmm-pick-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.bxmm-pick-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}
.bxmm-pick-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.bxmm-pick-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bxmm-pick-modal__head strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.bxmm-pick-modal__x {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.bxmm-pick-modal__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.bxmm-pick-card {
  display: grid;
  gap: 8px;
  align-content: start;
}
.bxmm-pick-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.bxmm-pick-card strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.bxmm-pick-card__price {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.bxmm-pick-card__price b { font-weight: 800; }
.bxmm-pick-card__price s { color: #9ca3af; font-size: 0.78rem; }
.bxmm-pick-qty,
.bxmm-pick-card select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}
.bxmm-pick-add {
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 900px) {
  .bxmm-pick-modal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bxt-nav__label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}
.bxt-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bxt-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #d7dbe0;
  background: #fff;
  color: #111;
  text-decoration: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.bxt-tab:hover {
  border-color: #b8bec6;
  color: #111;
}
.bxt-tab.is-on {
  background: #d5d8dd;
  border-color: #c3c7ce;
}
.bxt-tab__ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111 28%, transparent 30%),
    conic-gradient(from 0deg, #666, #bbb, #666);
  flex-shrink: 0;
}

.bxt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.bxt-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.bxt-grid--single {
  grid-template-columns: minmax(280px, 420px);
}

.bxt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bxt-card__body {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.bxt-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.bxt-card__sub {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 0.88rem;
}
.bxt-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
  font-weight: 650;
  color: #111;
}
.bxt-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 16px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.bxt-select:hover {
  background: #111;
  color: #fff;
}

.bxt-line {
  position: relative;
  display: grid;
  grid-template-columns: auto 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.bxt-line:has(.bxt-check) {
  grid-template-columns: 18px 56px 1fr auto;
}
.bxt-line:has(.bxt-add) {
  grid-template-columns: 48px 1fr auto;
}
.bxt-line--stack {
  grid-template-columns: 64px 1fr;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.bxt-line + .bxt-line {
  border-top: 1px dashed #e5e7eb;
}
.bxt-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}
.bxt-line--stack .bxt-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}
.bxt-thumb--empty {
  display: block;
  background:
    linear-gradient(135deg, #e5e7eb, #f9fafb);
  border: 1px dashed #d1d5db;
}
.bxt-line__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bxt-line__copy strong {
  font-size: 0.92rem;
}
.bxt-line__body {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-right: 8px;
}
.bxt-line__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bxt-line__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  line-height: 1.3;
}
.bxt-line__price b {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}
.bxt-line__price s {
  font-size: 0.82rem;
  font-weight: 500;
  color: #9ca3af;
}
.bxt-line__tip,
.bxt-line__qty {
  display: flex;
  align-items: center;
}
.bxt-gift-tip {
  display: inline-flex;
  align-items: center;
  background: var(--bxt-accent, #fd4154);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.bxt-qty {
  display: inline-flex;
  align-items: center;
  min-width: 52px;
  min-height: 28px;
  padding: 0 24px 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  box-sizing: border-box;
}
.bxt-qty b { font-weight: 600; }
.bxt-variant {
  display: block;
  width: 100%;
  max-width: 180px;
  min-height: 32px;
  padding: 6px 28px 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}
.bxt-line em {
  font-style: normal;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.bxt-line em s,
.bxt-line em strong + s {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
}
.bxt-badge {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 1;
  background: var(--bxt-accent, #fd4154);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
}
.bxt-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #4b5563;
  box-shadow: inset 0 0 0 2px #4b5563;
  position: relative;
}
.bxt-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bxt-plus {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: #616161;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}
.bxt-plus__line {
  display: block;
  flex: 1 1 auto;
  min-width: 16px;
  height: 0;
  border: 0;
  border-top: 1px dashed #9ca3af;
}
.bxt-plus__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0 4px;
  border-radius: 50%;
  border: 1px solid #616161;
  background: #fff;
  color: #616161;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  box-sizing: border-box;
}
.bxt-choose,
.bxt-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.bxt-add__ico {
  flex: 0 0 auto;
  display: block;
}
.bxt-skel {
  display: block;
  height: 10px;
  width: 70%;
  border-radius: 999px;
  background: #e5e7eb;
}
.bxt-skel--sm { width: 42%; margin-top: 6px; }
.bxt-mini-stars {
  color: #f5a524;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
/* Fixed/Together product panel (not hub type panels). */
.bxf-preview .bxt-panel,
.bxtg-preview .bxt-panel {
  position: relative;
  margin: 12px 0 14px;
  padding: 8px 12px 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: var(--bxt-bg, #f3f3f3);
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease;
}
/* Together: white outer shell + tinted product panel */
.bxtg-preview .bxt-panel.bxtg-panel {
  background: var(--bxt-bg, #f3f3f3) !important;
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #1a1a1a) 18%, #e5e7eb) !important;
  border-radius: 12px;
  margin: 12px 0 14px;
  padding: 8px 12px 0;
}
.bxf-preview .bxt-panel > .bxt-badge,
.bxtg-preview .bxt-panel > .bxt-badge {
  top: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--bxt-accent, #fd4154);
  border-radius: 0;
  border-top-right-radius: 11px;
  border-bottom-left-radius: 11px;
  line-height: 1.25;
  white-space: nowrap;
}
.bxf-preview .bxt-panel .bxt-line--stack:first-of-type .bxt-line__body,
.bxtg-preview .bxt-panel .bxt-line--stack:first-of-type .bxt-line__body {
  padding-right: 96px; /* room for corner save badge */
}
.bxf-preview .bxt-panel .bxt-plus,
.bxtg-preview .bxt-panel .bxt-plus {
  margin: -2px 0;
}
.bxt-sum {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}
.bxf-preview .bxt-panel .bxt-sum,
.bxtg-preview .bxt-panel .bxt-sum {
  margin: 4px -12px 0;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
  color: #111;
}
.bxt-sum span:first-child,
.bxt-sum span:last-child {
  color: #111;
}
.bxf-preview .bxt-panel + .bxt-atc,
.bxtg-preview .bxt-panel + .bxt-atc {
  margin-top: 0;
}
.bxt-atc {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 14px;
  cursor: default;
}
.bxt-atc--flush {
  margin: 12px -16px -16px;
  border-radius: 0 0 16px 16px;
}

/* —— Bundle builder (config left + preview right) —— */
/* Keep shared .bxd-board 3-col tracks so left switches match other types. */
.bxbb-board .bxd-center {
  grid-column: 2 / -1;
}
.bxbb-preview {
  background: var(--bxt-bg, #f3f7f7) !important;
  border-color: color-mix(in srgb, var(--bxt-accent, #048a89) 22%, #e5e7eb) !important;
  transition: background-color .2s ease, border-color .2s ease;
}
.bxbb-shell {
  background: transparent;
  border-radius: 14px;
  padding: 4px 2px;
  box-sizing: border-box;
}
.bxbb-hero {
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}
.bxbb-hero img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.bxbb-head { margin: 0 0 12px; }
.bxbb-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bxt-accent, #176ada);
  transition: color .2s ease;
}
.bxbb-sub {
  margin: 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--bxt-accent, #176ada) 70%, #6b7280);
}
.bxbb-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.bxbb-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: var(--bxt-accent, #176ada);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.bxbb-step__ico {
  flex: 0 0 auto;
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
}
.bxbb-step.is-on {
  background: var(--bxbb-soft, #e8f2ff);
  border-color: color-mix(in srgb, var(--bxt-accent, #176ada) 45%, #e5e7eb);
}
.bxbb-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.bxbb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bxbb-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}
.bxbb-card.is-added {
  opacity: 0.96;
}
.bxbb-card__media {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.bxbb-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.bxbb-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bxt-accent, #176ada);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.bxbb-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.bxbb-card__price b {
  color: var(--bxt-accent, #176ada);
  font-size: 0.95rem;
  font-weight: 800;
}
.bxbb-card__price s {
  color: #9ca3af;
  font-size: 0.8rem;
}
.bxbb-card__variant {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #176ada) 40%, #e5e7eb);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bxt-accent, #176ada);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}
.bxbb-card__variant:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.bxbb-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--bxt-accent, #176ada);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.bxbb-bag {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.bxbb-cart {
  position: sticky;
  top: 12px;
  border: 1.5px solid var(--bxt-accent, #176ada);
  border-radius: 12px;
  padding: 12px;
  background: var(--bxbb-soft, #eef8f8);
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease;
}
.bxbb-cart__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bxt-accent, #176ada);
}
.bxbb-cart__progress-text {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--bxt-accent, #176ada);
  line-height: 1.35;
  font-weight: 600;
}
.bxbb-cart__bar {
  height: 6px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.bxbb-cart__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bxt-accent, #176ada);
}
.bxbb-gift {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in srgb, var(--bxt-accent, #176ada) 28%, #e5e7eb);
}
.bxbb-gift-tag,
.bxbb-save-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bxt-accent, #176ada);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.bxbb-gift-tag {
  background: color-mix(in srgb, var(--bxt-accent, #176ada) 18%, #fff);
  color: var(--bxt-accent, #176ada);
}
.bxbb-gift__variant {
  display: block;
  width: 100%;
  max-width: 140px;
  min-height: 30px;
  margin: 2px 0;
  padding: 4px 26px 4px 8px;
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #176ada) 35%, #e5e7eb);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bxt-accent, #176ada);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}
.bxbb-gift__variant:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  color: #6b7280;
}
.bxbb-cart__variant {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--bxt-accent, #176ada) 70%, #6b7280);
}
.bxbb-cart__hint {
  margin: 6px 0 8px;
  font-size: 0.78rem;
  color: var(--bxt-accent, #176ada);
  line-height: 1.35;
  font-weight: 600;
}
.bxbb-cart__skel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.bxbb-cart__skel-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8eaed;
}
.bxbb-cart__skel-line {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #e8eaed;
}
.bxbb-cart__list {
  display: grid;
  gap: 0;
}
.bxbb-cart__item,
.bxbb-cart__slot {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
}
.bxbb-cart__item + .bxbb-cart__item,
.bxbb-cart__item + .bxbb-cart__slot,
.bxbb-cart__slot + .bxbb-cart__slot {
  border-top: 1px dashed #e5e7eb;
}
.bxbb-cart__item img,
.bxbb-cart__slot-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8eaed;
}
.bxbb-cart__slot-img {
  display: block;
}
.bxbb-cart__slot-copy {
  display: grid;
  gap: 8px;
}
.bxbb-cart__slot-copy i {
  display: block;
  height: 10px;
  width: 72%;
  border-radius: 999px;
  background: #e8eaed;
}
.bxbb-cart__slot-copy i.is-sm { width: 48%; }
.bxbb-cart__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bxbb-cart__meta strong {
  font-size: 0.82rem;
  color: var(--bxt-accent, #176ada);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.bxbb-cart__price {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.bxbb-cart__price b {
  color: var(--bxt-accent, #176ada);
  font-size: 0.88rem;
}
.bxbb-cart__price s {
  color: #9ca3af;
  font-size: 0.75rem;
}
.bxbb-cart__trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  padding: 0;
  border: 1.5px solid #ef4444;
  border-radius: 6px;
  background: #fff;
  color: #ef4444;
  cursor: pointer;
  box-sizing: border-box;
}
.bxbb-cart__trash:hover {
  background: #fef2f2;
}
.bxbb-card__add.is-added,
.bxbb-card__add:disabled.is-added {
  background: color-mix(in srgb, var(--bxt-accent, #176ada) 35%, #9ca3af);
  color: rgba(255, 255, 255, 0.92);
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}
.bxbb-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 10px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bxt-accent, #176ada);
}
.bxbb-cart__total b { color: var(--bxt-accent, #176ada); }
.bxbb-cart__atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--bxt-accent, #176ada);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

/* Product detail modal */
.bxbb-detail[hidden] { display: none !important; }
.bxbb-detail {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.bxbb-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}
.bxbb-detail__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.bxbb-detail__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.bxbb-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.bxbb-detail__media {
  background: color-mix(in srgb, var(--bxt-accent, #176ada) 10%, #fff7ed);
  display: grid;
  place-items: center;
  padding: 20px;
}
.bxbb-detail__media img {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
}
.bxbb-detail__info {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 24px 24px;
}
.bxbb-detail__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bxt-accent, #176ada);
}
.bxbb-detail__price b {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bxt-accent, #176ada);
}
.bxbb-detail__option {
  display: grid;
  gap: 10px;
}
.bxbb-detail__option-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bxt-accent, #176ada);
  text-transform: lowercase;
}
.bxbb-detail__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bxbb-detail__pill {
  min-width: 40px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--bxt-accent, #176ada);
  border-radius: 8px;
  background: #fff;
  color: var(--bxt-accent, #176ada);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.bxbb-detail__pill.is-on {
  background: var(--bxt-accent, #176ada);
  color: #fff;
}
.bxbb-detail__actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.bxbb-detail__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--bxt-accent, #176ada);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}
.bxbb-detail__add.is-added,
.bxbb-detail__add:disabled.is-added {
  background: color-mix(in srgb, var(--bxt-accent, #176ada) 28%, #c4c4c4);
  cursor: default;
}
.bxbb-detail__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.bxbb-detail__view:hover {
  background: #f9fafb;
}
@media (max-width: 640px) {
  .bxbb-detail__body { grid-template-columns: 1fr; }
}
.bxt-cart {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.bxt-cart h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.bxt-cart__slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #9ca3af;
  font-size: 0.8rem;
}
.bxt-cart__slot + .bxt-cart__slot { margin-top: 8px; }
.bxt-cart__slot img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.bxt-cart__slot.is-filled {
  border-style: solid;
  color: #111;
  font-weight: 650;
}

/* —— Add-ons interactive board —— */
.bxao .bxt-nav { margin-bottom: 20px; }
/* White outer shell + tinted inner card */
#demo .bxao-preview.bxd-widget,
.bxao-preview {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #111;
  width: 100%;
}
.bxao-preview.bxd-widget {
  box-shadow: 0 12px 32px rgba(8, 40, 24, 0.08);
}
.bxao-card {
  background: var(--bxt-bg, #f7f7f7);
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #1a1a1a) 18%, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease;
}
.bxao-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bxt-accent, #111);
  transition: color .2s ease;
}
.bxt-addons {
  max-width: 380px;
  margin-top: 4px;
}
.bxao-preview .bxt-addons {
  max-width: none;
}
.bxt-addons__item + .bxt-addons__item {
  margin-top: 0;
  border-top: 1px dashed color-mix(in srgb, var(--bxt-accent, #1a1a1a) 28%, #e5e7eb);
}
.bxt-addons .bxt-line--addon {
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0 10px;
}
.bxt-addons .bxt-line--addon.no-img {
  grid-template-columns: 1fr auto;
}
.bxt-addons .bxt-line--addon.no-img .bxt-thumb {
  display: none;
}
.bxt-addons__item:first-child .bxt-line--addon {
  padding-top: 4px;
}
.bxt-addons .bxt-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}
.bxt-addons .bxt-line__body {
  gap: 4px;
  padding-right: 4px;
}
.bxt-addons .bxt-line__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bxt-accent, #111);
  transition: color .2s ease;
}
.bxt-addons .bxt-line__price b {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bxt-accent, #111);
  transition: color .2s ease;
}
.bxt-addons .bxt-line__price s {
  font-size: 0.82rem;
  color: #9ca3af;
}
.bxt-addons .bxt-mini-stars {
  display: block;
  margin-top: 1px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #f5a524;
  line-height: 1;
}
.bxt-addons .bxt-add {
  align-self: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-color: var(--bxt-accent, #111);
  background: var(--bxt-accent, #111);
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease;
}
.bxt-addons .bxt-add__ico {
  width: 18px;
  height: 18px;
}
.bxt-addons .bxt-add:hover {
  filter: brightness(0.92);
}
.bxt-addons__qty {
  padding: 0 0 14px;
}
.bxt-addons__qty .bxt-qty,
.bxt-addons__qty .bxao-variant {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  border-color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bxt-accent, #111);
}

@media (max-width: 900px) {
  .bxbb-board { grid-template-columns: 1fr; }
  .bxbb-board .bxd-center { grid-column: auto; }
  .bxbb-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bxbb-grid { grid-template-columns: 1fr; }
  .bxt-nav__tabs { gap: 6px; }
  .bxt-tab { font-size: 0.8rem; padding: 8px 10px; }
}

/* Fixed board reuses Quantity (.bxd-*) pills/switches/layout */
.bxf .bxt-nav {
  margin-bottom: 20px;
}
.bxf-preview .bxt-card__title {
  margin: 0 0 12px;
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease;
}
.bxf-preview .bxt-line__title {
  color: var(--bxt-accent, #1a1a1a);
  font-weight: 700;
  transition: color .2s ease;
}
.bxf-preview .bxt-line__price b {
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease;
}
.bxf-preview .bxt-panel {
  margin: 0 0 14px;
  background: var(--bxt-bg, #f3f3f3);
  border-color: color-mix(in srgb, var(--bxt-accent, #1a1a1a) 18%, #e5e7eb);
  transition: background-color .2s ease, border-color .2s ease;
}
.bxf-preview .bxt-panel .bxt-plus {
  margin: 2px 0;
}
.bxf-preview .bxt-panel .bxt-plus__line {
  border-top-color: #9ca3af;
}
.bxf-preview .bxt-panel .bxt-plus__icon {
  border-color: #616161;
  color: #616161;
  background: #fff;
}
.bxf-preview .bxt-badge,
.bxf-preview .bxt-gift-tip {
  transition: background-color .2s ease;
}
.bxf-preview .bxt-atc {
  background: var(--bxt-accent, #1a1a1a);
  transition: background-color .2s ease;
}
.bxf-preview .qv-timer { margin-bottom: 12px; }
.bxf-theme-btn-note {
  margin: 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Together board — main + gift + recommended (no + connectors; Fixed untouched) */
.bxtg .bxt-nav {
  margin-bottom: 20px;
}
/* White outer shell + tinted product panel */
#demo .bxtg-preview.bxd-widget,
.bxtg-preview {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
}
.bxtg-preview .bxt-card__title {
  margin: 0 0 10px;
  color: var(--bxt-accent, #1a1a1a);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  transition: color .2s ease;
}
.bxtg-preview .qv-timer { margin-bottom: 12px; }
.bxtg-panel {
  position: relative;
  margin: 0 0 12px;
  padding: 8px 12px 0;
  background: var(--bxt-bg, #f3f3f3);
  border: 1px solid color-mix(in srgb, var(--bxt-accent, #1a1a1a) 18%, #e5e7eb);
  border-radius: 12px;
  overflow: visible;
  transition: background-color .2s ease, border-color .2s ease;
}
/* Accent hanging ribbon: triangles stay on border; rect moves up to meet them */
.bxtg-corner {
  position: absolute;
  top: -1px; /* triangle baseline = panel border */
  right: 16px;
  z-index: 3;
  margin: 0 6px;
  padding: 0;
  background: transparent;
  line-height: 0;
}
/* Triangles unchanged — bottoms sit on the border line */
.bxtg-corner::before,
.bxtg-corner::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-style: solid;
}
.bxtg-corner::before {
  left: -6px;
  border-width: 0 0 6px 6px;
  border-color: transparent transparent var(--bxt-accent, #048a89) transparent;
}
.bxtg-corner::after {
  right: -6px;
  border-width: 0 6px 6px 0;
  border-color: transparent transparent var(--bxt-accent, #048a89) transparent;
}
/* Rect moves up — top edge aligns with triangle tips; triangles stay put */
.bxtg-corner__body {
  position: relative;
  top: -6px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  background: var(--bxt-accent, #048a89);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 0 0 4px 4px;
}
.bxtg-list {
  display: grid;
  padding-top: 18px; /* clear hanging save ribbon on top edge */
}
.bxtg-list .bxtg-line:first-child {
  padding-right: 96px; /* room for hanging save ribbon */
}
.bxtg-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px 4px;
}
.bxtg-line.has-check {
  grid-template-columns: 18px 56px minmax(0, 1fr);
}
.bxtg-line + .bxtg-line {
  border-top: 1px dashed color-mix(in srgb, var(--bxt-accent, #1a1a1a) 42%, #9ca3af);
}
.bxtg-line.is-off {
  opacity: 0.45;
}
.bxtg-line .bxt-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}
.bxtg-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 19px; /* center with 56px thumb */
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.bxtg-check.is-locked {
  cursor: default;
}
.bxtg-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.bxtg-check i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #111;
  box-sizing: border-box;
  position: relative;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.bxtg-check:hover:not(.is-locked) i {
  box-shadow: inset 0 0 0 1.5px var(--bxt-accent, #111);
}
.bxtg-check input:checked + i {
  background: var(--bxt-accent, #111);
  box-shadow: none;
}
.bxtg-check.is-locked input:checked + i {
  background: #c4c4c4;
  box-shadow: none;
}
.bxtg-check input:checked + i::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bxtg-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-right: 4px;
}
.bxtg-title-row {
  min-width: 0;
}
.bxtg-title-row .bxt-line__title {
  display: inline;
  margin: 0;
  color: var(--bxt-accent, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  transition: color .2s ease;
}
.bxtg-title-row .bxtg-tag {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -1px;
}
.bxtg-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: #111;
  white-space: nowrap;
}
.bxtg-tag--gift {
  background: #fd4154;
}
.bxtg-gift-tag {
  display: flex;
  margin-top: 2px;
}
.bxtg-gift-tag .bxtg-tag {
  margin: 0;
}
.bxtg-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  line-height: 1.25;
}
.bxtg-price b {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bxt-accent, #1a1a1a);
  transition: color .2s ease;
}
.bxtg-price s {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
}
.bxtg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.bxtg-variant .bxt-variant,
.bxtg-qty-select {
  max-width: 140px;
  min-height: 30px;
  padding: 5px 26px 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}
.bxtg-step {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 96px;
  height: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.bxtg-step button {
  width: 30px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.bxtg-step button:hover {
  background: #f3f4f6;
}
.bxtg-step b {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111;
}
.bxtg-sum {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 4px -12px 0;
  padding: 12px;
  border-top: 1px solid color-mix(in srgb, var(--bxt-accent, #1a1a1a) 48%, #9ca3af);
  color: #111;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}
.bxtg-sum-save {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 700;
}
.bxtg-sum-total {
  white-space: nowrap;
}
.bxtg-atc {
  background: var(--bxt-accent, #048a89) !important;
  border-radius: 10px;
}
.bxtg-theme-btn-note {
  margin: 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 600;
}
