﻿/* ====================================
   BOOKING PAGE RESPONSIVE STYLES
   ==================================== */

/* Tablets and below (1024px) */
.booking-action-label {
    display: none;
}

.booking-sidebar-dialog:not([open]) {
    display: none;
}

@media screen and (max-width: 1024px) {
    :root {
        --scale: .88;
        --w-hour: var(--px-48);
    }

    .booking-page-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-width: 0;
        padding-bottom: calc(var(--px-56) + var(--px-32) + var(--px-8));
    }

    .booking-page-body.create-appointment {
        width: 100%;
        grid-template-columns: 1fr;
    }

        .booking-page-body > .booking-action-area {
            display: none;
        }

        .booking-page-body[sidecalendar] .booking-calendar-area {
            grid-column: 1;
            min-width: 0;
            max-width: 100%;
            min-height: 0;
        }

        .booking-page-body .btn-action-form-calendar {
            display: flex;
            flex-shrink: 0;
            min-width: 44px;
            min-height: 44px;
        }

    .right-side-panel-action {
        position: fixed;
        bottom: var(--px-32);
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bs-surface-bg);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        padding: var(--px-8) var(--px-12);
        grid-column: 1;
    }

        .right-side-panel-action .group-btn-action {
            flex-direction: row;
            max-width: 100%;
            gap: var(--px-8);
            justify-content: space-around;
        }

    .right-side-panel-action .btn-toggle-setting-form {
        width: auto;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--px-12);
        padding: 0 var(--px-16);
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .right-side-panel-action .btn-toggle-setting-form::after {
        display: none !important;
    }

    .right-side-panel-action .divider {
        display: none;
    }

    /* Header adjustments */
    .booking-header-panel {
        grid-column: 1;
        padding: var(--px-8);
        gap: var(--px-12);
    }

    .stats-booking {
        padding: 0 var(--px-2);
    }

        .stats-booking .stats-bar {
            gap: var(--px-8);
            width: 100%;
            justify-content: space-between;
        }

        .stats-booking .stat-label {
            font: normal normal 600 var(--s-8);
            font-size: 8px;
            letter-spacing: 0.4px;
        }

    /* Adjust header controls */
    #navbar-append-follow-page {
        flex-wrap: wrap;
        gap: var(--px-8);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    #navbar-append-follow-page::-webkit-scrollbar {
        display: none;
    }

    .booking-page-body.opening-right-side-panel .right-side-panel-body {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(var(--px-72) + var(--px-32));
        width: 100%;
        height: auto;
        z-index: 99;
        background: var(--bs-surface-bg);
        box-shadow: none;
        border-radius: 0;
        overflow-y: hidden;
    }
}

