/* Match the listing calendar while keeping Kitchen's single-date booking. */
.kitchen-booking-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 16px auto;
}
.kitchen-booking-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    background: #fff;
    color: #333;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
}
.kitchen-booking-modal .modal-header { flex: 0 0 auto; padding: 18px 24px; border-bottom-color: #ebebeb; }
.kitchen-booking-modal .modal-title {
    margin: 0;
    padding-right: 40px;
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
    text-align: left;
}
.kitchen-booking-modal .close {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    background: #f7f7f7;
    color: #484848;
    font-size: 26px;
    line-height: 30px;
    text-shadow: none;
    opacity: 1;
}
.kitchen-booking-modal .close:hover { background: #eee; }
.kitchen-booking-modal .modal-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}
.kitchen-booking-form { display: flex; width: 100%; min-height: 0; }
.kitchen-booking-modal #calendar-person { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; }
.kitchen-booking-scroll { flex: 1 1 auto; min-height: 0; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.kitchen-booking-modal .divs { position: relative; }
.kitchen-booking-modal .kitchen-calendar-controls { position: absolute; top: 0; left: 0; right: 0; height: 40px; pointer-events: none; }
.kitchen-booking-modal .kitchen-calendar-nav {
    position: absolute;
    top: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 28px;
    line-height: 1;
    pointer-events: auto;
}
.kitchen-booking-modal #prev { left: 0; }
.kitchen-booking-modal #next { right: 0; }
.kitchen-booking-modal .kitchen-calendar-nav:hover:not(:disabled) { background: #f7f7f7; border-color: #222; }
.kitchen-booking-modal .kitchen-calendar-nav:disabled { color: #b0b0b0; border-color: #eee; cursor: default; }
.kitchen-booking-modal .kitchen-calendar-month { margin: 0; }
.kitchen-booking-modal .kitchen-calendar-month > p {
    min-height: 40px;
    margin: 0 44px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #222;
    line-height: 24px;
}
.kitchen-booking-modal table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.kitchen-booking-modal th { height: 28px; padding: 0; color: #717171; font-size: 12px; font-weight: 400; text-align: center; }
.kitchen-booking-modal td { height: 40px; padding: 0; text-align: center; }
.kitchen-booking-modal .labelTime {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}
.kitchen-booking-modal .date-select {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
}
.kitchen-booking-modal .date-select:not(:disabled) + .labelTime:hover { background: #f7f7f7; box-shadow: inset 0 0 0 1px #222; }
.kitchen-booking-modal .date-select:checked + .labelTime,
.kitchen-booking-modal .date-select:checked + .labelTime:hover { background: #222; color: #fff; }
.kitchen-booking-modal .date-select:disabled + .labelTime { color: #b0b0b0 !important; font-weight: 400; cursor: default; }
.kitchen-booking-modal .date-select:focus-visible + .labelTime,
.kitchen-booking-modal button:focus-visible,
.kitchen-booking-modal #link:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.kitchen-booking-modal .kitchen-time-field { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; text-align: left; }
.kitchen-booking-modal .kitchen-time-field legend,
.kitchen-booking-modal .kitchen-guests-heading { width: 100%; margin: 0 0 12px; padding: 0; border: 0; color: #333; font-size: 15px; font-weight: 600; line-height: 22px; }
.kitchen-time-empty { margin: 0; padding: 12px 14px; border-radius: 8px; background: #f7f7f7; color: #717171; font-size: 14px; line-height: 22px; }
.kitchen-time-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.kitchen-time-option { position: relative; min-width: 0; margin: 0; font-weight: 500; cursor: pointer; }
.kitchen-time-option input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.kitchen-time-option > span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px; border: 1px solid #ddd; border-radius: 10px; color: #333; font-size: 14px; line-height: 20px; }
.kitchen-time-option:hover > span { border-color: #222; background: #f7f7f7; }
.kitchen-time-option input:checked + span { border-color: #222; background: #222; color: #fff; }
.kitchen-time-option input:focus-visible + span { outline: 2px solid #222; outline-offset: 3px; }
.kitchen-booking-modal .kitchen-guest-fields { margin-top: 24px; text-align: left; }
.kitchen-booking-modal .kitchen-guests-heading { display: flex; align-items: center; margin-bottom: 8px; }
.kitchen-capacity { margin-left: auto; color: #717171; font-size: 12px; font-weight: 400; }
.kitchen-guest-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.kitchen-guest-row:last-child { border-bottom: 0; }
.kitchen-guest-counter { display: grid; grid-template-columns: 40px 28px 40px; align-items: center; gap: 10px; }
.kitchen-guest-counter button { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #d0d0d0; border-radius: 50%; background: #fff; color: #333; font-size: 0; line-height: 1; appearance: none; }
.kitchen-guest-counter button::before,
.kitchen-guest-counter button[aria-label^="Add"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); }
.kitchen-guest-counter button[aria-label^="Add"]::after { width: 1.5px; height: 12px; }
.kitchen-guest-counter button:hover:not(:disabled) { border-color: #222; background: #f7f7f7; }
.kitchen-guest-counter button:disabled { border-color: #e5e5e5; color: #b0b0b0; cursor: default; }
.kitchen-guest-counter output { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 40px; margin: 0; padding: 0; color: #333; font-family: Arial, sans-serif; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.kitchen-booking-modal #kitchen-booking-error { margin: 0 0 12px; color: #b4232c; font-size: 14px; text-align: left; }
.kitchen-booking-modal .kitchen-booking-footer { flex: 0 0 auto; margin: 0; padding: 16px 24px; border-top: 1px solid #ebebeb; background: #fff; }
.kitchen-booking-modal #link { display: block; text-decoration: none; border-radius: 8px; }
.kitchen-booking-modal #link .btn-my-red { min-height: 48px; margin: 0; padding: 12px 16px; font-size: 16px; line-height: 24px; }
.kitchen-booking-modal .kitchen-booking-footer p { margin: 10px 0 0; color: #717171; font-size: 13px; line-height: 20px; }
@media (min-width: 601px) and (max-height: 800px) {
    .kitchen-booking-modal td { height: 34px; }
    .kitchen-booking-modal .labelTime { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
    .kitchen-booking-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .kitchen-booking-modal .modal-header { padding: 16px 18px; }
    .kitchen-booking-modal .modal-title { font-size: 20px; }
    .kitchen-booking-modal .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .kitchen-booking-scroll { padding: 16px 18px; }
    .kitchen-booking-modal .kitchen-booking-footer { padding: 14px 18px; }
    .kitchen-booking-modal table { border-spacing: 2px 4px; }
    .kitchen-booking-modal .labelTime { width: 34px; height: 34px; }
    .kitchen-booking-modal td { height: 34px; }
}

/* Geometric icons stay centered regardless of the text font's baseline. */
.kitchen-booking-modal .kitchen-calendar-nav { font-size: 0; }
.kitchen-booking-modal .kitchen-calendar-nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.kitchen-booking-modal #prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.kitchen-booking-modal .close { position: relative; font-size: 0; }
.kitchen-booking-modal .close span { display: none; }
.kitchen-booking-modal .close::before,
.kitchen-booking-modal .close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.kitchen-booking-modal .close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Give the calendar and booking choices their own columns on larger screens. */
@media (min-width: 701px) {
    .kitchen-booking-modal .modal-dialog { max-width: 760px; margin: 32px auto; }
    .kitchen-booking-modal .modal-content { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
    .kitchen-booking-scroll { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px; padding: 24px; }
    .kitchen-booking-modal #appCalendar { display: contents; }
    .kitchen-booking-modal .divs { grid-column: 1; grid-row: 1 / span 2; padding-right: 24px; border-right: 1px solid #ebebeb; }
    .kitchen-booking-modal .kitchen-calendar-controls { right: 24px; }
    .kitchen-booking-modal .kitchen-time-field { grid-column: 2; grid-row: 1; margin: 0; }
    .kitchen-booking-modal .kitchen-guest-fields { grid-column: 2; grid-row: 2; margin: 0; }
    .kitchen-time-options { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
