.preorder-timer-countdown {
    margin: 1.5em 0;
    padding: 1em;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);
}

.preorder-timer-countdown .preorder-message {
    font-size: 1rem;
    color: #2d3436;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.preorder-timer-countdown .preorder-end-date {
    font-weight: 600;
    color: #212529;
}

.preorder-timer-expired-message {
    margin: 1.5em 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.preorder-timer-expired-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

body.preorder-expired-hide-cart .cart {
    display: none !important;
}

body.preorder-expired-hide-cart .quantity {
    display: none !important;
}

body.preorder-expired-hide-cart .single_add_to_cart_button {
    display: none !important;
}

body.preorder-expired-hide-cart .woocommerce-variation-add-to-cart {
    display: none !important;
}

body.preorder-expired-hide-cart .woocommerce-grouped-product-list-item__quantity {
    display: none !important;
}



.countdown-container {
    width: 100%;
    margin: 1em 0;
    font-family: Arial, sans-serif;
}

.progress-container {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    transition: width 1s linear;
}

.progress-marker {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(0,0,0,0.1);
    top: 0;
}

.timer-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.time-segment {
    flex: 1;
}

.time-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
}

.preorder-timer-countdown.style-text .text-timer {
    font-size: 1.3em;
    font-weight: 700;
    color: #4d96ff;
    text-align: center;
    margin: 0.3em 0;
}

.preorder-timer-countdown.style-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 20px auto;
}

.preorder-timer-countdown.style-modern .timer-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.preorder-timer-countdown.style-modern .timer-segment {
    position: relative;
    min-width: 70px;
}

.preorder-timer-countdown.style-modern .timer-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3436;
    background: #f5f6fa;
    border-radius: 8px;
    padding: 15px 5px;
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

.preorder-timer-countdown.style-modern .timer-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #636e72;
    font-weight: 600;
}

.preorder-timer-countdown.style-modern .timer-separator {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #b2bec3;
    font-weight: 700;
}

.preorder-timer-countdown.style-modern .preorder-end-date {
    font-weight: 700;
    color: #0984e3;
}

.preorder-timer-countdown.style-modern.preorder-expired {
    background: #fff5f5;
    border-color: #ff7675;
}

.preorder-timer-countdown.style-modern.preorder-expired .expired-message {
    color: #d63031;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preorder-timer-countdown.style-modern.preorder-expired .expired-message .icon {
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .preorder-timer-countdown.style-modern .timer-display {
        gap: 8px;
    }
    
    .preorder-timer-countdown.style-modern .timer-segment {
        min-width: 55px;
    }
    
    .preorder-timer-countdown.style-modern .timer-value {
        font-size: 1.8rem;
        padding: 12px 3px;
    }
    
    .preorder-timer-countdown.style-modern .timer-label {
        font-size: 0.65rem;
    }
    
    .preorder-timer-expired-message {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Hide countdown while initializing to prevent flicker (FOUC) */
.preorder-timer-countdown.loading {
    opacity: 0;
    visibility: hidden;
}

/* Reveal smoothly once ready */
.preorder-timer-countdown.ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease-in;
}