/**
 * AQELTech Localify — Store Switcher Styles (Luma)
 *
 * @copyright Copyright (c) AQELTech
 */

/* ── Panel container ── */
.aqeltech-store-switcher .dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #c2c2c2;
    background: #fff;
    overflow: hidden;
    padding-block: 4px;
}

/* ── Menu items ── */
.aqeltech-store-switcher [role="menuitem"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    transition: background-color 150ms ease;
}
.aqeltech-store-switcher a[role="menuitem"]:hover,
.aqeltech-store-switcher a[role="menuitem"]:focus {
    background-color: #f5f5f5;
}

/* ── Selected / current item ── */
.aqeltech-store-switcher .store-item--current {
    font-weight: 600;
    background-color: #e8f0fe;
    color: #006bb4;
}
.aqeltech-store-switcher .store-item--current::after {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #006bb4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-inline-start: auto;
    padding-inline-start: 0;
}

/* ── Flag icons ── */
.aqeltech-store-switcher .flag-icon {
    width: 20px;
    aspect-ratio: 4/3;
    border-radius: 2px;
    margin-inline-end: 8px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ── Trigger flag and globe ── */
.aqeltech-store-switcher .trigger-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.aqeltech-store-switcher .trigger-globe {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ── Override Magento dropdown caret ── */
.aqeltech-store-switcher .action.toggle::after {
    content: none;
}

/* ── Section labels ── */
.aqeltech-store-switcher .label {
    display: block;
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

/* ── Divider ── */
.aqeltech-store-switcher .divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 4px 0;
}

/* ── List resets ── */
.aqeltech-store-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .aqeltech-store-switcher [role="menuitem"] {
        transition: none;
    }
}
