/* ABOUTME: The cookie banner — a card at the foot of the page until it is answered */
/* ABOUTME: Accept and reject are the same button, which is what makes the choice real */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 1rem;
    box-sizing: border-box;
}

.consent-inner {
    max-width: 60rem;
    margin: 0 auto;
    background-color: white;
    border: 1px solid rgba(32, 29, 252, 0.15);
    border-radius: 0.4rem;
    box-shadow: 0 0.5rem 2rem rgba(17, 17, 17, 0.18);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.consent-copy {
    flex: 1 1 22rem;
}

.consent-title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--light-blue);
    margin: 0 0 0.35rem;
}

.consent-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--light-blue);
    opacity: 0.85;
    margin: 0;
}

.consent-text a {
    color: var(--light-blue);
}

/* Shown by the settings button; both boxes start empty, whatever the visitor
   is about to be asked to agree to. A display of its own beats the `hidden`
   attribute, so the rule has to give it back. */
.consent-options[hidden] {
    display: none;
}

.consent-options {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.25rem;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--light-blue);
    opacity: 0.85;
    cursor: pointer;
}

.consent-option input {
    margin: 0.15rem 0 0;
    accent-color: var(--light-blue);
    flex-shrink: 0;
}

.consent-option-label {
    display: block;
    font-weight: 500;
    opacity: 1;
}

.consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Accepting and refusing are the same shape, the same size and the same
   colour. Only a third, quieter control differs, and it opens the choice
   rather than making one. */
.consent-button {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.consent-button--solid {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: white;
}

.consent-button--solid:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.consent-button--plain {
    background-color: transparent;
    border-color: rgba(32, 29, 252, 0.3);
    color: var(--light-blue);
}

.consent-button--plain:hover {
    background-color: rgba(32, 29, 252, 0.08);
}

@media (max-width: 767px) {
    .consent {
        padding: 0.75rem;
    }

    .consent-inner {
        padding: 1rem;
    }

    .consent-actions {
        width: 100%;
    }

    .consent-button {
        flex: 1 1 8rem;
    }
}
