/* indat Cookie Consent — Frontend styles */

/* =========================================================================
   CSS custom properties (scoped to banner so they don't leak)
   ========================================================================= */
#indat-cookie-banner {
	--ic-bg:                   #ffffff;
	--ic-text:                 #1d1d1d;
	--ic-text-muted:           #606060;
	--ic-border:               #e8e8e8;
	--ic-btn-primary-bg:       #1d1d1d;
	--ic-btn-primary-text:     #ffffff;
	--ic-btn-secondary-bg:     #f0f0f0;
	--ic-btn-secondary-text:   #1d1d1d;
	--ic-btn-secondary-border: #1d1d1d;
	--ic-toggle-on:            #1d1d1d;
	--ic-toggle-off:           #d0d0d0;
	--ic-always-on-bg:         #e8f5e9;
	--ic-always-on-text:       #2e7d32;
	--ic-overlay-bg:           rgba(0, 0, 0, 0.45);
	--ic-shadow-bottom:        0 -2px 20px rgba(0, 0, 0, 0.10), 0 -1px 5px rgba(0, 0, 0, 0.06);
	--ic-shadow-top:           0 2px 20px rgba(0, 0, 0, 0.10), 0 1px 5px rgba(0, 0, 0, 0.06);
	--ic-shadow-popup:         0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	--ic-radius-sm:            6px;
	--ic-radius-lg:            14px;
	--ic-transition:           0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--ic-font:                 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* =========================================================================
   Banner — base
   ========================================================================= */
.indat-cookie-banner {
	position: fixed;
	z-index: 999999;
	font-family: var(--ic-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ic-text);
	background: var(--ic-bg);
}

.indat-cookie-banner *,
.indat-cookie-banner *::before,
.indat-cookie-banner *::after {
	box-sizing: border-box;
}

.indat-cookie-banner--hidden {
	pointer-events: none;
}

/* Overlay — visible only for center-popup */
.indat-cookie-overlay {
	display: none;
}

/* =========================================================================
   Position: bottom-full
   Full-width bar pinned to the bottom edge.
   ========================================================================= */
.indat-cookie-banner--bottom-full {
	left: 0;
	right: 0;
	bottom: 0;
	border-top: 1px solid var(--ic-border);
	box-shadow: var(--ic-shadow-bottom);
	transform: translateY(0);
	transition: transform var(--ic-transition), visibility var(--ic-transition);
	visibility: visible;
}

.indat-cookie-banner--bottom-full.indat-cookie-banner--hidden {
	transform: translateY(110%);
	visibility: hidden;
}

/* =========================================================================
   Position: bottom-bar
   Centered floating card above the bottom edge.
   ========================================================================= */
.indat-cookie-banner--bottom-bar {
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%) translateY(0);
	width: calc(100% - 32px);
	max-width: 900px;
	border-radius: var(--ic-radius-lg);
	box-shadow: var(--ic-shadow-popup);
	transition: transform var(--ic-transition), opacity var(--ic-transition), visibility var(--ic-transition);
	opacity: 1;
	visibility: visible;
}

.indat-cookie-banner--bottom-bar.indat-cookie-banner--hidden {
	transform: translateX(-50%) translateY(calc(100% + 20px));
	opacity: 0;
	visibility: hidden;
}

/* =========================================================================
   Position: bottom-left / bottom-right
   Narrow floating card in a bottom corner.
   ========================================================================= */
.indat-cookie-banner--bottom-left,
.indat-cookie-banner--bottom-right {
	bottom: 16px;
	width: calc(100% - 32px);
	max-width: 420px;
	border-radius: var(--ic-radius-lg);
	box-shadow: var(--ic-shadow-popup);
	transform: translateY(0);
	transition: transform var(--ic-transition), opacity var(--ic-transition), visibility var(--ic-transition);
	opacity: 1;
	visibility: visible;
}

