/* Location-Based Currency Detection Styles for POSinity */

/* Smooth transitions for currency symbol updates (for supported locations) */
.price, .original-price {
    transition: all 0.3s ease;
}

.currency {
    transition: all 0.3s ease;
}

/* Loading Animation */
.currency-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.currency-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-error::before {
    content: "⚠️";
    font-size: 16px;
}

/* Success State */
.currency-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-success::before {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
}
