/* דף ההזמנה ללקוח (/b/<slug>). הגופן והסולמות מ-tokens.css (נטען לפני הקובץ הזה); הצבעים מהמיתוג של העסק:
   applyBrand ב-js/book/shared.js כותב את המשתנים שלמטה על html, והערכים כאן הם רק ברירת המחדל לפני שהמיתוג נטען. */
:root { --accent-text:#2B5EC8; --focus-ring:#1E4597; --focus-ring-inner:#FFFFFF; --bg:#F6F7FA; --card:#FFFFFF; --card-2:#EDF0F5; --line:#E3E7EE; --line-2:#CFD6E0; --text:#182438; --text-2:#435168; --muted:#647187; --accent:#2B5EC8; --accent-ink:#FFFFFF; --accent-fill:#2B5EC8; --accent-fill-ink:#FFFFFF; --danger:#AD3447; --brand-primary:#203D61; --brand-ink:#FFFFFF;
  /* צבעי מצב (לא של העסק): שגיאה, הצלחה, ממתין, כפתור מושבת, ומחיקה */
  --err-ink:#942D40; --err-bg:#FFF0F2; --err-line:#F4D5DC; --ok-ink:#2D684A; --ok-bg:#EAF5EF; --warn-ink:#855E13; --warn-bg:#FFF4DF;
  --disabled-ink:#6D7889; --danger-solid:#C0392B;
  /* צל כלפי מעלה לפס התחתון וללשוניות (בסולם --sh-* אין צל כזה) */
  --sh-up: 0 -4px 24px rgba(29, 42, 64, .03); --booking-shell-width: 640px; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light dark; }
}

/* ---------- בסיס ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.55; overflow-x: clip; }
body { background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--bg); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
button:active:not(:disabled) { transform: translateY(1px); }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
/* טבעת מיקוד בשני צבעים: קו חיצוני (3:1 מול רקע הדף ומול הכרטיס, מחושב ב-applyBrand) וקו פנימי מנוגד לו */
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring-inner); }
/* כותרת המסך מקבלת מיקוד אחרי מעבר שלב (לקוראי מסך), בלי מסגרת */
h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* טקסט שהעסק כתב (dir="auto", יכול להיות באנגלית בעמוד בעברית): כיוון לפי הטקסט, היישור לפי ההורה */
:where([dir="auto"]) { text-align: match-parent; }
/* דף ההזמנה בעברית: שדה שנכתב משמאל לימין (טלפון, דוא״ל, מספרים) מיושר לימין כמו שאר השדות. בלי משקל (where), כך שרכיב שממרכז שדה נשאר ממורכז */
:where(html[dir="rtl"]) :where(input[dir="ltr"]:not([type="checkbox"]):not([type="radio"]):not([type="range"])) { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "דילוג לתוכן": מוסתר עד שמגיעים אליו ב-Tab. צבעים קבועים (לא של העסק), 4.5:1 ומעלה על כל רקע */
.skip-link { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 100; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 20px; background: #FFFFFF; color: #182438; border-radius: 10px; font-weight: 700; text-decoration: underline; box-shadow: 0 4px 16px rgba(16, 24, 40, .25); }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- פריסה ---------- */
/* ריווח בתחתית הדף לפי הגובה בפועל של הפס התחתון / הלשוניות (--bottom-ui, נמדד ב-shared.js), לא פחות מהריווח הקבוע */
.shell { max-width: var(--booking-shell-width); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: var(--sp-6);
  padding: calc(var(--sp-8) + env(safe-area-inset-top, 0px)) calc(var(--sp-8) + env(safe-area-inset-right, 0px)) max(calc(112px + env(safe-area-inset-bottom, 0px)), calc(var(--bottom-ui, 0px) + var(--sp-5))) calc(var(--sp-8) + env(safe-area-inset-left, 0px)); }
@media (max-width: 440px) {
  .shell { padding: calc(var(--sp-5) + env(safe-area-inset-top, 0px)) calc(var(--sp-5) + env(safe-area-inset-right, 0px)) max(calc(106px + env(safe-area-inset-bottom, 0px)), calc(var(--bottom-ui, 0px) + var(--sp-5))) calc(var(--sp-5) + env(safe-area-inset-left, 0px)); gap: var(--sp-5); }
}
/* במחשב התוכן והניווט חולקים מעטפת רחבה; מסכים צרים והטמעה שומרים על הפריסה שלהם. */
@media (min-width: 900px) {
  :root { --booking-shell-width: 1200px; }
}
.serif { font-family: inherit; font-weight: 700; letter-spacing: -.5px; }
.head { display: flex; align-items: center; gap: var(--sp-3); }
.grow { flex-grow: 1; min-width: 0; }
.small { font-size: var(--fs-sm); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- כותרת העסק ולוגו ---------- */
.logo { width: 58px; height: 58px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xl); flex-shrink: 0; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
/* בלי שורה מעל הלוגו (T-082: בורר השפה ירד ממסך הבית, והשורה של 38px שהייתה שמורה לו יצאה איתו) */
.business-header { --logo-base: 160px; position: relative; padding: 0; margin-bottom: 0; align-items: flex-end; gap: var(--sp-4); }
.business-header .logo { width: calc(var(--logo-base) * var(--logo-scale, 1)); height: calc(var(--logo-base) * var(--logo-scale, 1)); font-size: calc(var(--logo-base) * .4 * var(--logo-scale, 1)); }
.business-header .logo:has(img) { border: 0; border-radius: 0; background: transparent; overflow: visible; }
/* לוגו שנחתכו ממנו השוליים הריקים: המסגרת בדיוק בגבולות הציור (היחס שלו), בגודל המקסימלי שנבחר */
.business-header .logo.logo-trimmed { position: relative; overflow: hidden; display: block;
  width: calc(var(--logo-base) * var(--logo-scale, 1) * min(1, var(--logo-ar, 1)));
  height: calc(var(--logo-base) * var(--logo-scale, 1) * min(1, 1 / var(--logo-ar, 1))); }
/* לוגו חסר: עיגול קטן בצבע המותג עם האות הראשונה, במקום ריבוע לבן ענק */
.business-header .logo:not(:has(img)) { width: calc(64px * var(--logo-scale, 1)); height: calc(64px * var(--logo-scale, 1)); font-size: calc(28px * var(--logo-scale, 1)); border-radius: 50%; border: 0; background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
/* השם מיושר לקו התחתון של הלוגו בכל גודל, עם מרווח קבוע מהלוגו */
.business-header > .grow { min-width: 0; padding-bottom: 0; }
/* מיקום הלוגו ביחס לשם העסק (הגדרות האפליקציה ← מיתוג): start = מימין לשם (ברירת המחדל), end = משמאל לשם, top = במרכז מעל השם, below-* = מתחת לשם */
.business-header.logo-end > .grow { order: 0; flex: 0 1 auto; }
.business-header.logo-end > .logo { order: 1; }
.business-header.logo-top { flex-direction: column; align-items: center; text-align: center; position: relative; gap: var(--sp-4); }
.business-header.logo-top > .grow { flex: none; margin-inline: 0 !important; padding-bottom: 0 !important; }
/* מתחת לשם העסק (T-076): עמודה, השם ראשון והלוגו מתחתיו (U76-5), והלוגו בצד שנבחר. המרחק כמו במבנה "מעל השם":
   16px בכל רוחב (U76-29). הצדדים לוגיים: בעברית below-start הוא ימין, ובדף שתורגם לשפה משמאל לימין הוא שמאל */
.business-header.logo-below-start, .business-header.logo-below-end, .business-header.logo-below-center { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.business-header.logo-below-end > .logo { align-self: flex-end; }
.business-header.logo-below-center > .logo { align-self: center; }
.business-header.logo-below-start > .grow, .business-header.logo-below-end > .grow, .business-header.logo-below-center > .grow { flex: none; max-width: 100%; margin-inline: 0 !important; padding-bottom: 0 !important; }
/* יישור שם העסק (branding.nameAlign, החלטה 521, U76-19 עד U76-21). תמיד יש מחלקה: היישור שבחרו, או ברירת המחדל של המיקום,
   שנראית בדיוק כמו היום. לוגי כמו המיקום. ליד השם השורה כולה זזה (השם והלוגו כגוש); מעל או מתחת רק השם זז */
.business-header.name-start > .grow { text-align: start; }
.business-header.name-center > .grow { text-align: center; }
.business-header.name-end > .grow { text-align: end; }
.business-header.logo-start.name-center, .business-header.logo-end.name-center { justify-content: center; }
.business-header.logo-start.name-end, .business-header.logo-end.name-end { justify-content: flex-end; }
.business-header.logo-start.name-center > .grow, .business-header.logo-start.name-end > .grow { flex: 0 1 auto; }
.business-header.logo-top > .grow, .business-header.logo-below-start > .grow, .business-header.logo-below-end > .grow, .business-header.logo-below-center > .grow { align-self: stretch; }
/* שם בשפה אחרת (dir="auto", למשל שם באנגלית בעמוד עברי) מתיישר לפי הבחירה ולפי כיוון הדף, לא לפי השפה שלו (U76-6).
   Chrome מכיר רק את הגרסה עם הקידומת, Firefox ו-Safari את התקנית */
.business-header.logo-top .business-name, .business-header.logo-below-start .business-name, .business-header.logo-below-end .business-name, .business-header.logo-below-center .business-name { text-align: -webkit-match-parent; text-align: match-parent; }
/* המרחק בין השם ללוגו (branding.logoGap, U76-29): צמוד = חצי מהיום, מרווח = פי שניים. רגיל = בלי מחלקה, המרחק של היום.
   ליד השם: 8 / 32 מעל 440px, ו-4 / 24 עד 440px (בתוך המדיה למטה). מעל או מתחת לשם: 8 / 32 בכל רוחב */
.business-header.gap-tight { gap: var(--sp-2); }
.business-header.gap-wide { gap: var(--sp-8); }
/* שם ארוך בלי רווחים לא יוצר גלילה הצידה, בכל המבנים (U76-6, U76-24) */
.business-header .business-name { overflow-wrap: anywhere; }
/* לוגו רחב בעמודה לא עובר את רוחב הכותרת, והגובה נגזר מהיחס כדי שיקטן בלי להימתח (U76-7) */
.business-header.logo-top .logo, .business-header.logo-below-start .logo, .business-header.logo-below-end .logo, .business-header.logo-below-center .logo { max-width: 100%; }
.business-header.logo-top .logo.logo-trimmed, .business-header.logo-below-start .logo.logo-trimmed, .business-header.logo-below-end .logo.logo-trimmed, .business-header.logo-below-center .logo.logo-trimmed { height: auto; aspect-ratio: var(--logo-ar, 1); }
.business-name { font-size: var(--fs-xl); letter-spacing: -.3px; display: block; line-height: 1.1; }
.online-label { font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-3); white-space: nowrap; background: var(--card); }
@media (max-width: 440px) {
  .business-header { --logo-base: 96px; gap: var(--sp-3); }
  .business-header.gap-tight { gap: var(--sp-1); }
  .business-header.gap-wide { gap: var(--sp-6); }
  .business-header.logo-top.gap-tight, .business-header.logo-below-start.gap-tight, .business-header.logo-below-end.gap-tight, .business-header.logo-below-center.gap-tight { gap: var(--sp-2); }
  .business-header.logo-top.gap-wide, .business-header.logo-below-start.gap-wide, .business-header.logo-below-end.gap-wide, .business-header.logo-below-center.gap-wide { gap: var(--sp-8); }
  .online-label { display: none; }
}

/* ---------- בחירת שפה (T-082): כרטיס "שפה" בפרופיל ושורת השפות בתחתית מסך הבית ומסך הכניסה ---------- */
/* ארבעה כפתורים ברשת 2×2, ובטלפון צר או בהגדלה עמודה אחת (U-25). הנבחר: --accent-fill-ink על --accent-fill (4.5:1),
   ו--accent-fill מול הכרטיס (3:1), מ-brandColors. השם תמיד גלוי, וה-✓ והמשקל מסמנים גם בלי צבע. טבעת המיקוד הגלובלית לא נדרסת */
.lang-card { gap: var(--sp-3); }
.lang-card .lang-card-title { margin: 0; font-size: var(--fs-md); }
.lang-card p { margin: 0; }
.lang-dropdown { width: 100%; min-width: 0; min-height: var(--tap); }
.lang-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
@media (max-width: 360px) { .lang-options { grid-template-columns: 1fr; } }
.lang-option { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); width: 100%; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); color: var(--card-ink, var(--text)); font: inherit; font-size: var(--fs-md); font-weight: 500; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
.lang-option.on { background: var(--accent-fill); color: var(--accent-fill-ink); border-color: var(--accent-fill); font-weight: 700; }
.lang-option:disabled { cursor: default; }
.lang-check { display: inline-block; min-width: 1em; text-align: center; }
.lang-done { color: var(--card-ink, var(--text)); }
.lang-error { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.lang-error .ghost { width: auto; }
/* השורה בתחתית: כמו קישורי "הצהרת נגישות · מדיניות פרטיות" (--text-2 על רקע הדף), כל שם כפתור עם שטח לחיצה של 44px */
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--sp-1); }
.lang-row-btn { min-height: var(--tap); min-width: var(--tap); padding: var(--sp-2) var(--sp-2); border: 0; background: transparent; color: var(--text-2, var(--text)); font: inherit; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-1); }
.lang-row-sep { color: var(--muted); font-size: var(--fs-sm); }
.lang-flag { display: inline-flex; line-height: 0; }
.lang-flag svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.14); }