/* Mobile devices (768px and below) */
@media screen and (max-width: 768px) {
    /* ===== BOOKING HEADER - COMPACT LAYOUT ===== */
    .booking-header-panel {
        display: block;
        gap: 0;
        padding: 6px 8px;
        background: var(--bs-surface-bg);
        border-bottom: 1px solid var(--bs-border-color);
    }

    .booking-header-panel .header-title-calendar {
        display: grid;
        grid-template-columns: 40px 34px minmax(0, 1fr);
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .booking-header-panel .header-title-calendar p {
        display: none;
    }

    .booking-header-panel .header-title-calendar .icon-cal {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .booking-header-panel .header-title-calendar span.day-append-calendar-generate {
        font-size: 18px;
    }

    .booking-header-panel .header-title-calendar > .btn-action-form-calendar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
    }

    #navbar-append-follow-page {
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
        gap: 4px;
        overflow: visible;
        min-width: 0;
    }

    #navbar-append-follow-page .nav-item {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    #navbar-append-follow-page > .nav-item:first-child {
        flex: 0 0 auto;
    }

    #navbar-append-follow-page > .nav-item:nth-child(2) {
        flex: 0 1 clamp(184px, 48vw, 232px);
        max-width: clamp(184px, 48vw, 232px);
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 2px;
    }

    #navbar-append-follow-page > .nav-item:last-child {
        margin-left: 2px;
    }

    #navbar-append-follow-page .btn-view-calendar-today {
        height: 36px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 18px;
        font-size: 12px;
    }

    #navbar-append-follow-page .btn-view-calendar-date {
        width: 34px;
        height: 34px;
    }

    #navbar-append-follow-page #select-date-navbar-calendar {
        min-width: 0;
        width: 100%;
        padding: 0 4px;
        border-radius: 10px;
        background: transparent;
    }

    #navbar-append-follow-page #select-date-navbar-calendar .text-28 {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        line-height: 1.2;
        font-size: 13px;
    }

    #view-mode-switch {
        width: 82px;
        height: 34px;
        flex: 0 0 82px;
    }

    /* Calendar area adjustments */
    .booking-page-body .booking-calendar-area {
        border-radius: 0;
    }

        .booking-page-body .booking-calendar-area .area-hours-view {
            min-height: var(--px-72);
            max-height: var(--px-72);
        }

        .booking-page-body .booking-calendar-area .header-hours {
            min-height: var(--px-92);
        }

        .booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo {
            width: var(--px-40);
            height: var(--px-40);
        }

        .booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .name {
            font-size: var(--px-12);
        }


    /* ===== RIGHT SIDE PANEL - TRANSFORM TO BOTTOM BAR ===== */
    .booking-page-body {
        grid-template-rows: auto auto 1fr auto;
        padding-bottom: calc(var(--px-56) + var(--px-32) + var(--px-8));
        min-width: 0;
    }

    .right-side-panel-action {
        position: fixed;
        bottom: var(--px-32);
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bs-surface-bg);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        padding: var(--px-8) var(--px-12);
        grid-column: 1;
    }

        .right-side-panel-action .group-btn-action {
            flex-direction: row;
            max-width: 100%;
            gap: var(--px-8);
            justify-content: space-around;
        }

        .right-side-panel-action .btn-toggle-setting-form {
            width: auto;
            height: 44px;
            min-height: 44px;
            min-width: 44px;
            border-radius: var(--px-12);
            padding: 0 var(--px-16);
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: var(--px-4);
            font-size: var(--px-10);
            position: relative;
        }

            .right-side-panel-action .btn-toggle-setting-form::after {
                display: none !important;
            }

            .right-side-panel-action .btn-toggle-setting-form i {
            }

            .right-side-panel-action .btn-toggle-setting-form.active {
                background: var(--bs-main-100);
                color: var(--bs-main);
                border-bottom: 3px solid var(--bs-main-500);
                border-radius: var(--px-12) var(--px-12) 0 0;
            }

        .right-side-panel-action .divider {
            display: none;
        }

    /* Right side panel overlay for mobile */
    .booking-page-body.opening-right-side-panel .right-side-panel-body {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(var(--px-72) + var(--px-32));
        width: 100%;
        height: auto;
        z-index: 99;
        background: var(--bs-surface-bg);
        box-shadow: none;
        border-radius: 0;
        overflow-y: hidden;
        animation: slideUpPanel 0.3s ease-out;
    }

    @keyframes slideUpPanel {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .booking-page-body.opening-right-side-panel .right-side-panel-body .side-panel-header {
        padding: 0 0 12px;
        border-bottom: 1px solid var(--bs-border-color);
        position: sticky;
        top: 0;
        background: var(--bs-surface-bg);
        z-index: 10;
    }

    .booking-setting-field input,
    .booking-setting-field select,
    .booking-setting-select select,
    .booking-setting-select input,
    .booking-setting-select textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .booking-page-body.opening-right-side-panel {
        width: 100%;
        grid-template-columns: 1fr;
    }

    /* Popup adjustments */
    .popup-detail-ticket-book {
        width: 90vw;
        max-width: 400px;
        padding: var(--px-12);
    }

        .popup-detail-ticket-book .info-client {
            grid-template-areas: "photo name" "photo phone" "reminder reminder";
            grid-template-columns: var(--px-52) 1fr;
            padding: var(--px-8);
            gap: var(--px-8);
        }

            .popup-detail-ticket-book .info-client .action-operation-button-click {
                grid-area: reminder;
                margin-top: var(--px-8);
                height: var(--px-40);
            }
}

