.betonat-consent,
.betonat-consent-open {
    --betonat-consent-ink: #0b1b32;
    --betonat-consent-muted: #4f5d70;
    --betonat-consent-line: #0b1b32;
    --betonat-consent-accent: #ff9700;
    box-sizing: border-box;
    color: var(--betonat-consent-ink);
    font-family: inherit;
}

.betonat-consent[hidden],
.betonat-consent-open[hidden],
.betonat-consent__preferences[hidden] {
    display: none !important;
}

.betonat-consent {
    position: fixed;
    z-index: 2147483000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: min(100% - 2rem, 58rem);
    margin-left: auto;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 2px solid var(--betonat-consent-line);
    background: #fff;
    box-shadow: 6px 6px 0 var(--betonat-consent-line);
}

.betonat-consent *,
.betonat-consent-open {
    box-sizing: border-box;
}

.betonat-consent__content {
    display: grid;
    gap: 0.85rem;
}

.betonat-consent__eyebrow,
.betonat-consent__title,
.betonat-consent__description {
    margin: 0;
}

.betonat-consent__eyebrow {
    color: #a64f00;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.betonat-consent__title {
    color: inherit;
    font: inherit;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.12;
}

.betonat-consent__description {
    max-width: 70ch;
    color: var(--betonat-consent-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.betonat-consent__description a {
    color: var(--betonat-consent-ink);
    font-weight: 700;
    text-underline-offset: 0.15em;
}

.betonat-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.betonat-consent__button,
.betonat-consent-open {
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--betonat-consent-line);
    border-radius: 0;
    background: #fff;
    color: var(--betonat-consent-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.betonat-consent__button--accept {
    background: var(--betonat-consent-accent);
}

.betonat-consent__button--reject {
    background: var(--betonat-consent-ink);
    color: #fff;
}

.betonat-consent__button:hover,
.betonat-consent__button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--betonat-consent-line);
}

.betonat-consent__button:focus-visible,
.betonat-consent-open:focus-visible,
.betonat-consent input:focus-visible,
.betonat-consent a:focus-visible {
    outline: 3px solid #7ca1ef;
    outline-offset: 3px;
}

.betonat-consent__preferences {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid #cbd2dc;
    background: #f5f7fa;
}

.betonat-consent__preferences fieldset {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.betonat-consent__preferences legend {
    margin-bottom: 0.65rem;
    font-weight: 800;
}

.betonat-consent__preferences label {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    color: var(--betonat-consent-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.betonat-consent__preferences input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.1rem 0 0;
    accent-color: var(--betonat-consent-accent);
}

.betonat-consent__preferences strong {
    color: var(--betonat-consent-ink);
}

.betonat-consent__button--save {
    width: fit-content;
}

.betonat-consent-open {
    position: static;
    z-index: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #d9dfeb;
    font-size: 13px;
    font-weight: 400;
    line-height: inherit;
    text-decoration: none;
}

.betonat-consent-open:hover {
    transform: none;
    box-shadow: none;
    color: var(--betonat-consent-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 42rem) {
    .betonat-consent {
        right: 0.65rem;
        bottom: 4.75rem;
        left: 0.65rem;
        width: auto;
        max-height: calc(100dvh - 5.75rem);
        overflow: auto;
        padding: 1rem;
        box-shadow: 4px 4px 0 var(--betonat-consent-line);
    }

    .betonat-consent__actions,
    .betonat-consent__button,
    .betonat-consent__button--save {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .betonat-consent__button:hover {
        transform: none;
    }
}
