/* backend/public/css/currency-switcher.css */

.currency-symbol {
    font-size: 15px;
    font-weight: 900;
    color: var(--icon-header-color, goldenrod) !important;
    margin: 0 3px;
}

.currency-code {
    font-size: 12px;
}

.currency-dropdown {
    max-height: 200px;
    overflow-y: auto;
    min-width: max-content;
}

.currency-dropdown::-webkit-scrollbar {
    display: none;
}

.currency-dropdown.show {
    display: block;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option .currency-symbol {
    font-weight: bold;
    min-width: 20px;
}

.currency-option .currency-name {
    font-size: 14px;
    white-space: nowrap;
}

.currency-selector {
    position: relative;
}

.currency-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    /* transition: all 0.3s ease; */
}

.currency-btn:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.currency-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* تنسيقات الإشعارات */
.currency-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
    border-left: 4px solid #007bff;
}

.currency-notification.show {
    transform: translateX(0);
}

.currency-notification-success {
    border-left-color: #28a745;
}

.currency-notification-error {
    border-left-color: #dc3545;
}

.currency-notification-warning {
    border-left-color: #ffc107;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background-color: var(--zh-white);
    color: #666;
}

/* تنسيقات الأسعار المحولة */
.price-converted {
    transition: color 0.3s ease;
}

.price-converted:hover {
    color: #007bff;
}

/* تنسيقات للعناصر التي تحتوي على أسعار */
.cart-price,
.cart-subtotal,
.product-price,
.total-price,
.subtotal,
.tax,
.shipping,
.discount {
    transition: all 0.3s ease;
}

/* تأثير بصري عند تحديث الأسعار */
.price-updated {
    animation: priceUpdate 0.5s ease-in-out;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 3px;
    padding: 2px 4px;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
        background-color: rgba(0, 123, 255, 0.2);
    }

    50% {
        transform: scale(1.05);
        background-color: rgba(0, 123, 255, 0.3);
    }

    100% {
        transform: scale(1);
        background-color: rgba(0, 123, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .currency-option .currency-name {
        font-size: 12px;
    }

    .currency-dropdown {
        top: 96%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        max-height: 200px;
        overflow-y: auto;
        display: none;
        margin-top: 2px;
        min-width: 170px;
    }
}
