#save_reservations_booking {
    --cheno-field: var(--wp--preset--color--ink);
    --cheno-accent: var(--wp--preset--color--laguna);
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 420px;
    margin: 0 auto;
}

#save_reservations_booking br {
    display: none;
}

#save_reservations_booking .form-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

#save_reservations_booking label {
    color: var(--wp--preset--color--ink);
    transition: color 200ms ease;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 16px;
    text-transform: uppercase;
}

#save_reservations_booking .form-inline {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

#save_reservations_booking .form-inline > .form-input {
    flex: 1;
    min-width: 0;
}

#save_reservations_booking .form-inline > .form-input:empty {
    display: none;
}

#save_reservations_booking .form-inline > .input-phone-prefix {
    flex: 0 0 90px;
    width: auto;
    margin: 0;
}

#save_reservations_booking .input-phone-number {
    width: auto;
}

#booking-data > * + * {
    margin-top: 36px;
}

#hours > :not(.booking-cta) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#save_reservations_booking .all-options,
#save_reservations_booking .form-input.calendar input,
#save_reservations_booking #booking-time,
#save_reservations_booking #booking-seats,
#save_reservations_booking .no-time {
    box-sizing: border-box;
    width: 100% !important;
    height: 40px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--cheno-field);
    border-radius: 0;
    background-color: transparent;
    color: var(--wp--preset--color--ink);
    font: inherit;
    font-size: var(--wp--preset--font-size--label);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

#save_reservations_booking select.all-options {
    appearance: none;
    padding-right: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.2l7 7.6 7-7.6' fill='none' stroke='%23020B0D' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 13px auto;
    cursor: pointer;
}

#save_reservations_booking .form-input.calendar input {
    cursor: pointer;
}

#save_reservations_booking :is(.form-input, #hours > *):focus-within label {
    color: var(--cheno-accent);
}

#save_reservations_booking :is(.all-options, .form-input.calendar input):focus {
    outline: none;
    border-bottom-color: var(--cheno-accent);
    box-shadow: 0 1px 0 var(--cheno-accent);
}

#save_reservations_booking .all-options::placeholder {
    color: var(--wp--preset--color--line);
}

#save_reservations_booking .booking-no-hours-title,
#booking-disabled-notice {
    margin: 0;
    padding: 28px 0 0;
    color: var(--cheno-accent);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 17px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    text-align: center;
    text-transform: none;
}

#save_reservations_booking .submit {
    margin: 8px 0 0;
}

#save_reservations_booking #booking-submit {
    box-sizing: border-box;
    width: 100%;
    padding: 18px 27px;
    border: 1px solid var(--cheno-accent);
    border-radius: 0;
    background-color: var(--cheno-accent);
    color: var(--wp--preset--color--cream);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

#save_reservations_booking #booking-submit:hover,
#save_reservations_booking #booking-submit:focus-visible {
    background-color: transparent;
    color: var(--cheno-accent);
}

#save_reservations_booking #booking-submit:focus-visible {
    outline: 2px solid var(--cheno-accent);
    outline-offset: 3px;
}

#booking-error {
    color: var(--wp--preset--color--carminio) !important;
    text-align: center;
}

#booking-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(440px, calc(100% - 40px));
    max-width: none;
    height: fit-content;
    max-height: calc(100% - 40px);
    margin: auto !important;
    padding: 44px 44px 40px;
    border: 0 !important;
    background: var(--wp--preset--color--cream);
    box-shadow: 0 24px 60px rgb(25 37 35 / 0.18) !important;
    color: var(--wp--preset--color--ink);
    text-align: center;
}

#booking-dialog[open] {
    animation: cheno-dialog-in 320ms var(--cheno-ease);
}

#booking-dialog::backdrop {
    background: rgb(25 37 35 / 0.45);
    cursor: pointer;
}

#booking-dialog[open]::backdrop {
    animation: cheno-backdrop-in 320ms ease;
}

#booking-dialog.is-closing {
    animation: cheno-dialog-out 220ms ease forwards;
}

#booking-dialog.is-closing::backdrop {
    animation: cheno-backdrop-out 220ms ease forwards;
}

@keyframes cheno-dialog-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
}

@keyframes cheno-dialog-out {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

@keyframes cheno-backdrop-in {
    from {
        opacity: 0;
    }
}

@keyframes cheno-backdrop-out {
    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #booking-dialog[open],
    #booking-dialog[open]::backdrop,
    #booking-dialog.is-closing,
    #booking-dialog.is-closing::backdrop {
        animation: none;
    }
}

#booking-dialog-close-container {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto !important;
}

#booking-dialog-close {
    color: var(--wp--preset--color--laguna);
    transition: color 200ms ease;
}