.indat-cookie-banner--bottom-left  { left: 16px; }
.indat-cookie-banner--bottom-right { right: 16px; }

.indat-cookie-banner--bottom-left.indat-cookie-banner--hidden,
.indat-cookie-banner--bottom-right.indat-cookie-banner--hidden {
	transform: translateY(calc(100% + 20px));
	opacity: 0;
	visibility: hidden;
}

/* Floating cards: the preferences view can outgrow a short viewport */
.indat-cookie-banner--bottom-bar,
.indat-cookie-banner--bottom-left,
.indat-cookie-banner--bottom-right {
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

/* =========================================================================
   Position: top-full
   Full-width bar pinned to the top edge.
   ========================================================================= */
.indat-cookie-banner--top-full {
	left: 0;
	right: 0;
	top: 0;
	border-bottom: 1px solid var(--ic-border);
	box-shadow: var(--ic-shadow-top);
	transform: translateY(0);
	transition: transform var(--ic-transition), visibility var(--ic-transition);
	visibility: visible;
}

.indat-cookie-banner--top-full.indat-cookie-banner--hidden {
	transform: translateY(-110%);
	visibility: hidden;
}

/* =========================================================================
   Position: center-popup
   Full-screen overlay + centered card.
   ========================================================================= */
.indat-cookie-banner--center-popup {
	inset: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity var(--ic-transition), visibility var(--ic-transition);
	opacity: 1;
	visibility: visible;
}

.indat-cookie-banner--center-popup.indat-cookie-banner--hidden {
	opacity: 0;
	visibility: hidden;
}

.indat-cookie-banner--center-popup .indat-cookie-overlay {
	display: block;
	position: absolute;
	inset: 0;
	background: var(--ic-overlay-bg);
}

.indat-cookie-banner--center-popup .indat-cookie-banner__panel {
	position: relative;
	z-index: 1;
	width: calc(100% - 48px);
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--ic-radius-lg);
	box-shadow: var(--ic-shadow-popup);
	background: var(--ic-bg);
}

/* =========================================================================
   Panel — inner container
   ========================================================================= */
.indat-cookie-banner__panel {
	position: relative; /* anchors the close button */
	padding: 20px 24px;
}

.indat-cookie-banner--bottom-full .indat-cookie-banner__panel,
.indat-cookie-banner--top-full .indat-cookie-banner__panel {
	max-width: 1280px;
	margin: 0 auto;
	/* Full-width bars put the buttons on the right — keep them clear of the X */
	padding-right: 64px;
}

/* =========================================================================
   Close button (X) — top-right corner of the panel
   ========================================================================= */
.indat-cookie-close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	/* 44×44 — WCAG 2.5.5 touch target */
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	border-radius: var(--ic-radius-sm);
	color: var(--ic-text);
	cursor: pointer;
	transition: background 0.15s;
}

.indat-cookie-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.indat-cookie-close:focus-visible {
	outline: 2px solid var(--ic-btn-primary-bg);
	outline-offset: 2px;
}

.indat-cookie-close svg {
	pointer-events: none;
}

/* Stacked layouts: only the heading row needs to clear the X */
.indat-cookie-banner__content,
.indat-cookie-prefs__header {
	padding-right: 36px;
}

.indat-cookie-banner--bottom-full .indat-cookie-banner__content,
.indat-cookie-banner--top-full .indat-cookie-banner__content,
.indat-cookie-banner--bottom-full .indat-cookie-prefs__header,
.indat-cookie-banner--top-full .indat-cookie-prefs__header {
	padding-right: 0;
}

/* =========================================================================
   Main view — title / description / action buttons
   ========================================================================= */
.indat-cookie-banner__main {
	display: flex;
	gap: 12px 28px;
}

/* bottom-full / top-full: two-column (content left, buttons right) */
.indat-cookie-banner--bottom-full .indat-cookie-banner__main,
.indat-cookie-banner--top-full .indat-cookie-banner__main {
	flex-direction: row;
	align-items: center;
}

