/**
 * PepsData Currency Switcher Styles
 * @version 0.5.0
 */

.pepsdata-currency-switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.pepsdata-currency-dropdown {
    position: relative;
}

.pepsdata-currency-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 170px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #0f5c33;
    background: linear-gradient(135deg, #1f7a3d, #0f5c33);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(15, 92, 51, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.pepsdata-currency-current:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 92, 51, 0.24);
    background: linear-gradient(135deg, #239049, #0f5c33);
}

.pepsdata-currency-current .currency-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pepsdata-currency-current .currency-flag {
    font-size: 20px;
    line-height: 1;
}

.pepsdata-currency-current .currency-code {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-transform: uppercase;
}

.pepsdata-currency-current .currency-symbol {
    font-weight: 600;
}

.pepsdata-currency-current .currency-code-text {
    font-weight: 700;
}

.pepsdata-currency-current .currency-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
}

.pepsdata-currency-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: max(100%, 205px);
    background: #ffffff;
    border: 1px solid #cbe7d9;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(13, 74, 42, 0.22);
    z-index: 1000;
    overflow: hidden;
    padding: 6px;
    backdrop-filter: blur(12px);
    display: none;
}

.pepsdata-currency-list.show {
    animation: slideDown 0.2s ease-out;
}

.pepsdata-currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #1c3c2a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.pepsdata-currency-option + .pepsdata-currency-option {
    margin-top: 4px;
}

.pepsdata-currency-option .currency-flag {
    font-size: 22px;
    line-height: 1;
}

.pepsdata-currency-option .currency-code {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-transform: uppercase;
}

.pepsdata-currency-option .currency-symbol {
    font-weight: 600;
}

.pepsdata-currency-option:hover {
    background: #ecfdf3;
    color: #0f5c33;
}

.pepsdata-currency-option.active {
    background: #d8f7e4;
    color: #0f5c33;
    box-shadow: inset 0 0 0 1px rgba(31, 122, 61, 0.45);
}

@media (max-width: 768px) {
    .pepsdata-currency-switcher {
        width: 100%;
    }

    .pepsdata-currency-current {
        width: 100%;
    }

    .pepsdata-currency-list {
        width: 100%;
        max-width: 100%;
    }
}

.site-header .pepsdata-currency-switcher {
    margin: 0 10px;
}

.pepsdata-currency-switcher.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pepsdata-currency-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.pepsdata-currency-sticky .pepsdata-currency-current {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