@media screen and (max-width: 420px) {
    .booking-header-panel .header-title-calendar {
        grid-template-columns: 36px 30px minmax(0, 1fr);
        gap: 4px;
        padding-bottom: 8px;
    }

    .booking-header-panel .header-title-calendar .icon-cal {
        display: block;
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .booking-header-panel .header-title-calendar span.day-append-calendar-generate {
        font-size: 14px;
    }

    #navbar-append-follow-page > .nav-item:first-child {
        display: none;
    }

    #navbar-append-follow-page > .nav-item:nth-child(2) {
        flex: 1;
        max-width: none;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }

    #navbar-append-follow-page .btn-view-calendar-date {
        width: 30px;
        height: 30px;
    }

    #navbar-append-follow-page #select-date-navbar-calendar .text-28 {
        font-size: 12px;
    }

    #view-mode-switch {
        width: 74px;
        height: 30px;
        flex-basis: 74px;
    }
}

/* Small mobile devices (480px and below) */
@media screen and (max-width: 480px) {
    .booking-header-panel {
        padding: 4px 6px;
        gap: 6px;
    }

    #navbar-append-follow-page {
        gap: var(--px-4);
        justify-content: flex-start;
    }

        #navbar-append-follow-page .btn-view-calendar-today {
            max-height: var(--px-36);
            min-height: var(--px-34);
            padding-inline: 8px;
        }

        #navbar-append-follow-page .btn-view-calendar-date {
            width: 34px;
            height: 34px;
        }

        #navbar-append-follow-page #select-date-navbar-calendar .text-28 {
            font-size: 13px;
        }

    /* Reduce hour column further */
    .booking-page-body .booking-calendar-area .list-hour-view .item-hour p.time {
        font-size: var(--px-10);
        padding-left: var(--px-12);
    }

    /* Bottom bar adjustments */
    .right-side-panel-action {
        padding: var(--px-6) var(--px-8);
    }

        .right-side-panel-action .group-btn-action {
            gap: var(--px-6);
        }

        .right-side-panel-action .btn-toggle-setting-form {
            height: var(--px-44);
            padding: 0 var(--px-12);
            font-size: var(--px-9);
        }

            .right-side-panel-action .btn-toggle-setting-form i {
            }

    .popup-detail-ticket-book {
        width: 95vw;
        padding: var(--px-8);
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .booking-header-panel {
        grid-template-rows: auto;
        grid-template-columns: auto 1fr;
    }

    #navbar-append-follow-page {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .right-side-panel-action {
        padding: var(--px-6);
    }

        .right-side-panel-action .btn-toggle-setting-form {
            height: var(--px-40);
        }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .right-side-panel-action .btn-toggle-setting-form {
        min-height: var(--px-44);
        min-width: var(--px-44);
    }

    #navbar-append-follow-page button {
        min-height: var(--px-44);
        min-width: var(--px-44);
    }

    /* Disable hover effects on touch devices */
    .booking-page-body .box-tix-appt-book:hover {
        box-shadow: 0px 6px 10px 0px rgb(0 0 0 / 10%), 0px 1px 18px 0px rgb(0 0 0 / 12%), 0px 3px 5px -1px rgb(0 0 0 / 16%);
    }
}

