/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    pointer-events: auto; /* Banner można klikać */
    max-height: 50vh; /* Maksymalnie 50% ekranu */
    overflow-y: auto; /* Scroll jeśli za duży */
}

/* Tło strony - pozwól na klikanie */
body {
    pointer-events: auto !important;
}

/* Upewnij się że treść nie jest blokowana */
#main, #bd, .main-pane {
    pointer-events: auto !important;
}

/* WAŻNE: Ukryj Google Funding Choices (cookie banner od Adsense) */
#googlefc,
iframe[src*="fundingchoices"],
iframe[src*="googlefc"],
[id*="googlefc"],
.fc-consent-root,
.fc-dialog-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Blokada Google overlay */
body > div[style*="position: fixed"],
body > div[style*="z-index: 2147483647"] {
    display: none !important;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #c00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.cookie-btn-accept:hover {
    background: #a00;
}

.cookie-btn-info {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
    padding: 12px 16px;
    white-space: nowrap;
}

.cookie-btn-info:hover {
    color: #ccc;
}

/* Mobile */
@media only screen and (max-width: 768px) {
    #cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-consent-content p {
        font-size: 12px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn-accept {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-btn-info {
        font-size: 12px;
    }
}

