
/* Reusable mobile side drawers. Triggers can be placed anywhere with data-drawer-open. */
:root {
    --drawer-top-offset: 0px;
    --zq-drawer-duration: 300ms;
    --zq-drawer-bg: #1d1917;
    --zq-drawer-header-bg: #1d1917;
    --zq-drawer-footer-bg: #181412;
    --zq-drawer-text: #ffffff;
    --zq-drawer-accent: #ff5a00;
    --zq-drawer-border: #3b3430;
    --zq-drawer-overlay-rgb: 8, 6, 5;
    --zq-drawer-overlay-opacity: 0.68;
    --zq-drawer-max-width: 390px;
}

body.zq-mobile-drawer-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.zq-mobile-drawer {
    position: fixed !important;
    inset: var(--drawer-top-offset, 0px) 0 0 0 !important;
    z-index: 100100 !important;
    display: block !important;
    height: calc(100dvh - var(--drawer-top-offset, 0px)) !important;
    pointer-events: none;
    visibility: hidden;
}

.zq-mobile-drawer[hidden] {
    display: none !important;
}

.zq-mobile-drawer.is-open,
.zq-mobile-drawer.is-closing {
    visibility: visible;
}

.zq-mobile-drawer.is-open {
    pointer-events: auto;
}

.zq-mobile-drawer__overlay {
    position: absolute !important;
    inset: 0 !important;
    border: 0 !important;
    background: rgba(var(--zq-drawer-overlay-rgb), var(--zq-drawer-overlay-opacity)) !important;
    opacity: 0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity var(--zq-drawer-duration) ease;
}

.zq-mobile-drawer__panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column;
    width: min(90vw, var(--zq-drawer-max-width)) !important;
    max-width: var(--zq-drawer-max-width) !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden;
    border: 0 !important;
    border-left: 1px solid var(--zq-drawer-border) !important;
    border-radius: 0 !important;
    background: var(--zq-drawer-bg) !important;
    color: var(--zq-drawer-text) !important;
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.35) !important;
    transform: translate3d(100%, 0, 0);
    transition: transform var(--zq-drawer-duration) cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.zq-mobile-drawer.is-open .zq-mobile-drawer__overlay {
    opacity: 1;
}

.zq-mobile-drawer.is-open .zq-mobile-drawer__panel {
    transform: translate3d(0, 0, 0);
}

.zq-mobile-drawer--left .zq-mobile-drawer__panel {
    right: auto !important;
    left: 0 !important;
    border-right: 1px solid var(--zq-drawer-border) !important;
    border-left: 0 !important;
    box-shadow: 24px 0 64px rgba(0, 0, 0, 0.35) !important;
    transform: translate3d(-100%, 0, 0);
}

.zq-mobile-drawer--left.is-open .zq-mobile-drawer__panel {
    transform: translate3d(0, 0, 0);
}

.zq-mobile-drawer__head {
    position: relative;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: max(16px, env(safe-area-inset-top)) 20px 14px !important;
    border-bottom: 1px solid var(--zq-drawer-border) !important;
    background: var(--zq-drawer-header-bg) !important;
}

.zq-mobile-drawer__head::after {
    position: absolute;
    right: 20px;
    bottom: -1px;
    left: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--zq-drawer-accent), transparent 55%);
    content: "";
}

.zq-mobile-drawer__head h2 {
    margin: 0 !important;
    color: var(--zq-drawer-text) !important;
    font-family: inherit;
    font-size: clamp(23px, 7vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.zq-mobile-drawer__close {
    display: grid !important;
    place-items: center;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-size: 26px !important;
    cursor: pointer;
    transition: color 250ms ease, border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.zq-mobile-drawer__close:hover,
.zq-mobile-drawer__close:focus-visible {
    border-color: var(--zq-drawer-accent) !important;
    background: rgba(255, 90, 0, 0.14) !important;
    color: var(--zq-drawer-accent) !important;
    transform: rotate(90deg);
}

.zq-mobile-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 20px 24px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 90, 0, 0.55) transparent;
}

.zq-mobile-drawer__nav,
.zq-mobile-drawer__accordion {
    display: block !important;
    width: 100%;
}

.zq-mobile-drawer__row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 13px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--zq-drawer-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--zq-drawer-text) !important;
    font-family: inherit;
    font-size: clamp(17px, 4.7vw, 20px) !important;
    line-height: 1.35;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 250ms ease, padding 250ms ease, background 250ms ease;
}

.zq-mobile-drawer__row > span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.zq-mobile-drawer__row > span > i:first-child {
    color: var(--zq-drawer-accent) !important;
    font-size: 21px;
}

.zq-mobile-drawer__row > i:last-child {
    flex: 0 0 auto;
    color: var(--zq-drawer-accent) !important;
    font-size: 23px;
    transition: transform var(--zq-drawer-duration) ease;
}

.zq-mobile-drawer__row:hover,
.zq-mobile-drawer__row:focus-visible {
    padding-left: 10px !important;
    color: var(--zq-drawer-accent) !important;
    outline: none;
}

.zq-mobile-drawer__accordion-toggle[aria-expanded="true"] {
    color: var(--zq-drawer-accent) !important;
}

.zq-mobile-drawer__accordion-toggle[aria-expanded="true"] > i:last-child {
    transform: rotate(90deg);
}

.zq-mobile-drawer__submenu {
    overflow: hidden;
    padding: 4px 0 14px 18px;
    border-bottom: 1px solid var(--zq-drawer-border);
    animation: zqDrawerSubmenuIn 280ms ease both;
}

.zq-mobile-drawer__submenu[hidden] {
    display: none !important;
}

.zq-mobile-drawer__submenu h3 {
    margin: 16px 0 5px !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.zq-mobile-drawer__submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 9px 4px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color 250ms ease, transform 250ms ease;
}

.zq-mobile-drawer__submenu-link--all,
.zq-mobile-drawer__submenu-link i {
    color: var(--zq-drawer-accent) !important;
}

.zq-mobile-drawer__submenu-link:hover,
.zq-mobile-drawer__submenu-link:focus-visible {
    color: #fff !important;
    outline: none;
    transform: translateX(4px);
}

.zq-mobile-drawer__divider {
    height: 10px !important;
    margin: 12px -20px !important;
    border: 0 !important;
    background: #151210 !important;
}

.zq-mobile-drawer__footer {
    flex: 0 0 auto;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--zq-drawer-border) !important;
    background: var(--zq-drawer-footer-bg) !important;
}

.zq-mobile-drawer__cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px !important;
    border: 1px solid var(--zq-drawer-accent) !important;
    border-radius: 8px !important;
    background: var(--zq-drawer-accent) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: filter 250ms ease, transform 250ms ease;
}

.zq-mobile-drawer__cta:hover,
.zq-mobile-drawer__cta:focus-visible {
    color: #fff !important;
    filter: brightness(1.1);
    outline: 2px solid #fff;
    outline-offset: 2px;
    transform: translateY(-1px);
}

@keyframes zqDrawerSubmenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .zq-mobile-drawer__overlay,
    .zq-mobile-drawer__panel,
    .zq-mobile-drawer__close,
    .zq-mobile-drawer__row,
    .zq-mobile-drawer__row > i:last-child,
    .zq-mobile-drawer__submenu,
    .zq-mobile-drawer__submenu-link,
    .zq-mobile-drawer__cta {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
