/*
 * APTON mobile UX hotfix — 2026-08-21
 * Keeps the 40px MeanMenu trigger compact while giving the opened navigation
 * an independent viewport-sized panel. Also normalizes form controls for
 * touch use and prevents iOS focus zoom on customer-facing fields.
 */

@media (max-width: 991px) {
    .htc-header .mobile-menu-area .mean-container,
    .htc-header .mobile-menu-area .mean-bar {
        overflow: visible;
    }

    .htc-header .mobile-menu-area .mean-nav {
        position: absolute;
        top: 40px;
        right: 0;
        left: auto;
        float: none;
        width: min(420px, calc(100vw - 30px));
        max-height: calc(100vh - 160px);
        max-height: calc(100dvh - 160px);
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
        box-sizing: border-box;
    }

    .htc-header .mobile-menu-area .mean-nav ul,
    .htc-header .mobile-menu-area .mean-nav ul li {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    .htc-header .mobile-menu-area .mean-nav ul li a:not(.mean-expand) {
        float: none;
        width: 100%;
        min-height: 48px;
        padding: 12px 54px 12px 18px;
        color: #4d4d4d;
        font-size: 15px;
        line-height: 1.45;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .htc-header .mobile-menu-area .mean-nav ul li a.mean-expand {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px !important;
        height: 48px !important;
        min-height: 48px;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .htc-header .mobile-menu-area .mean-nav ul li a:focus-visible,
    .htc-header .mobile-menu-area a.meanmenu-reveal:focus-visible {
        outline: 3px solid #d24a43;
        outline-offset: -3px;
    }
}

@media (max-width: 991px) {
    .htc-header .header-search-form.stylish-input-group .form-control,
    .htc-header .header-search-form.stylish-input-group .input-group-addon,
    .htc-header .header-search-form.stylish-input-group .input-group-addon button {
        height: 40px !important;
        min-height: 40px;
    }

    .slam-easyform .form-control,
    .request-cart__form .form-control {
        min-height: 44px;
        font-size: 16px !important;
        line-height: 1.35;
    }

    .slam-easyform textarea.form-control,
    .request-cart__form textarea.form-control {
        min-height: 96px;
    }

    .slam-easyform button[type="submit"],
    .request-cart__submit {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 15px;
        line-height: 1.35;
        white-space: normal;
    }

    .form-consent {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }

    .form-consent input[type="checkbox"] {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin: 1px 0 0;
    }

    .form-consent span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .slam-easyform .warning-buy {
        margin-top: 10px;
        font-size: 13px !important;
        line-height: 1.5;
    }

    .request-cart__close {
        width: 44px;
        height: 44px;
        line-height: 40px;
    }

    .request-cart__item-controls input {
        flex: 1 1 96px;
        min-width: 96px;
        min-height: 44px;
        font-size: 16px;
    }

    .request-cart__item-controls button {
        min-height: 44px;
        padding: 8px 4px;
        font-size: 14px;
    }
}
