/* ========================================
   WooCommerce Easy SAR to USD Currency Display
   FRONTEND STYLES
   ======================================== */

/* USD Price Display - General Styling */
.usd-price {
    display: inline-block;
    font-size: 0.85em;
    color: #2c5aa0;
    font-weight: 500;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f7 100%);
    border-radius: 12px;
    border: 1px solid #b3d9f2;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.1);
}

.usd-price:hover {
    background: linear-gradient(135deg, #d1e7f7 0%, #b3d9f2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.15);
}

.usd-price::before {
   /* content: "💱";*/
    margin-right: 4px;
    font-size: 0.9em;
}

/* Product Page USD Prices */
.woocommerce div.product .price .usd-price {
    font-size: 0.8em;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 1px solid #4a90e2;
    color: #2c5aa0;
    padding: 4px 10px;
    border-radius: 15px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Variable Product Price Range */
.woocommerce div.product .price .usd-price[data-range="true"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b3 100%);
    border-color: #ff9800;
    color: #e65100;
}

/* Cart Page Styling */
.woocommerce-cart .cart_item .usd-price,
.woocommerce-cart .cart_item small {
    color: #666;
    font-style: italic;
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
    padding: 3px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #28a745;
    transition: all 0.3s ease;
}

.woocommerce-cart .cart_item:hover .usd-price,
.woocommerce-cart .cart_item:hover small {
    background: #e8f5e8;
    border-left-color: #20c997;
}

/* Cart Totals USD Display */
.woocommerce-cart .cart-collaterals .cart_totals small,
.woocommerce-checkout .woocommerce-checkout-review-order small {
    display: block;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.woocommerce-cart .cart-collaterals .cart_totals small::before,
.woocommerce-checkout .woocommerce-checkout-review-order small::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.woocommerce-cart .cart-collaterals .cart_totals:hover small::before,
.woocommerce-checkout .woocommerce-checkout-review-order:hover small::before {
    left: 100%;
}

/* Order Total Highlight */
.woocommerce-cart .cart-collaterals .order-total small,
.woocommerce-checkout .order-total small {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffc107;
    color: #f57c00;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 3px 6px rgba(255, 193, 7, 0.2);
}

/* Checkout Page Styling */
.woocommerce-checkout .woocommerce-checkout-review-order .usd-price {
    font-size: 0.85em;
    color: #495057;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .usd-price {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        text-align: center;
        font-size: 0.8em;
    }
    
    .woocommerce div.product .price .usd-price {
        margin-left: 0;
        margin-top: 8px;
        display: block;
    }
    
    .woocommerce-cart .cart_item small {
        text-align: center;
    }
}

