/* Cookie bar on every page (React and PHP). Colours and fonts are the tokens from
   web/src/styles/base.css, which both kinds of pages load. */
.cookie-consent[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1080;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent__panel {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--ink, #16181d);
    color: var(--paper, #f7f6f2);
    font-family: var(--body);
    box-shadow: 0 24px 60px -20px rgba(22, 24, 29, 0.55);
    pointer-events: auto;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__eyebrow {
    margin: 0 0 4px;
    color: var(--calm-light, #9fc0f5);
    font: 500 11.5px var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cookie-consent h2,
.cookie-consent h3,
.cookie-consent p {
    margin: 0;
}

.cookie-consent h2 {
    font: 700 18px/1.25 var(--display);
    letter-spacing: -0.01em;
}

.cookie-consent__content p:not(.cookie-consent__eyebrow) {
    margin-top: 6px;
    color: #b9bcc6;
    font-size: 14.5px;
    line-height: 1.5;
}

.cookie-consent__settings {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}

.cookie-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #2c3039;
    border-radius: 14px;
}

.cookie-consent__option h3,
.cookie-consent__option strong {
    display: block;
    color: var(--paper, #f7f6f2);
    font-size: 15px;
    line-height: 1.25;
}

.cookie-consent__option p,
.cookie-consent__option small {
    display: block;
    margin-top: 3px;
    color: #b9bcc6;
    font-size: 13.5px;
    line-height: 1.4;
}

.cookie-consent__status {
    flex: 0 0 auto;
    color: var(--calm-light, #9fc0f5);
    font: 500 12px var(--mono);
}

.cookie-consent__option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    accent-color: var(--calm-light, #9fc0f5);
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid var(--paper, #f7f6f2);
    border-radius: 999px;
    font: 600 14.5px/1.2 var(--body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

/* Reject and accept look the same on purpose: neither choice is pushed. */
.cookie-consent__button--primary,
.cookie-consent__button--secondary {
    background: var(--paper, #f7f6f2);
    color: var(--ink, #16181d);
}

.cookie-consent__button--ghost {
    background: transparent;
    color: var(--paper, #f7f6f2);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    outline: 2.5px solid var(--calm-light, #9fc0f5);
    outline-offset: 2px;
}

@media (max-width: 780px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
    }

    .cookie-consent__button {
        flex: 1 1 10rem;
    }

    .cookie-consent__option {
        align-items: flex-start;
    }
}