/* Cards + center-popup: stacked */
.indat-cookie-banner--bottom-bar .indat-cookie-banner__main,
.indat-cookie-banner--bottom-left .indat-cookie-banner__main,
.indat-cookie-banner--bottom-right .indat-cookie-banner__main,
.indat-cookie-banner--center-popup .indat-cookie-banner__main {
	flex-direction: column;
	align-items: stretch;
}

.indat-cookie-banner__content {
	flex: 1;
	min-width: 0;
}

/* <h2> used for dialog heading — reset browser heading defaults */
.indat-cookie-banner__title {
	display: block;
	font-size: 1em;
	font-weight: 700;
	margin: 0 0 4px;
	padding: 0;
}

.indat-cookie-banner__desc {
	margin: 0;
	font-size: 0.875em;
	color: var(--ic-text-muted);
}

.indat-cookie-banner__desc a {
	color: inherit;
}

/* Action buttons row */
.indat-cookie-banner__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* Narrow corner cards: buttons stacked */
.indat-cookie-banner--bottom-left .indat-cookie-banner__actions,
.indat-cookie-banner--bottom-right .indat-cookie-banner__actions {
	flex-direction: column;
	align-items: stretch;
}

/*
 * Popup + bottom card: one row of equal-width buttons. A basis of 0 keeps the
 * widths equal; min-width: max-content lets long custom labels wrap the row
 * instead of overflowing it.
 */
.indat-cookie-banner--bottom-bar .indat-cookie-banner__actions,
.indat-cookie-banner--center-popup .indat-cookie-banner__actions {
	flex-direction: row;
	align-items: stretch;
}

