/**
 * 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 ICON/FLAG (THE TRIGGER)
// Le CSS des icones representant les devises
//====================================*/
.acs-currency-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/***X
.acs-currency-default-icon-svg,
.acs-currency-icon-svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}***/



/*=====================================
// ACS CUURRENCY MODAL TRIGGER BUTTON
// Declenche le modal qui contient les devises
//====================================*/
.acs-currency-modal-trigger {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 2px;
    border: 1px solid #404555;
    padding-left: 5px;
    padding-right: 3px;
    padding-top: 1px;
    padding-bottom: 2px;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #212121;
    position: relative;
}
.dark .acs-currency-modal-trigger {
    color: #ffffff;
}

.acs-currency-modal-trigger-symbol-arrow-group {
    display: flex;
    align-items: center;
}

.acs-currency-modal-trigger-currency-symbol {
    position: relative;
    top: 1px;
}

.acs-currency-modal-trigger-arrow-svg {
	width: 12px;
    height: 12px;
}

/* CURRENCY SWITCHER IN DESKTOP */
@media (min-width: 769px) {
    .acs-currency-modal-trigger {
        border: 0px;
        flex-direction: column;
        padding: 0px !important;
        color: #ffffff;
    }
    .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-icon {
        width: 23px;
        height: 23px;
        margin-right: 10px;
    }
    /***X
    .acs-currency-default-icon-svg, 
    .acs-currency-icon-svg {
        width: 22px !important;
        height: 22px !important;
    }
    ***/
    .acs-currency-modal-trigger-arrow {
        position: relative;
        top: 3px;
    }
} 




/*=====================================
// 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: 99999;
    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;
}