/* ==========================================================================
   Aaylube Currency Switcher — Stylesheet
   All selectors are scoped to .acs-* to avoid theme conflicts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Switcher wrapper
   -------------------------------------------------------------------------- */
.acs-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #f4f6f9;
    border: 1px solid #e0e4eb;
    border-radius: 10px;
    font-family: inherit;
}

.acs-switcher__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-right: 4px;
    white-space: nowrap;
}

fieldset label{
    line-height: 2 !important;
}

/* --------------------------------------------------------------------------
   Tabs / buttons
   -------------------------------------------------------------------------- */
.acs-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border: 2px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    user-select: none;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.acs-tab:hover:not(:disabled) {
    border-color: #1a6fc4;
    background: #eef4fd;
    color: #1a6fc4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(26, 111, 196, 0.15);
}

.acs-tab:focus-visible {
    outline: 3px solid #1a6fc4;
    outline-offset: 2px;
}

.acs-tab--active {
    border-color: #1a6fc4 !important;
    background: #1a6fc4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(26, 111, 196, 0.30) !important;
    transform: none !important;
}

.acs-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

/* Symbol styling inside tab */
.acs-tab__symbol {
    font-size: 14px;
    font-weight: 700;
}

.acs-tab__code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.acs-tab--active .acs-tab__code {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Loading spinner
   -------------------------------------------------------------------------- */
.acs-switcher__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-top-color: #1a6fc4;
    border-radius: 50%;
    animation: acs-spin 0.65s linear infinite;
    margin-left: 4px;
    flex-shrink: 0;
}

.acs-switcher--loading .acs-switcher__spinner {
    display: inline-block;
}

@keyframes acs-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Cart / Checkout currency notice
   -------------------------------------------------------------------------- */
.acs-cart-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #eef4fd;
    border: 1px solid #bcd4f5;
    border-left: 4px solid #1a6fc4;
    border-radius: 8px;
    font-size: 14px;
    color: #1e3a5f;
}

.acs-cart-notice__icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.acs-cart-notice strong {
    color: #1a6fc4;
}

.acs-cart-notice__change {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #1a6fc4;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.acs-cart-notice__change:hover {
    color: #145a9e;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .acs-switcher {
        gap: 6px;
        padding: 10px 12px;
    }

    .acs-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .acs-tab__symbol {
        font-size: 13px;
    }

    .acs-cart-notice__change {
        margin-left: 0;
    }
}