/* =========================================
   REVIEW PAGE — MOBILE
========================================= */

.review-mobile-overlay,
.review-mobile-drawer {
    display: none;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.review-menu-open {
        overflow: hidden;
    }


    /* NAVBAR */

    .review-navbar {
        position: sticky;
        top: 0;
        z-index: 9000;

        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 64px !important;
        align-items: center !important;

        column-gap: 36px !important;

        width: 100% !important;
        min-height: 68px !important;

        padding: 10px 12px !important;
        box-sizing: border-box !important;

        background: #ffffff !important;

        border-bottom:
            1px solid rgba(50, 28, 21, 0.08) !important;

        box-shadow:
            0 5px 18px rgba(50, 28, 21, 0.08) !important;
    }

    .review-menu-button {
        all: unset;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;

        width: 44px !important;
        height: 44px !important;

        box-sizing: border-box !important;

        border-radius: 12px !important;

        background: #fff5e9 !important;

        cursor: pointer !important;
    }

    .review-menu-button span {
        display: block !important;

        width: 20px !important;
        height: 2px !important;

        border-radius: 999px !important;

        background: #321c15 !important;
    }


    /* BRAND */

    .review-brand {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;

        min-width: 0 !important;

        margin-left: 4px !important;

        color: #321c15 !important;
        text-decoration: none !important;
    }

    .review-logo {
        display: block !important;

        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        max-width: 40px !important;

        object-fit: cover !important;

        border-radius: 50% !important;
    }

    .review-brand strong {
        display: block !important;

        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;

        white-space: nowrap !important;
    }

    .review-brand small {
        display: block !important;

        margin-top: 3px !important;

        color: #8b746a !important;

        font-size: 8px !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;

        text-transform: uppercase !important;
    }


    /* ORDER BUTTON */

    .review-order-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 64px !important;
        height: 40px !important;

        border-radius: 12px !important;

        background: #fff5e9 !important;
        color: #321c15 !important;

        font-size: 10px !important;
        font-weight: 800 !important;

        text-decoration: none !important;
    }


    /* FORM CARD */

    .review-form-card {
        width: calc(100% - 32px) !important;
        max-width: none !important;

        margin: 32px 16px 50px !important;
        padding: 24px 20px !important;

        box-sizing: border-box !important;

        border-radius: 18px !important;
    }

    .review-form-card h1 {
        font-size: 29px !important;
        line-height: 1.1 !important;
    }

    .review-form-card form {
        width: 100% !important;
    }

    .review-form-card input,
    .review-form-card textarea {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;
    }


    /* DRAWER */

    .review-mobile-overlay {
        display: block;

        position: fixed;
        inset: 0;
        z-index: 9998;

        visibility: hidden;
        opacity: 0;

        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .review-mobile-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    .review-mobile-drawer {
        display: block;

        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;

        width: min(86vw, 340px);
        height: 100dvh;

        padding: 22px;
        box-sizing: border-box;

        background: #ffffff;

        transform: translateX(-105%);
        transition: transform 0.3s ease;

        box-shadow:
            20px 0 50px rgba(50, 28, 21, 0.25);
    }

    .review-mobile-drawer.is-open {
        transform: translateX(0);
    }

    .review-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        padding-bottom: 20px;

        border-bottom:
            1px solid rgba(50, 28, 21, 0.1);
    }

    .review-drawer-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        color: #321c15;
        text-decoration: none;
    }

    .review-drawer-brand div {
        display: flex;
        flex-direction: column;
    }

    .review-mobile-close {
        width: 42px;
        height: 42px;

        border: none;
        border-radius: 50%;

        background: #fff0e3;
        color: #321c15;

        font-size: 27px;
    }

    .review-mobile-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;

        padding: 22px 0 0 !important;

        background: transparent !important;
    }

    .review-mobile-links a {
        display: flex !important;
        align-items: center !important;

        min-height: 54px !important;

        padding: 0 16px !important;

        border-radius: 12px !important;

        background: transparent !important;
        color: #321c15 !important;

        font-size: 14px !important;
        font-weight: 700 !important;

        text-decoration: none !important;
    }

    .review-mobile-links a:hover {
        background: #fff0e3 !important;
    }
}