/* EliteLab USD Multi Currency - Frontend 1.0.2.1 Click Only */
.eld-mc-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    vertical-align: middle;
    z-index: 99991;
}

.eld-mc-current {
    height: 34px;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    background: #ffffff;
    color: #12335e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 0 9px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 51, 94, 0.08);
    white-space: nowrap;
}

.eld-mc-current:hover,
.eld-mc-current:focus {
    border-color: #0b80ff;
    box-shadow: 0 0 0 3px rgba(11, 128, 255, 0.12);
}

.eld-mc-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.eld-mc-code {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    letter-spacing: 0.01em;
}

.eld-mc-caret {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    line-height: 1;
    margin-left: 1px;
    opacity: 0.8;
}

.eld-mc-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 92px;
    padding: 6px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(18, 51, 94, 0.16);
    z-index: 99999;
}

.eld-mc-switcher.is-open .eld-mc-list {
    display: block;
}

.eld-mc-option {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 9px;
    color: #12335e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.eld-mc-option:hover,
.eld-mc-option:focus,
.eld-mc-option.is-active {
    background: #eef6ff;
    color: #0b80ff;
}

.eld-mc-floating {
    position: fixed;
    right: 18px;
    bottom: 86px;
    z-index: 99990;
}

/* Quand le sélecteur de langue EliteLab existe, le plugin déplace automatiquement la devise à côté. */
.elmm-language-switcher.eld-mc-has-currency {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.elmm-language-switcher.eld-mc-has-currency .eld-mc-floating {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
}

.elmm-language-switcher.eld-mc-has-currency .eld-mc-current {
    height: 32px;
    min-width: 64px;
    padding: 0 8px;
    border-radius: 999px;
    box-shadow: none;
}

.elmm-language-switcher.eld-mc-has-currency .eld-mc-list {
    top: calc(100% + 7px);
    right: 0;
}

.eld-mc-base-note {
    display: inline-block;
    margin-left: 6px;
    opacity: 0.72;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .eld-mc-floating {
        right: 12px;
        bottom: 74px;
    }

    .eld-mc-current {
        height: 32px;
        min-width: 62px;
        font-size: 12px;
        padding: 0 8px;
    }

    .eld-mc-option {
        font-size: 12px;
    }
}


/* =========================================================
   EliteLab Currency 1.0.2.1 - ouverture UNIQUEMENT au clic
   ========================================================= */
html body .eld-mc-switcher:not(.is-open) .eld-mc-list,
html body .eld-mc-switcher:not(.is-open):hover .eld-mc-list,
html body .elmm-language-switcher.eld-mc-has-currency .eld-mc-switcher:not(.is-open) .eld-mc-list,
html body .elmm-language-switcher.eld-mc-has-currency .eld-mc-switcher:not(.is-open):hover .eld-mc-list {
    display: none !important;
}

html body .eld-mc-switcher.is-open .eld-mc-list,
html body .elmm-language-switcher.eld-mc-has-currency .eld-mc-switcher.is-open .eld-mc-list {
    display: block !important;
}


/* =========================================================
   EliteLab Currency 1.0.2.2 - bloc devise/langue à gauche du bouton recherche
   ========================================================= */
.menu-icon-action > li.eld-mc-header-combo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 999999 !important;
}

.menu-icon-action > li.eld-mc-header-combo .elmm-language-switcher.eld-mc-has-currency {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 999999 !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-floating {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 999999 !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-switcher {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 999999 !important;
}

/* Bouton devise propre : drapeau + code ne se chevauchent pas */
.menu-icon-action > li.eld-mc-header-combo .eld-mc-current {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-grid !important;
    grid-template-columns: 18px auto !important;
    column-gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-flag {
    grid-column: 1 !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 16px !important;
    line-height: 18px !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-code {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 7px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-caret {
    display: none !important;
}

.menu-icon-action > li.eld-mc-header-combo .eld-mc-list {
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    z-index: 9999999 !important;
}

/* Bouton langue : drapeau seulement, aligné avec devise */
.menu-icon-action > li.eld-mc-header-combo .elmm-language-switcher__button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.menu-icon-action > li.eld-mc-header-combo .elmm-language-switcher__label,
.menu-icon-action > li.eld-mc-header-combo .elmm-language-switcher__chevron {
    display: none !important;
}

/* Sur téléphone/tablette, on garde le bloc dans la barre d'icônes s'il y a un bouton recherche. */
@media (max-width: 1024px) {
    .menu-icon-action > li.eld-mc-header-combo {
        margin-right: 8px !important;
    }

    .menu-icon-action > li.eld-mc-header-combo .eld-mc-current {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
        column-gap: 6px !important;
    }

    .menu-icon-action > li.eld-mc-header-combo .elmm-language-switcher__button {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
}

/* =========================================================
   EliteLab Currency 1.0.2.4 - cache la notification WooPayments pays/devise
   ========================================================= */
.wcpay-multi-currency-notice,
.wcpay-multi-currency-location-notice,
.wcpay-multi-currency-store-notice {
    display: none !important;
}

.woocommerce-info:has(a[href*="currency="]),
.wc-block-components-notice-banner:has(a[href*="currency="]) {
    display: none !important;
}

/* =========================================================
   EliteLab Currency 1.0.3.3 - affichage mobile centré
   ========================================================= */
.elmm-language-switcher.eld-mc-mobile-floating {
    position: fixed !important;
    top: 74px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147483000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

.admin-bar .elmm-language-switcher.eld-mc-mobile-floating {
    top: 118px !important;
}

.elmm-language-switcher.eld-mc-mobile-floating.elmm-is-hidden {
    transform: translateX(-50%) translateY(-18px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-floating {
    position: static !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-switcher,
.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__button {
    position: relative !important;
    z-index: 2147483001 !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-current {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-grid !important;
    grid-template-columns: 18px auto !important;
    column-gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 22px rgba(10, 49, 105, .12) !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-flag {
    grid-column: 1 !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-code {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-caret,
.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__label,
.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__chevron {
    display: none !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(10, 49, 105, .12) !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .eld-mc-list {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 46px !important;
    left: auto !important;
    z-index: 2147483002 !important;
}

.elmm-language-switcher.eld-mc-mobile-floating .elmm-language-switcher__menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 2147483002 !important;
}

@media (max-width: 480px) {
    .elmm-language-switcher.eld-mc-mobile-floating {
        top: 68px !important;
        left: 50% !important;
        right: auto !important;
        max-width: calc(100vw - 16px) !important;
    }

    .admin-bar .elmm-language-switcher.eld-mc-mobile-floating {
        top: 112px !important;
    }
}

