/* Auto Currency Display - Style */

/* ── Harga Utama ── */
.acd-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.acd-price {
    font-weight: 600;
    color: inherit;
}

.acd-price .acd-code {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.65;
    letter-spacing: 0.05em;
}

/* Harga coret (regular price) */
.acd-price-wrap del .acd-price {
    opacity: 0.55;
    text-decoration: line-through;
}

/* Harga sale */
.acd-price-wrap ins {
    text-decoration: none;
    color: #e44c2d;
}

/* ── Label Lokasi ── */
.acd-location-note {
    display: block;
    font-size: 0.72em;
    color: #888;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

/* ── Currency Switcher ── */
.acd-switcher-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9em;
    margin-bottom: 16px;
}

.acd-switcher-wrap label {
    font-weight: 600;
    white-space: nowrap;
    color: #333;
}

#acd-currency-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.95em;
    cursor: pointer;
    background: #fff;
    color: #333;
    min-width: 220px;
    transition: border-color 0.2s;
}

#acd-currency-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* ── Loading State ── */
.acd-loading {
    opacity: 0.5;
    pointer-events: none;
}

.acd-loading::after {
    content: ' ⏳';
}

/* ── Toast Notification ── */
.acd-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: acdFadeIn 0.3s ease;
    max-width: 280px;
}

.acd-toast.acd-toast-success {
    background: #1a7a4a;
}

@keyframes acdFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes acdFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .acd-switcher-wrap {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #acd-currency-select {
        width: 100%;
        min-width: unset;
    }
}
