.booking-panel[hidden],
.booking-overlay[hidden] { display: none !important; }

.booking-panel {
    position: fixed;
    z-index: 9000;
    right: 0;
    bottom: calc(var(--booking-cookie-offset, 0px) + env(safe-area-inset-bottom, 0px));
    left: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(24, 18, 14, .97);
    border-top: 1px solid rgba(232, 164, 184, .35);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .28);
    transform: translateY(110%);
    transition: transform .22s ease;
}

.booking-panel.is-visible { transform: translateY(0); }
.booking-panel__open,
.booking-panel__call {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font: 700 14px/1.2 Onest, Arial, sans-serif;
    text-decoration: none;
}
.booking-panel__open {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    background: #c4788a;
    color: #fff;
    cursor: pointer;
}
.booking-panel__call {
    width: 50px;
    flex: 0 0 50px;
    border: 1px solid #e8a4b8;
    color: #fbceb5;
    font-size: 20px;
}
.booking-panel__open:focus-visible,
.booking-panel__call:focus-visible,
.booking-dialog button:focus-visible,
.booking-dialog input:focus-visible,
.booking-dialog select:focus-visible {
    outline: 3px solid #fbceb5;
    outline-offset: 2px;
}

body.has-booking-panel { padding-bottom: calc(var(--booking-reserved-height, 76px) + env(safe-area-inset-bottom, 0px)); }
body.has-booking-panel .scroll-top.is-visible { visibility: hidden; pointer-events: none; }

.booking-overlay {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 8, 6, .78);
    opacity: 0;
    transition: opacity .18s ease;
}
.booking-overlay.is-open { opacity: 1; }
.booking-dialog {
    width: min(100%, 560px);
    max-height: min(90vh, 900px);
    overflow: auto;
    overscroll-behavior: contain;
    position: relative;
    padding: 30px;
    border: 1px solid rgba(232, 164, 184, .38);
    border-radius: 18px;
    background: #211813;
    color: #fbceb5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
    transform: translateY(14px);
    transition: transform .18s ease;
}
.booking-overlay.is-open .booking-dialog { transform: translateY(0); }
.booking-dialog__close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(251, 206, 181, .32);
    border-radius: 50%;
    background: transparent;
    color: #fbceb5;
    font-size: 25px;
    cursor: pointer;
}
.booking-dialog__title { margin: 0 48px 8px 0; font-size: 24px; line-height: 1.25; color: #fbceb5; }
.booking-dialog__intro { margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }
.booking-form { display: grid; gap: 16px; }
.booking-field { display: grid; gap: 7px; min-width: 0; }
.booking-contact-value[hidden] { display: none !important; }
.booking-field__label { color: #fbceb5; font-size: 14px; font-weight: 600; }
.booking-input,
.booking-select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(251,206,181,.35);
    border-radius: 8px;
    background: #18120e;
    color: #fff;
    font: 16px/1.35 Onest, Arial, sans-serif;
}
.booking-select option { background: #211813; color: #fff; }
.booking-calendar { border: 1px solid rgba(251,206,181,.2); border-radius: 12px; padding: 12px; }
.booking-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.booking-calendar__month { min-width: 0; text-align: center; color: #fbceb5; font-weight: 700; }
.booking-calendar__nav { width: 42px; height: 42px; border: 1px solid rgba(251,206,181,.3); border-radius: 8px; background: #18120e; color: #fbceb5; font-size: 20px; cursor: pointer; }
.booking-calendar__nav:disabled { opacity: .35; cursor: default; }
.booking-calendar__grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.booking-calendar__weekday { display: grid; place-items: center; min-height: 28px; color: rgba(255,255,255,.52); font-size: 11px; }
.booking-calendar__day { min-width: 0; min-height: 42px; border: 1px solid transparent; border-radius: 8px; background: #30231c; color: #fff; font: 600 14px Onest,Arial,sans-serif; cursor: pointer; }
.booking-calendar__day:hover:not(:disabled) { border-color: #e8a4b8; }
.booking-calendar__day:disabled { background: transparent; color: rgba(255,255,255,.2); cursor: default; }
.booking-calendar__day[aria-pressed="true"] { background: #c4788a; color: #fff; }
.booking-times { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.booking-time { min-height: 46px; border: 1px solid rgba(251,206,181,.3); border-radius: 8px; background: #30231c; color: #fff; font: 600 14px Onest,Arial,sans-serif; cursor: pointer; }
.booking-time[aria-pressed="true"] { border-color: #e8a4b8; background: #c4788a; }
.booking-more-times { width: 100%; min-height: 44px; margin-top: 9px; border: 0; background: transparent; color: #e8a4b8; font: 600 14px Onest,Arial,sans-serif; text-decoration: underline; cursor: pointer; }
.booking-summary { min-height: 24px; margin: 0; color: #fbceb5; font-size: 14px; font-weight: 600; }
.booking-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-contact__option { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(251,206,181,.3); border-radius: 22px; color: #fff; cursor: pointer; }
.booking-contact__option:has(input:checked) { border-color: #e8a4b8; background: rgba(196,120,138,.16); }
.booking-contact__option input { accent-color: #c4788a; }
.booking-consent { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; }
.booking-consent input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #c4788a; }
.booking-consent a { color: #e8a4b8; text-decoration: underline; }
.booking-submit { min-height: 52px; border: 0; border-radius: 8px; padding: 12px 18px; background: #c4788a; color: #fff; font: 700 16px Onest,Arial,sans-serif; cursor: pointer; }
.booking-submit:disabled { opacity: .65; cursor: wait; }
.booking-confirm { margin: -6px 0 0; color: rgba(255,255,255,.62); font-size: 12px; text-align: center; }
.booking-status { margin: 0; color: #fbceb5; font-size: 14px; line-height: 1.5; }
.booking-status[data-state="error"] { color: #ffb9a9; }
.booking-success { padding: 48px 6px 30px; text-align: center; color: #fbceb5; font-size: 18px; line-height: 1.5; }

@media (max-width: 768px) {
    .booking-overlay { align-items: stretch; padding: 0; background: #18120e; }
    .booking-dialog { width: 100%; height: 100%; height: 100dvh; max-height: none; padding: max(68px, calc(env(safe-area-inset-top, 0px) + 58px)) 18px calc(24px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; }
    .booking-dialog__close { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; background: #211813; }
    .booking-dialog__title { font-size: 22px; }
    .booking-calendar { padding: 9px; }
    .booking-calendar__grid { gap: 3px; }
    .booking-calendar__day { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .booking-panel, .booking-overlay, .booking-dialog { transition: none; }
}
