:root {
    --heinemann-consent-z: 2147483000;
}

.heinemann-consent-is-open {
    overflow: hidden;
}

.heinemann-consent[hidden],
.heinemann-consent [hidden],
.heinemann-consent-placeholder[hidden] {
    display: none !important;
}

.heinemann-consent {
    position: fixed;
    inset: 0;
    z-index: var(--heinemann-consent-z);
    font-family: inherit;
    color: #111;
}

.heinemann-consent__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .14), transparent 26rem),
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .1), transparent 24rem),
        rgba(0, 0, 0, .58);
    backdrop-filter: blur(14px) saturate(118%);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.heinemann-consent__panel {
    position: absolute;
    right: clamp(.85rem, 3vw, 2.25rem);
    bottom: clamp(.85rem, 3vw, 2.25rem);
    left: clamp(.85rem, 3vw, 2.25rem);
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(247, 247, 247, .96));
    box-shadow:
        0 2.4rem 6rem rgba(0, 0, 0, .34),
        0 .15rem .6rem rgba(0, 0, 0, .08);
    outline: none;
}

.heinemann-consent--center .heinemann-consent__panel {
    top: 50%;
    bottom: auto;
    max-width: 780px;
    transform: translateY(-50%);
}

.heinemann-consent__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.35rem, 3.4vw, 2rem) clamp(1.15rem, 3vw, 2rem) .25rem;
}