#booking-dialog-close:hover,
#booking-dialog-close:focus-visible {
    color: var(--wp--preset--color--ink);
}

#booking-dialog-close:focus {
    outline: none;
}

#booking-dialog-close:focus-visible {
    outline: 1px solid var(--wp--preset--color--laguna);
    outline-offset: 3px;
}

#booking-dialog-close svg {
    height: 20px;
}

#booking-dialog-title {
    margin: 0 0 12px;
    color: var(--wp--preset--color--ink);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 30px;
    text-transform: none;
}

#booking-dialog-description {
    margin: 0;
    font-size: var(--wp--preset--font-size--base);
    line-height: 24px;
}

.wp-site-blocks .booking-cta {
    display: flex;
    align-items: stretch;
    gap: 18px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.wp-site-blocks .booking-cta-image {
    order: 0;
    flex: 0 0 38%;
    width: 38%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.wp-site-blocks .booking-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    width: auto;
    min-width: 0;
}

.wp-site-blocks .booking-cta .booking-cta-title {
    margin: 0;
    color: var(--wp--preset--color--ink);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    text-transform: none;
}

.wp-site-blocks .booking-cta .booking-cta-description {
    margin: 0;
    font-size: var(--wp--preset--font-size--base);
    line-height: 22px;
}

.wp-site-blocks .booking-cta .booking-cta-button {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--ink);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 20px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-transform: uppercase;
    text-underline-offset: 4px;
}

.wp-site-blocks .booking-cta .booking-cta-button:hover,
.wp-site-blocks .booking-cta .booking-cta-button:focus-visible {
    background: none;
    color: var(--wp--preset--color--laguna);
}

#hours .booking-cta {
    margin-top: 28px;
}

#booking-dialog .booking-cta {
    margin-top: 26px;
}

@media (max-width: 782px) {
    .wp-site-blocks .booking-cta {
        flex-direction: column;
    }

    .wp-site-blocks .booking-cta-image {
        flex: none;
        width: 100%;
        aspect-ratio: 3 / 2;
    }
}

#save_reservations_booking #booking-message {
    margin: 0;
    color: var(--wp--preset--color--ink);
    text-align: center;
    font-size: var(--wp--preset--font-size--base);
    line-height: 22px;
}

#save_reservations_booking > .form-input:has(> input[type="checkbox"]) {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    order: 1;
}

#save_reservations_booking > .form-input:has(> #booking-privacy) {
    justify-content: center;
}

#save_reservations_booking > .form-input:has(> #booking-terms) {
    justify-content: center;
    order: 0;
    margin-top: -20px;
}

#save_reservations_booking .submit {
    order: 2;
}

#save_reservations_booking input[type="checkbox"] {
    flex: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    border: 1px solid var(--wp--preset--color--ink);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

#save_reservations_booking input[type="checkbox"]:checked {
    border-color: var(--wp--preset--color--laguna);
    background: var(--wp--preset--color--laguna) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6.4' fill='none' stroke='%23F8F8F1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 12px;
}

#save_reservations_booking input[type="checkbox"]:focus-visible {
    outline: 1px solid var(--wp--preset--color--laguna);
    outline-offset: 2px;
}

#save_reservations_booking .form-input:has(> input[type="checkbox"]) label {
    font-size: var(--wp--preset--font-size--base);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
    text-transform: none;
    cursor: pointer;
}

.flatpickr-calendar {
    border: 1px solid var(--wp--preset--color--laguna);
    border-radius: 0;
    box-shadow: 0 12px 30px rgb(25 37 35 / 0.12);
    background: var(--wp--preset--color--cream);
    font-family: var(--wp--preset--font-family--sans);
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--wp--preset--color--laguna);
    fill: var(--wp--preset--color--laguna);
    font-weight: 500;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: var(--wp--preset--color--laguna);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--wp--preset--color--ink);
}

span.flatpickr-weekday {
    color: var(--wp--preset--color--laguna);
    font-weight: 500;
}

.flatpickr-day {
    border-radius: 0;
    color: var(--wp--preset--color--ink);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    border-color: transparent;
    background: rgb(58 75 69 / 0.12);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    border-color: var(--wp--preset--color--laguna);
    background: var(--wp--preset--color--laguna);
    color: var(--wp--preset--color--cream);
}

.flatpickr-day.today {
    border-color: var(--wp--preset--color--laguna);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--wp--preset--color--line);
}

.cheno-booking {
    padding-block: var(--wp--preset--spacing--40) calc(var(--wp--preset--spacing--40) + 40px);
}

.cheno-booking > h1.wp-block-heading {
    margin-bottom: 36px;
    font-family: var(--wp--preset--font-family--serif);
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 30px;
    text-transform: none;
}
