/* ZiG Currency Switcher — frontend */

.zig-currency-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.zig-currency-label {
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    color: inherit;
}

.zig-currency-select {
    appearance: auto;
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    color: #333;
    min-width: 160px;
    transition: border-color 0.2s;
}

.zig-currency-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.zig-currency-select:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Spinner */
.zig-currency-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: zig-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes zig-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .zig-currency-switcher {
        flex-wrap: wrap;
    }
    .zig-currency-select {
        min-width: 100%;
    }
}