.indat-cookie-banner--bottom-bar .indat-cookie-banner__actions .indat-cookie-btn,
.indat-cookie-banner--center-popup .indat-cookie-banner__actions .indat-cookie-btn {
	flex: 1 1 0;
	min-width: max-content;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.indat-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* min-height: 44px — WCAG 2.5.5 touch target size */
	min-height: 44px;
	padding: 10px 20px;
	border: 1.5px solid transparent;
	border-radius: var(--ic-radius-sm);
	font-family: inherit;
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.indat-cookie-btn:focus-visible {
	outline: 2px solid var(--ic-btn-primary-bg);
	outline-offset: 3px;
}

/* Primary — filled */
.indat-cookie-btn--primary {
	background: var(--ic-btn-primary-bg);
	color: var(--ic-btn-primary-text);
	border-color: var(--ic-btn-primary-bg);
}

.indat-cookie-btn--primary:hover {
	opacity: 0.82;
}

/*
 * Secondary — "Reject all".
 *
 * Deliberately filled rather than a faint outline. Several supervisory
 * authorities treat an accept button that is visually louder than the reject
 * button as a dark pattern that undermines the freeness of consent, so the two
 * carry the same size, the same position weight and comparable contrast; only
 * the hue differs.
 */
.indat-cookie-btn--secondary {
	background: var(--ic-btn-secondary-bg);
	color: var(--ic-btn-secondary-text);
	border-color: var(--ic-btn-secondary-border);
}

.indat-cookie-btn--secondary:hover {
	opacity: 0.82;
}

/* Ghost — text only */
.indat-cookie-btn--ghost {
	background: transparent;
	color: var(--ic-text-muted);
	border-color: transparent;
	padding-left: 10px;
	padding-right: 10px;
}

.indat-cookie-btn--ghost:hover {
	color: var(--ic-text);
	background: rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   Policy link — first-layer transparency (GDPR Art. 13)
   ========================================================================= */
.indat-cookie-banner__policy {
	margin: 8px 0 0;
	font-size: 0.875em;
}

.indat-cookie-policy-link {
	color: var(--ic-text-muted, #606060);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.indat-cookie-policy-link:hover,
.indat-cookie-policy-link:focus-visible {
	color: var(--ic-text, #1d1d1d);
}

/* =========================================================================
   Preferences view
   ========================================================================= */

/* Header with back button */
.indat-cookie-prefs__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--ic-border);
}

.indat-cookie-btn--back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	/* min-height: 44px — WCAG 2.5.5 touch target */
	min-height: 44px;
	padding: 6px 12px;
	margin: 0;
	font-family: inherit;
	font-size: 0.8em;
	font-weight: 600;
	color: var(--ic-text-muted);
	cursor: pointer;
	border-radius: var(--ic-radius-sm);
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.indat-cookie-btn--back:hover {
	color: var(--ic-text);
	background: rgba(0, 0, 0, 0.05);
}

.indat-cookie-btn--back:focus-visible {
	outline: 2px solid var(--ic-btn-primary-bg);
	outline-offset: 2px;
}

/* Category list */
.indat-cookie-prefs__list {
	margin: 0 0 16px;
}

.indat-cookie-prefs__item {
	padding: 13px 0;
	border-bottom: 1px solid var(--ic-border);
}

.indat-cookie-prefs__item:last-child {
	border-bottom: none;
}

.indat-cookie-prefs__item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
	gap: 12px;
}

.indat-cookie-prefs__label {
	font-weight: 600;
	font-size: 0.875em;
}

.indat-cookie-prefs__desc {
	margin: 0;
	font-size: 0.8em;
	color: var(--ic-text-muted);
}

/* "Always active" badge */
.indat-cookie-always-on {
	font-size: 0.72em;
	font-weight: 600;
	color: var(--ic-always-on-text);
	background: var(--ic-always-on-bg);
	padding: 3px 9px;
	border-radius: 100px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Preferences footer actions */
.indat-cookie-prefs__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 4px;
}

/* =========================================================================
   Toggle switch
   ========================================================================= */
.indat-cookie-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

/* Visually hidden but accessible */
.indat-cookie-toggle__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.indat-cookie-toggle__slider {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background: var(--ic-toggle-off);
	border-radius: 12px;
	transition: background var(--ic-transition);
	flex-shrink: 0;
}

.indat-cookie-toggle__slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: transform var(--ic-transition);
}

.indat-cookie-toggle__input:checked ~ .indat-cookie-toggle__slider {
	background: var(--ic-toggle-on);
}

.indat-cookie-toggle__input:checked ~ .indat-cookie-toggle__slider::after {
	transform: translateX(20px);
}

.indat-cookie-toggle:focus-within .indat-cookie-toggle__slider {
	box-shadow: 0 0 0 3px rgba(29, 29, 29, 0.2);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 640px) {
	.indat-cookie-banner--bottom-full .indat-cookie-banner__main,
	.indat-cookie-banner--top-full .indat-cookie-banner__main {
		flex-direction: column;
		align-items: stretch;
	}

	.indat-cookie-banner--bottom-full .indat-cookie-banner__actions,
	.indat-cookie-banner--top-full .indat-cookie-banner__actions,
	.indat-cookie-banner--bottom-bar .indat-cookie-banner__actions,
	.indat-cookie-banner--center-popup .indat-cookie-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.indat-cookie-banner--bottom-bar .indat-cookie-banner__actions .indat-cookie-btn,
	.indat-cookie-banner--center-popup .indat-cookie-banner__actions .indat-cookie-btn {
		flex: none;
		min-width: 0;
	}

	/* Bars stack on mobile too, so only the heading needs to clear the X */
	.indat-cookie-banner--bottom-full .indat-cookie-banner__content,
	.indat-cookie-banner--top-full .indat-cookie-banner__content,
	.indat-cookie-banner--bottom-full .indat-cookie-prefs__header,
	.indat-cookie-banner--top-full .indat-cookie-prefs__header {
		padding-right: 40px;
	}

	.indat-cookie-banner--center-popup .indat-cookie-banner__panel {
		width: calc(100% - 24px);
		max-height: 85vh;
	}

	.indat-cookie-prefs__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.indat-cookie-banner__panel,
	.indat-cookie-banner--bottom-full .indat-cookie-banner__panel,
	.indat-cookie-banner--top-full .indat-cookie-banner__panel {
		padding: 16px;
	}
}

/* =========================================================================
   Iframe placeholder
   Replaces blocked <iframe> elements until the user accepts the category.
   ========================================================================= */

.indat-cookie-iframe-placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #111;
	background-position: center;
	background-size: cover;
	border-radius: 4px;
	overflow: hidden;
	display: block;
}

