/* ============================================
   MULTI - Currency & Language Switcher
   ============================================ */

/* ============================================
   DESKTOP DROPDOWN
   ============================================ */
.dropdown__currency,
.dropdown__language {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 6px 0;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.dropdown__currency.show,
.dropdown__language.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown__currency ul,
.dropdown__language ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown__currency .currency__items,
.dropdown__language .language__items {
    padding: 0;
    margin: 0;
}

.dropdown__currency .currency__text,
.dropdown__language .language__text {
    display: block;
    padding: 8px 18px;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dropdown__currency .currency__text:hover,
.dropdown__language .language__text:hover {
    background: #f5f5f5;
    color: #dc2626;
}

.dropdown__currency .currency__text.active,
.dropdown__language .language__text.active {
    background: #f0f0f0;
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   MOBILE DROPDOWN (Offcanvas)
   ============================================ */
.offcanvas__account--currency__submenu,
.offcanvas__dropdown--language {
    display: none;
    padding-left: 20px;
    margin-top: 4px;
}

.offcanvas__account--currency__submenu.show,
.offcanvas__dropdown--language.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.offcanvas__account--currency__submenu ul,
.offcanvas__dropdown--language ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas__account--currency__submenu .currency__items,
.offcanvas__dropdown--language .language__items {
    padding: 0;
    margin: 0;
}

.offcanvas__account--currency__submenu .currency__text,
.offcanvas__dropdown--language .language__text {
    display: block;
    padding: 6px 15px;
    color: #555555;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border-radius: 4px;
}

.offcanvas__account--currency__submenu .currency__text:hover,
.offcanvas__dropdown--language .language__text:hover {
    background: #f5f5f5;
    color: #dc2626;
}

.offcanvas__account--currency__submenu .currency__text.active,
.offcanvas__dropdown--language .language__text.active {
    background: #f0f0f0;
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   POSITION RELATIVE UNTUK DROPDOWN PARENT
   ============================================ */
.language__currency--list,
.offcanvas__account--currency {
    position: relative;
}

/* ============================================
   ANIMASI
   ============================================ */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOAST NOTIFIKASI
   ============================================ */
.multi-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #1f2937;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.multi-toast.show {
    opacity: 1;
    pointer-events: auto;
}

.multi-toast.success {
    background: #065f46;
}

.multi-toast.error {
    background: #991b1b;
}

.multi-toast.info {
    background: #1e40af;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .dropdown__currency,
    .dropdown__language {
        min-width: 100px;
    }
    
    .dropdown__currency .currency__text,
    .dropdown__language .language__text {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .dropdown__currency,
    .dropdown__language {
        min-width: 80px;
        right: 0;
        left: auto;
    }
    
    .dropdown__currency .currency__text,
    .dropdown__language .language__text {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .multi-toast {
        font-size: 12px;
        padding: 10px 16px;
        bottom: 10px;
    }
}
/* ============================================
   FLAG ICON STYLE
   ============================================ */
.currency__link--icon,
.language__switcher img,
.offcanvas__account--currency__menu img,
.offcanvas__language--switcher img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 5px;
}

.dropdown__currency .currency__text img,
.dropdown__language .language__text img,
.offcanvas__account--currency__submenu .currency__text img,
.offcanvas__dropdown--language .language__text img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}