.gebel-consent [hidden],
.gebel-cookie-settings[hidden] {
    display: none !important;
}

.gebel-consent {
    --gebel-consent-ink: var(--ink, #111111);
    --gebel-consent-paper: var(--white, #ffffff);
    --gebel-consent-red: var(--red, #ed1c24);
    --gebel-consent-yellow: var(--yellow, #ffc600);
    position: relative;
    z-index: 2147483000;
    color: var(--gebel-consent-ink);
    font-family: 'Roboto Flex', Arial, sans-serif;
}

.gebel-consent-banner {
    position: fixed;
    right: clamp(12px, 2vw, 28px);
    bottom: clamp(12px, 2vw, 28px);
    left: clamp(12px, 2vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(18px, 3vw, 48px);
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(18px, 2.5vw, 30px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: #111111;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
    color: #ffffff;
}

.gebel-consent-copy {
    min-width: 0;
}

.gebel-consent-copy h2,
.gebel-consent-dialog h2 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.08;
}

.gebel-consent-copy p,
.gebel-consent-dialog > p {
    max-width: 70ch;
    margin: 0;
    font-size: .94rem;
    line-height: 1.45;
}

.gebel-consent-copy a,
.gebel-consent-policy-link {
    display: inline-block;
    margin-top: 9px;
    color: inherit;
    font-size: .82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gebel-consent-actions,
.gebel-consent-dialog-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    gap: 8px;
}

.gebel-consent-button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}

.gebel-consent-banner .gebel-consent-button:hover,
.gebel-consent-banner .gebel-consent-button:focus-visible {
    border-color: var(--gebel-consent-yellow);
    background: var(--gebel-consent-yellow);
    color: #111111;
}

.gebel-consent-button:focus-visible,
.gebel-cookie-settings:focus-visible,
.gebel-consent-close:focus-visible,
.gebel-consent a:focus-visible {
    outline: 3px solid var(--gebel-consent-yellow);
    outline-offset: 3px;
}

.gebel-consent-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .64);
}

.gebel-consent-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 18px;
    background: var(--gebel-consent-paper);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    color: var(--gebel-consent-ink);
}

.gebel-consent-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.gebel-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(17, 17, 17, .16);
    cursor: pointer;
}

.gebel-consent-category > div,
.gebel-consent-category > span {
    display: grid;
    gap: 4px;
}

.gebel-consent-category span span,
.gebel-consent-category div span {
    color: rgba(17, 17, 17, .68);
    font-size: .83rem;
    line-height: 1.35;
}

.gebel-consent-category input {
    width: 22px;
    height: 22px;
    accent-color: var(--gebel-consent-red);
}

.gebel-consent-dialog-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.gebel-consent-dialog .gebel-consent-button-primary {
    border-color: var(--gebel-consent-red);
    background: var(--gebel-consent-red);
    color: #ffffff;
}

.gebel-consent-dialog .gebel-consent-button:hover,
.gebel-consent-dialog .gebel-consent-button:focus-visible {
    border-color: var(--gebel-consent-ink);
    background: var(--gebel-consent-ink);
    color: #ffffff;
}

.gebel-consent-policy-link {
    color: inherit;
}

.gebel-cookie-settings {
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.footer-legal .gebel-cookie-settings,
.footer-legal-links .gebel-cookie-settings {
    color: inherit;
    opacity: 1;
}

.footer-legal .gebel-cookie-settings:hover,
.footer-legal-links .gebel-cookie-settings:hover {
    color: var(--orange, #f3a712);
    opacity: 1;
}

body.gebel-consent-dialog-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .gebel-consent-banner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gebel-consent-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gebel-consent-banner {
        padding: 18px;
        border-radius: 14px;
    }

    .gebel-consent-actions,
    .gebel-consent-dialog-actions {
        grid-template-columns: 1fr;
    }

    .gebel-consent-dialog {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gebel-consent *,
    .gebel-consent *::before,
    .gebel-consent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
