/**
 * StudioSitu Consent — front-end styles.
 *
 * The banner itself is styled by vanilla-cookieconsent's stylesheet. This file
 * styles the [ss_consent_preferences] shortcode link and the click-to-load
 * facade shown in place of blocked video embeds.
 */

/* Preferences link (shortcode) — inherits the surrounding footer styling. */
.ss-consent-preferences {
	display: inline;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ss-consent-preferences:hover {
	text-decoration-thickness: 2px;
}

.ss-consent-preferences:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Click-to-load facade for blocked video embeds. */
.ss-consent-facade {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85em;
	width: 100%;
	min-height: 180px;
	padding: 1.25em;
	box-sizing: border-box;
	text-align: center;
	color: #241f21;
	background: #f1f1f1;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 8px;
}

.ss-consent-facade__msg {
	margin: 0;
	max-width: 42ch;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.ss-consent-facade__btn {
	display: inline-block;
	margin: 0;
	padding: 0.6em 1.1em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
	background: #241f21;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.ss-consent-facade__btn:hover {
	opacity: 0.9;
}

.ss-consent-facade__btn:focus-visible {
	outline: 2px solid #241f21;
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	.ss-consent-facade {
		color: #f3f3f3;
		background: #2b2b2b;
		border-color: rgba( 255, 255, 255, 0.15 );
	}

	.ss-consent-facade__btn {
		color: #241f21;
		background: #f3f3f3;
	}

	.ss-consent-facade__btn:focus-visible {
		outline-color: #f3f3f3;
	}
}

/* Cookie policy output. */
.ss-cookie-policy__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

.ss-cookie-policy__table th,
.ss-cookie-policy__table td {
	padding: 0.5em 0.75em;
	text-align: left;
	vertical-align: top;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
}

.ss-cookie-policy__table th {
	background: rgba( 0, 0, 0, 0.04 );
	font-weight: 600;
}

.ss-cookie-policy__note {
	opacity: 0.75;
	font-size: 0.9em;
}

@media (prefers-color-scheme: dark) {
	.ss-cookie-policy__table th,
	.ss-cookie-policy__table td {
		border-color: rgba( 255, 255, 255, 0.18 );
	}

	.ss-cookie-policy__table th {
		background: rgba( 255, 255, 255, 0.06 );
	}
}


/* ---------------------------------------------------------------------------
   Modal scrolling
   Keep a wheel over the modal inside the modal. `overscroll-behavior: contain`
   stops the scroll chaining on to the page once the body reaches its end; the
   smooth-scroll exemption that lets the modal receive the wheel at all is the
   [data-lenis-prevent] attribute set in frontend.js.
   --------------------------------------------------------------------------- */
#cc-main .pm__body,
#cc-main .cm__body {
	overscroll-behavior: contain;
}
