/*
 * Admin on phones and tablets (touch screens). Loaded after every other
 * stylesheet. Only sizes change; desktop is untouched.
 */
@media (pointer: coarse) {
    /* iOS Safari zooms the page into any field under 16px when it is tapped
       and leaves it zoomed; 16px fields keep the page as it is. The theme
       sets fields to 14px !important (some with section selectors), so this is
       !important with an id-level :not() to outrank every one of them. */
    html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not(#ac-touch-none),
    html body select:not(#ac-touch-none),
    html body textarea:not(#ac-touch-none) {
        font-size: 16px !important;
    }

    /* 40px tap areas for the small icon buttons. */
    .modal .btn-close {
        width: 40px;
        height: 40px;
        padding: 0;
        background-size: 14px;
    }
    .header-left a[aria-label],
    .header-right a[aria-label] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Sign-in page on phones: full-height button, links on their own lines. */
@media (max-width: 575.98px) {
    .mybazar-login-section .login-btn {
        height: 48px;
        border-radius: 8px;
    }
    .mybazar-login-section .forget-password {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .mybazar-login-section .forget-password label,
    .mybazar-login-section .forget-password a {
        margin: 0;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        top: 0;
    }
    .create-account {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
    .create-account a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}
