/* Lines-limit-guard: 500 */

/* ========================================
   MOBILE DRAWER FOCUS FIXES
   ======================================== */

/* Ensure mobile drawer and search input are properly focusable */
.wamia-mobile-drawer {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wamia-mobile-drawer.active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

/* Ensure search input is always focusable when drawer is active */
.wamia-mobile-drawer.active .mobile-search-input {
    pointer-events: auto;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Remove any potential CSS that might block focus */
.mobile-search-input {
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.mobile-search-input:focus {
    border-color: #ED6F26;
    box-shadow: 0 0 0 2px rgba(237, 111, 38, 0.2);
    outline: none;
}

/* Ensure proper focus on mobile devices */
@media (max-width: 768px) {
    .mobile-search-input {
        font-size: 16px; /* Prevents zoom on mobile */
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
    
    .mobile-search-input:focus {
        transform: none; /* Prevent any transforms that might interfere */
        zoom: 1; /* Reset zoom */
    }
}

/* Ensure search input container doesn't block interaction */
.mobile-drawer-search {
    position: relative;
    z-index: 10;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Fix any potential z-index issues */
.wamia-mobile-drawer.active .mobile-drawer-content {
    z-index: 1001;
    position: relative;
}

/* Ensure backdrop doesn't interfere with input focus */
.wamia-drawer-backdrop {
    pointer-events: auto;
    z-index: 1000;
}

.wamia-mobile-drawer.active .wamia-drawer-backdrop {
    pointer-events: auto;
} 