.am-wrapper-571c3fc3 { position: relative; }
.am-trigger-571c3fc3 { background: transparent; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px; color: #111; }
.am-trigger-571c3fc3 svg { fill: #111; }

.am-overlay-571c3fc3 { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s; }
.am-overlay-571c3fc3.is-active { opacity: 1; visibility: visible; }

/* BASE PANEL (OUTER) */
.am-panel-571c3fc3 { 
    position: fixed; 
    background: #FFF; 
    z-index: 9999; 
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
}

/* SLIDE MODES */
.am-mode-slide-right .am-panel-571c3fc3 { top: 0; bottom: 0; right: 0; transform: translateX(100%); width: 320px; max-width: 100vw; }
.am-mode-slide-right .am-panel-571c3fc3.is-active { transform: translateX(0); }

.am-mode-slide-left .am-panel-571c3fc3 { top: 0; bottom: 0; left: 0; transform: translateX(-100%); width: 320px; max-width: 100vw; }
.am-mode-slide-left .am-panel-571c3fc3.is-active { transform: translateX(0); }

/* DEDICATED FULLSCREEN MODE (Overrides slide offsets) */
.am-mode-fullscreen .am-panel-571c3fc3 {
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.am-mode-fullscreen .am-panel-571c3fc3.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* INNER CONTAINER (Separates layout from viewport positioning) */
.am-panel-inner-571c3fc3 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ROBUST HEADER LAYOUT */
.am-panel-header-571c3fc3 { 
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    flex: 0 0 auto;
}

.am-header-left-571c3fc3 {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.am-header-center-571c3fc3 {
    justify-self: center;
    min-width: 0;
}

.am-header-right-571c3fc3 {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
}

.am-header-action {
    flex: 0 1 auto;
    min-width: 0;
}

.am-header-logo img { max-width: 150px; height: auto; display: block; }

/* CLOSE BUTTON (Protected) */
.am-close-571c3fc3 { 
    flex: 0 0 auto;
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #111; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 2;
}
.am-close-571c3fc3 svg { fill: #111; }

.language-switcher-in-header .am-ls-wrapper-571c3fc3 {
    max-width: min(50vw, 220px);
    overflow: hidden;
}

/* LEVELS & CONTENT */
.am-view-container-571c3fc3 { position: relative; flex: 1; overflow: hidden; width: 100%; }
.am-level-571c3fc3 { position: absolute; inset: 0; overflow-y: auto; transition: 0.4s; padding: 0 20px 20px; opacity: 0; visibility: hidden; pointer-events: none; }
.am-level-571c3fc3.level-active { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
.am-level-571c3fc3.level-left { transform: translateX(-50%); opacity: 0; }
.am-level-571c3fc3.level-right { transform: translateX(100%); opacity: 0; }

.am-menu-list { list-style: none; margin: 0; padding: 0; }
.am-item-wrap { border-bottom: 1px solid #E5E5E5; }
.am-item-571c3fc3 { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: #111; text-decoration: none; font-size: 16px; min-height: 44px; width: 100%; border: none; background: transparent; text-align: left; transition: background-color 0.2s, color 0.2s; }
.am-item-571c3fc3.is-button { cursor: pointer; }
.am-item-text { display: flex; align-items: center; gap: 10px; width: 100%; }

.am-split-wrapper { display: flex; align-items: stretch; width: 100%; }
.am-split-wrapper .split-label { flex: 1; display: flex; align-items: center; }
.am-split-arrow { display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-left: 1px solid transparent; min-width: 44px; width: 44px; cursor: pointer; color: #666; transition: background 0.2s, color 0.2s; }

.am-item-text img.wpml-ls-flag { display: inline-block; width: 18px; height: auto; margin-right: 8px; vertical-align: middle; }
.am-arrow { font-size: 18px; color: currentColor; }

/* BACK BUTTON */
.am-back-571c3fc3 { 
    background: none; 
    border: none; 
    padding: 15px 0; 
    cursor: pointer; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    width: 100%; 
    text-align: left; 
    color: #111; 
}
.am-back-icon-571c3fc3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.am-back-icon-571c3fc3 svg { fill: currentColor; }

.am-search-form-571c3fc3 { display: flex; margin-bottom: 20px; position: relative; width: 100%; }
.am-search-field { width: 100%; padding: 12px 40px 12px 16px; border: 1px solid #E5E5E5; border-radius: 4px; font-size: 16px; }
.am-search-submit { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; background: none; border: none; cursor: pointer; color: #666; }

.am-panel-footer { padding: 20px; flex-shrink: 0; width: 100%; box-sizing: border-box; }
.am-social-links { display: flex; gap: 15px; }
.am-social-link { color: #111; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.am-social-link svg { fill: #111; transition: fill 0.2s; }

/* NATIVE WPML STYLES */
.am-ls-wrapper-571c3fc3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.am-ls-wrapper-571c3fc3 ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.am-ls-wrapper-571c3fc3 a, .am-ls-wrapper-571c3fc3 span { text-decoration: none; color: #111; display: inline-flex; align-items: center; transition: color 0.2s; }
.am-ls-wrapper-571c3fc3 img.wpml-ls-flag { width: 18px; height: auto; margin-right: 6px; }

/* APP-STYLE LANGUAGE ITEM STYLES */
.am-language-list .am-lang-check { font-weight: bold; margin-left: auto; }

body.am-no-scroll-571c3fc3 { overflow: hidden !important; }
