/* Currency Selector Styles */
.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-selector {
    min-width: 120px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}

.currency-selector:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

/* Loading Message */
.currency-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 16px;
    font-weight: 500;
}

/* Currency Selector in Product Sort */
.product-sort-list .currency-selector {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 140px;
}

/* Currency Selector in Product Details */
.product-price .currency-selector-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.product-price .currency-selector {
    min-width: 150px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .currency-selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-price .currency-selector-wrapper {
        margin-top: 10px;
    }

    .product-sort-list .currency-selector {
        min-width: 120px;
        font-size: 13px;
    }
}

/* RTL Support */
[dir="rtl"] .currency-selector-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-price .currency-selector-wrapper {
    align-items: flex-end;
}

/* Animation for currency change */
.product-price .new-price,
.product-price .old-price {
    transition: all 0.3s ease;
}

/* Currency selector hover effect */
.currency-selector:hover {
    border-color: var(--color-primary);
}

/* Success/Error notifications */
.alert {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
