/* Cookie banner and preferences (templates/consent/_banner.html). Accept all and Reject all look the same. */

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #fff;
    color: #2b3138;
    border-top: 4px solid var(--consent-accent, #29a9d3);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    line-height: 1.45;
}
.consent-banner[hidden] {
    display: none;
}
.consent-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}
.consent-banner__title {
    flex-basis: 100%;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}
.consent-banner__text {
    flex: 1 1 480px;
    margin: 0;
}
.consent-banner a,
.consent-preferences a {
    color: #1a6f8c;
    text-decoration: underline;
}
.consent-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consent-button {
    min-width: 120px;
    min-height: 44px;
    padding: 8px 18px;
    border: 2px solid #2b3138;
    border-radius: 3px;
    background: #2b3138;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.consent-button:hover {
    background: #444c55;
    border-color: #444c55;
}
.consent-button--secondary {
    background: #fff;
    color: #2b3138;
}
.consent-button--secondary:hover {
    background: #eef0f2;
    color: #2b3138;
}
.consent-button:focus-visible,
.consent-preferences__close:focus-visible,
.consent-category input:focus-visible {
    outline: 3px solid var(--consent-accent, #29a9d3);
    outline-offset: 2px;
}

.consent-preferences {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-top: 4px solid var(--consent-accent, #29a9d3);
    border-radius: 4px;
    color: #2b3138;
    font-size: 16px;
    line-height: 1.45;
}
.consent-preferences::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.consent-preferences__form {
    position: relative;
    padding: 24px;
}
.consent-preferences h2 {
    margin: 0 32px 12px 0;
    font-size: 22px;
    font-weight: 700;
}
.consent-preferences__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: #2b3138;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.consent-category {
    margin: 0 0 16px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid #dde1e4;
}
.consent-category__label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}
.consent-category__label input {
    width: 20px;
    height: 20px;
    margin: 0;
}
.consent-category__always {
    font-weight: 400;
    color: #5c656e;
}
.consent-category__description,
.consent-category__vendors {
    margin: 6px 0 0 30px;
}
.consent-category__vendors {
    color: #5c656e;
    font-size: 14px;
}

/* Placeholder for a video or other embed that the visitor hasn't allowed */
.consent-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #eef0f2;
    color: #2b3138;
    text-align: center;
}
.embed-responsive .consent-embed {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.consent-embed__placeholder {
    max-width: 480px;
    padding: 16px;
}
.consent-embed__placeholder .consent-button {
    margin: 4px;
}

@media print {
    .consent-banner,
    .consent-preferences {
        display: none !important;
    }
}

/* Cookie policy page (templates/cookie-policy.html) */
.cookie-policy h2 {
    margin-top: 32px;
}
.cookie-policy__table {
    background: #fff;
    font-size: 15px;
}
.cookie-policy__table code {
    color: inherit;
    background: none;
    white-space: normal;
}
.cookie-policy .consent-button {
    display: inline-block;
    text-decoration: none;
}
.cookie-policy .consent-button:hover {
    color: #fff;
}