/* Semi-transparent overlay so the thumbnail doesn't distract from the CTA */
.indat-cookie-iframe-placeholder__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

/* Centred content column */
.indat-cookie-iframe-placeholder__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px 16px;
	text-align: center;
	color: #ffffff;
	box-sizing: border-box;
}

/* Play-button circle icon */
.indat-cookie-iframe-placeholder__icon {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	opacity: 0.9;
}

/* Text block: label + description */
.indat-cookie-iframe-placeholder__text {
	margin: 0;
	line-height: 1.4;
}

.indat-cookie-iframe-placeholder__text strong {
	display: block;
	font-size: 0.95em;
	font-weight: 700;
	margin-bottom: 4px;
}

.indat-cookie-iframe-placeholder__text span {
	font-size: 0.82em;
	opacity: 0.85;
}

/* Accept button — uses existing .indat-cookie-btn classes but needs
   slight overrides for the dark background context */
.indat-cookie-iframe-placeholder .indat-cookie-btn--primary {
	background: rgba(255, 255, 255, 0.95);
	color: #1d1d1d;
	border-color: transparent;
	font-size: 0.82em;
	padding: 8px 18px;
}

.indat-cookie-iframe-placeholder .indat-cookie-btn--primary:hover {
	opacity: 1;
	background: #ffffff;
}

/* =========================================================================
   Floating cookie preferences trigger
   A small round button that's always in view so users can revisit their
   choices. Hidden until consent is first given; hides while banner is open.
   ========================================================================= */

.indat-cookie-trigger {
	/* Reset browser <button> defaults here — not on #id — to avoid the
	   specificity trap where all: unset (1,0,0) would override position: fixed
	   set by the class rule (0,1,0), causing the element to render in normal
	   document flow instead of as a fixed overlay. */
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;

	position: fixed;
	z-index: 999999; /* same level as banner; trigger is hidden when banner is open */
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1d1d1d;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.15); /* subtle ring visible on dark backgrounds */
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease,
	            opacity 0.25s ease, visibility 0.25s ease;
}

.indat-cookie-trigger svg {
	width: 22px;
	height: 22px;
	pointer-events: none;
	flex-shrink: 0;
}

/* ── Position variants — use !important so theme CSS can't accidentally
   override position: fixed with something that breaks the overlay ─────── */
.indat-cookie-trigger--bottom-right { bottom: 20px !important; right: 20px !important; left: auto !important; top: auto !important; }
.indat-cookie-trigger--bottom-left  { bottom: 20px !important; left:  20px !important; right: auto !important; top: auto !important; }
.indat-cookie-trigger--top-right    { top:    20px !important; right: 20px !important; left: auto !important; bottom: auto !important; }
.indat-cookie-trigger--top-left     { top:    20px !important; left:  20px !important; right: auto !important; bottom: auto !important; }

/* ── Hidden state ────────────────────────────────────────────────────────── */
.indat-cookie-trigger--hidden {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.75);
	pointer-events: none;
}

/* ── Hover / active ──────────────────────────────────────────────────────── */
.indat-cookie-trigger:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}

.indat-cookie-trigger:active {
	transform: scale(0.95);
}

/* ── Focus (WCAG 2.4.7) ──────────────────────────────────────────────────── */
.indat-cookie-trigger:focus-visible {
	outline: 2px solid #1d1d1d;
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(29, 29, 29, 0.2);
}

