/* ---------------------------------------------------------------------------
   Bazaar Booster — the illustrative admin and storefront panels inside the
   "Continue engaging" scene-tabs section, plus each scene's geometry.

   Loaded by the partials in resources/views/pages/landing/bazaar-booster/scenes/.
   Scenes are targeted by the 'class' the page gives them (bb-scene--*).
   Breakpoints follow scene-tabs.css: container "scene-tabs" at 760px for
   desktop, container "st-slide" for a single phone card.
   Plain CSS — no Tailwind @apply here.
   Bump the ?v in the partials' <link> whenever this file changes.
--------------------------------------------------------------------------- */

.section-scene-tabs .bb-es-surface {
  border-radius: 9px;
  background: var(--color-white);
  box-shadow: 0 6px 18px rgba(38, 55, 85, 0.043);
}

.section-scene-tabs .bb-es-card-title {
  margin: 0 0 11px;
  color: var(--st-panel-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

/* ---- segment ---- */
.section-scene-tabs .bb-es-segment-box {
  width: 100%;
  padding: 12px;
}

.section-scene-tabs .bb-es-filter-card {
  padding: 10px 10px 13px;
}

.section-scene-tabs .bb-es-filter {
  padding: 7px;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: var(--color-white);
}

.section-scene-tabs .bb-es-filter-chip {
  display: block;
  max-width: 100%;
  padding: 0 5px;
  border-radius: 4px;
  background: #edf2fd;
  color: #5a7cb9;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}

.section-scene-tabs .bb-es-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 13px;
}

.section-scene-tabs .bb-es-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.section-scene-tabs .bb-es-save {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.section-scene-tabs .bb-es-names {
  position: relative;
  z-index: 3;
  width: calc(100% - 24px);
  margin: 10px 0 0 24px;
  padding: 12px 10px 8px;
}

.section-scene-tabs .bb-es-name-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-top: 1px solid #e7e9ee;
  color: #315b9a;
  font-size: 13px;
}

.section-scene-tabs .bb-es-name-row:first-child {
  border-top: 0;
}

.section-scene-tabs .bb-es-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #7d4660;
  color: var(--color-white);
  font-size: 10px;
}

.section-scene-tabs .bb-es-avatar.is-gold {
  background: #a48b37;
}

.section-scene-tabs .bb-es-customer-email {
  display: none;
}

/* ---- audience, timing, message (broadcast + event invite) ---- */
.section-scene-tabs .bb-es-audience {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
}

.section-scene-tabs .bb-es-audience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-scene-tabs .bb-es-audience .bb-es-card-title {
  margin-bottom: 0;
  font-size: 13px;
}

.section-scene-tabs .bb-es-audience-count {
  display: none;
  color: #858b96;
  font-size: 12px;
}

.section-scene-tabs .bb-es-radio-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
}

.section-scene-tabs .bb-es-audience .bb-es-radio-line {
  margin-top: 8px;
  font-size: 12px;
}

.section-scene-tabs .bb-es-radio {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #b9bec7;
  border-radius: 50%;
  background: var(--color-white);
}

.section-scene-tabs .bb-es-radio.is-selected {
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.section-scene-tabs .bb-es-radio.is-selected::after {
  content: "✓";
  color: var(--color-white);
  font-size: 10px;
  font-weight: 650;
}

.section-scene-tabs .bb-es-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0 0 22px;
  padding: 5px 8px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  background: var(--color-white);
  font-size: 12px;
}

.section-scene-tabs .bb-es-chevron {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  margin-right: 2px;
  border: solid #8d94a1;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.section-scene-tabs .bb-es-timing {
  width: 100%;
  margin: 0 0 8px;
  padding: 15px 12px 13px;
}

.section-scene-tabs .bb-es-timing-options {
  overflow: hidden;
  border: 1px solid #e7e9ee;
  border-radius: 6px;
}

.section-scene-tabs .bb-es-timing-options .bb-es-radio-line {
  padding: 12px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.section-scene-tabs .bb-es-timing-options .bb-es-radio-line + .bb-es-radio-line {
  border-top: 1px solid #e7e9ee;
}

/* Reserved for AI features: "Send at the best time" is AI-timed. */
.section-scene-tabs .bb-es-sparkle {
  color: #8054f5;
  font-size: 16px;
  line-height: 1;
}

.section-scene-tabs .bb-es-message {
  position: absolute;
  z-index: 4;
  top: -130px;
  left: 0;
  width: 190px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f7f9;
  box-shadow: 0 6px 18px rgba(38, 55, 85, 0.043);
}

.section-scene-tabs .bb-es-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #26344a;
  font-size: 11px;
  line-height: 1.2;
}

.section-scene-tabs .bb-es-message-header strong,
.section-scene-tabs .bb-es-message-header small {
  display: block;
}

.section-scene-tabs .bb-es-message-header small {
  margin-top: 2px;
  color: #798a8d;
  font-size: 9px;
}

.section-scene-tabs .bb-es-message-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #214b9c;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}

