/* 2026-08-26 fix — a long unbroken string (e.g. an encoded link glued
   into a message body) was spilling text outside its container and past
   the edge of the screen. App-wide containment: nothing can force the
   page itself to scroll sideways, and any text that would normally
   overflow (long words/URLs/log entries) wraps and breaks instead. */
* { box-sizing: border-box; overflow-wrap: break-word; }
:root {
  --bg: #FAF9F5;
  --surface: #F1EFE7;
  --border: #E7E4DC;
  --ink: #1B1B18;
  --muted: #6B685F;
  --muted-2: #9A968A;
  --accent: #1F5B4E;
  --accent-dark: #163F36;
  --warn: #B8860B;
}
html, body { margin: 0; padding: 0; background: #ECE9DE; overflow-x: hidden; }
body {
  font-family: 'Heebo', system-ui, sans-serif;
  direction: rtl;
  color: var(--ink);
  display: flex;
  justify-content: center;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-logo { width: 56px; height: 56px; animation: loading-pulse 1.4s ease-in-out infinite; }
@keyframes loading-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

#app { width: 100%; max-width: 480px; background: var(--bg); min-height: 100vh; position: relative; }
.phone-shadow { box-shadow: 0 0 40px rgba(0,0,0,0.06); }

/* Shown only to the business owner himself, when he opens this public page
   while logged into /admin in the same browser (see checkOwnerViewing() in
   app.js) — a real customer never has the admin session cookie, so this
   never renders for them. */
.owner-back-btn {
  position: absolute; top: 12px; right: 12px; z-index: 20;
  background: rgba(27,27,24,0.55); color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.owner-back-btn:hover { background: rgba(27,27,24,0.75); color: #fff; }

/* Header: business name/address/icon-row overlaid directly on the cover
   photo (Calmark-style — see AskUserQuestion confirmation), rather than
   below it. Falls back to the original green gradient when the owner
   hasn't uploaded a cover photo yet (business_cover_image empty — see
   Settings › "תמונת רקע בעמוד הלקוחות"). */
.header-cover {
  position: relative; width: 100%; min-height: 230px;
  background: linear-gradient(135deg, #22685A 0%, #163F36 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.header-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.6) 100%);
}
.header-overlay { position: relative; z-index: 1; width: 100%; padding: 0 22px 20px; }
/* 2026-09-02 — back/home navigation on the personal appointment page
   (my.html), which previously had no way to leave it at all. Sits over
   the header cover like the existing round contact icon-buttons, so it
   reads as part of the same visual language rather than a bolted-on bar. */
.my-page-nav {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; gap: 8px;
}
.my-page-nav button {
  background: rgba(255,255,255,0.94); border: none; border-radius: 999px;
  min-height: 34px; padding: 0 14px; font-size: 12px; font-weight: 700;
  color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer;
}
.biz-name { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.biz-sub { font-size: 13px; color: rgba(255,255,255,0.88); text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.contact-row { display: flex; gap: 10px; margin-top: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: none;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.94);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.cta-wrap { padding: 22px; }
/* 2026-08-30 design refresh ("רך ועגול" — option B, approved by ניתאי):
   pill-shaped, slightly taller, soft brand-tinted shadow. Same colors. */
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 16px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.cta-btn:hover { background: var(--accent-dark); }

.section { padding: 0 22px; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title-row h2 { margin: 0; font-size: 16px; font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-cell { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg,#DAD5C6,#C7C1AE); position: relative; }
.gallery-cell.count { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(160deg,#B9B3A0,#9E9884); }

/* 2026-09-01 — auto-rotating "coverflow" carousel: one enlarged centered
   slide with the neighboring slides peeking in on each side, replacing
   the old static gallery grid entirely, and (only in the products
   section's "הכל" view — see isCompactProductsView in app.js) replacing
   the old one-card-per-category teaser row. JS (initCoverflow in app.js)
   owns positioning entirely via the prev/active/next classes below; this
   just defines each state's look. Shared between the gallery and the
   products views (#galleryCoverflow / #productsCoverflow) since both
   want the identical look and feel.
*/
.coverflow { position: relative; height: 190px; }
/* 2026-09-01 — slowed to a calmer, more "premium" pace per ניתאי's
   feedback: a longer duration on a gentle ease-in-out curve, plus a real
   opacity fade (not just the side-slide dimming) so an entering slide
   visibly brightens into place instead of just sliding over. */
.coverflow-slide {
  position: absolute; top: 0; right: 50%; width: 62%; max-width: 230px; height: 100%;
  cursor: pointer; transition: transform .7s cubic-bezier(.65,0,.35,1), opacity .7s cubic-bezier(.65,0,.35,1), filter .7s cubic-bezier(.65,0,.35,1);
}
.coverflow-slide.active { transform: translateX(50%) scale(1); z-index: 2; opacity: 1; filter: none; }
.coverflow-slide.prev { transform: translateX(122%) scale(.78); z-index: 1; opacity: .4; filter: brightness(.85); }
.coverflow-slide.next { transform: translateX(-22%) scale(.78); z-index: 1; opacity: .4; filter: brightness(.85); }
.coverflow-slide-img {
  width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(160deg,#DAD5C6,#C7C1AE);
  background-size: cover; background-position: center; box-shadow: var(--shadow-card);
}
/* 2026-09-01 fix — product packaging isn't square like a gallery photo,
   so "cover" was cropping deep into the bottle/box (ניתאי: "התמונה
   מוגדלת מדי"). "contain" on a neutral surface shows the whole product,
   the same way its thumbnail already looks in the old product cards.
   2026-09 fix — product photos now have their white studio background
   removed (transparent PNG, see admin/sections/catalog.js), so the
   product sits directly on this same surface color with no visible
   edge at all; box-shadow:none because a rectangular drop shadow behind
   a transparent image would draw exactly the "white box" outline effect
   ניתאי asked to get rid of. */
#productsCoverflow .coverflow-slide-img {
  height: calc(100% - 26px); background-color: var(--surface); background-size: contain; background-repeat: no-repeat; box-shadow: none;
}
.coverflow-slide-name {
  margin-top: 6px; font-size: 13px; font-weight: 600; text-align: center; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

.reviews-teaser { padding: 20px 22px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.reviews-teaser .stars { color: #E8B923; }

.products-block { margin: 28px 22px 0; padding: 18px; border-radius: 8px; background: var(--surface); }
.products-block h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.product-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 6px; padding: 10px; border: 1px solid var(--border); }
.product-row + .product-row { margin-top: 10px; }
.product-thumb { width: 52px; height: 52px; border-radius: 6px; background: linear-gradient(160deg,#E4E0D3,#CFC9B8); flex-shrink: 0; }
.product-info { flex: 1; }
.product-info .name { font-weight: 600; font-size: 14px; }
.product-info .product-desc { font-size: 12px; color: var(--muted); margin: 3px 0; line-height: 1.4; }
.product-info .price { font-size: 13px; color: var(--muted); }
.order-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; }
.order-btn.done { background: var(--accent); color: #fff; }

/* 2026-08-26 (round 2) — ניתאי's homepage was getting too long once he
   listed enough products. The "הכל" view is now a compact one-card-per-
   category teaser in a single horizontally-scrolling row (his own "הזזה
   לצדדים" idea) instead of a growing vertical list — it costs zero extra
   page height no matter how many categories/products get added later.
   Picking an actual category tab still falls back to the original full
   .product-row vertical list (with descriptions) further down. */
.products-hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.products-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin: 0 -18px; padding-inline: 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.product-card {
  flex: 0 0 128px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px;
  box-shadow: var(--shadow-card);
}
.product-card-thumb { width: 100%; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(160deg,#E4E0D3,#CFC9B8); }
/* 2026-08-27 fix — ניתאי noticed the "הזמנה" button sat at a different
   height from card to card, depending on whether the product name
   wrapped to one line or two. min-height here reserves room for 2 lines
   ALWAYS (even a 1-line name), so price+button land at the same fixed
   spot on every card regardless of name length. */
.product-card-name { font-weight: 600; font-size: 13px; line-height: 1.3; min-height: calc(1.3em * 2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-price { font-size: 12px; color: var(--muted); }
.product-card .order-btn { margin-top: auto; }
.product-card .order-btn { width: 100%; min-height: 38px; padding: 0 8px; font-size: 12px; }

.services-wrap { padding: 28px 22px 0; }
.category-pills { display: flex; gap: 8px; margin-bottom: 14px; }
.category-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 700; border: none; background: var(--surface); color: #3A3833; }
.category-pill.active { background: var(--accent); color: #fff; }
/* 2026-08-30 design refresh ("רך ועגול" — option B, approved by ניתאי):
   each service is now its own soft rounded card with a small gap below it,
   instead of a flat list row separated by a bottom border. */
.service-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  margin: 0 0 10px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer; transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.service-row:last-child { margin-bottom: 0; }
.service-row .name { font-weight: 600; font-size: 14px; }
.service-row .dur { font-size: 12px; color: var(--muted); }
.service-row-price { font-weight: 700; font-size: 14px; }
/* Whole row fills with the app's accent color once picked (Task 8) —
   not just the small "בחר" button — and the row itself is the click
   target, not only the button. */
.service-row.picked { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.service-row.picked .dur { color: rgba(255,255,255,0.75); }
.pick-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; border: none; pointer-events: none; }
.pick-btn.checked { background: rgba(255,255,255,0.22); }

/* ---- Review-reminder card for returning customers (Task C) ---- */
.pending-review-card { text-align: center; padding: 22px 18px; background: var(--surface); border-radius: 10px; border: 1px solid var(--border); }
/* "התור הבא שלך" hero (2026-08-31) — same card shell, bigger date/time headline */
.upcoming-hero-datetime { margin: 6px 0 4px; }
.upcoming-hero-date { font-size: 13px; font-weight: 700; color: var(--muted); }
.upcoming-hero-time { font-size: 30px; font-weight: 800; color: var(--accent-dark); line-height: 1.2; }
.pending-review-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.pending-review-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.pending-review-card .review-stars { justify-content: center; }
.pending-review-card textarea { width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; font-family: inherit; resize: vertical; margin: 10px 0; }

.booking-panel { margin: 24px 22px 0; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.progress-row { display: flex; align-items: center; margin-bottom: 22px; }
.progress-step { display: flex; align-items: center; flex: 1; }
.progress-circle { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.progress-label { font-size: 11px; font-weight: 600; white-space: nowrap; margin-top: 4px; text-align: center; }
.progress-col { display: flex; flex-direction: column; align-items: center; gap: 0; flex-shrink: 0; }
.progress-line { flex: 1; height: 2px; margin: 0 6px 16px; }

.chip-summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 18px; font-size: 13px; }
.chip-summary button { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; font-family: inherit;
}
.field textarea { padding: 10px 14px; min-height: 64px; resize: vertical; }
.step-actions { display: flex; gap: 8px; margin-top: 14px; }

.calendar-head { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; min-height: 32px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; }
.month-nav-btn:disabled { opacity: .35; cursor: default; }
.calendar-loading { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.weekday-grid, .day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekday-grid { margin-bottom: 6px; }
.weekday-grid div { text-align: center; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.day-cell { aspect-ratio: 1; min-height: 40px; border-radius: 999px; font-size: 13px; font-weight: 600; border: none; background: transparent; color: var(--muted-2); }
.day-cell.open { background: rgba(31,91,78,0.14); color: var(--accent); }
.day-cell.selected { background: var(--accent); color: #fff; }
/* 2026-08-31 request — a fully-booked day that WAS open for business (as
   opposed to a plain day off) now reads as an inviting green tile with its
   own label instead of a muted grey circle, so a customer can tell at a
   glance "this day has a waitlist" before tapping in. */
.day-cell.full {
  background: var(--accent); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; box-shadow: var(--shadow-card, none);
}
.day-cell.full .day-num { font-size: 13px; font-weight: 700; }
.day-cell.full .day-wait-label { font-size: 7px; font-weight: 700; margin-top: 1px; letter-spacing: -.2px; }
.day-cell.disabled { background: transparent; color: var(--muted-2); opacity: .4; }
.day-cell.empty { visibility: hidden; }
/* Today gets a circle outline regardless of its open/full/disabled state,
   so the visitor always sees where "today" is on the grid. */
.day-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day-cell.today.selected { box-shadow: inset 0 0 0 2px #fff; }

/* 2026-08-27 — ניתאי asked to flip the emphasis in this header row: the
   actionable "תאריך אחר" / "שעה אחרת" back-button was small plain text,
   easy to miss as something you can tap, while the already-picked
   date/time label next to it (a static fact, not an action) was the bold
   prominent one. Swapped both the visual weight AND the physical side
   (button first in DOM = right side in this RTL layout, per his sketch)
   so the thing people actually want to tap — go back and pick something
   else — reads as the obvious button, and the already-chosen date/time
   is now a smaller supporting label beside it. */
.time-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.time-head .back {
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 7px 16px; border-radius: 999px; flex-shrink: 0;
}
.time-head .calendar-head { font-size: 12px; font-weight: 500; color: var(--muted); }
.time-head .calendar-head-stack { flex: 1; text-align: center; min-width: 0; }
.time-head .calendar-head-title { font-size: 13px; font-weight: 700; }
.time-head .calendar-head-date { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-slot { min-height: 44px; border-radius: 12px; font-size: 13px; font-weight: 600; border: none; background: var(--bg); }
.time-slot.selected { background: var(--accent); color: #fff; }
.time-slot.taken { background: transparent; color: var(--muted-2); opacity: .45; }

.full-notice { text-align: center; padding: 28px 16px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.full-notice .title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.full-notice .desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.waitlist-btn { min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; border: none; box-shadow: var(--shadow-soft); }
.waitlist-joined { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 700; }

.personal-note { background: var(--bg); border-radius: 8px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--border); font-size: 14px; line-height: 1.7; font-style: italic; }
.summary-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--bg); border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--border); }
.summary-box .row { display: flex; justify-content: space-between; font-size: 13px; }
.summary-box .row span:first-child { color: var(--muted); }

.confirm-btn { width: 100%; min-height: 52px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; border: none; box-shadow: var(--shadow-soft); }
.confirm-btn:disabled { opacity: .5; }
.hint-below { font-size: 11px; color: var(--muted-2); margin-top: 8px; text-align: center; }

/* Post-booking confirmation as a dedicated "next page" (Task 1) — its
   own full screen with a slim top bar, rather than a section the
   visitor gets scrolled to within the long homepage. See render()'s
   state.step===5 branch. */
.done-screen { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.done-screen-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.done-screen-back { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.done-screen-brand { font-size: 13px; font-weight: 700; color: var(--muted); }
.done-screen-body { flex: 1; padding: 22px; }

.done-box { text-align: center; padding: 12px 4px; }
.done-check { width: 52px; height: 52px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.done-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.done-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
/* Short, admin-editable hidden-link phrase (e.g. "לעדכון התור") instead
   of exposing the raw personal-link URL (Task 12). */
.link-box { background: var(--bg); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px; font-size: 13px; text-align: center; margin-bottom: 14px; }
.link-box a { font-weight: 700; }

.cancel-policy-notice {
  background: #FCF3DC; border: 1px solid var(--warn); color: #6B520C; border-radius: 8px;
  padding: 12px 14px; font-size: 12px; line-height: 1.6; text-align: right; margin-bottom: 14px;
  text-wrap: pretty; /* Task 9 — the last word never drops to its own line alone */
}

/* 2026-09-01 — homepage announcement banner (settings.js "הודעה
   ללקוחות"), rendered right under the header cover so it's the first
   thing a visitor sees. Same warm-warning palette as .cancel-policy-notice
   above (this app has no separate "info" color), rounded to match the
   soft-card redesign. */
.announcement-banner {
  background: #FCF3DC; border: 1px solid var(--warn); color: #6B520C; border-radius: 16px;
  box-shadow: var(--shadow-soft); padding: 14px 16px; font-size: 13.5px; line-height: 1.6;
  text-align: center; font-weight: 600; white-space: pre-line;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* Optional "לדבר עם יובל" WhatsApp button under the banner text — same
   pill shape as the rest of the redesigned buttons (theme.css .btn),
   just sized down and colored to sit on the banner's warm background. */
.announcement-banner-btn {
  display: inline-block; background: var(--warn); color: #fff; font-weight: 700;
  font-size: 13px; padding: 9px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.calendar-add-card, .early-waitlist-card {
  background: var(--surface); border-radius: 10px; padding: 16px; margin-bottom: 14px; text-align: right;
}
.calendar-add-title, .early-waitlist-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.early-waitlist-desc { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.calendar-add-row { display: flex; gap: 8px; margin-top: 10px; }
.calendar-add-btn {
  flex: 1; min-height: 42px; border-radius: 12px; background: var(--card-bg, #fff); border: 1px solid var(--border);
  color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; display: flex; align-items: center; justify-content: center;
}
.calendar-add-btn:hover { background: var(--bg); color: var(--ink); }

.time-pref-chips { display: flex; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.time-pref-chip {
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600;
}
.time-pref-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.flex-date-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 14px; cursor: pointer; }
.flex-date-check input { width: 16px; height: 16px; }

.done-actions-row { display: flex; gap: 8px; margin-top: 16px; }
.done-actions-row .waitlist-btn, .done-actions-row .order-cancel-btn { flex: 1; }

.reviews-section { padding: 32px 22px 40px; }
.review-card { border-radius: 6px; padding: 14px; background: var(--surface); font-size: 13px; line-height: 1.6; color: #3A3833; }
.review-card + .review-card { margin-top: 10px; }

.review-box { background: var(--surface); border-radius: 10px; padding: 16px; margin: 16px 0; text-align: right; }
.review-box-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.review-stars { display: flex; gap: 4px; margin-bottom: 10px; }
.review-star { background: none; border: none; font-size: 26px; color: var(--border); line-height: 1; padding: 2px; }
.review-star.on { color: #E8B923; }
.review-box textarea { width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; font-family: inherit; resize: vertical; margin-bottom: 10px; }
.review-thanks { font-size: 14px; font-weight: 700; color: var(--accent); text-align: center; padding: 8px 0; }

.popup-backdrop { position: fixed; inset: 0; background: rgba(27,27,24,0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 20; }
.popup-card { width: 100%; max-width: 320px; background: var(--bg); border-radius: 12px; padding: 22px; position: relative; }
.popup-close { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; border: none; }
.popup-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; margin-top: 6px; }
.popup-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.popup-cta { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-soft); }

.review-prompt-backdrop { position: fixed; inset: 0; background: rgba(27,27,24,0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 25; }
.review-prompt-card { width: 100%; max-width: 320px; background: var(--bg); border-radius: 12px; padding: 22px; position: relative; text-align: center; }
.review-prompt-card .review-stars { justify-content: center; }
.review-prompt-text { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.review-prompt-card textarea { width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; font-family: inherit; resize: vertical; margin-bottom: 12px; }
.review-prompt-card .waitlist-btn { width: 100%; margin-bottom: 8px; }
.review-prompt-skip { background: none; border: none; font-size: 13px; color: var(--muted); text-decoration: underline; padding: 6px; }

.error-banner { margin: 12px 22px; padding: 10px 14px; border-radius: 6px; background: #FBE9E9; color: #8A2E2E; font-size: 13px; }

/* ---- Contact-step field-level validation (Task #36) — red border AND a
   faint red tint on the field itself, not just an outline, so the error
   reads at a glance without leaning in to look for a thin colored line. */
.input-invalid { border-color: #C0392B !important; background: #FBEAEA !important; box-shadow: 0 0 0 1px #C0392B; }
.field-error { font-size: 12px; color: #C0392B; margin-top: -2px; }
.cta-btn { transition: opacity .15s ease, background-color .15s ease; }

/* ---- Products: inline contact prompt + order confirmation message ---- */
.order-contact-prompt { margin-top: 14px; padding: 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.order-contact-prompt .title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.order-contact-prompt .order-explain { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.order-contact-prompt .actions-row { display: flex; gap: 8px; margin-top: 4px; }
.order-cancel-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1.5px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600; }
.order-msg { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); text-align: center; }

/* ---- Gallery lightbox ---- */
.gallery-cell { cursor: pointer; }
.lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: fixed; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.22); }
.lightbox-arrow.left { left: 12px; }
.lightbox-arrow.right { right: 12px; }
.lightbox-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff;
  font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 999px;
  direction: ltr; unicode-bidi: isolate; /* page is RTL — without this "2 / 7" visually renders as "7 / 2" */
}

/* ---- Phone-verification modal (2026-09-02) — WhatsApp OTP gate before
   letting the "upcoming appointment" card open a self-service reschedule/
   cancel screen. See customer/app.js openVerifyModal(). ---- */
.verify-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.verify-modal-card {
  position: relative; background: var(--card-bg, #fff); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 20px 20px; max-width: 340px; width: 100%; text-align: center;
}
.verify-modal-card .field input {
  text-align: center; font-size: 22px; letter-spacing: 6px; font-weight: 700;
}

@media (max-width: 480px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 22px; }
}
