/**
 * awesome-currency-switcher/assets/css/acs-frontend.css
 * Styles pour le bouton déclencheur et le modal du sélecteur de devises
 */ 

/*=====================================
// 1. ACS CUURRENCY MODAL TRIGGER BUTTON
// Declenche le modal qui contient les devises
//====================================*/
/* Le style des icones representant les devises */
.acs-currency-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
.acs-currency-icon.acs-currency-icon-only {
    margin-right: 0px !important;
}

.acs-currency-modal-trigger {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 3px;
    padding: 0px !important;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    border: 0px;
    flex-direction: column;
}
.dark .acs-currency-modal-trigger {
    color: #ffffff;
}

.acs-currency-modal-trigger-currency-icon {
    position: relative;
    left: -5px;
}

.acs-currency-modal-trigger-symbol-arrow-group {
    display: flex;
    align-items: center;
    position: relative;
    top: 5px;
}

.acs-currency-modal-trigger-currency-symbol {
    position: relative;
    top: 1px;
}

.acs-currency-modal-trigger-arrow-svg {
    width: 14px;
    height: 14px;
}

/*** CURRENCY SWITCHER IN MOBILE ***/
/*
@media (max-width: 768px) {
    .acs-currency-modal-trigger {
        border: initial;
        flex-direction: row;
        padding-left: 5px !important;
        padding-right: 3px !important;
        padding-top: 1px !important;
        padding-bottom: 2px !important;
        color: #212121;
    }
    .acs-currency-modal-trigger-currency-icon {
        position: static;
        left: auto;
    }
    .acs-currency-modal-trigger-symbol-arrow-group {
        position: static;
        top: auto;
    }
    .acs-currency-icon {
        width: auto;
        height: auto;
        margin-right: 0px;
    }
    .acs-currency-modal-trigger-arrow {
        position: static;
        top: auto;
    }
}
*/
/*** END CURRENCY SWITCHER IN MOBILE ***/





/*=====================================
// 2. ACS CUURRENCY MODAL (POPUP)
// Le modal qui contient les devises
//====================================*/
.acs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

body.acs-modal-open {
    overflow: hidden;
}

.acs-modal-overlay.is-active {
    display: flex;
}

.acs-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.dark .acs-modal {
    background: #1f2731;
}

.acs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #c4c4d5;
}
.dark .acs-modal-header {
    border-bottom: 1px solid #404555;
}

.acs-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.acs-modal-close {
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    background: #e7e7e7;
    color: #212121;
    padding-top: 1px;
}
.dark .acs-modal-close {
    background: #404555;
    color: #ffffff;
}

.acs-search-wrapper {
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.acs-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.acs-search-input:focus {
    border-color: #94a3b8;
}

.acs-currency-list {
    list-style: none;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 350px;
}

.acs-currency-item {
    background: #f1f1f1;
    margin-bottom: 10px;
    border-radius: 5px;
}
.dark .acs-currency-item {
    background: #27323f;
}

.acs-currency-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.dark .acs-currency-item a {
    color: #ffffff;
}

.acs-currency-item a:hover {
    background: #f8fafc;
}
.dark .acs-currency-item a:hover {
    background: #0060ff;
}

.acs-currency-item.is-hidden {
    display: none;
}