:root {
    --ordo-consent-bg: #ffffff;
    --ordo-consent-text: #1f2933;
    --ordo-consent-muted: #5d6b78;
    --ordo-consent-border: #d5dbe0;
    --ordo-consent-btn: #f7f6f3;
    --ordo-consent-shadow: 0 8px 24px rgba(31, 41, 51, 0.12);
}

.ordo-consent {
    position: static;
    z-index: auto;
    margin: 0;
    padding: 0.75rem 0.75rem 1.25rem;
    pointer-events: auto;
}

.ordo-consent[hidden] {
    display: none !important;
}

.ordo-consent:focus {
    outline: none;
}

.ordo-consent__panel {
    pointer-events: auto;
    max-width: 40rem;
    margin: 0 auto;
    background: var(--ordo-consent-bg);
    color: var(--ordo-consent-text);
    border: 1px solid var(--ordo-consent-border);
    border-radius: 12px;
    box-shadow: var(--ordo-consent-shadow);
    padding: 0.85rem 1rem 1rem;
}

.ordo-consent__panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.ordo-consent__panel p {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--ordo-consent-text);
}

.ordo-consent__panel a {
    color: #3d6b5e;
}

.ordo-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.ordo-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #3d6b5e;
    border-radius: 8px;
    background: var(--ordo-consent-btn);
    color: #1f2933;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.ordo-consent__btn:hover,
.ordo-consent__btn:focus-visible {
    background: #e8ecef;
    outline: 2px solid #3d6b5e;
    outline-offset: 2px;
}

.cookie-list {
    padding-left: 1.1rem;
}

.cookie-list li {
    margin: 0.55rem 0;
}

.site-footer nav {
    flex-wrap: wrap;
}

/* Compact banner on small phones: covers less of the first screen, same text, same two equal choices.
   The page reserves exactly the banner's height at the bottom (see reserveSpace in cookie-consent.js). */
@media (max-width: 420px) {
    .ordo-consent {
        padding: 0.4rem;
    }

    .ordo-consent__panel {
        padding: 0.6rem 0.75rem 0.7rem;
    }

    .ordo-consent__panel h2 {
        margin: 0 0 0.2rem;
        font-size: 0.98rem;
    }

    .ordo-consent__panel p {
        margin: 0 0 0.5rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .ordo-consent__actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .ordo-consent__btn {
        min-height: 2.75rem; /* 44px touch target */
        padding: 0.4rem 0.5rem;
    }
}
