/* ===========================================================================
 * Smooth booking sidebar — styles
 * ---------------------------------------------------------------------------
 * Token values below were measured off the live Boulevard overlay
 * (www.joinblvd.com/b/smoothlaserhairremoval/widget) via getComputedStyle on
 * 2026-08-21, so the clone matches rather than approximates:
 *
 *   font              "DM Sans", sans-serif  16px / 24px / #212529
 *   drawer            550px, left-anchored, full height, white
 *   top bar           48px, #000, white 16px
 *   banner            150px, cover, centred; logo 200x100 contain
 *   login CTA         bg #c5e9f3, text #328da7 700 16px, padding 16px, h 67px
 *   login button      #000 / #fff, radius 4px, h 35px, padding 9.5px 18px, 500
 *   section title     .list-title 18px/700 uppercase, pad 8px 0 8px 20px, h 45px
 *                     border-bottom 1px rgba(0,0,0,.1)
 *   list row          .list-item_content pad 12px 20px, h 66px
 *                     row border-bottom 1px rgba(0,0,0,.1)
 *   row title         16px / 500 / #000 / 24px
 *   row subtitle      14px / 300 / #545454
 *   pill button       h 40px, radius 20px, border 2px solid #000, pad 6px 16px
 * =========================================================================== */

/* DM Sans is the body face on smoothdmv.com (and what Boulevard serves);
   Ibarra Real Nova is the site's display serif. Loaded here so the widget
   looks the same on the harness pages as it does on the marketing site. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Ibarra+Real+Nova:wght@400;500;600&display=swap');

.sb-root {
  --sb-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sb-display: 'Ibarra Real Nova', Georgia, serif;
  --sb-brand: #6D374A;         /* smoothdmv.com --brown */
  --sb-brand-hover: #562a3a;
  --sb-brand-soft: #EFDFE0;    /* site beige */
  --sb-ink: #212529;
  --sb-ink-strong: #000;
  --sb-muted: #545454;
  --sb-rule: rgba(0, 0, 0, 0.1);
  --sb-surface: #fff;
  --sb-hover: rgba(0, 0, 0, 0.04);
  --sb-cta-bg: var(--sb-brand-soft);
  --sb-cta-ink: var(--sb-brand);
  --sb-width: 550px;
  --sb-topbar-h: 48px;
  --sb-banner-h: 150px;
  --sb-disabled: #9e9e9e;
}

/* --- overlay shell -------------------------------------------------------- */

.sb-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: var(--sb-font);
  color: var(--sb-ink);
  visibility: hidden;
  pointer-events: none;
}
.sb-root.sb-open { visibility: visible; pointer-events: auto; }

.sb-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sb-root.sb-open .sb-scrim { opacity: 1; }

/* Boulevard's injector puts its close control at the top-right of the viewport,
   outside the drawer. Replicated rather than tidied. */
