/* --- Style dla Banera Cookie --- */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* Jasnoszare tło */
    padding: 25px 30px;
    border-top: 1px solid #dee2e6; /* Delikatna górna ramka */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); /* Subtelny cień */
    z-index: 1050; /* Wysoki z-index, aby był na wierzchu */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    
    /* Domyślnie ukryty, JS go pokaże w razie potrzeby */
    display: none; 
}

#cookie-consent-banner .cookie-content {
    max-width: 1200px; /* Ograniczenie szerokości na dużych ekranach */
    margin: 0 auto; /* Wyśrodkowanie */
}

#cookie-consent-banner h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
}

#cookie-consent-banner p {
    margin-bottom: 20px;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
}

#cookie-consent-banner a {
    color: #007bff; /* Standardowy niebieski link */
    text-decoration: underline;
}

#cookie-consent-banner .cookie-categories {
    margin-bottom: 20px;
}

#cookie-consent-banner .cookie-category {
    display: flex;
    justify-content: space-between; /* Rozciąga elementy */
    align-items: center; /* Wyrównuje w pionie */
    margin-bottom: 12px;
    background: #fff; /* Białe tło dla każdej opcji */
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#cookie-consent-banner .cookie-category div {
    display: flex; /* Aby checkbox i label były obok siebie */
    align-items: center;
    flex-shrink: 0; /* Zapobiega kurczeniu się tej części */
}

#cookie-consent-banner .cookie-category label {
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.9rem; /* 14.4px */
}

#cookie-consent-banner .cookie-category input[type="checkbox"] {
    transform: scale(1.1); /* Lekko powiększa checkbox */
}

/* Wygląd wyłączonego (disabled) checkboxa */
#cookie-consent-banner .cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#cookie-consent-banner .cookie-category span {
    font-size: 0.8rem; /* 12.8px */
    color: #555;
    margin-left: 20px; /* Odstęp od lewej sekcji */
}

#cookie-consent-banner .cookie-buttons {
    display: flex;
    gap: 10px; /* Odstęp między przyciskami */
    flex-wrap: wrap; /* Zawijanie na mniejszych ekranach */
}

#cookie-consent-banner .cookie-buttons button {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    color: white;
}

/* "Akceptuj wszystkie" - główna akcja */
#cookie-consent-banner #cookie-accept-all {
    background-color: #007bff; /* Niebieski */
}

#cookie-consent-banner #cookie-accept-all:hover {
    background-color: #0069d9;
}

/* "Zapisz ustawienia" - akcja drugorzędna */
#cookie-consent-banner #cookie-save-prefs {
    background-color: #6c757d; /* Szary */
}

#cookie-consent-banner #cookie-save-prefs:hover {
    background-color: #5a6268;
}

/* "Odrzuć wszystkie" - akcja negatywna */
#cookie-consent-banner #cookie-reject-all {
    background-color: #dc3545; /* Czerwony */
}

#cookie-consent-banner #cookie-reject-all:hover {
    background-color: #c82333;
}

/* Responsywność dla małych ekranów */
@media (max-width: 600px) {
    #cookie-consent-banner .cookie-category {
        flex-direction: column; /* Układ kolumnowy */
        align-items: flex-start; /* Wyrównanie do lewej */
        gap: 5px;
    }
    
    #cookie-consent-banner .cookie-category span {
        margin-left: 0; /* Reset marginesu dla opisu */
        padding-left: 26px; /* Wcięcie, aby zrównać się z tekstem labelki */
    }

    #cookie-consent-banner .cookie-buttons {
        flex-direction: column; /* Przyciski jeden pod drugim */
        width: 100%;
    }

    #cookie-consent-banner .cookie-buttons button {
        width: 100%;
    }
}