/* Pasek promocyjny - pod topbarem */
.promo-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0px !important;
    right: 0px !important;
    width: 100% !important;
    z-index: 1002 !important;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #9d174d 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    animation: slideDown 0.5s ease-out;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(-100%) !important;
}

.promo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.promo-banner-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.promo-banner-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Przełamanie linii tylko na desktopie */
.promo-banner-title .desktop-only {
    display: inline;
}

.promo-countdown {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    min-width: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.countdown-text {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.promo-banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.promo-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.promo-banner-close svg {
    width: 20px;
    height: 20px;
}

/* Animacje */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-banner.show {
    transform: translateY(0) !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-unit {
    animation: pulse 2s infinite;
}

/* Responsywność */
@media (max-width: 768px) {
    .promo-banner {
        padding: 10px 12px;
    }
    
    .promo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        position: relative;
    }
    
    .promo-banner-title {
        font-size: 16px;
    }
    
    /* Ukryj przełamanie linii na tabletach */
    .promo-banner-title .desktop-only {
        display: none;
    }
    
    .promo-countdown {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        position: relative;
    }
    
    .countdown-timer {
        justify-content: center;
        position: relative;
    }
    
    .countdown-unit {
        min-width: 45px;
        padding: 4px 8px;
    }
    
    .countdown-number {
        font-size: 16px;
    }
    
    .countdown-text {
        font-size: 9px;
    }
    
    /* Przycisk zamykania po prawej stronie timera */
    .promo-banner-close {
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .promo-banner-title {
        font-size: 14px;
    }
    
    /* Ukryj przełamanie linii na telefonach */
    .promo-banner-title .desktop-only {
        display: none;
    }
    
    .promo-countdown {
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        text-align: center;
        position: relative;
    }
    
    .countdown-label {
        text-align: center;
    }
    
    .countdown-timer {
        justify-content: center;
        position: relative;
    }
    
    .countdown-unit {
        min-width: 40px;
        padding: 3px 6px;
    }
    
    /* Przycisk zamykania po prawej stronie timera na telefonie */
    .promo-banner-close {
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        margin: 0;
        padding: 6px;
        z-index: 10;
    }
    
    .countdown-number {
        font-size: 14px;
    }
}

/* Ukrycie bannera */
.promo-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Usunięto margin-bottom z body - pasek ma być na dole ekranu */
/* body.promo-banner-active {
    margin-bottom: 80px;
} */

/* Pozycjonowanie wtyczek powyżej paska promocyjnego */

/* Tawk.to widget positioning - przyklejone do górnej krawędzi banneru */
#tawkchat-minified-container,
#tawkchat-container,
.tawk-min-container,
.tawk-container,
#tawk-bubble-container,
.tawk-bubble,
[id*="tawk"],
[class*="tawk"] {
    z-index: 1001 !important;
    position: fixed !important;
}

/* Add top margin to main content when banner is active */
body.promo-banner-active {
    padding-top: 70px;
}

body.promo-banner-active nav {
    top: 70px;
}

body.promo-banner-active .main-content {
    margin-top: 64px;
}

/* GDPR Cookie consent positioning */
.cookie-settings-button {
    z-index: 950 !important;
}

/* Przycisk GDPR pozostaje na dole */
body.promo-banner-active .cookie-settings-button {
    bottom: 20px !important;
    z-index: 950 !important;
}

/* Cookie popup i settings mają wyższy z-index */
.cookie-popup,
.cookie-settings {
    z-index: 99999 !important;
}

/* Responsywne dostosowania dla mobile - pozycjonowanie zarządzane przez JavaScript */
@media (max-width: 768px) {
    /* Pozycjonowanie tawk.to jest zarządzane przez JavaScript */
    
    body.promo-banner-active {
        padding-top: 80px;
    }
    
    body.promo-banner-active nav {
        top: 80px;
    }
    
    body.promo-banner-active .main-content {
        margin-top: 80px;
    }
    
    /* Cookie button zawsze w lewym dolnym rogu na tablecie */
    .cookie-settings-button {
        bottom: 20px !important;
        left: 20px !important;
    }
    
    body.promo-banner-active .cookie-settings-button {
        bottom: 20px !important;
        left: 20px !important;
    }
}

@media (max-width: 480px) {
    /* Pozycjonowanie tawk.to jest zarządzane przez JavaScript */
    
    body.promo-banner-active {
        padding-top: 90px;
    }
    
    body.promo-banner-active nav {
        top: 90px;
    }
    
    body.promo-banner-active .main-content {
        margin-top: 90px;
    }
    
    /* Cookie button zawsze w lewym dolnym rogu na telefonie */
    .cookie-settings-button {
        bottom: 15px !important;
        left: 15px !important;
    }
    
    body.promo-banner-active .cookie-settings-button {
        bottom: 15px !important;
        left: 15px !important;
    }
}