.tvmm {
    display: none;
}

@media (max-width: 767px) {
    .tvmm {
        display: block;
        --tvmm-bg: #f6f0ea;
        --tvmm-text: var(--e-global-color-accent, #111111);
        --tvmm-accent: var(--e-global-color-accent, #d1a45f);
        --tvmm-muted: var(--tvmm-accent);
        --tvmm-border: rgba(17, 17, 17, 0.08);
        --tvmm-overlay: rgba(17, 17, 17, 0.20);
        --tvmm-speed: 260ms;
        font-family: inherit;
    }

    .tvmm,
    .tvmm * {
        box-sizing: border-box;
    }

    .tvmm__toggle,
    .tvmm__close,
    .tvmm__submenu-toggle {
        font: inherit;
        color: inherit;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 0;
    }

    .tvmm__toggle {
        width: 44px;
        height: 44px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border-radius: 999px;
    }

    .tvmm__toggle-line {
        width: 22px;
        height: 2px;
        display: block;
        background: currentColor;
        border-radius: 999px;
    }

    .tvmm__overlay {
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: var(--tvmm-overlay);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tvmm-speed) ease, visibility var(--tvmm-speed) ease;
    }

    .tvmm__panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999;
        width: min(88vw, 360px);
        height: 100dvh;
        padding: 32px 24px 40px;
        overflow-y: auto;
        background: var(--tvmm-bg);
        color: var(--tvmm-text);
        transform: translateX(100%);
        transition: transform var(--tvmm-speed) ease;
        box-shadow: -18px 0 50px rgba(17, 17, 17, 0.12);
    }

    .tvmm.is-open .tvmm__overlay {
        opacity: 1;
        visibility: visible;
    }

    .tvmm.is-open .tvmm__panel {
        transform: translateX(0);
    }

    .tvmm__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 0 22px;
    }

    .tvmm__brand {
        font-weight: 700;
        font-size: 18px;
        color: var(--tvmm-text);
        text-decoration: none;
    }

    .tvmm__logo img {
        max-width: 145px;
        height: auto;
        display: block;
    }

    .tvmm__close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        line-height: 1;
        border-radius: 999px;
    }

    .tvmm__heading {
        padding: 0 0 8px;
        color: var(--tvmm-muted);
        font-family: 'Montserrat', var(--e-global-typography-text-font-family, inherit);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.34em;
        text-transform: uppercase;
    }

    .tvmm__list,
    .tvmm__submenu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .tvmm__item {
        border-bottom: 1px solid var(--tvmm-border);
    }

    .tvmm__row {
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .tvmm__link {
        flex: 1;
        min-height: 72px;
        display: flex;
        align-items: center;
        color: var(--tvmm-text);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.2;
        text-decoration: none;
    }

    .tvmm__arrow,
    .tvmm__submenu-toggle {
        width: 36px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 36px;
        color: var(--tvmm-accent);
    }

    .tvmm__arrow-icon {
        width: 18px;
        height: 18px;
        stroke-width: 1.75;
        transition: transform var(--tvmm-speed) ease;
    }

    .tvmm__submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--tvmm-speed) ease;
    }

    .tvmm__item.is-active > .tvmm__submenu {
        max-height: 520px;
        padding-bottom: 8px;
    }

    .tvmm__item.is-active > .tvmm__row .tvmm__submenu-toggle .tvmm__arrow-icon {
        transform: rotate(90deg);
    }

    .tvmm__submenu .tvmm__row {
        min-height: 44px;
    }

    .tvmm__submenu .tvmm__link {
        min-height: 44px;
        padding-left: 14px;
        color: var(--tvmm-text);
        font-size: 15px;
    }

    .tvmm__submenu .tvmm__arrow,
    .tvmm__submenu .tvmm__submenu-toggle {
        color: var(--tvmm-muted);
    }



    .tvmm__actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto;
        padding-top: 28px;
    }

    .tvmm__button {
        width: 100%;
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 22px;
        border: 1px solid var(--tvmm-text);
        border-radius: 999px;
        font-family: 'Montserrat', var(--e-global-typography-text-font-family, sans-serif);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        transition: background-color var(--tvmm-speed) ease, border-color var(--tvmm-speed) ease, color var(--tvmm-speed) ease, transform var(--tvmm-speed) ease;
    }

    .tvmm__button--primary {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }

    .tvmm__button--primary:hover,
    .tvmm__button--primary:focus-visible {
        background: #d1a45f;
        border-color: #d1a45f;
        color: #ffffff;
    }

    .tvmm__button--secondary {
        background: transparent;
        border-color: #111111;
        color: #111111;
    }

    .tvmm__button--secondary:hover,
    .tvmm__button--secondary:focus-visible {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }

    .tvmm__button:active {
        transform: translateY(1px);
    }

    body.tvmm-lock {
        overflow: hidden;
        touch-action: none;
    }
}
