/* ===========================================================
   Live Orli booking widget — faithful replica of the real
   product (orli-calendar/widget/src/style.css). Warm cream/teal
   palette, Heebo font, bilingual He/En. Everything is scoped
   under .orli-live so it never touches the marketing site.
   =========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap");

.orli-live {
  --obw-primary: #0f8a86;
  --obw-primary-focus: #0a5d5a;
  --obw-primary-contrast: #ffffff;
  --obw-bg: #fffdf8;
  --obw-parchment: #f7f5ef;
  --obw-text: #1b2523;
  --obw-muted: #5d6763;
  --obw-border: #e4ddcf;
  --obw-radius: 11px;
  --obw-radius-lg: 18px;
  --obw-radius-pill: 9999px;
  --obw-font: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --obw-display: "Heebo", system-ui, -apple-system, sans-serif;
  --obw-chevron: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%206l-6%206%206%206'/%3E%3C/svg%3E");

  background: var(--obw-bg);
  color: var(--obw-text);
  font-family: var(--obw-font);
  font-size: 16px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-align: start;
}
.orli-live[dir="ltr"] { --obw-chevron: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206l6%206-6%206'/%3E%3C/svg%3E"); }
.orli-live * { box-sizing: border-box; }
.orli-live button { font-family: inherit; font-size: 1rem; cursor: pointer; transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease; }
.orli-live button:active:not(:disabled) { transform: scale(0.97); }
.orli-live input { font-family: inherit; font-size: 1rem; }

.orli-live .obw-widget { display: flex; flex-direction: column; width: 100%; height: 540px; margin-inline: auto; padding: 18px; }

/* Scrollytelling widget: ONE fixed height so the frame never resizes between
   scenes, with compact type so the tallest scene (confirm) fits without any
   inner scroll. Content clips rather than scrolls as a safety. */
.orli-live[data-scrolly] .obw-widget { height: 502px; padding: 10px 15px; }
.orli-live[data-scrolly] .obw-step,
.orli-live[data-scrolly] .obw-step--date,
.orli-live[data-scrolly] .obw-date-step,
.orli-live[data-scrolly] .obw-date-results { overflow: hidden; }
.orli-live[data-scrolly] .obw-title { font-size: 1.25rem; margin-block: 2px 9px; }
.orli-live[data-scrolly] .obw-back-btn { margin-block-end: 4px; }
.orli-live[data-scrolly] .obw-list { gap: 7px; }
.orli-live[data-scrolly] .obw-card { margin-block-end: 5px; }
.orli-live[data-scrolly] .obw-card-title { margin-block: 0 7px; }
.orli-live[data-scrolly] .obw-option { padding: 10px 14px; }
.orli-live[data-scrolly] .obw-slots { gap: 7px; }
.orli-live[data-scrolly] .obw-slot { padding: 8px 15px; }
.orli-live[data-scrolly] .obw-month-nav { margin-block-end: 10px; }
/* Verify scene: drop the appointment recap so the scene stays short (the step
   text already explains it); keeps the whole widget frame compact. */
.orli-live[data-scrolly] .obw-summary { display: none; }
.orli-live[data-scrolly] .obw-otp { padding: 7px 11px; margin-block-end: 9px; }
.orli-live[data-scrolly] .obw-otp .obw-field input { font-size: 1.05rem; letter-spacing: 6px; padding: 7px; }
.orli-live[data-scrolly] .obw-otp-hint { margin: 0 0 6px; font-size: .78rem; }
.orli-live[data-scrolly] .obw-otp .obw-otp-hint + .obw-otp-hint { display: none; }
.orli-live[data-scrolly] .obw-resend-btn { display: none; }
.orli-live[data-scrolly] .obw-primary-btn { padding: 11px; }
/* Confirm step flex in scrolly: footer should not push down since widget clips */
.orli-live[data-scrolly] .obw-confirm-footer { margin-block-start: 0; }
.orli-live[data-scrolly] .obw-patient-form .obw-primary-btn { margin-block-start: 0; }
/* patient form: tighten fields so the whole form fits without scroll */
.orli-live[data-scrolly] .obw-field { margin-block-end: 6px; gap: 3px; }
.orli-live[data-scrolly] .obw-field input { padding: 7px 11px; }
.orli-live[data-scrolly] .obw-consent { margin-block: 0 6px; font-size: .75rem; }