.sb-dismiss {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sb-root.sb-open .sb-dismiss { opacity: 1; }
.sb-dismiss:hover { opacity: 0.75; }

.sb-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--sb-width);
  max-width: 100%;
  height: 100%;
  background: var(--sb-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.sb-root.sb-open .sb-drawer { transform: translateX(0); }

/* --- chrome --------------------------------------------------------------- */

.sb-topbar {
  flex: 0 0 var(--sb-topbar-h);
  height: var(--sb-topbar-h);
  background: var(--sb-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  gap: 8px;
}
.sb-topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sb-topbar a:hover { text-decoration: underline; }
.sb-topbar svg { width: 14px; height: 14px; }

.sb-banner {
  position: relative;
  flex: 0 0 var(--sb-banner-h);
  height: var(--sb-banner-h);
  background-size: cover;
  background-position: 50% 50%;
}
.sb-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Measured off the live widget, not eyeballed. */
  background: linear-gradient(-180deg, rgb(0, 0, 0), rgba(0, 0, 0, 0.55) 95%);
}
.sb-banner-logo {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  z-index: 1;
}
.sb-back {
  position: absolute;
  top: 8px;
  left: 4px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sb-back.sb-visible { display: flex; }
.sb-back svg { width: 20px; height: 20px; }

.sb-login-cta {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--sb-cta-bg);
  color: var(--sb-cta-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.sb-login-cta.sb-visible { display: flex; }
.sb-login-cta p { margin: 0; flex: 1 1 auto; }
.sb-login-cta button {
  flex: 0 0 auto;
  background: var(--sb-brand);
  color: #fff;
  border: 0;
  border-radius: 4px;
  height: 35px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.sb-login-cta button:hover { background: var(--sb-brand-hover); }

.sb-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}


/* --- screen primitives ---------------------------------------------------- */

.sb-screen { display: flex; flex-direction: column; min-height: 100%; }

.sb-list-title {
  font-family: var(--sb-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: -0.01em;
  color: var(--sb-brand);
  padding: 8px 20px 8px 20px;
  height: 45px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--sb-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.sb-cal-btn svg { width: 21px; height: 21px; display: block; }
.sb-list-title button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--sb-ink);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}

.sb-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--sb-rule);
  font-size: 15px;
}
.sb-subnav a {
  color: var(--sb-ink);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sb-subnav svg { width: 16px; height: 16px; }

.sb-row {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--sb-rule);
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.sb-row:hover { background: var(--sb-hover); }
/* The live widget uses TWO row components, measured at 1512px:
   - detail rows (locations, visit-type): .list-item_content, padding 12px 20px,
     64px content box -> 88px + 1px rule = 89px
   - nav rows (menu categories, services): mat-list-item, height 48px,
     padding 0 16px -> 48px + 1px rule = 49px                                   */
.sb-row-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}
.sb-row--detail .sb-row-content {
  padding: 12px 20px;
  /* 88px is the measured content box (border-box, so padding is inside it).
     Location rows reach it via the 64px thumb; visit-type rows need the floor. */
  min-height: 88px;
}
.sb-row--nav .sb-row-content {
  padding: 0 16px;
  height: 48px;
}
.sb-row-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background-size: cover;
  background-position: 50% 50%;
}
.sb-row-text { flex: 1 1 auto; min-width: 0; display: block; }
.sb-row-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--sb-ink-strong);
}
.sb-row-sub {
  display: block;
  font-size: 14px;
  font-weight: 300;
  /* 18px, not 20px: the live overlay's two-line location addresses sit tighter
     than the default, which is what keeps that row near 78px. */
  line-height: 18px;
  color: var(--sb-muted);
}
.sb-row-aside {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--sb-ink-strong);
  white-space: nowrap;
}
.sb-chevron { flex: 0 0 auto; width: 18px; height: 18px; color: #4a4a4a; }

/* --- service detail ------------------------------------------------------- */

.sb-detail { padding: 20px; }
.sb-detail h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  line-height: 33.6px;
}
.sb-detail-desc {
  margin: 0;
  font-size: 16px;
  line-height: 22.4px;
  color: var(--sb-ink);
}
.sb-detail-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--sb-muted);
}

