/**
 * Frontend Styles - MVN Shipping Conditions
 */

/* Shipping method descriptions */
.mvn-shipping-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

.mvn-shipping-description small {
    display: block;
    color: #0073aa;
    margin-top: 3px;
}

/* Express shipping highlight */
.shipping_method[value*="mvn_express_shipping"] + label {
    position: relative;
}

.mvn-express-badge {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Free shipping highlight */
.mvn-free-shipping {
    color: #46b450;
    font-weight: bold;
}

/* Shipping notice */
.mvn-shipping-notice {
    background: #fff8e5;
    border: 1px solid #ffb900;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 13px;
}

.mvn-shipping-notice.mvn-notice-info {
    background: #e7f3ff;
    border-color: #0073aa;
}

.mvn-shipping-notice.mvn-notice-success {
    background: #ecf7ed;
    border-color: #46b450;
}

.mvn-shipping-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* Loading state */
.mvn-shipping-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.mvn-shipping-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: mvn-spin 0.8s linear infinite;
}

@keyframes mvn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* RTL Support */
html[dir="rtl"] .mvn-express-badge {
    margin-right: 0;
    margin-left: 5px;
}

/* Shipping method styling */
#shipping_method li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#shipping_method li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Express shipping option styling */
#shipping_method li label[for*="mvn_express_shipping"] {
    color: #ff6b35;
    font-weight: 600;
}

/* Countdown timer */
.mvn-countdown-timer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
    text-align: center;
    animation: mvn-pulse 2s ease-in-out infinite;
}

.mvn-countdown-timer.mvn-countdown-urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #991b1b;
    animation: mvn-pulse-urgent 1s ease-in-out infinite;
}

@keyframes mvn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes mvn-pulse-urgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}
