/*! Divello Consent runtime styles. Tokens --dc-* come from the theme (Divello Genesis) or defaults. */
.dc-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: var(--dc-font, inherit); font-size: 1rem; line-height: 1.5; color: var(--dc-text, #1f2937); }
.dc-root:not(.is-open) { display: none; }
.dc-root * { box-sizing: border-box; }
.dc-overlay { position: absolute; inset: 0; background: var(--dc-overlay, rgba(15,23,42,.45)); pointer-events: auto; }
html.dc-lock { overflow: hidden; }

.dc-banner, .dc-prefs { pointer-events: auto; background: var(--dc-surface, #fff); color: var(--dc-text, #1f2937); box-shadow: var(--dc-shadow, 0 10px 40px rgba(15,23,42,.18)); border: 1px solid var(--dc-border, #e5e7eb); }
.dc-banner:focus, .dc-prefs:focus { outline: none; }

.dc-layout-bar .dc-banner { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem clamp(1rem, 4vw, 3rem); border-radius: 0; border-width: 1px 0 0; max-height: 90vh; overflow: auto; }
.dc-layout-modal .dc-banner, .dc-prefs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 40rem); max-height: 90vh; overflow: auto; padding: 1.5rem; border-radius: var(--dc-radius, 8px); }
.dc-layout-box .dc-banner { position: absolute; width: min(92vw, 24rem); max-height: 90vh; overflow: auto; padding: 1.25rem; border-radius: var(--dc-radius, 8px); }
.dc-layout-box.dc-pos-bottom-right .dc-banner { right: 1rem; bottom: 1rem; }
.dc-layout-box.dc-pos-bottom-left .dc-banner { left: 1rem; bottom: 1rem; }
.dc-layout-box.dc-pos-top-right .dc-banner { right: 1rem; top: 1rem; }
.dc-layout-box.dc-pos-top-left .dc-banner { left: 1rem; top: 1rem; }
.dc-nonmodal .dc-banner { box-shadow: 0 -2px 12px rgba(15,23,42,.12); }

.dc-title { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: inherit; }
/* Site logo (optional, from the Banner tab). Height comes inline from the setting; width follows the aspect ratio. */
.dc-logo { display: block; width: auto; max-width: 100%; height: 40px; object-fit: contain; object-position: left center; margin: 0 0 .75rem; }
.dc-logo--prefs { margin: 0; max-height: 2.5rem; }
.dc-prefs__brand { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.dc-prefs__brand .dc-title { min-width: 0; overflow-wrap: anywhere; }
/* Divello Cookieguard mark, top right. The first row keeps clear of it; in the bar layout the button column starts below it. */
.dc-brand { position: absolute; right: .875rem; top: .875rem; line-height: 0; opacity: .6; transition: opacity .15s; border-radius: 6px; }
.dc-brand:hover, .dc-brand:focus-visible { opacity: 1; }
.dc-brand img { display: block; width: 28px; height: 28px; }
.dc-banner.has-brand > :first-child { padding-right: 3rem; }
.dc-layout-bar .dc-banner.has-brand .dc-actions { margin-top: 2.5rem; }
.dc-prefs .dc-brand { position: static; }
.dc-prefs__tools { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Dark colour scheme (Banner tab: Farbschema). Scoped to the dialog; placeholders stay in page colours. */
.dc-root.dc-theme-dark { --dc-surface: #0f172a; --dc-text: #e5e7eb; --dc-muted: #9ca3af; --dc-border: #334155; --dc-overlay: rgba(0, 0, 0, .6); --dc-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.dc-root.dc-theme-dark .dc-notice { background: rgba(255, 255, 255, .06); }
.dc-root.dc-theme-dark .dc-close:hover { background: rgba(255, 255, 255, .1); }
.dc-root.dc-theme-dark .dc-switch { background: #475569; }
.dc-root.dc-theme-dark .dc-switch[aria-checked="true"] { background: var(--dc-primary, #26719a); }
.dc-root.dc-theme-dark .dc-brand img { filter: invert(1); }
/* Dark scheme: the site logo is rendered as a white silhouette (any opaque pixel → white, transparency kept).
   A dedicated dark variant (logo_dark_id) is shown as-is instead. */
.dc-root.dc-theme-dark .dc-logo:not(.dc-logo--own) { filter: brightness(0) invert(1); }
.dc-body { margin: 0 0 .75rem; font-size: .9375rem; }
.dc-body--third { font-size: .875rem; opacity: .85; }
.dc-links { margin: 0 0 1rem; font-size: .875rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.dc-links a, .dc-link, .dc-placeholder__details { color: var(--dc-primary, #26719a); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.dc-muted { opacity: .75; font-size: .875rem; }
.dc-notice { font-size: .875rem; padding: .5rem .75rem; border-left: 3px solid var(--dc-primary); background: rgba(0,0,0,.04); }

.dc-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.dc-layout-bar .dc-banner { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.dc-layout-bar .dc-logo, .dc-layout-bar .dc-title, .dc-layout-bar .dc-body, .dc-layout-bar .dc-links { grid-column: 1; }
.dc-layout-bar .dc-actions { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: stretch; min-width: 14rem; }
.dc-layout-bar .dc-banner.has-logo .dc-actions { grid-row: 1 / span 5; }
@media (max-width: 720px) { .dc-layout-bar .dc-banner { grid-template-columns: 1fr; } .dc-layout-bar .dc-actions { grid-column: 1; grid-row: auto; flex-direction: row; } .dc-layout-bar .dc-banner.has-brand .dc-actions { margin-top: 0; } }
@media (max-width: 480px) { .dc-prefs__head { padding: 1rem 1rem .5rem; } .dc-prefs__body { padding: 0 1rem; } .dc-prefs__actions { padding: .75rem 1rem 1rem; } .dc-prefs__head .dc-title { font-size: 1rem; } .dc-layout-modal .dc-banner { padding: 1.25rem 1rem; } }

/* Accept and Reject share ONE class and one token set — compliance invariant. */
.dc-btn { font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; padding: .75rem 1.25rem; border-radius: var(--dc-radius-btn, 6px); border: 2px solid transparent; cursor: pointer; flex: 1 1 auto; min-height: 44px; text-align: center; }
.dc-btn--primary { background: var(--dc-primary, #26719a); color: var(--dc-on-primary, #fff); border-color: var(--dc-primary, #26719a); }
.dc-btn--primary:hover, .dc-btn--primary:focus-visible { filter: brightness(1.08); }
.dc-btn--secondary { background: transparent; color: var(--dc-primary, #26719a); border-color: var(--dc-primary, #26719a); }
.dc-btn--ghost { background: transparent; color: var(--dc-text, #1f2937); border-color: var(--dc-border, #e5e7eb); }
.dc-btn:focus-visible, .dc-switch:focus-visible, .dc-close:focus-visible, .dc-float:focus-visible, .dc-link:focus-visible { outline: 3px solid var(--dc-primary, #26719a); outline-offset: 2px; }

.dc-prefs { display: flex; flex-direction: column; padding: 0; }
.dc-prefs__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.5rem .75rem; }
.dc-prefs__head .dc-title { margin: 0; }
.dc-prefs__body { padding: 0 1.5rem; overflow: auto; }
.dc-prefs__actions { padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--dc-border, #e5e7eb); }
.dc-prefs__footer { margin: 1rem 0; }
.dc-close { background: none; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; color: inherit; width: 44px; height: 44px; border-radius: 50%; }
.dc-close:hover { background: rgba(0,0,0,.06); }

.dc-cats { display: flex; flex-direction: column; gap: .75rem; }
.dc-cat { border: 1px solid var(--dc-border, #e5e7eb); border-radius: var(--dc-radius, 8px); padding: .875rem 1rem; }
.dc-cat__head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.dc-cat__title { margin: 0; font-size: 1rem; font-weight: 700; color: inherit; min-width: 0; }
.dc-cat__desc { margin: .375rem 0 .5rem; font-size: .875rem; opacity: .85; }
/* Headings inherit the dialog colour; the theme's heading colour must not leak in (invisible in dark mode). */
.dc-root h2, .dc-root h3, .dc-svc__name, .dc-placeholder__title { color: inherit; }
.dc-cat__ctl { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.dc-always { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }

.dc-switch { position: relative; width: 3rem; height: 1.75rem; border-radius: 1rem; border: 0; background: #9ca3af; cursor: pointer; padding: 0; flex-shrink: 0; transition: background .15s; }
.dc-switch[aria-checked="true"] { background: var(--dc-primary, #26719a); }
.dc-switch[disabled] { cursor: not-allowed; opacity: .6; }
.dc-switch__knob { position: absolute; top: .1875rem; left: .1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.dc-switch[aria-checked="true"] .dc-switch__knob { transform: translateX(1.25rem); }

.dc-services { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.dc-svc { border-top: 1px solid var(--dc-border, #e5e7eb); padding-top: .625rem; font-size: .875rem; }
.dc-svc__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dc-svc__name { margin: 0 0 .375rem; font-size: .9375rem; font-weight: 700; }
.dc-svc__rows { margin: 0; display: grid; grid-template-columns: 1fr; gap: .25rem; }
.dc-svc__row { display: grid; grid-template-columns: minmax(7rem, 30%) 1fr; gap: .5rem; }
.dc-svc__row dt { font-weight: 600; opacity: .8; }
.dc-svc__row dd { margin: 0; word-break: break-word; }
.dc-storage { margin: 0; padding-left: 1rem; }
.dc-cid code { font-size: .8125rem; word-break: break-all; }

.dc-float { position: fixed; z-index: 2147482000; bottom: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dc-primary, #26719a); color: var(--dc-on-primary, #fff); box-shadow: var(--dc-shadow, 0 6px 20px rgba(15,23,42,.25)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dc-float--bottom-left { left: 1rem; }
.dc-float--bottom-right { right: 1rem; }
.dc-float[hidden] { display: none; }

/* Placeholders */
.dc-placeholder { position: relative; aspect-ratio: var(--dc-ratio, 16/9); width: 100%; max-width: 100%; background: #e5e7eb var(--dc-thumb, none) center / cover no-repeat; border-radius: var(--dc-radius, 8px); overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 0 1rem; }
.dc-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.35); }
.dc-placeholder__box { position: relative; background: var(--dc-surface, #fff); color: var(--dc-text, #1f2937); border-radius: var(--dc-radius, 8px); padding: 1rem 1.25rem; max-width: min(92%, 28rem); text-align: center; box-shadow: var(--dc-shadow); margin: 1rem; }
.dc-placeholder__title { margin: 0 0 .375rem; font-weight: 700; font-size: 1rem; }
.dc-placeholder__body { margin: 0 0 .75rem; font-size: .8125rem; }
.dc-placeholder__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; }
.dc-placeholder__actions .dc-btn { flex: 0 1 auto; padding: .5rem .875rem; font-size: .875rem; min-height: 40px; }
.dc-placeholder iframe[hidden] { display: none; }
.dc-embed { margin: 0 0 1rem; }
.dc-embed iframe { max-width: 100%; }
.dc-blocked:not([data-dc-done]) { display: none; }

/* Links from the shortcode / menu */
.dc-open-link { cursor: pointer; }

/* Services table rendered by [divello_consent_services] inside the privacy policy. */
.dc-services-table { margin: 1rem 0 2rem; }
.dc-services-table h3 { margin: 1.5rem 0 .25rem; }
.dc-services-table table.dc-service { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .9375rem; border: 1px solid var(--dc-border, #e5e7eb); border-radius: var(--dc-radius, 8px); }
.dc-services-table table.dc-service caption { text-align: left; padding: .5rem .75rem; font-size: 1rem; background: var(--dc-surface, #fff); border: 1px solid var(--dc-border, #e5e7eb); border-bottom: 0; border-radius: var(--dc-radius, 8px) var(--dc-radius, 8px) 0 0; }
.dc-services-table table.dc-service th, .dc-services-table table.dc-service td { padding: .5rem .75rem; vertical-align: top; text-align: left; border-top: 1px solid var(--dc-border, #e5e7eb); }
.dc-services-table table.dc-service th { width: 11rem; font-weight: 600; white-space: nowrap; }
.dc-services-table table.dc-service ul { margin: 0; padding-left: 1.1rem; }
.dc-services-table table.dc-service code { font-size: .875em; }
.dc-services-table table.dc-service a { color: var(--dc-primary, #26719a); word-break: break-all; }
@media (max-width: 600px) { .dc-services-table table.dc-service th, .dc-services-table table.dc-service td { display: block; width: auto; white-space: normal; } .dc-services-table table.dc-service td { border-top: 0; padding-top: 0; } }

@media (prefers-reduced-motion: reduce) { .dc-switch, .dc-switch__knob { transition: none; } }
@media print { .dc-root, .dc-float { display: none !important; } }
