/* The consent plugin supplies the markup, visibility and form actions. */
body .cookiebanner_background {
    background: rgb(16 24 29 / .60);
    backdrop-filter: blur(4px);
}

#cookieform {
    --tri-action-ink: #252a2e;
    --consent-paper: #f7faf8;
    --consent-text: #202a2c;
    --consent-panel: #e7eeea;
    --consent-rule: #c5d2cb;
    --consent-link: color-mix(in srgb, var(--consent-accent) 57%, black);
    --glass-filter: blur(20px) saturate(100%);
    --consent-accent: var(--tricoma-green, #4cbb0b);
    --glass-tint: color-mix(in srgb, var(--consent-accent) 46%, transparent);
    --glass-header: color-mix(in srgb, var(--consent-accent) 34%, transparent);
    --glass-highlight: rgb(255 255 255 / .52);
    --glass-contact: rgb(16 24 32 / .08);
    --glass-rim: .5px;
    --glass-shadow: 0 5px 18px rgb(20 35 48 / .10), 0 1px 3px rgb(20 35 48 / .08);
    /* Host toast on tricoma1, optical radius follows the visible card. */
    --glass-radius: min(27px, var(--consent-radius-width, 6vw), var(--consent-radius-height, 33.28px));
    position: fixed;
    z-index: 2147483647;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100% - 32px));
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    isolation: isolate;
    pointer-events: none;
    --consent-pad: clamp(16px, 3.5vw, 32px);
}
html[data-theme="dark"] #cookieform {
    --tri-action-ink: #f4f7fa;
    --consent-paper: #253039;
    --consent-text: #f4f7f6;
    --consent-panel: #313e47;
    --consent-rule: #53636a;
    --consent-link: color-mix(in srgb, var(--consent-accent) 72%, white);
    --glass-filter: blur(24px) saturate(105%);
    --glass-highlight: rgb(235 245 255 / .16);
    --glass-contact: rgb(0 0 0 / .16);
    --glass-rim: .25px;
    --glass-shadow: 0 7px 22px rgb(0 0 0 / .30), 0 1px 4px rgb(0 0 0 / .22);
}
/* The plugin shows one direct child of the form at a time. The glass follows
   that child's dimensions while the card keeps its own scroll surface. */
#cookieform::before {
    content: "";
    position: absolute;
    inset: 4px 4px -8px -8px;
    z-index: -1;
    pointer-events: none;
    border-radius: calc(var(--glass-radius) + 4px);
    /* component.toast in its compact window frame, with a 64px crossfade. */
    background-image:
        linear-gradient(to bottom, transparent 0px,
            color-mix(in srgb, var(--glass-tint) 15.625%, transparent) 16px,
            color-mix(in srgb, var(--glass-tint) 50%, transparent) 32px,
            color-mix(in srgb, var(--glass-tint) 84.375%, transparent) 48px,
            var(--glass-tint) 64px),
        linear-gradient(to bottom, var(--glass-header) 0px,
            color-mix(in srgb, var(--glass-header) 84.375%, transparent) 16px,
            color-mix(in srgb, var(--glass-header) 50%, transparent) 32px,
            color-mix(in srgb, var(--glass-header) 15.625%, transparent) 48px,
            transparent 64px);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    box-shadow: inset 1px 0 0 rgb(255 255 255 / .24), inset 0 -1px 0 rgb(255 255 255 / .18),
        inset 0 var(--glass-rim) 0 var(--glass-highlight), 0 1px 4px var(--glass-contact), var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) {
    #cookieform::before { background: var(--consent-accent); backdrop-filter: none; -webkit-backdrop-filter: none; }
    body .cookiebanner_background { backdrop-filter: none; }
}
@media (forced-colors: active) {
    #cookieform::before { background: Canvas; border: 1px solid CanvasText; }
}
#cookieform .cookiebanner {
    position: relative;
    z-index: auto;
    inset: auto;
    width: 100%;
    pointer-events: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: var(--glass-radius);
    background: var(--consent-paper);
    color: var(--consent-text);
    box-shadow: none;
    filter: var(--elevation-content-lift, none);
    font-family: inherit;
    text-align: start;
    color-scheme: light;
}
html[data-theme="dark"] #cookieform .cookiebanner { color-scheme: dark; }
/* Both native views occupy the same frame. Longer settings scroll inside it. */
#cookieform #cookiebanner_einstellungen {height:var(--consent-view-height,auto)}
#cookieform #cookiebanner_einstellungen .cookiebanner_actions {position:sticky;bottom:0;z-index:1}
.consent-scrollbar[hidden] {display:none}
@media (hover:hover) and (pointer:fine) and (forced-colors:none) {
    #cookieform .consent-scroll-source {scrollbar-width:none}
    #cookieform .consent-scroll-source::-webkit-scrollbar {display:none}
    #cookieform .consent-scrollbar {position:absolute;right:2px;width:18px;z-index:2;pointer-events:none}
    #cookieform .consent-scrollbar.is-dragging .tri-page-scrollbar-thumb {cursor:grabbing}
    #cookieform .consent-scrollbar.is-dragging .tri-page-scrollbar-thumb::before {width:8px;background:rgb(65 75 82 / .52)}
    html[data-theme=dark] #cookieform .consent-scrollbar.is-dragging .tri-page-scrollbar-thumb::before {background:rgb(220 230 236 / .66)}
}
@media (hover:none),(pointer:coarse),(forced-colors:active),print {
    #cookieform .consent-scrollbar {display:none}
}
#cookieform .cookiebanner_modal_titel {
    padding: var(--consent-pad) var(--consent-pad) 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
}
#cookieform .cookiebanner_modal_titel span { color: inherit !important; }
#cookieform .cookiebanner_inner {
    padding: 16px var(--consent-pad) 22px;
    max-height: none;
    overflow: visible;
    text-align: start;
}
#cookieform .cookiebanner_inner_text {
    margin: 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
}
#cookieform .cookiebanner_inner a {
    color: var(--consent-link);
    text-decoration: underline;
    text-underline-offset: .18em;
}
#cookieform .cookiebanner_actions {
    box-sizing: border-box;
    width: 100%;
    position: static;
    padding: 16px var(--consent-pad);
    gap: 8px;
    border-top: 1px solid var(--consent-rule);
    align-items: center;
    background: var(--consent-panel);
}
/* The shared tri-site-cta classes supply the two header variants and their interaction states.
   Reset the native plugin's inline dimensions to the compact header metrics. */