/* ---------- כרטיס הפתיחה ---------- */
.welcome-hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--sp-6); border-radius: var(--r-xl); background: var(--brand-primary); color: var(--brand-ink); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.welcome-hero::after { content: ''; width: 250px; height: 250px; position: absolute; left: -130px; top: -70px; border: 1px solid currentColor; border-radius: 50%; opacity: .1; box-shadow: 0 0 0 40px #ffffff18, 0 0 0 80px #ffffff0c; z-index: -1; }
.welcome-hero h1 { font-size: clamp(var(--fs-2xl), 6vw, var(--fs-3xl)); line-height: 1.14; letter-spacing: -1px; margin: var(--sp-2) 0; }
.welcome-hero p { margin: 0; max-width: 36ch; font-size: var(--fs-md); opacity: .9; }
.welcome-hero .cta { margin-top: var(--sp-2); }
.hero-eyebrow { font-size: var(--fs-sm); opacity: .85; }
.hero-account { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; width: 100%; }
.hero-logout { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border: 1px solid currentColor; border-radius: var(--r-md); background: transparent; color: inherit; font: inherit; cursor: pointer; }
/* קטע הפתיחה (T-077): בלי ברכה "התנתקות" נצמדת לצד הסוף; כשהכרטיס מוסתר, השורה של הלקוח המחובר יושבת על רקע הדף */
.hero-account.only-logout { justify-content: flex-end; }
.intro-account-row { color: var(--text); }
.hero-note { width: 100%; text-align: center; font-size: var(--fs-xs); }
.custom-text-color .hero-eyebrow, .custom-text-color .welcome-hero p { opacity: 1; }

/* ---------- כפתורים ---------- */
.cta { min-height: 54px; height: auto; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); border: 0; background: var(--button-bg, var(--accent)); color: var(--button-ink, var(--accent-ink)); font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: var(--sp-3); width: 100%; box-shadow: var(--sh-1); }
.cta:disabled { color: var(--disabled-ink); background: var(--line); box-shadow: none; cursor: default; }
.cta-arrow { margin-inline-start: auto; font-size: var(--fs-xl); line-height: 1; }
.danger-cta, .cta.danger-cta { background: var(--danger-solid); color: #fff; }
.danger-cta:hover { filter: brightness(.96); }
.ghost { min-height: 46px; height: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.ghost:not(.danger) { color: var(--card-ink); }
.ghost.danger { color: var(--danger); border-color: var(--err-line); }
.ghost:disabled { opacity: .5; cursor: not-allowed; }
.ghost.danger:disabled { background: var(--card-2); }
/* כפתור בזמן שליחה (aria-disabled, כדי שהמיקוד יישאר עליו) */
.ghost[aria-disabled="true"], .cta[aria-busy="true"] { opacity: .6; cursor: progress; }
.iconbtn { width: var(--tap); height: var(--tap); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
[dir="ltr"] .iconbtn svg { transform: scaleX(-1); }
.icon-btn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: var(--r-md); background: transparent; color: inherit; }
.link-btn { align-self: flex-start; min-height: var(--tap); padding: var(--sp-1) 2px; border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-sm); text-decoration: underline; cursor: pointer; opacity: .8; }
@media (max-width: 440px) { .bar .ghost, .card .ghost { min-height: var(--tap); } }

/* ---------- כרטיסים ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: var(--sh-1); }
/* כותרת כרטיס: מודגש ראשון. כותרת עם מחלקת גודל (heading / label-strong) שומרת על הגודל שלה */
.card > b:first-child:not(:where(.heading, .label-strong)) { font-size: var(--fs-xl); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-1); }
.section-heading h2, .contact-card h2 { font-size: var(--fs-xl); letter-spacing: -.3px; }
.contact-card { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.contact-card p { margin: 0; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.contact-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.contact-actions:empty { display: none; }
.contact-actions > * { flex: 1; }
.contact-address { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
@media (max-width: 440px) {
  .card, .contact-card { padding: var(--sp-5); }
  .contact-actions > * { flex: 1 1 calc(50% - var(--sp-3)); min-width: 140px; }
}

/* ---------- מסך הבית: תפריט ושירותים ---------- */
.home-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.home-action { min-height: 120px; padding: var(--sp-5) var(--sp-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); text-align: center; text-decoration: none; color: var(--menu-ink, var(--text)); background: var(--menu-bg, var(--card)); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: var(--fs-md); font-weight: 600; overflow-wrap: break-word; hyphens: none; }
.home-action:hover { border-color: var(--accent); background: var(--menu-bg, var(--card)); filter: brightness(.97); }
/* אייקון קו (SVG, currentColor) בצבע האייקונים מהמיתוג; לוגו של Waze / WhatsApp / Facebook / Instagram כתמונה */
.home-action-icon { --icon: 40px; display: inline-flex; line-height: 1; color: var(--menu-icon, var(--accent)); }
.home-action-icon svg { width: var(--icon); height: var(--icon); }
.home-action-brand { display: block; width: 46px; height: 46px; object-fit: contain; }
.home-action-brand.rounded { border-radius: var(--r-sm); }
/* קביעת תור: הפעולה הראשית בעמוד הבית, בולטת ובשורה מלאה */
.home-action.primary { grid-column: 1 / -1; min-height: 76px; flex-direction: row; gap: var(--sp-4); font-size: var(--fs-lg); font-weight: 700; background: var(--button-bg, var(--accent)); color: var(--button-ink, var(--accent-ink)); border-color: transparent; }
.home-action.primary .home-action-icon { --icon: 30px; color: inherit; }
.home-action.primary:hover { background: var(--button-bg, var(--accent)); filter: brightness(1.05); }
/* מבנה לפי משימות: כפתור קביעת התור הראשי בראש מסך הבית, והתור הקרוב מתחתיו */
.home-book { margin-block: var(--sp-1) 2px; font-size: var(--fs-lg); min-height: 58px; }
.home-book svg { flex: none; }
@media (max-width: 440px) {
  .home-actions { gap: var(--sp-3); }
  .home-action { min-height: 110px; padding: var(--sp-4) var(--sp-2); }
  .home-action-icon { --icon: 36px; }
}
@media (max-width: 360px) { .home-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-list { display: grid; gap: var(--sp-3); }
.service-card { display: flex; align-items: center; gap: var(--sp-4); width: 100%; padding: var(--sp-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: start; box-shadow: var(--sh-1); }
.service-card:hover, .option:hover:not(:disabled), .time:hover:not(:disabled) { border-color: var(--accent); }
.service-card b { display: block; font-size: var(--fs-lg); }
.service-number { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; flex-shrink: 0; }
.service-thumb { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; flex-shrink: 0; background: color-mix(in srgb, var(--accent) 10%, white); }
.service-description { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-1); overflow-wrap: anywhere; }
.duration { display: inline-block; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--card-ink, var(--muted)); background: color-mix(in srgb, var(--card-ink, #182438) 8%, var(--card)); padding: 2px var(--sp-2); border-radius: var(--r-sm); }
.service-price { font-size: var(--fs-xl); font-weight: 700; white-space: nowrap; }
.service-price.price-note, .option .price.price-note { font-size: var(--fs-sm); white-space: normal; max-width: 10em; overflow-wrap: anywhere; }
.booking-auth-context { gap: var(--sp-2); border-color: var(--line); box-shadow: none; }
.service-price span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-top: var(--sp-1); }
@media (max-width: 440px) {
  .service-card { gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); }
  .service-number { display: none; }
  .service-thumb { width: 56px; height: 56px; }
}
/* "המסלולים שלנו" (T-067): כרטיסים לא לחיצים וממורכזים. הטקסט בצבע הכרטיס (--card-ink), שהמערכת מבטיחה מולו 4.5:1,
   גם כשהדף כהה והכרטיס בהיר או להפך. התגית: --accent-fill-ink על --accent-fill (4.5:1), המסגרת --accent-fill (3:1 מול הכרטיס) */
.plans-section { display: grid; gap: var(--sp-3); }
.plans-section > p { margin: 0; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.plan-card { --text: var(--card-ink); --muted: var(--card-ink); color: var(--card-ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; box-shadow: var(--sh-1); min-width: 0; }
.plan-card > * { max-width: 100%; }
.plan-card.featured { border: 2px solid var(--accent-fill); }
.plan-badge { display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--accent-fill); color: var(--accent-fill-ink); font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.plan-tag { display: inline-block; padding: 2px var(--sp-3); border-radius: var(--r-pill); border: 1px solid currentColor; font-size: var(--fs-sm); font-weight: 700; }
.plan-name { margin: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.plan-desc { margin: 0; width: 100%; max-width: 36ch; font-size: var(--fs-md); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; text-align: start; }
.plan-desc.centered { text-align: center; text-wrap: balance; }
.plan-price { margin: 0; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; }
.plan-terms { margin: 0; font-size: var(--fs-sm); display: grid; gap: 2px; overflow-wrap: anywhere; }
.plan-terms p { margin: 0; }
.plan-book { margin-top: var(--sp-2); min-height: var(--tap); }
.plans-buy { display: grid; gap: var(--sp-3); text-align: center; }
.plans-buy-note { margin: 0; font-weight: 600; }
@media (max-width: 440px) { .plan-card { padding: var(--sp-5) var(--sp-4); } }
/* Dedicated membership shop: reading follows the page direction, including Latin plan names. */
.plan-shop-heading, .plan-shop-content, .plan-shop-status { width: 100%; max-width: 760px; margin-inline: auto; }
.plan-shop-heading { display: flex; align-items: center; gap: var(--sp-3); }
.plan-shop-heading h1 { font-size: var(--fs-xl); }
.plan-shop-back { width: var(--tap); min-width: var(--tap); min-height: var(--tap); padding: var(--sp-2); }
html[dir="ltr"] .plan-shop-back svg { transform: scaleX(-1); }
.plan-shop-status { margin-block: 0; }
.plan-shop-status:empty { display: none; }
.plan-catalog { display: grid; gap: var(--sp-5); text-align: start; }
.plan-catalog-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--card); color: var(--card-ink); }
.plan-catalog-tab { min-width: 0; min-height: 56px; padding: var(--sp-3); border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.plan-catalog-tab[aria-selected="true"] { border-bottom-color: var(--accent-text); font-weight: 700; color: var(--accent-text); }
.plan-catalog-panel { min-width: 0; }
.plan-catalog .plan-list { gap: var(--sp-4); }
.plan-catalog-card { --text: var(--card-ink); --muted: var(--card-ink); display: grid; grid-template-columns: minmax(0, 1fr) 108px; min-width: 0; overflow: hidden; background: var(--card); color: var(--card-ink); border: 1px solid var(--line); border-radius: var(--r-sm); text-align: start; }
.plan-catalog-main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-5); min-width: 0; }
.plan-catalog-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: var(--sp-2); width: 100%; }
.plan-catalog .plan-name { flex: 1; min-width: 0; font-size: var(--fs-xl); font-weight: 500; text-align: -webkit-match-parent; text-align: match-parent; }
.plan-catalog .plan-badge { font-size: var(--fs-xs); }
.plan-catalog-frequency { margin: 0; font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.plan-catalog-purchase { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); width: 100%; margin-top: auto; padding-top: var(--sp-3); }
.plan-catalog .plan-price { font-size: var(--fs-xl); font-weight: 600; }
.plan-catalog-buy { width: auto; min-height: var(--tap); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.plan-catalog-kind { display: flex; align-items: center; justify-content: center; padding: var(--sp-3); border-inline-start: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; overflow-wrap: anywhere; text-align: center; }
.plan-catalog-details { width: 100%; min-width: 0; font-size: var(--fs-sm); padding-top: var(--sp-3); }
.plan-catalog-details .plan-desc { max-width: none; font-size: var(--fs-sm); margin-bottom: var(--sp-3); text-align: -webkit-match-parent; text-align: match-parent; }
.plan-catalog-empty { padding: var(--sp-5); margin: 0; }
.plan-catalog .plans-buy { text-align: start; }
@media (max-width: 440px) {
  .plan-catalog-card { grid-template-columns: minmax(0, 1fr) 76px; }
  .plan-catalog-main { padding: var(--sp-4); }
  .plan-catalog .plan-name { font-size: var(--fs-lg); }
  .plan-catalog-kind { padding: var(--sp-2); }
}
.powered-by { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); padding: var(--sp-1); }
.booking-brand { display: flex; align-items: center; justify-content: center; min-height: var(--tap); }
.booking-brand > img { display: block; width: 70px; height: auto; padding: var(--sp-1); background: #fff; border-radius: var(--r-sm); }
.powered-by a { color: var(--text-2, inherit); text-decoration: underline; font-size: var(--fs-sm); display: inline-block; padding: var(--sp-3) var(--sp-1); }
/* לוגו חווה-לינק בחבילה הבסיסית: על רקע בהיר קבוע כדי שייראה גם בערכות נושא כהות */
.powered-by a.toryou-credit { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; background: #fff; color: #1c3555; border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); box-shadow: var(--sh-1); }
.powered-by a.toryou-credit img { height: 20px; width: auto; display: block; }
/* "קצת עלינו" בדף ההזמנה: טקסט חופשי של העסק */
.about-card .about-text { margin: 0; padding-top: 0; border-top: 0; white-space: pre-line; line-height: 1.75; font-size: var(--fs-md); overflow-wrap: anywhere; }
.about-card .about-more { align-self: flex-start; min-height: var(--tap); background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
/* היישור שהעסק בחר (T-073), על הכותרת ועל הטקסט. פיזי (right/left) ולא start/end: טקסט באנגלית מיושר כמו שהעסק בחר.
   unicode-bidi: plaintext נותן לכל שורה את הכיוון שלה (שורה באנגלית לא הופכת את כל הפסקה), ו-dir="auto" נשאר כגיבוי.
   "קראו עוד" בטור flex מימין לשמאל: flex-start = ימין, flex-end = שמאל */
.about-card .about-text { unicode-bidi: plaintext; }
.about-card.about-align-right h2, .about-card.about-align-right .about-text { text-align: right; }
.about-card.about-align-center h2, .about-card.about-align-center .about-text { text-align: center; }
.about-card.about-align-left h2, .about-card.about-align-left .about-text { text-align: left; }
.about-card.about-align-center .about-more { align-self: center; }
.about-card.about-align-left .about-more { align-self: flex-end; }
.trust-card { gap: var(--sp-3); }
.trust-row { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.trust-row b { color: var(--text); font-size: var(--fs-sm); }
.trust-row > a[href^="tel:"] { align-self: flex-start; }
.trust-card .contact-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* ביקורות בדף ההזמנה */
.reviews-card { display: grid; gap: var(--sp-3); }
.reviews-score { display: flex; align-items: center; gap: var(--sp-3); }
.reviews-score b { font-size: var(--fs-2xl); line-height: 1; }
.review-stars { color: var(--accent-text); letter-spacing: 2px; direction: ltr; unicode-bidi: isolate; }
.reviews-quotes { display: grid; gap: var(--sp-3); }
.review-quote { margin: 0; padding: var(--sp-4); background: var(--card); --text: var(--card-ink); --muted: var(--card-ink); color: var(--card-ink); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: var(--sp-2); }
.review-quote figcaption { opacity: .75; }
.review-quote blockquote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* הפניית חברים */
.referral-card { gap: var(--sp-2); }
.referral-card > b:first-child { font-size: var(--fs-lg); }
.referral-dots { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.referral-dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent-fill, var(--accent)); }
.referral-dots span.on { background: var(--accent-fill, var(--accent)); }
.referral-reward { padding: var(--sp-3); border-radius: var(--r-md); background: var(--card-2); font-weight: 700; }
/* החשבון המחובר */
.customer-session { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.customer-session .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.customer-session .ghost { min-height: var(--tap); width: auto; padding: var(--sp-2) var(--sp-4); }
.customer-session .session-help { flex-basis: 100%; }
.profile-links { gap: var(--sp-2); }
.profile-links .ghost { justify-content: flex-start; gap: var(--sp-2); }
@media (max-width: 440px) { .customer-session { gap: var(--sp-2); } }

/* ---------- קביעת תור ---------- */
/* תווית וערך מתחילים באותו צד; שמות ארוכים נשברים בתוך הכרטיס גם בטלפון צר. */
.booking-summary-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; gap: var(--sp-3); text-align: start; }
.booking-summary-row > * { min-width: 0; overflow-wrap: anywhere; }
/* כותרת השלבים נדבקת לראש המסך עם רקע הדף השקוף-למחצה */
.booking-chrome { position: sticky; top: 0; z-index: 6; display: flex; flex-direction: column; gap: var(--sp-3); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: var(--sp-2) var(--sp-1) var(--sp-3); margin-inline: calc(-1 * var(--sp-1)); }
.booking-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.booking-for { color: var(--card-ink); --text: var(--card-ink); --muted-base: var(--card); display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.picker-title { font-size: var(--fs-md); font-weight: 700; }
.progress { display: flex; gap: var(--sp-2); padding: 2px 0 var(--sp-2); margin-block: var(--sp-1); }
.progress:not(.labeled) span { flex-grow: 1; height: 5px; border-radius: var(--r-pill); background: var(--line); }
.progress:not(.labeled) span.on { background: var(--accent-fill, var(--accent)); }
.progress.labeled { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-2); }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--muted); }
.progress-index { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; background: var(--card); color: var(--card-ink, var(--text)); border: 2px solid var(--line); }
.progress-step.on .progress-index { background: color-mix(in srgb, var(--accent) 16%, var(--card)); border-color: var(--accent-fill, var(--accent)); color: var(--accent-text); }
.progress-step.current .progress-index { background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); border-color: var(--accent-fill, var(--accent)); }
.progress-step.done .progress-index { background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
.progress-label { font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.progress-step.on .progress-label, .progress-step.current .progress-label { color: var(--text); }
.option { min-height: 82px; border-radius: var(--r-lg); padding: var(--sp-5); background: var(--card); border: 1.5px solid var(--line); display: flex; align-items: center; gap: var(--sp-4); text-align: start; width: 100%; }
.option.on { border-color: var(--accent-fill, var(--accent)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.option .price { color: var(--text); font-weight: 700; }
.service-selection-check { width: 28px; height: 28px; flex-shrink: 0; border: 2px solid var(--muted); border-radius: var(--r-sm); display: grid; place-items: center; }
.option.on .service-selection-check { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
@media (max-width: 440px) { .option { min-height: 72px; padding: var(--sp-4); } }
/* כמות לשירות: השם בצד אחד, והכפתורים − מספר + תמיד בשורה אחת (גם בטלפון צר) */
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.quantity-row > .grow { min-width: 0; }
.quantity-row > [role="group"] { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
/* תמונות שהעסק העלה לשירותים ולאנשי צוות */
.item-thumb { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover; flex: none; }
.staff-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.days { overflow-x: auto; padding: var(--sp-1) 2px var(--sp-3); scrollbar-width: thin; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
/* רוחב פנימי לפי התוכן: כל עמודות ה-fr מקבלות את רוחב היום הגדול ביותר. */
.days-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(65px, 1fr); gap: var(--sp-2); width: max-content; min-width: 100%; }
.day { min-width: 65px; min-height: 84px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; scroll-snap-align: start; }
.day b { font-size: var(--fs-lg); }
.day.on { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
.day:disabled { color: #939BA7; background: #F0F2F5; border-color: var(--line); cursor: default; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.time { height: 50px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: var(--fs-md); }
.time.on { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
@media (max-width: 440px) { .times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { .times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* T-092 (9א): השעות בקבוצות בוקר / צהריים / ערב. הכותרת בצבע הטקסט של הדף (--text, שהמיתוג מתאים לרקע), לא --muted */
.time-groups { display: grid; gap: var(--sp-4); }
.time-group { display: grid; gap: var(--sp-2); }
.time-group-title { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
/* T-092 (9ב): חיפוש שירות בשלב 1. כפתור הניקוי ליד השדה (ב-375 באותה שורה; בחלון צר יותר, או בהגדלה, מתחת לו), 44px לפחות */
.svc-search { display: flex; align-items: flex-end; gap: var(--sp-2); flex-wrap: wrap; }
.svc-search-field { flex: 1 1 160px; min-width: 0; }
.svc-search-clear { flex: none; min-height: var(--tap); }
.bar { position: fixed; bottom: 0; left: 0; right: 0; padding: var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-right, 0px)) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)) calc(var(--sp-6) + env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--sh-up); }
.bar > * { max-width: 584px; margin: 0 auto; }
/* השורה הקבועה מתחת לכפתור התשלום (מקדמה, שורה 12): באותו רוחב ובאותה עמודה כמו הכפתור */
.bar > .seller-line { margin: var(--sp-2) auto 0; }
.existing-appointments:not([hidden]) { display: grid; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
/* טעינה ושלד של ימים ושעות */
.times-skeleton { position: relative; }
.times-skeleton .skeleton-hint { grid-column: 1 / -1; text-align: center; padding-top: var(--sp-1); }
.skeleton-slot, .skeleton-day { pointer-events: none; border-style: solid; background: linear-gradient(90deg, var(--card-2) 0%, color-mix(in srgb, var(--card) 70%, var(--line)) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: book-shimmer 1.1s ease-in-out infinite; color: transparent !important; border-color: var(--line); }
.skeleton-day { border-radius: var(--r-md); }
@keyframes book-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.loading-block { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-10) var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }
.loading-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: book-spin .7s linear infinite; }
@keyframes book-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
  .skeleton-slot, .skeleton-day { animation: none; background: var(--card-2); }
}
/* אישור, ביטול והזזה */
.check { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; margin: var(--sp-8) auto 0; background: color-mix(in srgb, var(--accent) 9%, white); color: var(--accent-text); }
.done-summary { align-items: center; }
/* סוף ההדגמה (מפרט UX/UI 2): תג "הדגמה" ודוגמת תזכורת ב-WhatsApp */
.demo-badge { display: inline-block; margin-top: var(--sp-3); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--card-ink); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.demo-lead { font-size: var(--fs-md); color: var(--text-2); margin: 0; }
.wa-sample { width: 100%; max-width: 420px; margin: 0 auto; padding: var(--sp-3); border-radius: var(--r-lg); background: #EFEAE2; display: flex; flex-direction: column; gap: var(--sp-2); }
.wa-sample-title { margin: 0; font-size: var(--fs-sm); color: #54656F; }
.wa-bubble { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); border-radius: 4px 14px 14px 14px; background: #E7FFDB; color: #111B21; font-size: var(--fs-md); overflow-wrap: anywhere; }
.wa-bubble .wa-time { align-self: flex-end; font-size: var(--fs-xs); color: #54656F; }
.done-actions, .share-actions { display: flex; flex-direction: column; width: 100%; max-width: 420px; margin: 0 auto; }
.done-actions { gap: var(--sp-3); }
.share-actions { gap: var(--sp-2); }
.done-actions .cta, .done-actions .ghost { width: 100%; min-height: 48px; }
.share-actions .ghost { width: 100%; min-height: var(--tap); }
.waitlist-joined { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.waitlist-card .chip { flex-shrink: 0; }
.cancel-summary { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1px solid var(--line); }
.move-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid var(--line); }
.move-from, .move-to { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.move-arrow { font-size: var(--fs-xl); color: var(--accent-text); font-weight: 700; }

/* ---------- טפסים ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.field input, .field textarea { width: 100%; min-width: 0; background: var(--card); color: var(--card-ink); border: 1px solid color-mix(in srgb, var(--card-ink) 55%, var(--card)); /* מסגרת שדה 3:1 לפחות (WCAG 1.4.11, מפרט UX/UI 5) */ border-radius: var(--r-md); padding: var(--sp-4); font-size: var(--fs-md); font-weight: 400; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring-inner); border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--card-ink) 58%, var(--card)); opacity: 1; }
label.opt { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
label.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.opt + .opt { margin-top: var(--sp-1); }
.channel-choices .opt { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); align-items: center; background: var(--card); color: var(--card-ink); }
.channel-choices .opt:has(input:checked) { border-color: var(--accent-fill, var(--accent)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.channel-choices .opt:has(input:disabled) { opacity: .55; }
.channel-guide { margin: 0; padding: 0; padding-inline-start: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.channel-guide b { color: var(--text); }
.prefs-card { gap: var(--sp-3); }
.prefs-card .opt { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.prefs-card .opt:last-of-type { border-bottom: 0; }
.birthday-control { display: flex; gap: var(--sp-2); align-items: center; }
.birthday-picker { position: relative; flex: 1; min-width: 0; min-height: 48px; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between; background: var(--card); color: var(--card-ink); }
.birthday-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.birthday-picker:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring-inner); }
/* תאריך לידה: שלוש רשימות בשורה; כיתה (גן עד י״ב); תור קבוע: תדירות ומספר תורים */
.birthday-selects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.25fr); gap: var(--sp-2); width: 100%; }
.birthday-selects select, .grade-select, .series-fields select { min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--card-ink, var(--text)); font: inherit; font-size: var(--fs-md); }
.birthday-selects select { padding: var(--sp-3) var(--sp-2); }
.grade-select, .series-fields select { width: 100%; padding: var(--sp-3); }
/* שדה תאריך DD/MM/YYYY (core.js dateInput): שדה טקסט + כפתור לוח שנה */
.date-wrap { position: relative; display: flex; align-items: center; gap: var(--sp-2); width: 100%; }
.date-wrap > input[data-date] { flex: 1 1 auto; min-width: 0; }
.date-pick { flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); cursor: pointer; font-size: var(--fs-lg); line-height: 1; padding: 0; }
/* שדה סיסמה עם עין (הצגה / הסתרה). תמיד משמאל לימין: בעמוד מימין לשמאל העין בצד שמאל, והריווח בצד שלה */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-inline-end: 50px; }
html[dir="rtl"] .pw-wrap input[dir="ltr"] { padding-inline: 50px var(--sp-4); }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: var(--sp-1); transform: translateY(-50%); width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); cursor: pointer; }
.pw-toggle:hover { color: var(--text); }

/* ---------- הודעות, תגיות ומצבים ריקים ---------- */
.err { color: var(--err-ink); background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-sm); line-height: 1.7; }
/* הודעות שגיאה בפס התחתון ובחלונות */
.error-box { margin: 0; color: var(--err-ink); background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-sm); line-height: 1.6; }
.bar .error-box { margin-bottom: var(--sp-3); }
.chip { font-size: var(--fs-xs); font-weight: 700; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.gold { background: var(--warn-bg); color: var(--warn-ink); }
.chip.bad { background: var(--err-bg); color: var(--danger); }
.chip.warn { background: var(--err-bg); color: var(--err-ink); }
.badge { position: absolute; top: 0; inset-inline-end: calc(50% - 24px); min-width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center; padding: 0 var(--sp-1); }
.empty { text-align: center; color: var(--muted); padding: var(--sp-10) var(--sp-5); line-height: 1.8; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-10) var(--sp-5); color: var(--muted); }
.empty-state-icon { width: 58px; height: 58px; border-radius: var(--r-lg); display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.empty-state-title { color: var(--text); font-size: var(--fs-lg); font-weight: 700; }
.empty-state-hint { margin: 0; max-width: 320px; line-height: 1.7; font-size: var(--fs-sm); }
/* תיבת ההודעות */
.inbox-head { align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-1); }
.inbox-day { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); letter-spacing: .02em; }
.msg { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.msg.unread { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---------- לשוניות למטה ---------- */
.tabs { position: fixed; bottom: 0; left: 50%; right: auto; transform: translateX(-50%); width: min(var(--booking-shell-width), 100%); min-height: 76px; height: calc(80px + env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: space-around; align-items: center; padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom)); background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-up); }
.tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; min-width: 64px; min-height: 52px; flex: 1; border-radius: var(--r-md); position: relative; }
.tabs button.on { color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--accent) 15%, var(--card)); }
/* T-085, D-154 עד D-158: כשהסרגל לא נכנס ברוחב (הגדלה, גופן גדול, חנות בטלפון צר) הוא לא קבוע: האלמנט האחרון בדף, ברשת של שתי
   עמודות. ההחלטה רק לפי רוחב החלון ב-em (גדל גם עם גופן ברירת המחדל של הדפדפן), בלי מדידה ב-JS. אותן תוויות ואותו גודל,
   שבירה רק בין מילים, כל לשונית 44×52 לפחות. סדר ה-DOM לא משתנה, ובלי הנפשה */