.section-scene-tabs .bb-es-message-bubble {
  padding: 12px 10px;
  border-radius: 7px;
  background: var(--color-white);
  color: var(--st-panel-ink);
  font-size: 14px;
  line-height: 1.45;
}

.section-scene-tabs .bb-es-message-desktop {
  display: none;
}

.section-scene-tabs .bb-es-message-time {
  display: block;
  margin-top: 5px;
  color: #829094;
  font-size: 9px;
  text-align: right;
}

.section-scene-tabs .bb-es-composer {
  position: relative;
  width: calc(100% - 24px);
  margin: 10px 0 0 24px;
  padding: 14px 12px 12px;
}

.section-scene-tabs .bb-es-editor {
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid #dee2e9;
  border-radius: 6px;
  color: var(--st-panel-ink);
  font-size: 13px;
  line-height: 1.55;
}

.section-scene-tabs .bb-es-editor p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ---- shop: a phone product page ---- */
.section-scene-tabs .bb-scene--shop .st-panel {
  top: 15px;
  z-index: 1;
  width: calc((100% - 12px) / 0.8);
  height: 405px;
  padding: 10px 10px 0;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: var(--color-white);
  color: var(--st-ink);
  transform: scale(0.8);
}

.section-scene-tabs .bb-es-shop-header {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid #edf0f3;
}

.section-scene-tabs .bb-es-shop-header::after {
  content: "";
  width: 22px;
}

