/* TABLE RESERVATIONS: the customer side (branch picker, booking steps, My Reservations). Same identity as the rest of the storefront:
   one --brand-primary / --brand-accent pair drives everything, pill buttons, soft tinted badges, short pop-in motion. Works in LTR and RTL. */
.rsv { --rsv-ink: #1c2b42; --rsv-muted: var(--muted, #6b7a90); --rsv-radius: 20px; --rsv-shadow: 0 10px 34px rgba(1, 31, 71, .08); --rsv-soft: color-mix(in srgb, var(--brand-accent, #fc8503) 12%, white); --rsv-ok: #1ea97c; --rsv-bad: #e5484d; max-width: 560px; margin: 0 auto; padding: 1rem 1rem 7rem; color: var(--rsv-ink); font-family: inherit; }
.rsv *, .rsv *::before, .rsv *::after { box-sizing: border-box; }
.rsv button { font-family: inherit; }
.rsv-hero { text-align: center; padding: 1.2rem 0 .6rem; animation: rsv-pop .35s ease both; }
.rsv-hero-ico { width: 62px; height: 62px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--brand-accent, #fc8503); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-accent, #fc8503) 38%, transparent); }
.rsv-hero h1 { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--brand-primary, #021e47); font-family: 'Sora', 'Rubik', sans-serif; }
html[dir='rtl'] .rsv-hero h1 { font-family: 'Rubik', 'Tahoma', sans-serif; }
.rsv-hero p { margin: .25rem 0 0; color: var(--rsv-muted); font-size: .9rem; }

/* branch picker */
.rsv-branches { display: grid; gap: .8rem; margin-top: 1rem; }
.rsv-branch { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid #e5ebf3; border-radius: var(--rsv-radius); padding: 1rem 1.1rem; text-decoration: none; color: inherit; box-shadow: var(--rsv-shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; animation: rsv-pop .3s ease both; }
.rsv-branch:hover, .rsv-branch:focus-visible { transform: translateY(-4px); border-color: var(--brand-accent, #fc8503); box-shadow: 0 14px 38px rgba(1, 31, 71, .13); outline: none; }
.rsv-branch-ico { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--rsv-soft); color: var(--brand-accent, #fc8503); font-size: 1.15rem; }
.rsv-branch b { display: block; font-size: 1.02rem; } .rsv-branch small { display: block; color: var(--rsv-muted); font-size: .8rem; margin-top: .1rem; }
.rsv-branch .rsv-go { margin-inline-start: auto; color: var(--rsv-muted); }
html[dir='rtl'] .rsv-branch .rsv-go { transform: scaleX(-1); }

/* progress */
.rsv-steps { display: flex; align-items: center; gap: 0; margin: .9rem 0 1.1rem; }
.rsv-step { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex: 0 0 auto; min-width: 46px; }
.rsv-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-style: normal; font-weight: 800; background: #fff; border: 2px solid #e5ebf3; color: var(--rsv-muted); transition: all .25s ease; }
.rsv-step span { font-size: .66rem; font-weight: 700; color: var(--rsv-muted); transition: color .25s ease; }
.rsv-step.active i { background: var(--brand-accent, #fc8503); border-color: var(--brand-accent, #fc8503); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-accent, #fc8503) 40%, transparent); transform: scale(1.08); }
.rsv-step.active span { color: var(--brand-primary, #021e47); }
.rsv-step.done i { background: var(--brand-primary, #021e47); border-color: var(--brand-primary, #021e47); color: #fff; }
.rsv-bar { flex: 1 1 auto; height: 2px; background: #e5ebf3; margin: 0 .15rem 1rem; position: relative; overflow: hidden; border-radius: 2px; }
.rsv-bar::after { content: ''; position: absolute; inset: 0; background: var(--brand-primary, #021e47); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
html[dir='rtl'] .rsv-bar::after { transform-origin: right; }
.rsv-bar.done::after { transform: scaleX(1); }

/* panes */
.rsv-card { background: #fff; border: 1px solid #e5ebf3; border-radius: var(--rsv-radius); box-shadow: var(--rsv-shadow); padding: 1.3rem 1.2rem; }
.rsv-pane { animation: rsv-slide-in .28s ease both; }
.rsv-pane.back { animation-name: rsv-slide-back; }
.rsv-q { font-size: 1.08rem; font-weight: 800; margin: 0 0 .25rem; color: var(--brand-primary, #021e47); }
.rsv-sub { color: var(--rsv-muted); font-size: .86rem; margin: 0 0 1rem; }
.rsv-label { display: block; font-size: .78rem; font-weight: 700; color: var(--rsv-muted); margin: .9rem 0 .35rem; }
.rsv-input, .rsv-text { width: 100%; border: 1.5px solid #e5ebf3; border-radius: 14px; padding: .65rem .9rem; background: #fff; font: inherit; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.rsv-input:focus, .rsv-text:focus { outline: none; border-color: var(--brand-accent, #fc8503); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 18%, transparent); }
.rsv-text { resize: vertical; min-height: 78px; }

/* party stepper */
.rsv-party { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin: 1.1rem 0 .8rem; }
.rsv-round { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid #e5ebf3; background: #fff; color: var(--brand-primary, #021e47); font-size: 1.1rem; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.rsv-round:hover:not(:disabled) { background: var(--rsv-soft); border-color: var(--brand-accent, #fc8503); transform: translateY(-1px); }
.rsv-round:active:not(:disabled) { transform: scale(.94); } .rsv-round:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 25%, transparent); } .rsv-round:disabled { opacity: .35; cursor: not-allowed; }
.rsv-num { min-width: 92px; text-align: center; } .rsv-num b { display: block; font-size: 3.1rem; line-height: 1; font-weight: 800; color: var(--brand-primary, #021e47); font-family: 'Sora', sans-serif; } .rsv-num span { font-size: .8rem; color: var(--rsv-muted); font-weight: 700; }
.rsv-num.bump b { animation: rsv-bump .22s ease; }
.rsv-quick { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: .6rem; }
.rsv-chip { border: 1.5px solid #e5ebf3; background: #fff; color: var(--rsv-muted); border-radius: 999px; padding: .35rem .85rem; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .15s ease; }
.rsv-chip:hover { border-color: var(--brand-accent, #fc8503); color: var(--brand-primary, #021e47); transform: translateY(-1px); }
.rsv-chip.on { background: var(--brand-accent, #fc8503); border-color: var(--brand-accent, #fc8503); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.rsv-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 22%, transparent); }
.rsv-note { display: flex; gap: .55rem; align-items: flex-start; background: var(--rsv-soft); color: #7a4a00; border-radius: 14px; padding: .65rem .85rem; font-size: .82rem; font-weight: 600; margin-top: .9rem; }
.rsv-note i { margin-top: .15rem; color: var(--brand-accent, #fc8503); }

/* calendar */
.rsv-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.rsv-calhead b { font-size: 1rem; font-weight: 800; } .rsv-calhead .rsv-round { width: 38px; height: 38px; font-size: .85rem; }
html[dir='rtl'] .rsv-calhead .rsv-round i { transform: scaleX(-1); }
.rsv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.rsv-dow { text-align: center; font-size: .68rem; font-weight: 800; color: var(--rsv-muted); padding: .2rem 0; }
.rsv-day { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; border: 1.5px solid transparent; background: #f6f8fb; color: var(--rsv-ink); font-weight: 700; font-size: .9rem; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; display: grid; place-items: center; }
.rsv-day:hover:not(:disabled) { border-color: var(--brand-accent, #fc8503); background: var(--rsv-soft); transform: translateY(-1px); }
.rsv-day:disabled { cursor: not-allowed; background: transparent; color: #b8c2d0; } .rsv-day.full:disabled, .rsv-day.closed:disabled { text-decoration: line-through; }
.rsv-day.today { border-color: var(--brand-primary, #021e47); } 
.rsv-day.on:hover {background: var(--brand-accent, #fc8503);}
.rsv-day.on { background: var(--brand-accent, #fc8503); color: #fff; border-color: var(--brand-accent, #fc8503); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-accent, #fc8503) 40%, transparent); }
.rsv-day.few::after, .rsv-day.waitlist::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #e8a317; } .rsv-day.waitlist::after { background: var(--rsv-muted); }
.rsv-day.on::after { background: #fff; } .rsv-day:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 25%, transparent); }
.rsv-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .8rem; font-size: .72rem; color: var(--rsv-muted); font-weight: 600; } .rsv-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: .35rem; background: #e8a317; } .rsv-legend span:last-child::before { background: var(--rsv-muted); }
.rsv-skel { height: 220px; border-radius: 16px; background: #eef2f7; animation: rsv-skelpulse 1.2s ease-in-out infinite; }

/* times */
.rsv-period { margin-top: .9rem; } .rsv-period h3 { font-size: .8rem; font-weight: 800; color: var(--rsv-muted); margin: 0 0 .5rem; display: flex; align-items: center; gap: .45rem; }
.rsv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.rsv-slot { position: relative; border: 1.5px solid #e5ebf3; background: #fff; border-radius: 999px; padding: .55rem .3rem; font-weight: 800; font-size: .92rem; cursor: pointer; color: var(--brand-primary, #021e47); transition: all .14s ease; }
.rsv-slot:hover:not(:disabled) { border-color: var(--brand-accent, #fc8503); background: var(--rsv-soft); transform: translateY(-1px); }
.rsv-slot.on { background: var(--brand-accent, #fc8503); border-color: var(--brand-accent, #fc8503); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-accent, #fc8503) 38%, transparent); }
.rsv-slot.on:hover { background: var(--brand-accent, #fc8503); }
.rsv-slot small { display: block; font-size: .6rem; font-weight: 700; opacity: .8; margin-top: -.05rem; } .rsv-slot.few small { color: #b87500; } .rsv-slot.on small { color: #fff; }
.rsv-slot.waitlist { border-style: dashed; color: var(--rsv-muted); } .rsv-slot.full, .rsv-slot.past { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.rsv-slot:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 25%, transparent); }

/* details */
.rsv-occ { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.rsv-occ button { border: 1.5px solid #e5ebf3; background: #fff; border-radius: 16px; padding: .7rem .3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-weight: 700; font-size: .72rem; color: var(--rsv-ink); transition: all .15s ease; }
.rsv-occ button i { font-size: 1.15rem; color: var(--brand-accent, #fc8503); transition: transform .2s ease; }
.rsv-occ button:hover { border-color: var(--brand-accent, #fc8503); transform: translateY(-2px); } .rsv-occ button:hover i { transform: scale(1.15) rotate(-6deg); }
.rsv-occ button.on { background: var(--brand-primary, #021e47); border-color: var(--brand-primary, #021e47); color: #fff; box-shadow: 0 8px 20px rgba(1, 31, 71, .22); } .rsv-occ button.on i { color: var(--brand-accent, #fc8503); }
.rsv-occ button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 25%, transparent); }
.rsv-pills { display: flex; flex-wrap: wrap; gap: .45rem; } .rsv-pills .rsv-chip i { margin-inline-end: .35rem; }

/* review */
.rsv-sum { display: grid; gap: .1rem; } .rsv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed #e5ebf3; font-size: .92rem; } .rsv-row:last-child { border-bottom: 0; }
.rsv-row span { color: var(--rsv-muted); font-weight: 600; } .rsv-row b { text-align: end; }
.rsv-policy { margin-top: 1rem; border: 1px solid #e5ebf3; border-radius: 16px; padding: .8rem .95rem; background: #fafbfd; font-size: .82rem; color: #3b4a60; line-height: 1.6; white-space: pre-line; max-height: 150px; overflow: auto; }
.rsv-check { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; font-size: .88rem; font-weight: 600; cursor: pointer; } .rsv-check input { width: 20px; height: 20px; accent-color: var(--brand-accent, #fc8503); margin-top: .1rem; flex: 0 0 auto; }
.rsv-err { background: #fdecee; color: #b4232a; border-radius: 14px; padding: .65rem .9rem; font-size: .86rem; font-weight: 700; margin-top: .9rem; animation: rsv-pop .2s ease both; }

/* actions */
.rsv-actions { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid #e5ebf3; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); 
padding-bottom: 2em;
}
.rsv-actions-in { max-width: 560px; margin: 0 auto; display: flex; gap: .6rem; }
.rsv-btn { border: 0; border-radius: 999px; font-weight: 700; padding: .8rem 1.4rem; cursor: pointer; font-size: .95rem; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; }
.rsv-btn.brand { flex: 1; background: var(--brand-accent, #fc8503); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-accent, #fc8503) 40%, transparent); }
.rsv-btn.brand:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-accent, #fc8503) 88%, black); transform: translateY(-1px); } .rsv-btn.brand:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.rsv-btn.ghost { background: color-mix(in srgb, var(--brand-primary, #021e47) 7%, white); border: 1px solid #e5ebf3; color: var(--brand-primary, #021e47); } .rsv-btn.ghost:hover { background: color-mix(in srgb, var(--brand-primary, #021e47) 12%, white); transform: translateY(-1px); }
.rsv-btn.danger { background: #fdecee; color: #b4232a; } .rsv-btn.danger:hover { background: #fbd9dc; transform: translateY(-1px); }
.rsv-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #fc8503) 30%, transparent); }
.rsv-btn.block { width: 100%; }
.rsv-spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: rsv-spin .7s linear infinite; }

/* success */
.rsv-done { text-align: center; padding-top: .6rem; }
.rsv-check-ico { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; background: color-mix(in srgb, var(--rsv-ok) 14%, white); display: grid; place-items: center; position: relative; animation: rsv-pop .4s ease both; }
.rsv-check-ico svg { width: 44px; height: 44px; } .rsv-check-ico path { fill: none; stroke: var(--rsv-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: rsv-draw .55s .25s ease forwards; }
.rsv-check-ico.wait { background: var(--rsv-soft); } .rsv-check-ico.wait path { stroke: var(--brand-accent, #fc8503); }
.rsv-check-ico::before, .rsv-check-ico::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--rsv-ok) 35%, transparent); animation: rsv-ring 1.4s ease-out .3s 1 both; } .rsv-check-ico::after { animation-delay: .55s; }
.rsv-done h2 { font-size: 1.3rem; font-weight: 800; color: var(--brand-primary, #021e47); margin: 0 0 .3rem; } .rsv-done p { color: var(--rsv-muted); font-size: .9rem; margin: 0; }
.rsv-number { display: inline-flex; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--brand-primary, #021e47); color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 1.15rem; font-family: 'Sora', monospace; direction: ltr; animation: rsv-pop .4s .3s ease both; }
.rsv-number button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; } .rsv-number button:hover { background: rgba(255, 255, 255, .28); }
.rsv-wa { display: flex; gap: .6rem; align-items: center; justify-content: center; margin-top: .9rem; background: #e8f8f1; color: #137a58; border-radius: 14px; padding: .6rem .8rem; font-size: .82rem; font-weight: 700; }
.rsv-links { display: grid; gap: .55rem; margin-top: 1.2rem; }

/* my reservations */
.rsv-tabs { display: flex; gap: .4rem; margin: .4rem 0 1rem; }
.rsv-list { display: grid; gap: .8rem; }
.rsv-res { background: #fff; border: 1px solid #e5ebf3; border-radius: var(--rsv-radius); box-shadow: var(--rsv-shadow); padding: 1rem 1.1rem; animation: rsv-pop .3s ease both; transition: transform .18s ease, border-color .18s ease; }
.rsv-res:hover { transform: translateY(-3px); border-color: var(--brand-accent, #fc8503); }
.rsv-res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; } .rsv-res-top b { font-size: 1rem; } .rsv-res-no { font-family: 'Sora', monospace; font-size: .76rem; font-weight: 800; color: var(--rsv-muted); letter-spacing: .06em; direction: ltr; display: inline-block; }
.rsv-when { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .6rem 0; font-size: .86rem; font-weight: 700; } .rsv-when i { color: var(--brand-accent, #fc8503); margin-inline-end: .3rem; }
.rsv-badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .22rem .7rem; font-size: .72rem; font-weight: 800; white-space: nowrap; background: #eef1f6; color: #52627a; }
.rsv-badge.pending { background: #fff4e0; color: #9a5b00; } .rsv-badge.confirmed { background: #e6f9f1; color: #1ea97c; } .rsv-badge.seated { background: #e6f0ff; color: #1d4ed8; } .rsv-badge.completed { background: #eef1f6; color: #52627a; }
.rsv-badge.declined, .rsv-badge.cancelled, .rsv-badge.no_show, .rsv-badge.expired { background: #fdecee; color: #b4232a; } .rsv-badge.waitlist { background: #f1ecfd; color: #6a3fd0; }
.rsv-res-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; } .rsv-res-actions .rsv-btn { padding: .5rem 1rem; font-size: .82rem; }
.rsv-empty { text-align: center; padding: 2.4rem 1rem; color: var(--rsv-muted); } .rsv-empty i { font-size: 2.2rem; color: var(--brand-accent, #fc8503); display: block; margin-bottom: .6rem; opacity: .85; }
.rsv-sheet-back { position: fixed; inset: 0; background: rgba(1, 31, 71, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: rsv-fade .2s ease both; }
.rsv-sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); animation: rsv-sheet .28s ease both; }
.rsv-sheet h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .8rem; color: var(--brand-primary, #021e47); }
@media (min-width: 640px) { .rsv-sheet-back { align-items: center; } .rsv-sheet { border-radius: 24px; } }

@keyframes rsv-pop { from { opacity: 0; transform: translateY(7px) scale(.98); } }
@keyframes rsv-slide-in { from { opacity: 0; transform: translateX(18px); } } html[dir='rtl'] .rsv-pane { animation-name: rsv-slide-in-rtl; } @keyframes rsv-slide-in-rtl { from { opacity: 0; transform: translateX(-18px); } }
@keyframes rsv-slide-back { from { opacity: 0; transform: translateX(-18px); } } html[dir='rtl'] .rsv-pane.back { animation-name: rsv-slide-back-rtl; } @keyframes rsv-slide-back-rtl { from { opacity: 0; transform: translateX(18px); } }
@keyframes rsv-bump { 50% { transform: scale(1.18); } } @keyframes rsv-spin { to { transform: rotate(360deg); } } @keyframes rsv-draw { to { stroke-dashoffset: 0; } }
@keyframes rsv-ring { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.35); } } @keyframes rsv-skelpulse { 50% { opacity: .5; } } @keyframes rsv-fade { from { opacity: 0; } } @keyframes rsv-sheet { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rsv *, .rsv *::before, .rsv *::after { animation: none !important; transition: none !important; } .rsv-check-ico path { stroke-dashoffset: 0; } }
@media (max-width: 380px) { .rsv-slots { grid-template-columns: repeat(2, 1fr); } .rsv-occ { grid-template-columns: repeat(2, 1fr); } .rsv-step span { display: none; } }
