/* Woo Voucher Countdown Banner Styles */

.wvcb-banner-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
    z-index: 999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: wvcb-slide-down 0.5s ease-out;
}

.wvcb-banner-sidebar {
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    animation: wvcb-fade-in 0.3s ease-out;
}

@keyframes wvcb-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wvcb-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wvcb-banner-top .wvcb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    position: relative;
}

.wvcb-banner-sidebar .wvcb-container {
    padding: 15px;
    position: relative;
}

.wvcb-banner-top .wvcb-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wvcb-banner-sidebar .wvcb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

/* Hide timer on no-timer banners */
.wvcb-no-timer .wvcb-countdown {
    display: none;
}

.wvcb-banner-top .wvcb-icon {
    font-size: 32px;
    line-height: 1;
}

.wvcb-banner-sidebar .wvcb-icon {
    font-size: 28px;
    line-height: 1;
}

.wvcb-banner-top .wvcb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wvcb-banner-sidebar .wvcb-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wvcb-banner-top .wvcb-text strong {
    font-size: 18px;
    font-weight: 700;
}

.wvcb-banner-sidebar .wvcb-text strong {
    font-size: 16px;
    font-weight: 700;
}

.wvcb-subtitle {
    font-size: 13px;
    opacity: 0.7;
    color: #666666;
}

.wvcb-banner-sidebar .wvcb-subtitle {
    font-size: 12px;
}

.wvcb-banner-top .wvcb-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 8px;
}

.wvcb-banner-sidebar .wvcb-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
    justify-content: center;
}

.wvcb-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wvcb-banner-top .wvcb-time-unit {
    min-width: 45px;
}

.wvcb-banner-sidebar .wvcb-time-unit {
    min-width: 40px;
}

.wvcb-banner-top .wvcb-time-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.wvcb-banner-sidebar .wvcb-time-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.wvcb-time-label {
    font-size: 11px;
    opacity: 0.7;
    color: #666666;
    margin-top: 2px;
}

.wvcb-banner-sidebar .wvcb-time-label {
    font-size: 10px;
}

.wvcb-separator {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.3;
    color: #666666;
}

.wvcb-apply-btn {
    background: #333333;
    color: #ffffff;
    border: 1px solid #333333;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wvcb-banner-top .wvcb-apply-btn {
    padding: 10px 24px;
    font-size: 14px;
}

.wvcb-banner-sidebar .wvcb-apply-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
}

.wvcb-apply-btn:hover {
    background: #000000;
    border-color: #000000;
}

.wvcb-apply-btn:active {
    transform: translateY(0);
}

.wvcb-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wvcb-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999999;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wvcb-close:hover {
    background: #f0f0f0;
    color: #333333;
    transform: translateY(-50%);
}

/* Responsive styles */
@media (max-width: 768px) {
    .wvcb-banner-top .wvcb-container {
        padding: 10px 15px;
    }
    
    .wvcb-banner-top .wvcb-content {
        gap: 12px;
        font-size: 14px;
    }
    
    .wvcb-banner-top .wvcb-icon {
        font-size: 24px;
    }
    
    .wvcb-banner-top .wvcb-text strong {
        font-size: 16px;
    }
    
    .wvcb-subtitle {
        font-size: 12px;
    }
    
    .wvcb-banner-top .wvcb-time-value {
        font-size: 20px;
    }
    
    .wvcb-banner-top .wvcb-time-unit {
        min-width: 35px;
    }
    
    .wvcb-banner-top .wvcb-apply-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .wvcb-close {
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wvcb-banner-top .wvcb-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wvcb-banner-top .wvcb-text {
        align-items: center;
    }
}

/* Animation for expired banner */
.wvcb-expired {
    animation: wvcb-slide-up 0.5s ease-out forwards;
}

@keyframes wvcb-slide-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

