/* InternPortal — Cookie consent banner */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
}

.cookie-banner[hidden] {
    display: none !important;
}

/* Keep page content clear of the fixed banner while it is visible */
body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 160px;
}

.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #ffffff;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #cbd5e1;
    max-width: 62ch;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.cookie-banner .btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.cookie-banner .btn-primary:hover {
    background: #1d4ed8;
}

.cookie-banner .btn-secondary {
    background: transparent;
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.35);
}

.cookie-banner .btn-secondary:hover {
    background: rgba(248, 250, 252, 0.08);
}

@media (max-width: 720px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner .btn-primary,
    .cookie-banner .btn-secondary {
        flex: 1 1 auto;
        text-align: center;
    }
}
