.cookie-consent {
    bottom: 24px;
    left: 24px;
    max-width: 720px;
    position: fixed;
    right: 24px;
    z-index: 9999;
}

.cookie-consent[hidden],
.cookie-consent__panel[hidden] {
    display: none;
}

.cookie-consent__banner,
.cookie-consent__panel {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
    color: #222222;
    font-family: "Merriweather Sans", sans-serif;
}

.cookie-consent__banner {
    align-items: flex-end;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr auto;
    padding: 22px;
}

.cookie-consent__panel {
    padding: 22px;
}

.cookie-consent__title {
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

.cookie-consent__text {
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    opacity: .82;
}

.cookie-consent__link {
    color: var(--brand-blue, #537FE7);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    text-decoration: none;
}

.cookie-consent__link:hover {
    color: var(--brand-blue-marine, #26457b);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__actions--panel {
    border-top: 1px solid rgba(17, 24, 39, .10);
    margin-top: 18px;
    padding-top: 18px;
}

.cookie-consent__btn {
    align-items: center;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    font-family: "Merriweather Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 14px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
    width: auto;
}

.cookie-consent__btn--primary {
    background: var(--brand-blue, #537FE7);
    color: #ffffff;
}

.cookie-consent__btn--primary:hover {
    background: var(--brand-blue-marine, #26457b);
    color: #ffffff;
}

.cookie-consent__btn--outline {
    background: transparent;
    border-color: rgba(83, 127, 231, .45);
    color: var(--brand-blue, #537FE7);
}

.cookie-consent__btn--outline:hover {
    border-color: var(--brand-blue, #537FE7);
}

.cookie-consent__btn--ghost {
    background: rgba(17, 24, 39, .05);
    color: #222222;
}

.cookie-consent__btn--ghost:hover {
    background: rgba(17, 24, 39, .10);
}

.cookie-consent__panel-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.cookie-consent__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 28px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    opacity: .55;
    padding: 0;
    width: 36px;
}

.cookie-consent__close:hover {
    opacity: 1;
}

.cookie-consent__options {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cookie-consent__option {
    align-items: center;
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto;
    padding: 14px;
}

.cookie-consent__option h5 {
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
}

.cookie-consent__option p {
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    opacity: .76;
}

.cookie-switch {
    display: inline-flex;
    position: relative;
}

.cookie-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.cookie-switch span {
    background: #c5cbd5;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 28px;
    position: relative;
    transition: background .18s ease;
    width: 50px;
}

.cookie-switch span::before {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .24);
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .18s ease;
    width: 22px;
}

.cookie-switch input:checked + span {
    background: var(--brand-blue, #537FE7);
}

.cookie-switch input:checked + span::before {
    transform: translateX(22px);
}

.cookie-switch--disabled span {
    cursor: not-allowed;
    opacity: .75;
}

.cookie-embed-placeholder {
    align-items: center;
    background: rgba(17, 24, 39, .04);
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin: 24px 0;
    min-height: 220px;
    padding: 24px;
    text-align: center;
}

.cookie-embed-placeholder--hero {
    aspect-ratio: 16 / 9;
    margin: 0;
    min-height: 0;
    width: 100%;
}

.cookie-embed-placeholder__inner {
    max-width: 420px;
}

.cookie-embed-placeholder h5 {
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.cookie-embed-placeholder p {
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
    opacity: .76;
}

html[data-theme="dark"] .cookie-consent__banner,
html[data-theme="dark"] .cookie-consent__panel {
    background: #1f2430;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
    color: #f4f7fb;
}

html[data-theme="dark"] .cookie-consent__actions--panel,
html[data-theme="dark"] .cookie-consent__option {
    border-color: rgba(255, 255, 255, .14);
}

html[data-theme="dark"] .cookie-consent__btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #f4f7fb;
}

html[data-theme="dark"] .cookie-consent__btn--ghost:hover {
    background: rgba(255, 255, 255, .14);
}

html[data-theme="dark"] .cookie-embed-placeholder {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #f4f7fb;
}

@media (min-width: 992px) {
    .cookie-consent {
        left: 32px;
        right: auto;
        width: min(720px, calc(100vw - 64px));
    }
}

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

    .cookie-consent__banner {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__btn {
        flex: 1 1 100%;
    }

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