@media (max-width: 17.99em) {
  .tabs { position: static; transform: none; left: auto; right: auto; width: auto; height: auto; min-height: 0; margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: var(--sp-1); padding: var(--sp-2); border-bottom: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: none; }
  .tabs button { min-width: 0; flex: none; text-align: center; overflow-wrap: normal; word-break: normal; }
  .shell:has(> .tabs) { padding-bottom: max(calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)), calc(var(--bottom-ui, 0px) + var(--sp-5))); }
}
@media (max-width: 21.99em) {
  .tabs:has(> button:nth-of-type(5)) { position: static; transform: none; left: auto; right: auto; width: auto; height: auto; min-height: 0; margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: var(--sp-1); padding: var(--sp-2); border-bottom: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: none; }
  .tabs:has(> button:nth-of-type(5)) button { min-width: 0; flex: none; text-align: center; overflow-wrap: normal; word-break: normal; }
  .shell:has(> .tabs > button:nth-of-type(5)) { padding-bottom: max(calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)), calc(var(--bottom-ui, 0px) + var(--sp-5))); }
}

/* ---------- חנות (רק בדף ההזמנה העצמאי) ---------- */
.store-search { display: flex; gap: var(--sp-3); }
.store-search input { flex: 1; min-width: 0; min-height: 48px; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--card-ink); font: inherit; font-size: var(--fs-md); }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.store-product { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--card-ink); min-width: 0; }
.store-product img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-sm); }
.store-product h2 { font-size: var(--fs-lg); margin: 0; overflow-wrap: anywhere; }
.store-product .ghost { margin-top: auto; font-size: var(--fs-sm); text-align: center; }
@media (max-width: 360px) { .store-grid { grid-template-columns: 1fr; } }
/* סל וקופה בחנות (book-store.js) */
.store-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.store-head h1 { margin: 0; }
.store-back { flex: 0 0 auto; }
.store-cart-btn { flex: 0 0 auto; white-space: nowrap; }
.store-count { min-width: 26px; height: 26px; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); font-weight: 700; display: inline-grid; place-items: center; }
.store-filters { display: grid; gap: var(--sp-3); }
.store-filters select { min-height: 48px; padding: var(--sp-3); border: 1px solid color-mix(in srgb, var(--card-ink) 55%, var(--card)); border-radius: var(--r-md); background: var(--card); color: var(--card-ink); font: inherit; }
.store-detail img { width: 100%; max-height: 420px; object-fit: contain; border-radius: var(--r-md); background: var(--card); }
.store-detail-body { display: flex; flex-direction: column; gap: var(--sp-4); }
.store-detail h1 { margin: 0; overflow-wrap: anywhere; }
.store-price { font-size: var(--fs-xl); font-weight: 700; margin: 0; }
.store-desc { margin: 0; line-height: 1.7; white-space: pre-line; }
.store-options, .store-fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0; min-width: 0; }
.store-options { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
/* כותרת הקבוצה בתוך הכרטיס (float), לא על המסגרת */
.store-options legend, .store-fieldset legend { float: inline-start; width: 100%; padding: 0; margin: 0 0 var(--sp-3); font-weight: 700; font-size: var(--fs-md); color: var(--card-ink); }
.store-options legend + *, .store-fieldset legend + * { clear: both; }
.store-fieldset:focus { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.store-option-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.store-option-list.col { flex-direction: column; }
.store-option { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-3) var(--sp-4); border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--card); color: var(--card-ink); cursor: pointer; }
.store-option.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.store-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
.store-option:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.store-rate .block { display: block; font-weight: 400; }
.store-rate > b { white-space: nowrap; }
.store-qty { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.store-qty label { font-weight: 700; margin-inline-end: var(--sp-2); }
.store-qty input { width: 72px; min-height: 46px; text-align: center; border: 1px solid color-mix(in srgb, var(--card-ink) 55%, var(--card)); border-radius: var(--r-md); background: var(--card); color: var(--card-ink); font: inherit; font-size: var(--fs-md); }
.store-step { min-width: 46px; font-size: var(--fs-lg); padding: 0 var(--sp-3); }
.store-qty-value { min-width: 32px; text-align: center; font-weight: 700; font-size: var(--fs-md); }
.store-added { gap: var(--sp-3); }
.store-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.store-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: var(--sp-3); padding: var(--sp-4); }
.store-item img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); }
.store-item > .store-qty { grid-column: 1 / -1; }
.store-item > .store-qty .danger { margin-inline-start: auto; }
.store-coupon { display: grid; gap: var(--sp-2); }
.store-coupon label { font-weight: 700; }
.store-coupon input { flex: 1; min-width: 0; min-height: 46px; padding: var(--sp-3); border: 1px solid color-mix(in srgb, var(--card-ink) 55%, var(--card)); border-radius: var(--r-md); background: var(--card); color: var(--card-ink); font: inherit; }
.store-totals { gap: var(--sp-2); }
.store-total-row { display: flex; justify-content: space-between; gap: var(--sp-3); }
.store-total-row.strong { font-size: var(--fs-lg); border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.store-checkout { display: flex; flex-direction: column; gap: var(--sp-4); }
.store-fieldset { padding: var(--sp-4); }
.store-fieldset > .field + .field, .store-fieldset > .store-two + .field { margin-top: var(--sp-3); }
.store-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.store-notice { margin: 0; }
.store-order h1, .store-order p { margin: 0; }
@media (max-width: 420px) { .store-two { grid-template-columns: 1fr; } .store-head { flex-wrap: wrap; } }

/* ---------- חלונות והודעות צפות ---------- */
/* הוספה למסך הבית */
.install-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-right, 0px)) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)) calc(var(--sp-3) + env(safe-area-inset-left, 0px)); }
.install-card { width: 100%; max-width: 440px; padding: var(--sp-5); display: grid; gap: var(--sp-3); border-radius: var(--r-xl); animation: install-up .18s ease-out; }
.install-head { display: flex; align-items: center; gap: var(--sp-3); }
.install-head img { border-radius: var(--r-md); flex: none; }
.install-head b { flex: 1; font-size: var(--fs-lg); }
.install-x { background: none; border: 0; font-size: var(--fs-lg); padding: 0; width: var(--tap); height: var(--tap); flex: none; display: grid; place-items: center; border-radius: var(--r-md); cursor: pointer; color: inherit; }
.install-body { display: grid; gap: var(--sp-3); line-height: 1.6; }
.install-body p { margin: 0; }
.install-steps { margin: 0; padding-inline-start: var(--sp-5); display: grid; gap: var(--sp-2); }
@keyframes install-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install-card { animation: none; } }
/* הודעה קצרה בראש המסך (alertMsg); שגיאה נשארת עד שסוגרים */
.toast { position: fixed; z-index: 70; top: calc(var(--sp-4) + env(safe-area-inset-top, 0px)); left: calc(var(--sp-4) + env(safe-area-inset-left, 0px)); right: calc(var(--sp-4) + env(safe-area-inset-right, 0px)); max-width: 440px; margin: 0 auto; padding: var(--sp-4); flex-direction: row; align-items: center; gap: var(--sp-3); border-color: var(--accent); box-shadow: var(--sh-3); }
.toast-error { border-color: var(--danger); border-width: 2px; }
.toast-close { flex: none; width: var(--tap); height: var(--tap); margin: -10px; display: grid; place-items: center; border: 0; border-radius: var(--r-md); background: transparent; color: inherit; font-size: var(--fs-md); }
/* חלון אישור (confirmDialog / modal מ-core.js) בעיצוב דף ההזמנה, במקום confirm() של הדפדפן */
.overlay { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: calc(var(--sp-4) + env(safe-area-inset-top, 0px)) calc(var(--sp-4) + env(safe-area-inset-right, 0px)) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)) calc(var(--sp-4) + env(safe-area-inset-left, 0px)); }
.modal { width: 100%; max-width: 440px; display: flex; flex-direction: column; background: var(--card); color: var(--card-ink); --text: var(--card-ink); --text-2: var(--card-ink); --muted: var(--card-ink); --muted-base: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.modal-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-1); }
.modal-title { flex: 1; min-width: 0; }
.modal-head h2 { margin: 0; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.modal-body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-2) var(--sp-5) var(--sp-1); }
.modal-body .error-box.hidden { display: none; }
.modal-foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.modal-foot .btn { flex: 1 1 140px; }
.btn { min-height: 48px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); color: var(--card-ink); font-size: var(--fs-md); font-weight: 700; }
.btn.primary { background: var(--button-bg, var(--accent)); border-color: transparent; color: var(--button-ink, var(--accent-ink)); }
.btn.primary.danger { background: var(--danger-solid); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- מחלקות פריסה (מוגדרות גם ב-admin.css, שלא נטען כאן): אחרי הכרטיסים, כדי ש-"card stack" יקבל את הרווח של stack ---------- */
.row { display: flex; gap: var(--sp-3); align-items: center; }
.row > .grow { flex-grow: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---------- משטחים בצבע הכרטיס ---------- */
/* רכיבים על רקע כרטיס: הטקסט בצבע של הכרטיס (ולא בצבע של רקע הדף, שיכול להיות בהיר על רקע כהה) */
.card, .service-card, .option, .customer-session, .iconbtn, .day, .time, .msg, .logo, .online-label, .booking-context, .tabs, .contact-card, .channel-choices .opt, .existing-appointments {
  --text: var(--card-ink); --text-2: var(--card-ink); --muted: var(--card-ink); color: var(--card-ink);
}
/* טקסט משני על כרטיס: מעורבב בצבע הכרטיס (ולא ברקע הדף), בלי שקיפות נוספת שמורידה אותו מתחת ל-4.5:1 */
.card, .service-card, .option, .customer-session, .iconbtn, .day, .time, .msg, .logo, .online-label, .booking-context, .tabs, .contact-card, .channel-choices .opt, .existing-appointments, .review-quote, .install-card { --muted-base: var(--card); }
/* טקסט משני שקריא גם על רקע כהה (צבע המותג) */
.small.muted, .muted, .hero-note, .session-help { color: color-mix(in srgb, var(--text) 72%, var(--muted-base, var(--bg))); opacity: 1; }
.custom-text-color .small.muted, .custom-text-color .muted, .custom-text-color .hero-note { color: color-mix(in srgb, var(--text) 82%, transparent); }
/* מצב ריק בתוך כרטיס: בצבע המשני (אחרי צבע הכרטיס) */
.empty-state { color: var(--muted); }

/* ---------- הטמעה באתר העסק (?embed=1): טופס קומפקטי על הרקע של האתר המארח ----------
   השדות והאפשרויות בהטמעה תמיד על רקע לבן (האתר המארח בדרך כלל בהיר), ולכן הטקסט שלהם כהה גם כשהעסק בחר כרטיסים כהים.
   המסגרות והקווים בגוון של צבע העסק (--embed-line), כך שהטופס משתלב באתר שלו */
html.embedded { --embed-line: color-mix(in srgb, var(--accent) 22%, var(--line)); }
html.embedded, .embedded body { background: transparent; min-height: 0; }
.embedded .shell { min-height: 0; max-width: 680px; padding: var(--sp-2) var(--sp-2) var(--sp-4); gap: var(--sp-5); }
.embedded .card { border: 0; box-shadow: none; background: var(--embed-card-background, transparent); padding: var(--embed-card-padding, 0); border-radius: 0; }
.embedded .shell > .card > b:first-child:not(:where(.heading, .label-strong)) { font-size: var(--fs-xl); font-weight: 700; color: var(--card-ink); }
.embedded .field { font-size: var(--fs-md); gap: var(--sp-2); }
.embedded .field input, .embedded .field textarea { background: #fff; color: #182438; border: 1px solid color-mix(in srgb, var(--accent) 20%, #6B7383); border-radius: var(--r-sm); min-height: 48px; }
.embedded .field input::placeholder, .embedded .field textarea::placeholder { color: #647187; }
.embedded .cta { border-radius: var(--r-sm); box-shadow: none; height: 50px; }
.embedded .channel-choices label.opt { background: #fff; color: #182438; border: 1px solid var(--embed-line); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); }
.embedded .channel-choices label.opt:has(input:checked) { border-color: var(--accent-fill, var(--accent)); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.embedded .channel-choices label.opt:has(input:disabled) { opacity: .5; }
.embedded .ghost, .embedded .option, .embedded .day, .embedded .time { border-radius: var(--r-sm); }
.embedded .bar { position: static; padding: var(--sp-3) 0; border: 0; background: transparent; }
.embedded .bar > * { max-width: none; }
/* בהטמעה אין לכותרת השלבים רקע משלה (--bg שקוף), ולכן היא לא נדבקת לראש החלון: תוכן שנגלל לא עובר מתחת לטקסט שלה */
.embedded .booking-chrome { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.embedded .embed-links { display: flex; justify-content: center; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid var(--embed-line); font-size: var(--fs-sm); color: var(--text); }
.embedded .embed-links button { min-height: var(--tap); color: inherit; border: 0; background: none; padding: var(--sp-2) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.embedded .logo { display: none; }
.embedded .existing-appointments:not([hidden]) { border-color: var(--embed-line); background: var(--card); }
.embedded .existing-appointments .appointment-summary { padding: var(--sp-4); border: 1px solid var(--embed-line); border-radius: var(--r-sm); background: var(--card); }

/* ---------- מחלקות במקום style שחזר על עצמו ב-js/book. בסוף הקובץ, כדי שיגברו על הרכיבים כמו ה-style שהחליפו ---------- */
.grid { display: grid; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.self-center { align-self: center; }
.text-center { text-align: center; }
.text-start { text-align: start; }
.m-0 { margin: 0; }
.my-1 { margin-block: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.w-auto { width: auto; }
.pre-wrap { white-space: pre-wrap; }
.break-all { word-break: break-all; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.faint { opacity: .7; }
.text-2 { color: var(--text-2); }
.accent-text, .ghost.accent-text { color: var(--accent-text); }
.accent-label { color: var(--accent-text); font-weight: 700; }
.ok-text { color: var(--ok-ink); }
.danger-text { color: var(--danger); }
/* כותרות: מסך (title), מסך גדול (title-lg), כרטיס (heading), תווית מודגשת (label-strong), כותרת רשימה (section-label) */
.title { font-size: var(--fs-xl); }
.title-lg { font-size: var(--fs-2xl); }
.heading { font-size: var(--fs-lg); }
.label-strong { font-size: var(--fs-md); font-weight: 700; }
.section-label { font-size: var(--fs-md); margin-top: var(--sp-2); }
.plain-list { margin: 0; padding-inline-start: var(--sp-5); }
.plain-fieldset { border: 0; padding: 0; margin: 0; }
.divider { height: 1px; background: var(--line); }
/* כרטיסים: קו מקווקו, תוכן בשורה, כרטיס משני קומפקטי בתוך טופס, מסגרת בצבע העסק */
.dashed { border-style: dashed; }
.card-row { flex-direction: row; align-items: center; }
.card.sub-card { padding: var(--sp-3) var(--sp-4); }
.highlight { border-color: var(--accent); }
.ghost.compact { min-height: var(--tap); }
.cta.cta-sm { font-size: var(--fs-md); }
.empty-state .cta { max-width: 280px; }
.link-btn.link-strong { font-weight: 700; margin-top: calc(-1 * var(--sp-2)); }
.link-start { align-self: flex-start; text-decoration: underline; }
.quiet-link { background: none; border: 0; padding: var(--sp-1) 0; margin: 0; justify-self: start; align-self: start; width: auto; font: inherit; font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; cursor: pointer; }
.list-row { justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.msg-text { color: var(--text-2); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
/* קביעת תור: מחיר לתשלום, כמות, מעבר בין שבועות, איש צוות, מועד קרוב (תאריך מעל השעה), עדכון כשמתפנה מועד */
.total-price { font-size: var(--fs-xl); color: var(--accent-text); }
.qty-value { min-width: 2ch; text-align: center; font-weight: 700; }
.pager-row { justify-content: space-between; gap: var(--sp-2); margin: var(--sp-1) 0 2px; }
.option.staff-option { flex-direction: column; min-height: 140px; justify-content: center; }
.logo.staff-initial { width: 54px; height: 54px; }
.time.time-stack { height: auto; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.2; padding: var(--sp-2) var(--sp-1); }
.time-date { display: block; font-weight: 500; }
.slot-alert-row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: nowrap; padding: var(--sp-2) var(--sp-3); margin: 2px 0 var(--sp-2); border: 1px dashed var(--line); border-radius: var(--r-md); }
.ghost.slot-alert-btn { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); white-space: nowrap; }
/* דירוג בכוכבים ומשטח חתימה */
.stars-row { gap: var(--sp-2); justify-content: center; direction: ltr; }
.star-btn { font-size: var(--fs-3xl); line-height: 1; background: none; border: none; cursor: pointer; color: var(--line); }
.star-btn.on { color: var(--accent-fill, var(--accent)); }
.signature-pad { width: 100%; height: 180px; background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); touch-action: none; cursor: crosshair; display: block; }
/* הודעת פרטיות בכניסה, בהרשמה ובשם לתור (S-001): שורה קטנה עם קישור מסומן */
.privacy-note { margin: 0; line-height: 1.6; }
.privacy-note a { color: inherit; text-decoration: underline; font-weight: 600; }

/* עסק לדוגמה: פס קבוע בראש כל מסך (בלי סגירה) וחלונית "מה לנסות כאן?" (book/demo-tour.js) */
.demo-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-2) var(--sp-4); background: #1F2A24; color: #FFFFFF; font-size: var(--fs-sm); line-height: 1.45; text-align: center; }
.demo-banner-text { font-weight: 600; }
.demo-banner-actions { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }
.demo-banner-tour, .demo-banner-signup { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--sp-3); border-radius: var(--r-pill);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.demo-banner-tour { border: 1px solid rgba(255, 255, 255, .7); background: transparent; color: #FFFFFF; }
.demo-banner-signup { border: 0; background: #FFFFFF; color: #1F2A24; }
.demo-banner-tour:focus-visible, .demo-banner-signup:focus-visible { outline: 3px solid #FFD666; outline-offset: 2px; }
.demo-banner-short { display: none; }
@media (max-width: 560px) {
  .demo-banner-long { display: none; }
  .demo-banner-short { display: inline; }
}
dialog.demo-tour { width: min(440px, calc(100vw - 32px)); max-height: min(86vh, 720px); overflow: auto; padding: var(--sp-5); border: 0; border-radius: var(--r-lg);
  background: #FFFFFF; color: #182438; box-shadow: var(--sh-3); }
dialog.demo-tour::backdrop { background: rgba(16, 24, 40, .45); }
.demo-tour-head { display: flex; align-items: flex-start; gap: var(--sp-3); }
.demo-tour-head h2 { flex: 1; margin: 0; font-size: var(--fs-lg); }
.demo-tour-group { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-sm); color: #435168; }
.demo-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.demo-tasks.plain li { padding-inline-start: var(--sp-2); }
.demo-tasks.plain a { color: #24527A; }
.demo-task-btn { width: 100%; min-height: 44px; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid #D5DCE6;
  border-radius: var(--r-md); background: #FFFFFF; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.demo-task-btn.static { cursor: default; }
.demo-task-btn .small { display: block; }
.demo-check { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #647187; border-radius: 6px; font-weight: 700; }
.demo-task.done .demo-check { border-color: #2F5D46; background: #2F5D46; color: #FFFFFF; }
dialog.demo-tour .cta { display: flex; justify-content: center; margin-top: var(--sp-4); text-decoration: none; }
.demo-nudge { position: fixed; z-index: 65; bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); left: var(--sp-4); right: var(--sp-4); max-width: 440px; margin: 0 auto;
  flex-direction: row; align-items: center; gap: var(--sp-3); box-shadow: var(--sh-3); }
@media (max-width: 560px) {
  dialog.demo-tour { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (prefers-reduced-motion: reduce) { dialog.demo-tour { transition: none; } }

/* ניהול מנויים (T-047): זוגות צבע קבועים, גם על רקע של עסק */
.note-box { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line, transparent); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-sm); line-height: 1.6; display: grid; gap: var(--sp-2); }
.note-box a.ghost, .note-box button.ghost { background: var(--card); color: var(--card-ink); }
.member-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-block-start: var(--sp-1); }
.member-chip { display: inline-block; margin-block-start: var(--sp-1); }
.option.option-locked { background: var(--card-2); cursor: default; }
.option.option-locked .price { color: var(--text-2); }

/* ח-8: בגובה נמוך (הגדלה ל-200%) כותרת דביקה מסתירה את הפוקוס ומשאירה מעט מקום לתוכן */
@media (max-height: 500px) {
  .booking-chrome { position: static; }
  .bar { position: static; }
}
html { scroll-padding-block: 96px; }
/* לוח לפי יום (T-078): שורת ימים בלי גלילה הצידה (נשברת לשתי שורות בצר ובהגדלה), בורר סוג, וכרטיס לכל מועד.
   טקסט בכרטיס מחושב מול הכרטיס (--card-ink), כמו .plan-card. בלי הנפשה סביב מספר המקומות (חוות הדעת המשפטית, סעיף 3) */
/* לוח השבוע (T-085, D-119, D-120): כרטיס אחד בצבע הכרטיס, ובו שורת החודש (חץ בכל צד) ושורת הימים. הימים בלי אריחים, והיום שנבחר
   בעיגול מלא. העיגול והנקודה מובטחים רק מול הכרטיס (--accent-fill מול --card), ולכן הימים יושבים בתוכו. בלי overflow: hidden (טבעת המיקוד) */
.sched-board { container: sched-board / inline-size; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-1); background: var(--card); color: var(--card-ink); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sched-monthrow { display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap); align-items: center; gap: var(--sp-1); padding-inline: var(--sp-1); }
.sched-mid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.sched-month { font-size: var(--fs-lg); font-weight: 700; margin: 0; text-align: center; }
/* חץ שלא רלוונטי: נשאר במקום כדי שהחודש לא יזוז, מוסתר ומושבת */
.sched-board .iconbtn.sched-off { visibility: hidden; }
html[dir="ltr"] .sched-monthrow .iconbtn svg { transform: scaleX(-1); }
.sched-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0; }
.sched-day { min-height: 64px; min-width: 0; padding: var(--sp-1) 0; border: 0; border-radius: var(--r-md); background: none; color: var(--card-ink); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; }
.sched-dow { font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.sched-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-lg); font-weight: 700; line-height: 1; }
.sched-day.on .sched-num { background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
.sched-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill, var(--accent)); }
.sched-dot.none { background: transparent; }
.sched-day:disabled { color: var(--disabled-ink); cursor: default; }
/* בטלפון צר (מתחת ל-360, לא בהטמעה): הכרטיס נמתח לכל רוחב המסך, כדי שכל יום יקבל 44 לפחות */
@media (max-width: 359px) { html:not(.embedded) .sched-board { margin-inline: calc(-1 * var(--sp-5)); border-radius: 0; border-inline: 0; } }
/* הטמעה צרה או הגדלה מעבר ל-200%: שתי שורות, 4 ועוד 3 */
@container sched-board (max-width: 307.98px) { .sched-days { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--sp-1); } }
.sched-filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sched-pill { min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--card); color: var(--card-ink); display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; }
.sched-pill.on { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--accent-ink)); }
/* רשימת המועדים (D-121): ציר השעה בצד ההתחלה, על רקע הדף (--text מול --bg), והכרטיס לידו. סדר ה-DOM, בלי order */
.sched-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.sched-slot { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: var(--sp-2); row-gap: var(--sp-2); align-items: start; }
.sched-time { display: flex; flex-direction: column; align-items: center; padding-top: var(--sp-3); color: var(--text); white-space: nowrap; }
.sched-time b { font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
.sched-time bdi { font-size: var(--fs-sm); font-weight: 400; line-height: 1.4; }
.sched-explain { grid-column: 2; }
/* D-150: רשימה צרה (הגדלה, גופן מערכת גדול): הציר עולה מעל הכרטיס, בשורה אחת עם מפריד גלוי שלא מוקרא ("עד" המוסתר נשאר לקורא מסך) */
.sched-list { container: sched-list / inline-size; }
@container sched-list (max-width: 17rem) {
  .sched-slot { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-1); }
  .sched-time { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: var(--sp-1); padding-top: 0; }
  .sched-time b::after { content: "–"; content: "–" / ""; margin-inline-start: var(--sp-1); }
  .sched-explain { grid-column: 1; }
}
/* הכרטיס (D-122): השם, "עם דנה · 50 דקות · ₪70", ושורת המקומות עם הכפתור. טקסט מול --card-ink, כמו .plan-card */
.sched-card { --text: var(--card-ink); --muted: var(--card-ink); --text-2: var(--card-ink); position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--sp-3) var(--sp-4); background: var(--card); color: var(--card-ink); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sched-card h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.sched-sub { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--card-ink); }
.sched-seats { color: var(--card-ink); }
.sched-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); margin-top: 6px; }
.sched-card .chip { white-space: normal; max-width: 100%; }
/* גלולה בלי צבע מצב (ברשימת ההמתנה, רק למנויים): מסגרת בצבע הכרטיס, כדי שתיקרא גם בערכה כהה */
.sched-card .chip:not(.ok):not(.gold):not(.warn) { background: transparent; border: 1px solid currentColor; color: var(--card-ink); }
.sched-card .member-chip { align-self: flex-start; }
/* הכפתור קטן (36). יעד המגע הוא כל הכרטיס (::after), ובפוקוס רק הכפתור (D-19, D-126) */
.sched-card .sched-action.compact { min-height: 36px; width: auto; padding: 0 14px; font-size: var(--fs-sm); margin-inline-start: auto; }
.sched-card.clickable { cursor: pointer; }
.sched-card.clickable .sched-action::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.sched-card.clickable:hover { border-color: var(--accent); }
/* מתחת ל-360: הפעולה בשורה משלה, בצד הסוף, לא ברוחב מלא (הכרטיס כולו כבר לחיץ) */
@media (max-width: 359px) { .sched-row { flex-direction: column; align-items: flex-start; } .sched-row .sched-action.compact { align-self: flex-end; } }
.sched-free { margin-top: var(--sp-5); }
.sched-free h2 { margin-bottom: 0; }
.service-card.compact { padding: var(--sp-4); }
/* שלד (D-125): כרטיס שבוע עם שבעה עיגולים, ופריטים של ציר צר וכרטיס בגובה 88 */
.sched-skeleton { display: flex; flex-direction: column; gap: var(--sp-3); }
.skeleton-card, .sched-skel-day, .skeleton-time { pointer-events: none; background: linear-gradient(90deg, var(--card-2) 0%, color-mix(in srgb, var(--card) 70%, var(--line)) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: book-shimmer 1.1s ease-in-out infinite; }
.skeleton-card { height: 7.2rem; border-radius: var(--r-lg); border: 1px solid var(--line); }
.skeleton-board .sched-skel-day { width: 40px; height: 40px; border-radius: 50%; justify-self: center; margin-block: 12px; }
.skeleton-time { width: 40px; height: 34px; border-radius: var(--r-sm); justify-self: center; margin-top: var(--sp-3); }
@media (prefers-reduced-motion: reduce) { .skeleton-card, .sched-skel-day, .skeleton-time { animation: none; background: var(--card-2); } }
/* "ללוח התורים ←" בכותרת השירותים במסך הבית, כשהלוח פעיל (T-085, נ1). טקסט על רקע הדף, בקו תחתון, יעד מגע 44 */
.section-heading.has-sched-link { flex-wrap: wrap; align-items: baseline; row-gap: 0; }
/* D-149: תמיד בשורה משלו, אחרון בשורת הכותרת. הכפתור עצמו לא נמתח */
.sched-home-row { flex-basis: 100%; display: flex; }
.hero-services-heading:has(> .sched-home-row) { row-gap: 0; }
.sched-home-link { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sched-home-arrow { display: inline-block; text-decoration: none; }
html[dir="ltr"] .sched-home-arrow { transform: scaleX(-1); }
