/* Analytics cookie banner: a small card at the bottom of the screen, both choices equally prominent. */

.cookie-consent {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid #d6e2f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
    color: #334155;
    font-size: 14.5px;
    line-height: 1.55;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-text {
    flex: 1 1 320px;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.cookie-consent-button {
    padding: 8px 16px;
    border: 1px solid #c9daf5;
    border-radius: 8px;
    background: #eaf1fb;
    color: var(--accent-color, #1d4ed8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    border-color: var(--accent-color, #1d4ed8);
    background: #dbe7fa;
}

@media (max-width: 575.98px) {
    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-button {
        flex: 1 1 0;
    }
}
