/**
 * Cookie banner (Pressidium Cookie Consent): layout and buttons matched to the site.
 * Package 10 part 3 (analytics), 24 Nov 2026. Plan: Development/design/launch/analytics-plan.md §3.
 *
 * The banner is the plugin's own markup, so it can't take Bricks classes. These rules use the site's
 * Bricks variables instead. Its colours and font are in the plugin's settings
 * (Development/scripts/pressidium-settings.php). Loaded only where the plugin loads its own stylesheet.
 */

/* The title only names the dialog for screen readers (the approved banner has no heading). */
#cc--main #cm #c-ttl {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

#cc--main #cm.bar {
	box-shadow: var(--shadow-l);
}

#cc--main #cm #c-txt {
	font-size: var(--text-small);
	line-height: 1.5;
}

/* Buttons: as the site's .fl-button (light weight, uppercase, small radius). The plugin resets
   text-transform and letter-spacing on every inner element, so the label span is set too. */
#cc--main .c-bn:not(#s-c-bn) {
	border: 1px solid transparent;
	border-radius: var(--radius-s);
	font-family: inherit;
	font-size: var(--text-small);
	font-weight: 300;
	padding: var(--space-xs) var(--space-l);
}

#cc--main .c-bn:not(#s-c-bn),
#cc--main .c-bn:not(#s-c-bn) span {
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Both buttons on one row on phones too, so the bar stays low. */
#cc--main #cm.bar #c-bns {
	flex-direction: row;
	gap: var(--space-xs);
}

#cc--main #cm.bar #c-bns .c-bn {
	margin: 0;
}

/* FunnelKit's floating cart button sits where the bar is. Until the visitor answers, it steps aside
   (the header's cart icon stays). */
html.show--consent .fkcart-toggler {
	visibility: hidden;
}

#cc--main #c-p-bn,
#cc--main #s-all-bn {
	border-color: var(--color-primary);
}

#cc--main #c-s-bn,
#cc--main #s-rall-bn,
#cc--main #s-sv-bn {
	border-color: var(--color-mist);
}

/* From tablet up: one row inside the site's container, text left and buttons right. */
@media (min-width: 768px) {
	#cc--main #cm.bar {
		padding: var(--space-s) var(--gutter);
	}

	#cc--main #cm.bar #c-inr {
		display: flex;
		align-items: center;
		gap: var(--space-xl);
		max-width: var(--container);
	}

	#cc--main #cm.bar #c-inr-i {
		flex: 1 1 auto;
		width: auto;
	}

	#cc--main #cm.bar #c-bns {
		flex: 0 0 auto;
		max-width: none;
		margin-top: 0;
	}

	#cc--main #cm.bar #c-bns .c-bn {
		flex: 0 0 auto;
	}
}