/* Controls bar: lang toggle + progress in a single flex row. */
.orli-live .obw-controls { display: flex; align-items: center; gap: 10px; margin-block-end: 18px; }
.orli-live .obw-lang-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; background: transparent; border: 1px solid var(--obw-border); border-radius: var(--obw-radius-pill); color: var(--obw-muted); font-size: .72rem; font-weight: 600; line-height: 1; white-space: nowrap; direction: ltr; }
.orli-live .obw-lang-btn:hover { border-color: #c4bda8; color: var(--obw-text); }
.orli-live .obw-lang-btn > span { position: relative; top: 1px; }

.orli-live .obw-progress { display: flex; gap: 5px; flex: 1; min-width: 0; }
.orli-live .obw-progress-seg { flex: 1; height: 3px; border-radius: var(--obw-radius-pill); background: var(--obw-border); transition: background-color 220ms ease; }
.orli-live .obw-progress-seg.is-on { background: var(--obw-primary); }

.orli-live .obw-step { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; scrollbar-color: #d5cfc6 transparent; }
.orli-live .obw-step::-webkit-scrollbar { width: 6px; }
.orli-live .obw-step::-webkit-scrollbar-thumb { background: #d5cfc6; border-radius: 999px; }

/* Hebrew primary + English secondary sit on the SAME line (baseline-aligned),
   not stacked. English stays faint and small beside the Hebrew. */
.orli-live .obw-bi { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.25; }
/* Secondary line runs opposite the primary; isolate it so bidi never leaks. */
.orli-live .obw-en { opacity: .5; font-size: .8em; unicode-bidi: isolate; }
.orli-live bdi { unicode-bidi: isolate; }

.orli-live .obw-title { font-family: var(--obw-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-block: 4px 16px; }
.orli-live .obw-title .obw-en { font-size: .56em; font-weight: 400; margin-block-start: 0; }

.orli-live .obw-list { display: flex; flex-direction: column; gap: 8px; }
.orli-live .obw-card { border: 0; padding: 0; margin-block-end: 8px; }
.orli-live .obw-card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-block: 0 10px; }

.orli-live .obw-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 15px; text-align: start; background: var(--obw-bg); border: 1px solid var(--obw-border); border-radius: var(--obw-radius); color: var(--obw-text); font-weight: 600; letter-spacing: -0.01em; }
.orli-live .obw-option-content { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.orli-live .obw-option-description,
.orli-live .obw-option-price { font-size: .8rem; font-weight: 400; color: var(--obw-muted); }
.orli-live .obw-option::after { content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: var(--obw-primary); -webkit-mask: var(--obw-chevron) center / contain no-repeat; mask: var(--obw-chevron) center / contain no-repeat; }
/* The chevron variable already switches for LTR via the [dir="ltr"] rule above. */
.orli-live .obw-option:hover { border-color: #c4bda8; }

.orli-live .obw-slots { display: flex; flex-wrap: wrap; gap: 9px; }
.orli-live .obw-slot { padding: 11px 18px; background: var(--obw-bg); border: 1px solid var(--obw-border); border-radius: var(--obw-radius-pill); color: var(--obw-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.orli-live .obw-slot:hover { border-color: var(--obw-primary); }

.orli-live .obw-month-nav { display: flex; gap: 8px; align-items: center; margin-block-end: 14px; padding: 6px; background: var(--obw-parchment); border-radius: var(--obw-radius); }
.orli-live .obw-month-nav .obw-nav-btn { flex: 1; min-height: 44px; justify-content: space-between; padding: 8px 12px; background: transparent; border-color: transparent; border-radius: var(--obw-radius); font-weight: 600; }
.orli-live .obw-month-nav .obw-nav-btn:hover:not(:disabled) { background: rgba(0,0,0,.03); }
.orli-live .obw-nav-arrow { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: var(--obw-radius-pill); background: var(--obw-bg); color: var(--obw-text); font-size: 1rem; line-height: 1; box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }

.orli-live .obw-field { display: flex; flex-direction: column; gap: 6px; margin-block-end: 12px; }
.orli-live .obw-field input { padding: 11px 13px; border: 1px solid var(--obw-border); border-radius: var(--obw-radius); color: var(--obw-text); background: var(--obw-bg); }
.orli-live .obw-field input:focus { outline: 2px solid var(--obw-primary-focus); outline-offset: 0; border-color: var(--obw-primary-focus); }

.orli-live .obw-consent { display: flex; align-items: flex-start; gap: 9px; margin-block: 4px 14px; font-size: .82rem; color: var(--obw-muted); line-height: 1.4; }
.orli-live .obw-consent input { margin-block-start: 3px; width: 16px; height: 16px; accent-color: var(--obw-primary); }

.orli-live .obw-otp { border: 1px solid var(--obw-border); border-radius: var(--obw-radius); padding: 14px 16px; margin-block-end: 16px; }
.orli-live .obw-otp .obw-field input { font-size: 1.25rem; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.orli-live .obw-otp-hint { margin: 0 0 10px; font-size: .82rem; color: var(--obw-muted); }
.orli-live .obw-resend-btn { background: none; border: none; padding: 0; color: var(--obw-primary); cursor: pointer; font-size: .82rem; font-weight: 600; }
.orli-live .obw-resend-btn:disabled { color: var(--obw-muted); cursor: default; }

.orli-live .obw-summary { border: 0; background: var(--obw-parchment); border-radius: var(--obw-radius); padding: 11px 14px; margin-block-end: 12px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; align-items: baseline; }
.orli-live .obw-summary dt { color: var(--obw-muted); font-size: .76rem; margin: 0; }
.orli-live .obw-summary dd { margin: 0; font-weight: 600; font-size: .85rem; }

.orli-live .obw-primary-btn { width: 100%; padding: 14px; background: var(--obw-primary); color: var(--obw-primary-contrast); border: 0; border-radius: var(--obw-radius-pill); font-weight: 600; font-size: 1rem; }
.orli-live .obw-primary-btn:disabled { opacity: .45; cursor: default; }
.orli-live .obw-primary-btn--compact { padding-block: 9px; font-size: .92rem; }

.orli-live .obw-back-btn, .orli-live .obw-nav-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid transparent; color: var(--obw-primary); padding: 6px 8px; border-radius: var(--obw-radius); font-size: .9rem; font-weight: 600; line-height: 1.15; }
.orli-live .obw-back-btn { margin-block-end: 8px; margin-inline-start: -8px; }
.orli-live .obw-nav-btn { color: var(--obw-text); }
.orli-live .obw-back-btn:hover { opacity: .7; }
.orli-live .obw-nav-btn:hover:not(:disabled) { background: var(--obw-parchment); }
.orli-live .obw-nav-btn:disabled { opacity: .4; cursor: default; }
.orli-live .obw-nav-btn:disabled .obw-nav-arrow { box-shadow: none; }

.orli-live .obw-muted { color: var(--obw-muted); }
.orli-live .obw-error { color: #b4544a; margin-block: 12px; }

/* Confirm step: flex column so footer button pins to bottom. */
.orli-live .obw-confirm-step { display: flex; flex-direction: column; min-height: 100%; }
.orli-live .obw-confirm-footer { margin-block-start: auto; padding-block-end: 2px; }

/* Patient step: flex column so the submit button pins to bottom. */
.orli-live .obw-patient-step { display: flex; flex-direction: column; min-height: 100%; }
.orli-live .obw-patient-form { flex: 1; display: flex; flex-direction: column; }
.orli-live .obw-patient-form .obw-primary-btn { margin-block-start: auto; margin-block-end: 2px; }