/* ── Tooltip via CSS (visible on hover & keyboard focus) ─────────────────── */
.indat-cookie-trigger::after {
	content: attr(aria-label);
	position: absolute;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 5px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.indat-cookie-trigger:hover::after,
.indat-cookie-trigger:focus-visible::after {
	opacity: 1;
}

/* Tooltip placement relative to button corner */
.indat-cookie-trigger--bottom-right::after {
	bottom: calc(100% + 9px);
	right: 0;
}

.indat-cookie-trigger--bottom-left::after {
	bottom: calc(100% + 9px);
	left: 0;
}

.indat-cookie-trigger--top-right::after {
	top: calc(100% + 9px);
	right: 0;
}

.indat-cookie-trigger--top-left::after {
	top: calc(100% + 9px);
	left: 0;
}

/* ── Respect reduced-motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.indat-cookie-trigger,
	.indat-cookie-trigger::after {
		transition: opacity 0.1s, visibility 0.1s;
	}

	.indat-cookie-trigger:hover {
		transform: none;
	}
}

/* =========================================================================
   Toggle — larger touch target (WCAG 2.5.5)
   The visible slider is 44×24 px; we expand the clickable area via padding
   on the label so it meets the 44×44 px minimum.
   ========================================================================= */
.indat-cookie-toggle {
	min-height: 44px;
	padding-block: 4px;
}

/* =========================================================================
   No-JS fallback banner
   Rendered inside <noscript> — only visible when JavaScript is disabled.
   Uses a simpler fixed-bar layout, no JS required.
   ========================================================================= */
.indat-cookie-noscript {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: var(--ic-bg, #ffffff);
	border-top: 1px solid var(--ic-border, #e8e8e8);
	box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.10);
	font-family: var(--ic-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ic-text, #1d1d1d);
}

.indat-cookie-noscript__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 16px 32px;
	flex-wrap: wrap;
}

.indat-cookie-noscript__text {
	flex: 1;
	min-width: 0;
}

.indat-cookie-noscript__title {
	display: block;
	font-weight: 700;
	margin-bottom: 2px;
}

.indat-cookie-noscript__desc {
	margin: 0;
	font-size: 0.875em;
	color: var(--ic-text-muted, #606060);
}

.indat-cookie-noscript__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.indat-cookie-noscript__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.indat-cookie-noscript__actions {
		flex-direction: column;
	}
}

/* =========================================================================
   Shortcode [indat_cookie_table]
   ========================================================================= */

.indat-cookie-table-wrap {
	margin: 1.5em 0;
}

.indat-cookie-group {
	margin-bottom: 2em;
}

.indat-cookie-group-title {
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 0.5em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid currentColor;
}

.indat-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.indat-cookie-table th,
.indat-cookie-table td {
	text-align: left;
	padding: 8px 12px;
	border: 1px solid #dcdcde;
	vertical-align: top;
}

.indat-cookie-table thead th {
	background: #f6f7f7;
	font-weight: 600;
}

.indat-cookie-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.indat-cookie-table code {
	font-size: 0.85em;
	background: #f0f0f1;
	padding: 1px 4px;
	border-radius: 2px;
}

.indat-cookie-empty {
	font-style: italic;
	color: #646970;
}

@media (max-width: 600px) {
	.indat-cookie-table,
	.indat-cookie-table thead,
	.indat-cookie-table tbody,
	.indat-cookie-table th,
	.indat-cookie-table td,
	.indat-cookie-table tr {
		display: block;
	}

	.indat-cookie-table thead {
		display: none;
	}

	.indat-cookie-table td {
		border-top: none;
		padding-left: 40%;
		position: relative;
	}

	.indat-cookie-table td::before {
		content: attr(data-label);
		position: absolute;
		left: 12px;
		font-weight: 600;
		width: 35%;
	}
}