/* High DPI screens */
@media screen and (max-width: 768px) {
    .booking-page-body {
        grid-template-rows: auto minmax(0, 1fr);
        padding-bottom: 0;
        background: transparent;
        isolation: isolate;
        z-index: 2;
    }

    .booking-page-body .booking-calendar-area {
        max-height: 100%;
        scroll-padding-bottom: 84px;
    }

    .booking-page-body .booking-calendar-area::after {
        content: "";
        display: block;
        flex: 0 0 64px;
        pointer-events: none;
    }

    .booking-page-body::before,
    .booking-page-body .right-side-panel-action::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        border-radius: inherit;
        background: rgb(248 250 253 / 96%);
    }

    .booking-page-body .right-side-panel-action {
        bottom: calc(var(--mobile-bottom-inset) + var(--mobile-footer-height) + 8px);
        left: max(40px, env(safe-area-inset-left, 0px));
        right: max(40px, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: 400px;
        height: 48px;
        margin-inline: auto;
        padding: 4px;
        background: transparent;
        isolation: isolate;
        border: 1px solid rgb(255 255 255 / 72%);
        border-radius: 30px;
        box-shadow: 0 6px 24px rgb(15 23 42 / 12%), inset 0 1px 0 rgb(255 255 255 / 80%);
        box-sizing: border-box;
    }

    .booking-page-body .right-side-panel-action::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--mobile-bottom-inset) + var(--mobile-footer-height));
        height: 100px;
        z-index: -2;
        pointer-events: none;
        background: linear-gradient(to bottom, transparent, rgb(248 250 253 / 88%));
    }

    .booking-page-body .right-side-panel-action .group-btn-action {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 2px;
        width: 100%;
        min-width: 0;
    }

    .booking-page-body .right-side-panel-action .btn-toggle-setting-form {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 100%;
        padding: 2px 0;
        gap: 2px;
        border: 0;
        border-radius: 25px;
    }

    .booking-page-body .right-side-panel-action .btn-toggle-setting-form i {
        font-size: 14px;
    }

    .booking-page-body .right-side-panel-action .btn-toggle-setting-form:focus-visible {
        outline: 2px solid var(--bs-main);
        outline-offset: -2px;
    }

    .booking-action-label {
        display: block;
        font-size: 8px;
        line-height: 12px;
        letter-spacing: 0;
        color: var(--bs-text);
    }

    .booking-page-body.opening-right-side-panel .right-side-panel-body {
        bottom: calc(var(--mobile-bottom-inset) + var(--mobile-footer-height) + 76px);
    }

    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .booking-page-body::before {
            background: rgb(248 250 253 / 72%);
            -webkit-backdrop-filter: blur(12px) saturate(130%);
            backdrop-filter: blur(12px) saturate(130%);
        }

        .booking-page-body .right-side-panel-action::before {
            background: rgb(255 255 255 / 97%);
            -webkit-backdrop-filter: blur(24px) saturate(160%);
            backdrop-filter: blur(24px) saturate(160%);
        }

        .booking-page-body .right-side-panel-action::after {
            background: rgb(155 155 155 / 33%);
            -webkit-backdrop-filter: blur(16px) saturate(120%);
            backdrop-filter: blur(16px) saturate(120%);
            -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%);
            mask-image: linear-gradient(to bottom, transparent, #000 75%);
        }
    }
}

