/* Cookie consent — mounted on document.body */
#snl-cookie-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

#snl-cookie-root .cookie-banner,
#snl-cookie-root .cookie-modal-backdrop,
#snl-cookie-root .cookie-modal {
    pointer-events: auto;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #f5f5f5;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.cookie-banner-text a {
    color: #1a3a6b;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-link-btn {
    background: none;
    border: none;
    color: #1a3a6b;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
    font-family: inherit;
}

.cookie-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    background: #1a3a6b;
    color: #fff;
}

.cookie-btn:hover {
    background: #2d5aa0;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10002;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10003;
    background: #fff;
    width: min(640px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a3a6b;
}

.cookie-modal-logo .logo-icon {
    background: #1a3a6b;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cookie-modal-close {
    background: none;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    border-radius: 4px;
}

.cookie-modal-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
}

.cookie-modal-body a {
    color: #2d5aa0;
    text-decoration: underline;
}

.cookie-allow-all {
    width: 100%;
    margin: 1.25rem 0;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.cookie-prefs-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cookie-prefs-list {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.cookie-pref-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.cookie-pref-item:last-child {
    border-bottom: none;
}

.cookie-pref-item.expanded {
    background: #fafafa;
}

.cookie-pref-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    padding: 0;
    font-family: inherit;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
}

.cookie-pref-icon {
    font-size: 1.1rem;
    width: 1.25rem;
    color: #475569;
}

.cookie-always-active {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    grid-column: 2;
    grid-row: 1;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    grid-column: 2;
    grid-row: 1;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-switch input:checked + .cookie-switch-slider {
    background: #1a3a6b;
}

.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
}

.cookie-pref-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}

.footer-cookie-link,
.cookie-inline-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.snl-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: flex-end;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
