#cookie-consent-banner {
    --consent-ink: #302247;
    --consent-muted: #5f566b;
    --consent-border: #d9d1e3;
    --consent-accent: #362061;
    --consent-highlight: #f4cf43;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    width: 100%;
    padding: 1.125rem max(1rem, calc((100% - 72rem) / 2));
    color: var(--consent-ink);
    background: #f6f2fb;
    border-top: 1px solid var(--consent-border);
    border-bottom: 1px solid var(--consent-border);
    font-family: "Open Sans", sans-serif;
}

#cookie-consent-banner[hidden] {
    display: none !important;
}

#cookie-consent-banner *,
#cookie-consent-banner *::before,
#cookie-consent-banner *::after {
    box-sizing: border-box;
}

#cookie-consent-banner .cookie-consent__content {
    min-width: 0;
    max-width: 48rem;
}

#cookie-consent-banner .cookie-consent__heading {
    margin: 0 0 0.3rem;
    color: var(--consent-accent);
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

#cookie-consent-banner .cookie-consent__description,
#cookie-consent-banner .cookie-consent__storage-error {
    margin: 0;
    color: var(--consent-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

#cookie-consent-banner .cookie-consent__storage-error:not([hidden]) {
    margin-top: 0.5rem;
    color: #8b312b;
    font-weight: 600;
}

#cookie-consent-banner .cookie-consent__storage-error[hidden] {
    display: none !important;
}

#cookie-consent-banner .cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
}

#cookie-consent-banner .cookie-consent__button {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 2px solid var(--consent-accent);
    border-radius: 0.55rem;
    font: 600 0.875rem/1.25 "Open Sans", sans-serif;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

#cookie-consent-banner .cookie-consent__button:focus-visible,
#cookie-consent-banner .cookie-consent__privacy:focus-visible {
    outline: 3px solid var(--consent-highlight);
    outline-offset: 3px;
}

#cookie-consent-banner .cookie-consent__button:hover {
    transform: translateY(-1px);
}

#cookie-consent-banner .cookie-consent__button--primary {
    color: #fff;
    background: var(--consent-accent);
}

#cookie-consent-banner .cookie-consent__button--primary:hover {
    background: #281850;
}

#cookie-consent-banner .cookie-consent__button--secondary {
    color: #fff;
    background: var(--consent-accent);
}

#cookie-consent-banner .cookie-consent__button--secondary:hover {
    background: #281850;
}

#cookie-consent-banner .cookie-consent__privacy {
    grid-column: 1 / -1;
    justify-self: end;
    padding: 0.5rem 0.25rem;
    color: var(--consent-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 767px) {
    #cookie-consent-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    #cookie-consent-banner .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    #cookie-consent-banner .cookie-consent__button,
    #cookie-consent-banner .cookie-consent__privacy {
        justify-self: center;
        width: 100%;
        min-height: 2.75rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner .cookie-consent__button {
        transition: none;
    }
}
