#cookie-law-info-bar.hgcb-panel {
    position: fixed !important;
    z-index: 999990;
    top: auto !important;
    right: auto !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(568px, calc(100% - 40px)) !important;
    height: auto !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px - env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    border: 1px solid #b4a996 !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 56px rgb(26 26 26 / 20%) !important;
    background: var(--hgcb-surface, #f8f6f3) !important;
    color: var(--hgcb-ink, #1a1a1a) !important;
    font: 400 15px/1.57 Inter, system-ui, sans-serif !important;
    text-align: left !important;
    transform: translateX(-50%) !important;
    -webkit-text-size-adjust: 100%;
}

#cookie-law-info-bar.hgcb-panel,
#cookie-law-info-bar.hgcb-panel * {
    box-sizing: border-box;
}

#cookie-law-info-bar.hgcb-panel [hidden] {
    display: none !important;
}

body:has(.hgcb-panel) .cli-popupbar-overlay.cli-show {
    z-index: 999980;
    background: #1a1a1a;
    opacity: .21;
}

body.cli-barmodal-open:has(.hgcb-panel[data-hgcb-legal-page]:not(.hgcb-user-opened)) {
    overflow: initial;
}

body:has(.hgcb-panel[data-hgcb-legal-page]:not(.hgcb-user-opened)) .cli-popupbar-overlay,
#cookie-law-info-bar.hgcb-panel[data-hgcb-legal-page]:not(.hgcb-user-opened) {
    display: none !important;
}

#cookie-law-info-bar.hgcb-panel .hgcb-content {
    position: relative;
    padding: 27px 30px 15px;
    border-top: 3px solid var(--hgcb-accent, #4f4237);
}

#cookie-law-info-bar.hgcb-panel .hgcb-title {
    margin: 0 0 10px;
    padding: 0;
    color: inherit;
    font: 600 clamp(21px, 3.4vw, 25px)/1.22 Inter, system-ui, sans-serif;
    letter-spacing: -.025em;
    text-transform: none;
    outline: none;
    overflow-wrap: anywhere;
}

#cookie-law-info-bar.hgcb-panel .hgcb-intro {
    margin: 0 0 19px;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}

#cookie-law-info-bar.hgcb-panel .hgcb-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#cookie-law-info-bar.hgcb-panel button {
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    font: inherit;
    letter-spacing: normal;
    cursor: pointer;
    text-transform: none;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
}

#cookie-law-info-bar.hgcb-panel button.hgcb-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 11px 14px;
    border: 1px solid var(--hgcb-accent, #4f4237);
    background: var(--hgcb-accent, #4f4237) !important;
    color: var(--hgcb-accent-ink, #fff) !important;
    text-align: center;
    font-weight: 600;
    line-height: 1.28;
    transition: box-shadow .18s ease;
}

@media (hover: hover) {
    #cookie-law-info-bar.hgcb-panel button.hgcb-primary:hover {
        box-shadow: inset 0 0 0 1px currentColor;
    }
}

#cookie-law-info-bar.hgcb-panel button.hgcb-settings,
#cookie-law-info-bar.hgcb-panel button.hgcb-back {
    min-height: 44px;
    padding: 6px 0;
    background: transparent !important;
    color: inherit !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #b4a996;
    text-underline-offset: 4px;
}

#cookie-law-info-bar.hgcb-panel .hgcb-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 22px;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid #b4a996;
}

#cookie-law-info-bar.hgcb-panel .hgcb-legal a,
#cookie-law-info-bar.hgcb-panel .hgcb-legal a:visited {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: inherit !important;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: #b4a996;
    text-underline-offset: 4px;
}

#cookie-law-info-bar.hgcb-panel button:focus-visible,
#cookie-law-info-bar.hgcb-panel a:focus-visible,
#cookie-law-info-bar.hgcb-panel input:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px;
}

#cookie-law-info-bar.hgcb-panel button.hgcb-primary:focus-visible {
    outline-color: var(--hgcb-ink, #1a1a1a) !important;
}

#cookie-law-info-bar.hgcb-panel .hgcb-categories {
    max-height: 330px;
    max-height: min(330px, 42dvh);
    overflow-y: auto;
    scrollbar-gutter: stable;
    border-top: 1px solid #b4a996;
}

#cookie-law-info-bar.hgcb-panel .hgcb-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #b4a996;
    overflow-wrap: anywhere;
}

#cookie-law-info-bar.hgcb-panel .hgcb-category label,
#cookie-law-info-bar.hgcb-panel .hgcb-category span {
    color: inherit;
    font: inherit;
    font-weight: 600;
}

#cookie-law-info-bar.hgcb-panel .hgcb-category p {
    margin: 3px 0 0;
    color: inherit;
    font: 400 13px/1.4 Inter, system-ui, sans-serif;
}

#cookie-law-info-bar.hgcb-panel .hgcb-category .hgcb-always {
    align-self: start;
    padding: 4px 0;
    font-size: 12px;
    white-space: normal;
}

#cookie-law-info-bar.hgcb-panel .hgcb-category input[type="checkbox"] {
    appearance: auto;
    width: 23px;
    height: 23px;
    margin: 5px 4px;
    opacity: 1;
    accent-color: var(--hgcb-accent, #4f4237);
    cursor: pointer;
}

#cookie-law-info-bar.hgcb-panel .hgcb-back {
    margin-bottom: 3px !important;
}

#cookie-law-info-bar.hgcb-panel .hgcb-prefs-actions {
    margin: 15px 0 10px;
}

@media (max-width: 520px) {
    #cookie-law-info-bar.hgcb-panel {
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: min(calc(100% - 24px), 460px) !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)) !important;
    }

    #cookie-law-info-bar.hgcb-panel .hgcb-content {
        padding: 22px 18px 8px;
    }

    #cookie-law-info-bar.hgcb-panel .hgcb-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    #cookie-law-info-bar.hgcb-panel .hgcb-categories {
        max-height: 34dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-law-info-bar.hgcb-panel button.hgcb-primary {
        transition: none;
    }
}
