/**
 * WooCommerce Currency Converter Frontend Styles
 */

.wccc-currency-selector {
    display: inline-block;
    margin: 10px 0;
}

.wccc-currency-label {
    display: inline-block;
    margin-right: 8px;
    font-weight: 500;
    vertical-align: middle;
}

.wccc-currency-select {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    vertical-align: middle;
    min-width: 180px;
}

.wccc-currency-select:hover {
    border-color: #999;
}

.wccc-currency-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wccc-currency-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
body.wccc-loading .wccc-currency-select {
    opacity: 0.7;
    cursor: wait;
}

/* Price updates animation */
.price,
.woocommerce-Price-amount {
    transition: opacity 0.2s ease;
}

body.wccc-loading .price,
body.wccc-loading .woocommerce-Price-amount {
    opacity: 0.6;
}

/* Subtle loading indicator */
.wccc-loading-indicator {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    vertical-align: middle;
    opacity: 0;
    animation: wccc-fade-in 0.3s ease forwards;
}

.wccc-loading-indicator:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: wccc-spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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

@keyframes wccc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .wccc-currency-selector {
        display: block;
        width: 100%;
    }
    
    .wccc-currency-label {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .wccc-currency-select {
        width: 100%;
        min-width: auto;
    }
}

