/*!
 * cookies.css — banner zgody na pliki cookies (vanilla, niezależny od Bootstrap)
 * Sticky bottom, mobile responsive, dostępność (focus, aria-modal).
 */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #ffffff;
    color: #1f2937;
    border-top: 4px solid #06A3DA;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    animation: cookieBannerIn 220ms ease-out;
}

@keyframes cookieBannerIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    flex: 1 1 360px;
    min-width: 0;
}

.cookie-banner__text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #011A41;
}

.cookie-banner__text p {
    margin: 0;
    color: #374151;
}

.cookie-banner__text a {
    color: #06A3DA;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    font-family: inherit;
    line-height: 1.2;
}

.cookie-btn--primary {
    background: #06A3DA;
    color: #ffffff;
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus {
    background: #0589b6;
    outline: none;
}

.cookie-btn--ghost {
    background: transparent;
    color: #011A41;
    border-color: #cbd5e1;
}

.cookie-btn--ghost:hover,
.cookie-btn--ghost:focus {
    background: #f1f5f9;
    border-color: #94a3b8;
    outline: none;
}

.cookie-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 163, 218, 0.35);
}

/* ---------- Modal ustawień ---------- */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.cookie-modal__dialog {
    position: relative;
    background: #ffffff;
    color: #1f2937;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: cookieModalIn 200ms ease-out;
}

@keyframes cookieModalIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #011A41;
}

.cookie-modal__intro {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
}

.cookie-option {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.cookie-option__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
}

.cookie-option__label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #06A3DA;
    flex: 0 0 auto;
}

.cookie-option__label input[type="checkbox"][disabled] {
    opacity: 0.7;
}

.cookie-option__label strong {
    color: #011A41;
}

.cookie-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    .cookie-banner__inner {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .cookie-modal__dialog {
        padding: 20px;
    }
}