.sb-addons-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--sb-rule);
}
/* line-height 22px, not the default: measured header box is 56px = 16+16 pad + 24. */
.sb-addons-head h3 { margin: 0; font-family: var(--sb-display); font-size: 24px; line-height: 24px; font-weight: 500; color: var(--sb-brand); }
.sb-addons-head span { font-size: 16px; color: #6e717d; }

.sb-addon {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sb-rule);
}
.sb-addon-toggle {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: none;
  color: var(--sb-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.sb-addon.sb-selected .sb-addon-toggle { background: var(--sb-brand); color: #fff; border-color: var(--sb-brand); }
.sb-addon-text { flex: 1 1 auto; min-width: 0; }
.sb-addon-name { font-size: 14px; font-weight: 500; }
.sb-addon-desc { font-size: 13px; line-height: 19px; color: var(--sb-muted); }
.sb-addon-price { flex: 0 0 auto; font-size: 15px; white-space: nowrap; padding-top: 2px; }

/* --- footer action bar ---------------------------------------------------- */

.sb-actions {
  position: sticky;
  bottom: 0;
  background: var(--sb-surface);
  padding: 10px 10px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.sb-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  height: 40px;
  border-radius: 6px;
  padding: 6px 20px;
  cursor: pointer;
  border: 2px solid var(--sb-brand);
  background: none;
  color: var(--sb-brand);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.sb-btn:hover:not(:disabled) { background: var(--sb-brand); color: #fff; }
.sb-btn-primary { background: var(--sb-brand); color: #fff; }
.sb-btn-primary:hover:not(:disabled) { background: var(--sb-brand-hover); }
.sb-btn:disabled {
  cursor: default;
  border-color: var(--sb-disabled);
  background: var(--sb-disabled);
  color: #fff;
}
/* Measured: Add = full width h40; Add More = 320x38 with a 1px rule;
   Next = 200x40 solid. */
.sb-btn-block { width: 100%; display: block; }
.sb-btn-narrow { min-width: 200px; width: auto; display: block; margin: 0 auto; }
.sb-btn-outline-wide { width: 320px; height: 38px; border-width: 1px; display: block; }
.sb-btn-wide { width: 100%; }

/* --- cart ----------------------------------------------------------------- */

.sb-cart-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sb-rule);
}
.sb-cart-line-text { flex: 1 1 auto; min-width: 0; }
.sb-cart-line-name { font-size: 16px; line-height: 24px; }
.sb-cart-line-staff { font-size: 14px; color: var(--sb-muted); }
.sb-cart-line-staff strong { color: var(--sb-ink); font-weight: 700; }
.sb-cart-line-addon { font-size: 14px; color: var(--sb-muted); padding-left: 12px; }
.sb-cart-line-price { flex: 0 0 auto; font-size: 16px; }
.sb-cart-remove {
  border: 0;
  background: none;
  color: var(--sb-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0 0;
}
.sb-cart-addmore { padding: 20px; display: flex; justify-content: center; }
.sb-empty { padding: 40px 20px; text-align: center; color: var(--sb-muted); }

/* --- date / time ---------------------------------------------------------- */

.sb-daystrip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--sb-rule);
}
.sb-daystrip-arrow {
  flex: 0 0 34px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #3c3c3c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-daystrip-arrow:disabled { color: #c9c9c9; cursor: default; }
.sb-daystrip-days { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sb-day {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  height: 48px;
  padding: 0 2px;
  text-align: center;
  border-bottom: 2px solid transparent;
  color: var(--sb-ink);
}
.sb-day span { display: block; font-size: 14px; line-height: 21px; }
.sb-day .sb-day-name { font-weight: 500; }
.sb-day.sb-selected { border-bottom-color: var(--sb-brand); color: var(--sb-brand); }
.sb-day:disabled { color: #c1c1c1; cursor: default; }
.sb-day:hover:not(:disabled):not(.sb-selected) { background: var(--sb-hover); }

.sb-timegroup { padding: 24px 20px 4px; text-align: center; }
.sb-timegroup h4 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.sb-times { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sb-time {
  width: 320px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid var(--sb-brand);
  background: none;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 16px;
}
.sb-time:hover { background: rgba(0, 0, 0, 0.06); }
.sb-time.sb-selected { background: var(--sb-brand); color: #fff; border-color: var(--sb-brand); }
.sb-waitlist { padding: 26px 20px; text-align: center; font-size: 16px; }
.sb-waitlist a { color: var(--sb-ink); text-decoration: underline; cursor: pointer; }

/* --- forms ---------------------------------------------------------------- */

.sb-form { padding: 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.sb-form.sb-form-centered { align-items: center; }
.sb-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sb-field label { font-size: 13px; color: var(--sb-muted); }
.sb-input {
  font-family: inherit;
  font-size: 16px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  background: #fff;
  color: var(--sb-ink);
  width: 100%;
  box-sizing: border-box;
}
.sb-input:focus { outline: none; border-color: var(--sb-brand); }
.sb-input::placeholder { color: #9a9a9a; }
textarea.sb-input { height: 84px; padding: 10px 12px; resize: vertical; }
.sb-input-narrow { width: 306px; }
.sb-field-row { display: flex; gap: 12px; width: 100%; }
.sb-field-row .sb-field { flex: 1 1 0; }
.sb-hint { font-size: 13px; color: var(--sb-muted); text-align: center; }
.sb-error {
  font-size: 14px;
  color: #b3261e;
  background: #fce8e6;
  border-radius: 4px;
  padding: 10px 12px;
}

/* --- checkout summary ----------------------------------------------------- */

.sb-summary { padding: 18px 20px; border-bottom: 1px solid var(--sb-rule); }
.sb-summary h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sb-muted); }
.sb-summary-when { font-size: 18px; font-weight: 500; }
.sb-summary-where { font-size: 14px; color: var(--sb-muted); margin-top: 2px; }
.sb-totals { padding: 16px 20px; border-top: 1px solid var(--sb-rule); }
.sb-total-row { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.sb-total-row.sb-total-grand { font-size: 17px; font-weight: 700; padding-top: 10px; }
.sb-fineprint { padding: 0 20px 8px; font-size: 12px; line-height: 18px; color: var(--sb-muted); }
.sb-fineprint a { color: var(--sb-muted); }

/* --- confirmation --------------------------------------------------------- */

.sb-confirm { padding: 40px 24px; text-align: center; }
.sb-confirm-tick {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--sb-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.sb-confirm h2 { margin: 0 0 8px; font-size: 26px; font-weight: 400; }
.sb-confirm p { margin: 0 0 6px; font-size: 15px; color: var(--sb-muted); }
.sb-confirm-card {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--sb-rule);
  border-radius: 6px;
  text-align: left;
}

/* --- misc ----------------------------------------------------------------- */

/* Shown when a backend call fails. Without this a rejected promise left the
   drawer spinning forever with no message and no way back. */
.sb-failure {
  position: relative;
  margin: 12px 16px;
  padding: 12px 34px 12px 14px;
  background: #fce8e6;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #8c1d18;
}
.sb-failure p { margin: 0 0 8px; }
.sb-failure button {
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #8c1d18;
  background: none;
  color: #8c1d18;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
}
.sb-failure button:hover { background: rgba(140, 29, 24, 0.08); }
.sb-failure .sb-failure-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  padding: 2px 6px;
  font-size: 17px;
  line-height: 1;
}

.sb-spinner { padding: 60px 20px; display: flex; justify-content: center; }
.sb-spinner i {
  width: 28px; height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--sb-brand);
  border-radius: 50%;
  animation: sb-spin 0.8s linear infinite;
  display: block;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }

/* QA-only banner corner flag. Never shipped to production (CONFIG.envFlag). */
.sb-env-flag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
}
.sb-env-flag--mock { background: #ffd400; color: #000; }
.sb-env-flag--live { background: #c62828; color: #fff; }

/* --- cart-item editor ------------------------------------------------------ */

.sb-cart-line--link { cursor: pointer; }
.sb-cart-line--link:hover .sb-cart-line-name,
.sb-cart-line--link:focus-visible .sb-cart-line-name { text-decoration: underline; }
.sb-cart-line--link:focus-visible { outline: 2px solid var(--sb-brand); outline-offset: -2px; }

.sb-staff-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}
.sb-staff-badge {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sb-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-staff-name { flex: 1; font-size: 15px; }
.sb-staff-price { font-size: 15px; }

.sb-actions-split { display: flex; gap: 12px; align-items: center; }

/* Checkout identity step: a normal in-form row, not the sticky bottom bar. */
.sb-root [hidden] { display: none !important; }
.sb-id-step { padding-top: 8px; }
.sb-id-step .sb-actions {
  position: static; padding: 0; margin: 0;
  flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
}
.sb-id-step .sb-actions .sb-btn { width: auto; }
.sb-id-step .sb-hint-left { padding: 0; }
.sb-id-step a { color: var(--sb-brand); text-decoration: underline; }
.sb-actions-split .sb-btn { width: auto; flex: 1; }

/* --- checkout info blocks -------------------------------------------------- */

.sb-holdnote {
  margin: 16px 20px 4px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 6px;
}
.sb-holdnote h4 { margin: 0 0 6px; font-size: 14px; }
.sb-holdnote p { margin: 0; font-size: 13px; line-height: 19px; color: #444; }

.sb-policy { margin: 14px 20px 0; }
.sb-policy h4 {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #545454;
}
.sb-policy p { margin: 0; font-size: 12px; line-height: 18px; color: #666; }

.sb-field-hint {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: #757575;
}
.sb-hint-left { padding: 0 20px; text-align: left; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 560px) {
  .sb-root { --sb-width: 100%; }
  .sb-drawer { height: 100dvh; }
  .sb-dismiss { color: #fff; top: 4px; right: 4px; }
  .sb-btn-narrow, .sb-btn-outline-wide, .sb-time, .sb-input-narrow { width: 100%; }
  .sb-actions-split .sb-btn { width: auto; }
  /* iOS zooms any focused input under 16px — keep fields at 16px on phones. */
  .sb-input, select.sb-input, textarea.sb-input { font-size: 16px; }
  /* Stacked identity / card rows; side-by-side is too tight at 375px. */
  .sb-field-row { flex-wrap: wrap; }
  .sb-field-row .sb-field { flex: 1 1 100%; }
  /* Thumb-sized targets. */
  .sb-row--nav, .sb-addon-toggle, .sb-day, .sb-time, .sb-gc-amount { min-height: 44px; }
  .sb-btn { min-height: 44px; }
  /* Keep the primary action reachable above the home indicator. */
  .sb-body { padding-bottom: env(safe-area-inset-bottom, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-drawer, .sb-scrim, .sb-dismiss { transition: none; }
  .sb-spinner i { animation-duration: 2s; }
}

/* --- gift card ------------------------------------------------------------ */

.sb-gc-message {
  margin: 0;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--sb-muted);
  border-bottom: 1px solid var(--sb-rule);
  white-space: pre-line;
}
.sb-gc-section { padding: 16px 20px 4px; }
.sb-gc-section h4 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.sb-gc-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sb-gc-amount {
  font-family: inherit;
  font-size: 15px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 2px solid var(--sb-brand);
  background: none;
  cursor: pointer;
}
.sb-gc-amount.sb-selected { background: var(--sb-brand); color: #fff; }
.sb-gc-designs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 8px;
}
.sb-gc-design {
  aspect-ratio: 8 / 5;
  border: 2px solid transparent;
  border-radius: 8px;
  background-size: cover;
  background-position: 50% 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.sb-gc-design span { font-size: 13px; color: #6b4d3f; mix-blend-mode: multiply; }
.sb-gc-design.sb-selected { border-color: var(--sb-brand); box-shadow: 0 0 0 2px #fff inset; }

/* --- promo / referral code ------------------------------------------------ */

.sb-promo { padding: 4px 20px 14px; }
.sb-promo-row { display: flex; gap: 8px; }
.sb-promo-row .sb-input { flex: 1 1 auto; }
.sb-promo-row .sb-btn { height: 42px; padding: 0 18px; flex: 0 0 auto; }
.sb-promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef7ee;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
}
.sb-promo-applied button {
  border: 0; background: none; cursor: pointer;
  font-size: 13px; text-decoration: underline; color: var(--sb-muted);
}

/* --- referral ad ---------------------------------------------------------- */

.sb-referral {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--sb-rule);
  border-radius: 6px;
  text-align: left;
}
.sb-referral-tag { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.sb-referral p { margin: 0 0 10px; font-size: 13px; line-height: 19px; color: var(--sb-muted); }
.sb-referral a { color: var(--sb-ink); font-size: 14px; }

/* --- month picker --------------------------------------------------------- */

.sb-month { border-bottom: 1px solid var(--sb-rule); padding: 12px 20px 16px; }
.sb-month-block { margin-bottom: 14px; }
.sb-month-block h5 { margin: 8px 0; font-size: 14px; font-weight: 700; }
.sb-month-dow, .sb-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.sb-month-dow span { font-size: 11px; color: var(--sb-muted); padding: 2px 0; }
.sb-month-day {
  font-family: inherit;
  font-size: 13px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.sb-month-day:hover:not(:disabled) { background: var(--sb-hover); }
.sb-month-day.sb-selected { background: var(--sb-brand); color: #fff; }
.sb-month-day:disabled { color: #c9c9c9; cursor: default; }
