/* Promotion Top Bar Styles */
.promotion-topbar {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
    display: block;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.promotion-topbar.hidden {
    display: none;
}

/* Desktop layout - single row: Countdown, Text, CTA, X */
.promotion-topbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Text group */
.promotion-topbar-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.promotion-topbar-countdown {
    font-weight: bold;
    color: #f39c12;
    font-size: 16px;
}

.promotion-topbar-button {
    background-color: #e74c3c;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.promotion-topbar-button:hover {
    background-color: #c0392b;
    color: #ffffff;
    text-decoration: none;
}

.promotion-topbar-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.promotion-topbar-close:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Mobile Styles - 2 rows layout */
@media (max-width: 480px) {
    .promotion-topbar {
        padding: 10px 15px;
        padding-right: 40px; /* Space for X button */
    }
    
    .promotion-topbar-content {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        position: static;
    }
    
    /* Row 1: Text */
    .promotion-topbar-text {
        width: 100%;
        justify-content: center;
        font-size: 1.1em;
        order: 1;
    }
    
    /* Keep name and discount, hide deadline */
    .promotion-topbar-deadline {
        display: none;
    }
    
    /* Row 2: Countdown and Button side by side */
    .promotion-topbar-countdown {
        order: 2;
        display: inline-block;
    }
    
    .promotion-topbar-button {
        order: 3;
        display: inline-block;
        padding: 6px 14px;
        font-size: 13px;
        margin-left: 10px;
    }
    
    /* X button positioned to topbar */
    .promotion-topbar-close {
        right: 10px;
        top: 12px;
        transform: none;
    }
    
    /* Override countdown styles to make them COMPACT */
    .promotion-topbar .promotion-countdown {
        font-size: 12px !important;
    }
    
    .promotion-topbar .promotion-countdown-labels {
        gap: 2px !important;
    }
    
    .promotion-topbar .promotion-countdown-labels .countdown-item {
        padding: 2px 4px !important;
        min-width: 28px !important;
        margin: 0 !important;
        background-color: rgba(255,255,255,0.15) !important;
        border-radius: 2px !important;
    }
    
    .promotion-topbar .promotion-countdown-labels .countdown-number {
        font-size: 0.85em !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }
    
    .promotion-topbar .promotion-countdown-labels .countdown-label {
        font-size: 0.55em !important;
        line-height: 1 !important;
        opacity: 0.8 !important;
    }
}

/* Fix stacking - display countdown horizontally */
.promotion-topbar .promotion-countdown {
    display: inline-flex !important;
}

