.cookie-consent-banner {
    position: fixed;
    z-index: 11000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 1.25rem max(1rem, calc((100vw - 1140px) / 2));
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: #263a31;
    border-top: 0.25rem solid #f18052;
    box-shadow: 0 -0.4rem 1.5rem rgba(0, 0, 0, 0.25);
}

.cookie-consent-banner[hidden],
.cookie-preferences-backdrop[hidden] {
    display: none;
}

.cookie-consent-copy {
    max-width: 48rem;
}

.cookie-consent-copy h2 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.35rem;
}

.cookie-consent-copy p {
    margin: 0;
    color: #fff;
    line-height: 1.5;
}

.cookie-consent-actions,
.cookie-dialog-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.cookie-button {
    padding: 0.65rem 1rem;
    color: #263a31;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-button-primary {
    color: #fff;
    background: #d36d3d;
    border-color: #d36d3d;
}

.cookie-button:hover,
.cookie-button:focus-visible {
    color: #fff;
    background: #455c51;
    border-color: #f18052;
    outline: 0.15rem solid #fff;
    outline-offset: 0.1rem;
}

.cookie-preferences-backdrop {
    position: fixed;
    z-index: 11010;
    inset: 0;
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
}

.cookie-preferences-dialog {
    width: min(46rem, 100%);
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    overflow-y: auto;
    color: #263a31;
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.cookie-preferences-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-preferences-header h2 {
    margin: 0;
}

.cookie-dialog-close {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: #263a31;
    background: #fff;
    border: 1px solid #aeb7b2;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

.cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1rem;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7ded9;
    border-radius: 0.3rem;
}

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

.cookie-category h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.cookie-switch {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    font-weight: 600;
}

.cookie-switch input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #455c51;
}

.cookie-retention-note {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f4f7f5;
    border-left: 0.25rem solid #455c51;
    font-size: 0.9rem;
}

.cookie-preferences-link,
.cookie-service-trigger,
.cookie-service-message button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-service-message {
    padding: 1rem;
    text-align: center;
}

iframe[data-cookie-src]:not([src]) {
    background: #f4f7f5;
    border: 1px solid #d7ded9 !important;
}

html.a11y-high-contrast .cookie-consent-banner,
html.a11y-high-contrast .cookie-preferences-dialog,
html.a11y-high-contrast .cookie-category,
html.a11y-high-contrast .cookie-retention-note {
    color: #fff !important;
    background: #000 !important;
    border-color: #fff !important;
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
    }

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