@media screen and (max-width: 768px) and (prefers-reduced-transparency: reduce) {
    .booking-page-body .right-side-panel-action::after {
        display: none;
    }

    .booking-page-body::before,
    .booking-page-body .right-side-panel-action::before {
        background: var(--bs-surface-bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
}

@media screen and (max-width: 1024px) {
    .booking-sidebar-dialog[open] {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        width: min(440px, calc(100% - 32px));
        height: min(680px, calc(100dvh - 32px));
        max-width: none;
        max-height: none;
        margin: auto;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--bs-border-color);
        border-radius: 8px;
        color: var(--bs-text);
        background: var(--bs-surface-bg);
        box-shadow: 0 20px 64px rgb(0 0 0 / 22%);
        font-family: inherit;
        letter-spacing: 0;
    }

    .booking-sidebar-dialog::backdrop {
        background: rgb(22 27 34 / 42%);
    }

    .booking-sidebar-header {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 12px 8px 20px;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .booking-sidebar-header h2 {
        margin: 0;
        font-size: 17px;
        line-height: 24px;
        font-weight: 600;
    }

    .booking-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: var(--bs-surface-2-bg);
        color: var(--bs-text);
        font-size: 20px;
    }

    .booking-sidebar-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex-shrink: 0;
        align-items: center;
        gap: 2px;
        margin: 12px 16px;
        height: 40px;
        padding: 3px;
        border-radius: 24px;
        background: color-mix(in srgb, var(--bs-text) 12%, var(--bs-surface-bg));
    }

    .booking-sidebar-tabs button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        height: 34px;
        min-height: 34px;
        padding: 0 4px;
        border: 0;
        border-radius: 20px;
        background: transparent;
        color: var(--bs-text-muted);
        font-size: 13px;
        font-weight: 500;
        transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
    }

    .booking-sidebar-tabs button[aria-selected="true"] {
        color: var(--bs-text);
        background: var(--bs-surface-bg);
        box-shadow: 0 1px 2px rgb(15 23 42 / 8%), 0 2px 6px rgb(15 23 42 / 5%);
        font-weight: 600;
    }

    .booking-sidebar-tabs button::before {
        content: none;
    }

    .booking-sidebar-tabs button:active > * {
        animation: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .booking-sidebar-tabs button {
            transition: none;
        }
    }

    .booking-sidebar-dialog button:focus-visible,
    .booking-sidebar-dialog input:focus-visible {
        outline: 2px solid var(--bs-main);
        outline-offset: -2px;
    }

    .booking-sidebar-content {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 16px 16px;
        scrollbar-width: thin;
    }

    .booking-sidebar-dialog .booking-action-area {
        display: flex;
        width: 100%;
        max-width: none;
        height: auto;
        overflow: visible;
        background: transparent;
        transition: none;
    }

    .booking-sidebar-dialog .booking-action-area::after {
        display: none;
    }

    .booking-sidebar-dialog .booking-action-area > * {
        flex-shrink: 0;
    }

    .booking-sidebar-dialog .booking-action-area > [hidden] {
        display: none;
    }

    .booking-sidebar-dialog .flat-calendar-navigator {
        padding: 0;
        border: 0;
    }

    .booking-sidebar-dialog .flat-calendar-navigator table {
        table-layout: fixed;
        font-size: 14px;
    }

    .booking-sidebar-dialog .flat-calendar-navigator table tr {
        height: 44px;
    }

    .booking-sidebar-dialog .flat-calendar-navigator table tr .date-pick.selected {
        border-radius: 6px;
    }

    .booking-sidebar-dialog .booking-filter-group-area {
        overflow: visible;
        border-bottom: 1px solid var(--bs-border-color);
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .booking-sidebar-dialog .booking-filter-parent {
        min-height: 48px;
        padding-inline: 4px;
        font-size: 14px;
        font-weight: 600;
        pointer-events: none;
    }

    .booking-sidebar-dialog .booking-filter-parent > i,
    .booking-sidebar-dialog .booking-filter-parent.filter-tech {
        display: none;
    }

    .booking-sidebar-dialog .booking-filter-group-area .form-search-tech-filter {
        position: sticky;
        top: 0;
        z-index: 2;
        flex-shrink: 0;
        min-height: 44px;
        margin: 0 0 8px;
        border: 1px solid var(--bs-border-color);
        border-radius: 6px;
        background: var(--bs-surface-bg);
        opacity: 1;
    }

    .booking-sidebar-dialog .booking-filter-group-area .form-search-tech-filter input {
        min-width: 0;
        font-size: 16px;
    }

    .booking-sidebar-dialog .booking-filter-group-area .append-tech-filter-calendar {
        overflow: visible;
        padding: 0;
    }

    .booking-sidebar-dialog .booking-action-area .booking-filter-group-area .tech-list-calendar:not(.dis-none) {
        display: flex;
        min-height: 56px;
        max-height: none;
        padding: 8px 4px;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .booking-sidebar-dialog .booking-action-area .booking-filter-group-area .checkbox-option-select {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        padding: 8px 4px;
    }

    .booking-sidebar-dialog .booking-filter-group-area .checkbox-option-select p,
    .booking-sidebar-dialog .booking-filter-group-area .quick-info-tech p {
        font-size: 14px;
        line-height: 20px;
    }

    .booking-sidebar-dialog .booking-filter-group-area .quick-info-tech span.turn {
        font-size: 12px;
        font-style: normal;
    }

    .booking-sidebar-dialog .container--checkbox {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .booking-sidebar-dialog .container--checkbox .checkmark {
        width: 20px;
        height: 20px;
    }

    .booking-sidebar-footer {
        flex-shrink: 0;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--bs-border-color);
        background: var(--bs-surface-bg);
    }

    .booking-sidebar-done {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        border: 0;
        border-radius: 6px;
        background: var(--bs-main);
        color: var(--bs-white);
        font-size: 14px;
        font-weight: 600;
    }
}

@media screen and (max-width: 600px) {
    .booking-sidebar-dialog[open] {
        width: 100%;
        height: min(620px, calc(100dvh - 12px));
        margin: auto 0 0;
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
    }
}

@media screen and (max-width: 1024px) and (max-height: 600px) {
    .booking-settings-heading small,
    .booking-settings-intro,
    .booking-settings-group-heading p {
        display: none;
    }

    .booking-page-body.opening-right-side-panel .right-side-panel-body {
        gap: 8px;
        padding: 10px;
        bottom: env(safe-area-inset-bottom, 0px);
    }

    .booking-page-body.opening-right-side-panel .right-side-panel-body .side-panel-header {
        padding: 0;
        border-bottom: 0;
    }
}
