/* inteliq.pl — cookie banner + modal. Spójne z Montserrat / paletą serwisu. */

#iq-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    z-index: 9998;
    font-family: "Montserrat", Arial, sans-serif;
    color: #212529;
    display: none;
}

#iq-cookie-banner[data-visible="1"] {
    display: block;
}

.iq-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .iq-cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.iq-cookie-banner__text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.iq-cookie-banner__text strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.iq-cookie-banner__text a {
    color: #0d6efd;
    text-decoration: underline;
}

.iq-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.iq-btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.iq-btn--primary {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.iq-btn--primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.iq-btn--secondary {
    background: #ffffff;
    color: #212529;
    border-color: #ced4da;
}

.iq-btn--secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.iq-btn--ghost {
    background: transparent;
    color: #0d6efd;
    border-color: transparent;
    text-decoration: underline;
}

/* Modal */
#iq-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: "Montserrat", Arial, sans-serif;
    color: #212529;
}

#iq-cookie-modal[data-visible="1"] {
    display: flex;
}

.iq-cookie-modal__dialog {
    background: #ffffff;
    border-radius: 0.5rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.iq-cookie-modal__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.iq-cookie-modal__intro {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1.25rem;
}

.iq-cookie-modal__group {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
}

.iq-cookie-modal__group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.iq-cookie-modal__group input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.iq-cookie-modal__group input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.iq-cookie-modal__group p {
    font-size: 0.85rem;
    font-weight: 400;
    color: #495057;
    margin: 0.5rem 0 0 1.85rem;
    line-height: 1.5;
}

.iq-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
