/**
 * WooCommerce Cart Scheduler Pro - Frontend Styles
 */

/* Closure Notice */
.wcs-closure-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.wcs-closure-notice::before {
    display: none !important;
}

.wcs-closure-notice p {
    margin: 0;
}

.wcs-closure-notice a {
    color: #92400e;
    font-weight: 600;
}

/* Countdown Timer */
.wcs-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.wcs-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.wcs-countdown-value {
    font-size: 28px;
    font-weight: 700;
    color: #92400e;
    line-height: 1;
}

.wcs-countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #b45309;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Countdown - Dark Style */
.wcs-countdown-dark .wcs-countdown {
    background: #1e1e2e;
    margin: 20px -25px -20px;
    padding: 20px 25px;
    border-radius: 0 0 8px 0;
    border-top: none;
}

.wcs-countdown-dark .wcs-countdown-value {
    color: #fff;
}

.wcs-countdown-dark .wcs-countdown-label {
    color: rgba(255,255,255,0.6);
}

/* Warning Banner - Top Position */
.wcs-warning-banner {
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wcs-has-warning-banner {
    /* Add padding to body or adjust as needed */
}

.wcs-warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.wcs-warning-icon {
    font-size: 24px;
}

.wcs-warning-text {
    font-size: 15px;
    font-weight: 500;
}

.wcs-warning-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 4px;
    line-height: 1;
}

.wcs-warning-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
}

/* Floating Countdown Widget */
.wcs-floating-countdown {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 99998;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcs-floating-countdown .wcs-countdown-title {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 10px;
    text-align: center;
}

.wcs-floating-countdown .wcs-countdown {
    border: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.wcs-floating-countdown .wcs-countdown-value {
    font-size: 22px;
    color: #fff;
}

.wcs-floating-countdown .wcs-countdown-label {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.wcs-floating-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.wcs-floating-close:hover {
    color: #fff;
}

/* Product Page - Unavailable State */
.wcs-product-unavailable .single_add_to_cart_button {
    pointer-events: none;
    opacity: 0.5;
}

.wcs-product-unavailable .quantity {
    opacity: 0.5;
}

/* Shop Page - Unavailable Products */
.wcs-shop-closure-active .add_to_cart_button {
    pointer-events: none;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .wcs-countdown {
        gap: 10px;
    }
    
    .wcs-countdown-item {
        min-width: 50px;
    }
    
    .wcs-countdown-value {
        font-size: 22px;
    }
    
    .wcs-warning-content {
        flex-wrap: wrap;
        text-align: center;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .wcs-warning-text {
        flex: 1 1 100%;
        order: 1;
    }
    
    .wcs-warning-icon {
        order: 0;
    }
    
    .wcs-warning-close {
        order: 2;
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .wcs-floating-countdown {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

/* Countdown Popup Modal */
.wcs-countdown-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: wcsPopupFadeIn 0.3s ease-out;
}

@keyframes wcsPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wcs-countdown-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.wcs-countdown-popup-content {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: wcsPopupSlideUp 0.4s ease-out;
}

@keyframes wcsPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wcs-countdown-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f3f4;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.wcs-countdown-popup-close:hover {
    background: #e8eaed;
    color: #333;
    transform: scale(1.1);
}

.wcs-countdown-popup-icon {
    color: #f59e0b;
    margin-bottom: 20px;
}

.wcs-countdown-popup-icon svg {
    width: 64px;
    height: 64px;
}

.wcs-countdown-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px;
}

.wcs-countdown-popup-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
    line-height: 1.6;
}

.wcs-countdown-popup-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.wcs-countdown-popup-timer .wcs-countdown-unit {
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 12px;
    padding: 20px 15px;
    min-width: 80px;
}

.wcs-countdown-popup-timer .wcs-countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.wcs-countdown-popup-timer .wcs-countdown-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    letter-spacing: 1px;
}

.wcs-countdown-popup-reopen {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.wcs-countdown-popup-reopen strong {
    color: #1a1a2e;
}

/* Popup Responsive */
@media (max-width: 600px) {
    .wcs-countdown-popup-content {
        padding: 40px 25px;
    }
    
    .wcs-countdown-popup-title {
        font-size: 22px;
    }
    
    .wcs-countdown-popup-timer {
        gap: 8px;
    }
    
    .wcs-countdown-popup-timer .wcs-countdown-unit {
        padding: 15px 10px;
        min-width: 60px;
    }
    
    .wcs-countdown-popup-timer .wcs-countdown-value {
        font-size: 26px;
    }
    
    .wcs-countdown-popup-timer .wcs-countdown-label {
        font-size: 9px;
    }
}
