
/* =========================================================
   Hiper Cookie Consent
   Wersja uproszczona: tylko niezbędne cookies
   ========================================================= */

/* Baner główny */
.hcc-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 999999;

    width: calc(100% - 40px);
    max-width: 820px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 20px;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.14);

    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
}

/* Obsługa atrybutu hidden */
.hcc-banner[hidden] {
    display: none !important;
}

/* Treść banera */
.hcc-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.hcc-banner__content strong {
    display: block;
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
    color: #111827;
}

.hcc-banner__content p {
    margin: 0;
    color: #4b5563;
}

/* Link do polityki prywatności */
.hcc-banner__content a,
.hcc-privacy-link,
.hcc-settings-link {
    display: inline-block;
    margin-top: 6px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hcc-banner__content a:hover,
.hcc-privacy-link:hover,
.hcc-settings-link:hover {
    text-decoration-thickness: 2px;
}

/* Przyciski */
.hcc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hcc-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hcc-btn:hover {
    opacity: 0.9;
}

.hcc-btn:active {
    transform: translateY(1px);
}

.hcc-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Główny przycisk */
.hcc-btn--primary {
    background: #111827;
    color: #ffffff;
}

/* Dodatkowy wariant – pozostawiony dla zgodności */
.hcc-btn--secondary {
    background: #f3f4f6;
    color: #111827;
}

/* Linki w stopce */
.hcc-footer-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hcc-footer-separator {
    opacity: 0.55;
}

/* =========================================================
   Modal / ustawienia
   Pozostawione dla zgodności ze starszą wersją wtyczki.
   W wersji "tylko niezbędne" nie powinno być potrzebne.
   ========================================================= */

.hcc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.hcc-modal[hidden] {
    display: none !important;
}

.hcc-modal__box {
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
    padding: 22px;
}

.hcc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.hcc-modal__header h2 {
    margin: 0;
    font-size: 22px;
}

.hcc-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.hcc-option {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
}

.hcc-option:first-of-type {
    border-top: 0;
}

.hcc-option p {
    margin: 4px 0 0;
}

.hcc-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* =========================================================
   Telefon / tablet
   ========================================================= */

@media (max-width: 768px) {
    .hcc-banner {
        width: calc(100% - 20px);
        max-width: none;
        bottom: 10px;

        flex-direction: column;
        align-items: stretch;
        gap: 14px;

        padding: 16px;
        border-radius: 12px;

        font-size: 14px;
    }

    .hcc-banner__actions {
        width: 100%;
    }

    .hcc-banner__actions .hcc-btn {
        width: 100%;
    }

    .hcc-modal {
        padding: 10px;
    }

    .hcc-modal__box {
        max-height: calc(100vh - 20px);
        padding: 18px;
        border-radius: 12px;
    }

    .hcc-modal__actions {
        flex-direction: column;
    }

    .hcc-modal__actions .hcc-btn {
        width: 100%;
    }
}
