
/**
 * Public styles for Currency Toggle
 */
.currency-toggle-switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.currency-toggle-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: inherit;
    font-size: inherit;
}

.currency-toggle-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.currency-toggle-flag {
    width: auto;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.currency-toggle-code {
    font-weight: 500;
}

.currency-toggle-chevron {
    font-size: 10px;
    transition: transform 0.2s;
}

.currency-toggle-switcher.open .currency-toggle-chevron {
    transform: rotate(180deg);
}

.currency-toggle-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 200px;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.currency-toggle-switcher.open .currency-toggle-dropdown {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.currency-toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.currency-toggle-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.currency-toggle-active {
    background-color: rgba(0, 0, 0, 0.05);
}

.currency-toggle-info {
    display: flex;
    flex-direction: column;
}

.currency-toggle-name {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .currency-toggle-dropdown {
        width: 180px;
        right: -10px;
    }
    
    .currency-toggle-name {
        font-size: 11px;
    }
}