#cookieform :is(.cookiebanner_actions .button,.actions button) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    margin: 0 !important;
    min-height: 32px;
    height: auto !important;
    line-height: 18px !important;
    padding: 6px 14px !important;
    border-width: 1px !important;
    border-style: solid;
    box-shadow: none;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    white-space: normal !important;
    cursor: pointer;
}
#cookieform .cookiebanner_actions a.button, #cookieform .actions button:first-child {
    margin-inline-end: auto !important;
}
#cookieform .tri-site-cta:hover { filter: brightness(.95); }
#cookieform .tri-site-cta:focus-visible { outline: 3px solid #286206; outline-offset: 4px; }
#cookieform .cookiebanner :focus-visible:not(.tri-site-cta) {
    outline: 3px solid var(--consent-link);
    outline-offset: 2px;
}
#cookieform .cookiebanner_typ_block {
    border: 1px solid var(--consent-rule);
    border-radius: 14px;
    background: var(--consent-panel) !important;
}
#cookieform .cookiebanner_cookie_label { width: auto; color: inherit; }
#cookieform .cookiebanner_cookie_checkbox { accent-color: var(--consent-accent); }
#cookieform .cookiebanner_cookie_mehr { width: auto; }
#cookieform .cookiebanner_cookie_datenschutzhinweis {
    padding: 8px 0;
    overflow-wrap: anywhere;
}
#cookieform .cookiebanner_cookie_table { width: 100%; margin: 8px 0; table-layout: fixed; }
#cookieform .cookiebanner_cookie_table th { width: 35% !important; }
@media (max-width: 560px) {
    #cookieform .cookiebanner_actions {
        flex-direction: column;
        align-items: stretch;
    }
    #cookieform .cookiebanner_actions .button { width: 100% !important; }
    #cookieform .cookiebanner_cookie_title,
    #cookieform .cookiebanner_typ_row { flex-wrap: wrap; }
    #cookieform .cookiebanner_cookie_mehr { flex-basis: 100%; text-align: start; }
}

/* The visible image and the original start-module painters share one box. */
#cookieform .consent-mesh {
    position: relative; width:min(100%,178px); aspect-ratio:178/166;
    --color:var(--consent-accent);
}
#cookieform .cookiebanner_modal_titel:has(.consent-mesh) {position:relative}
#cookieform #cookiebanner_info:has(.consent-mesh) :is(.cookiebanner_inner,.cookiebanner_modal_titel) {padding-inline-end:clamp(150px,24vw,185px)}
#cookieform .cookiebanner_modal_titel > .consent-mesh {position:absolute;right:20px;top:14px;width:clamp(116px,17vw,150px)}
#cookieform .consent-mesh :is(.ts26-crew,.ts26-person,.ts26-frost,.ts26-person > *) {
    position:absolute;inset:0;width:100%;height:100%;margin:0;transform:none;
}
#cookieform .consent-mesh img {object-fit:contain;border:0;background:none;border-radius:0;pointer-events:none}
#cookieform .consent-mesh .ts26-wire,
#cookieform .consent-mesh :is(.ts26-glow,.ts26-scan-light) > span::before {
    display:block;content:"";width:100%;height:100%;
    background:var(--color);mask:var(--wire-svg) center/100% 100% no-repeat;
}
#cookieform .consent-mesh .ts26-wire {mask-image:var(--wire-svg),var(--wipe,linear-gradient(transparent,transparent));mask-composite:intersect}
#cookieform .consent-mesh :is(.ts26-glow,.ts26-scan-light) > span {display:block;width:100%;height:100%;filter:drop-shadow(0 0 1px var(--color))}
#cookieform .consent-mesh .ts26-person > .ts26-formation-strokes {inset:-10% auto auto -10%;width:120%;height:110%;color:var(--color);pointer-events:none}
#cookieform .consent-mesh[data-formation] :is(.ts26-wire,.ts26-glow,.ts26-scan-light) {visibility:hidden}
#cookieform .consent-mesh[data-formation] img {opacity:0}
#cookieform .consent-mesh [hidden],#cookieform .consent-mesh .ts26-frost {display:none}
@media(max-width:560px) {
    #cookieform #cookiebanner_info:has(.consent-mesh) .cookiebanner_inner {padding-inline-end:var(--consent-pad)}
    #cookieform #cookiebanner_info:has(.consent-mesh) .cookiebanner_modal_titel {padding-inline-end:88px;min-height:65px}
    #cookieform #cookiebanner_info .cookiebanner_modal_titel > .consent-mesh {width:68px;right:12px;top:4px}
}