.heinemann-consent__x {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    color: #111;
    background: rgba(255, 255, 255, .9);
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.heinemann-consent__x span {
    display: block;
    width: 1em;
    height: 1em;
    margin-top: -.06em;
    font-size: 1.35rem;
    line-height: .86;
    text-align: center;
}

.heinemann-consent__x:hover,
.heinemann-consent__x:focus-visible {
    border-color: rgba(0, 0, 0, .18);
    color: #000;
    background: #fff;
}

.heinemann-consent__intro,
.heinemann-consent__preferences,
.heinemann-consent__actions {
    position: relative;
    padding-right: clamp(1.15rem, 3vw, 2rem);
    padding-left: clamp(1.15rem, 3vw, 2rem);
}

.heinemann-consent__intro {
    padding-top: .75rem;
    padding-bottom: 1rem;
}

.heinemann-consent-placeholder__eyebrow {
    margin: 0 0 .45rem;
    color: var(--heinemann-consent-accent, #111);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.heinemann-consent__title {
    max-width: 820px;
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.5rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.heinemann-consent__text {
    max-width: 830px;
    margin: .85rem 0 0;
    color: rgba(17, 17, 17, .72);
    font-size: clamp(.96rem, 1.4vw, 1.05rem);
    line-height: 1.62;
}

.heinemann-consent__preferences {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

.heinemann-consent__subtitle {
    grid-column: 1 / -1;
    margin: .15rem 0 .05rem;
    color: rgba(17, 17, 17, .86);
    font-size: 1rem;
    letter-spacing: -.02em;
}

.heinemann-consent__category {
    position: relative;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 1.15rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(250, 250, 250, .88));
    box-shadow: 0 .45rem 1.35rem rgba(0, 0, 0, .035);
}

.heinemann-consent__category strong,
.heinemann-consent__category small {
    display: block;
}

.heinemann-consent__category strong {
    color: #111;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.heinemann-consent__category small {
    margin-top: .35rem;
    color: rgba(17, 17, 17, .62);
    line-height: 1.42;
}

.heinemann-consent__category input {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 2.65rem;
    height: 1.45rem;
    margin: 0;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 999px;
    background: rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.heinemann-consent__category input::before {
    content: "";
    position: absolute;
    top: .18rem;
    left: .18rem;
    width: 1.02rem;
    height: 1.02rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 .22rem .55rem rgba(0, 0, 0, .18);
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}

.heinemann-consent__category input:checked {
    border-color: var(--heinemann-consent-accent, #111);
    background: var(--heinemann-consent-accent, #111);
}

.heinemann-consent__category input:checked::before {
    transform: translateX(1.18rem);
}

.heinemann-consent__category input:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.heinemann-consent__required {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: .15rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    color: rgba(17, 17, 17, .68);
    background: rgba(0, 0, 0, .06);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.heinemann-consent__actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr auto;
    gap: .7rem;
    padding-top: 1rem;
    padding-bottom: clamp(1rem, 2.4vw, 1.25rem);
}

.heinemann-consent__button,
.heinemann-consent-placeholder__button {
    min-height: 3.05rem;
    padding: .82rem 1.15rem;
    border: 1px solid rgba(17, 17, 17, .14);
    border-radius: 999px;
    color: #111;
    background: rgba(255, 255, 255, .76);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.heinemann-consent__button--primary {
    color: #fff;
    border-color: var(--heinemann-consent-accent, #111);
    background: var(--heinemann-consent-accent, #111);
}

.heinemann-consent-effect--glass-lift {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 .35rem 1rem rgba(0, 0, 0, .055),
        inset 0 1px 0 rgba(255, 255, 255, .45);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    transition:
        transform .22s cubic-bezier(.2, .8, .2, 1),
        box-shadow .22s cubic-bezier(.2, .8, .2, 1),
        border-color .22s cubic-bezier(.2, .8, .2, 1),
        background-color .22s cubic-bezier(.2, .8, .2, 1);
}

.heinemann-consent-effect--glass-lift::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 44%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 45%);
    opacity: .72;
    pointer-events: none;
}

.heinemann-consent-effect--glass-lift:hover,
.heinemann-consent-effect--glass-lift:focus-visible {
    transform: translateY(-1px) scale(1.006);
    border-color: rgba(17, 17, 17, .22);
    box-shadow:
        0 .55rem 1.35rem rgba(0, 0, 0, .085),
        inset 0 1px 0 rgba(255, 255, 255, .55);
}

.heinemann-consent__button--primary.heinemann-consent-effect--glass-lift:hover,
.heinemann-consent__button--primary.heinemann-consent-effect--glass-lift:focus-visible {
    border-color: var(--heinemann-consent-accent, #111);
    box-shadow:
        0 .62rem 1.55rem rgba(0, 0, 0, .16),
        0 0 0 .12rem rgba(0, 0, 0, .045),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.heinemann-consent__footer {
    margin: 0 clamp(1.15rem, 3vw, 2rem) clamp(1.05rem, 2.7vw, 1.35rem);
    padding-top: .85rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: .86rem;
    text-align: left;
}

.heinemann-consent .heinemann-consent__footer a,
.heinemann-consent .heinemann-consent__footer a:visited {
    color: #111 !important;
    font-weight: 800;
    text-decoration: none;
}

.heinemann-consent .heinemann-consent__footer a:hover,
.heinemann-consent .heinemann-consent__footer a:focus-visible {
    color: var(--heinemann-consent-accent, #111) !important;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.heinemann-consent-placeholder {
    margin: clamp(1.5rem, 4vw, 3rem) 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(246, 246, 246, .82));
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .07);
}

.heinemann-consent-placeholder__inner {
    padding: clamp(1.25rem, 3.5vw, 2rem);
}

.heinemann-consent-placeholder h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    letter-spacing: -.035em;
}

.heinemann-consent-placeholder p {
    max-width: 720px;
    margin: .7rem 0 0;
    color: rgba(17, 17, 17, .68);
    line-height: 1.6;
}

.heinemann-consent-placeholder__button {
    margin-top: 1.1rem;
}

@media (max-width: 860px) {
    .heinemann-consent__preferences,
    .heinemann-consent__actions {
        grid-template-columns: 1fr;
    }

    .heinemann-consent__category {
        min-height: auto;
        padding-right: 4.25rem;
    }

    .heinemann-consent__category input {
        top: 1rem;
        right: 1rem;
        bottom: auto;
    }

}

@media (max-width: 575.98px) {
    .heinemann-consent__panel {
        right: .7rem;
        bottom: .7rem;
        left: .7rem;
        max-height: calc(100dvh - 1.4rem);
        overflow: auto;
        border-radius: 1.15rem;
    }

    .heinemann-consent--center .heinemann-consent__panel {
        top: auto;
        bottom: .7rem;
        transform: none;
    }

    .heinemann-consent__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .heinemann-consent-effect--glass-lift,
    .heinemann-consent-effect--glass-lift::after,
    .heinemann-consent__x,
    .heinemann-consent__category input,
    .heinemann-consent__category input::before {
        transition: none;
    }

    .heinemann-consent-effect--glass-lift:hover,
    .heinemann-consent-effect--glass-lift:focus-visible {
        transform: none;
    }
}