.section-scene-tabs .bb-scene--shop .bb-es-brand {
  margin: 0;
  color: var(--st-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-align: center;
}

.section-scene-tabs .bb-es-shop-back {
  width: 22px;
  color: var(--st-ink);
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.section-scene-tabs .bb-es-product-photo {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 52%;
}

.section-scene-tabs .bb-es-product-details {
  max-width: 178px;
  padding: 12px 14px 0;
}

.section-scene-tabs .bb-es-product-category {
  display: block;
  margin-bottom: 5px;
  color: #7d8595;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.section-scene-tabs .bb-scene--shop .bb-es-product-name {
  margin: 0 0 4px;
  color: var(--st-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-scene-tabs .bb-scene--shop .bb-es-price {
  margin: 0 0 8px;
  color: var(--st-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.section-scene-tabs .bb-es-voucher {
  display: inline-block;
  padding: 3px 5px;
  border: 1px dashed #a4b7dc;
  color: #6e8db9;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.section-scene-tabs .bb-es-cart {
  width: calc(100% - 152px);
  margin: 10px 14px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ---- per-scene geometry on phones ---- */
.section-scene-tabs .bb-scene--broadcast .st-panel {
  top: 205px;
}

.section-scene-tabs .bb-scene--broadcast .st-photo {
  right: 0;
  left: auto;
  width: 65%;
  height: 220px;
  object-position: center 25%;
}

.section-scene-tabs .bb-scene--invite {
  --st-frame-position: center 75%;
  --st-frame-scale: 1.2;
  --st-frame-origin: 50% 65%;
}

.section-scene-tabs .bb-scene--invite .st-visual {
  height: 410px;
}

.section-scene-tabs .bb-scene--shop .st-visual {
  height: 350px;
}

.section-scene-tabs .bb-scene--shop .st-photo {
  top: 174px;
  right: 0;
  left: auto;
  width: 105px;
  height: 135px;
  object-position: center;
  z-index: 2;
}

@container st-slide (max-width: 285px) {
  .section-scene-tabs .bb-es-filter-chip {
    font-size: 11px;
  }

  .section-scene-tabs .bb-es-save {
    padding: 8px;
    font-size: 10px;
  }

  .section-scene-tabs .bb-es-count {
    font-size: 13px;
  }

  .section-scene-tabs .bb-es-timing-options .bb-es-radio-line {
    gap: 7px;
    padding: 12px 7px;
    font-size: 12px;
  }

  .section-scene-tabs .bb-es-editor {
    font-size: 12px;
  }

  .section-scene-tabs .bb-es-voucher {
    padding: 5px 4px;
    font-size: 9px;
  }
}

/* ---- desktop ---- */
@container scene-tabs (min-width: 760px) {
  .section-scene-tabs .st-panel > .bb-es-surface {
    border: 1px solid #e6eaf1;
    box-shadow: 0 12px 25px rgba(23, 34, 58, 0.05);
  }

  .section-scene-tabs .bb-es-card-title {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .section-scene-tabs .bb-es-segment-box {
    width: 400px;
    max-width: 100%;
    padding: 18px;
  }

  .section-scene-tabs .bb-es-segment-box h3 {
    margin-bottom: 15px;
  }

  .section-scene-tabs .bb-es-filter-card {
    padding: 0;
  }

  .section-scene-tabs .bb-es-filter {
    padding: 8px;
  }

  .section-scene-tabs .bb-es-filter-chip {
    display: inline-block;
    padding: 0 9px;
    font-size: 15px;
    line-height: 27px;
  }

  .section-scene-tabs .bb-es-result {
    margin-top: 16px;
  }

  .section-scene-tabs .bb-es-count {
    gap: 9px;
    font-size: 17px;
  }

  .section-scene-tabs .bb-es-save {
    padding: 8px 12px;
    font-size: 14px;
  }

  .section-scene-tabs .bb-es-names {
    width: 342px;
    max-width: calc(100% - 24px);
    margin: 18px 0 0 24px;
    padding: 15px 17px 6px;
  }

  .section-scene-tabs .bb-es-name-row {
    gap: 14px;
    font-size: 15px;
  }

  .section-scene-tabs .bb-es-avatar {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .section-scene-tabs .bb-es-customer-email {
    display: inline;
    margin-left: 13px;
    color: #8490a3;
    font-size: 11px;
    white-space: nowrap;
  }

  .section-scene-tabs .bb-es-audience {
    max-width: 400px;
    margin-bottom: 12px;
    padding: 16px 17px 17px;
  }

  .section-scene-tabs .bb-es-audience .bb-es-card-title {
    font-size: 16px;
  }

  .section-scene-tabs .bb-es-audience-count {
    display: inline;
    font-size: 14px;
  }

  .section-scene-tabs .bb-es-audience .bb-es-radio-line {
    margin-top: 14px;
    font-size: 14px;
  }

  .section-scene-tabs .bb-es-select {
    max-width: 288px;
    margin: 9px 0 0 24px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .section-scene-tabs .bb-es-timing {
    max-width: 400px;
    margin: 0;
    padding: 16px 17px 17px;
  }

  .section-scene-tabs .bb-es-timing-options .bb-es-radio-line {
    gap: 11px;
    padding: 13px;
    font-size: 15px;
  }

  /* The received message floats off the panel's right edge, over the photo. */
  .section-scene-tabs .bb-es-message {
    top: 230px;
    left: calc(100% + 60px);
    width: 265px;
    padding: 9px;
    border: 1px solid #e3e9eb;
    border-radius: 15px;
    background: #edf5f0;
    box-shadow: 0 10px 25px rgba(23, 34, 58, 0.1);
  }

  .section-scene-tabs .bb-es-message-bubble {
    padding: 10px 12px;
    line-height: 1.4;
  }

  .section-scene-tabs .bb-es-message-desktop {
    display: inline;
  }

  .section-scene-tabs .bb-es-message-mobile {
    display: none;
  }

  .section-scene-tabs .bb-es-composer {
    left: 22px;
    width: auto;
    max-width: 390px;
    margin: 22px 0 0;
    padding: 16px 17px 17px;
  }

  .section-scene-tabs .bb-es-editor {
    min-height: 95px;
    padding: 12px 13px;
    font-size: 16px;
    line-height: 1.65;
  }

  .section-scene-tabs .bb-es-editor p + p {
    margin-top: 7px;
  }

  .section-scene-tabs .bb-scene--broadcast .st-panel {
    top: -12px;
    width: 455px;
    min-height: 380px;
  }

  .section-scene-tabs .bb-scene--broadcast .st-photo {
    right: auto;
    width: 400px;
    height: 425px;
    object-position: center;
  }

  .section-scene-tabs .bb-scene--invite {
    --st-frame-position: center 55%;
    --st-frame-scale: 1.9;
    --st-frame-origin: 50% 70%;
  }

  .section-scene-tabs .bb-scene--invite .st-visual,
  .section-scene-tabs .bb-scene--shop .st-visual {
    height: 455px;
  }

  .section-scene-tabs .bb-scene--invite .st-panel {
    top: 0;
    width: 430px;
    max-width: 48%;
    min-height: 350px;
  }

  .section-scene-tabs .bb-scene--invite .st-photo-frame {
    width: 390px;
    max-width: 41%;
    height: 420px;
  }

  .section-scene-tabs .bb-scene--invite .bb-es-audience {
    max-width: 390px;
    margin-bottom: 0;
  }

  .section-scene-tabs .bb-scene--shop .st-panel {
    top: -22px;
    z-index: 3;
    width: 310px;
    max-width: 34%;
    height: auto;
    min-height: 0;
    margin-right: -22px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(23, 34, 58, 0.035);
    transform: none;
  }

  .section-scene-tabs .bb-scene--shop .st-photo {
    top: 22px;
    right: auto;
    width: 400px;
    height: 425px;
  }

  .section-scene-tabs .bb-es-product-photo {
    height: 182px;
  }

  .section-scene-tabs .bb-es-product-details {
    max-width: none;
    padding: 13px 16px 0;
  }

  .section-scene-tabs .bb-es-cart {
    width: calc(100% - 32px);
    margin: 11px 16px 15px;
  }
}

@container scene-tabs (min-width: 760px) and (max-width: 1000px) {
  .section-scene-tabs .bb-es-filter-chip {
    font-size: 13px;
  }

  .section-scene-tabs .bb-es-audience-count {
    font-size: 12px;
  }

  .section-scene-tabs .bb-es-timing-options .bb-es-radio-line {
    gap: 8px;
    padding: 13px 9px;
    font-size: 14px;
  }
}
