/* WPConsent shadow styles and the local video gate. */
:host, .atelier-consent-video {
	--consent-bg: #fffcf8;
	--consent-line: #d9c1ca;
	--consent-ink: #381522;
	--consent-accent: #633043;
	--consent-rose: #c594a4;
	--consent-font: var(--wp--preset--font-family--source-sans, sans-serif);
	--consent-serif: var(--wp--preset--font-family--cormorant, Georgia, serif);
}
#wpconsent-banner-holder.wpconsent-banner-visible {
	position: fixed;
	inset: auto 24px calc(24px + env(safe-area-inset-bottom, 0px));
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	animation: atelier-consent-in .4s ease both;
}
@keyframes atelier-consent-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
#wpconsent-banner-holder .wpconsent-banner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 24px;
	border: 1px solid var(--consent-line);
	border-radius: 12px;
	background: var(--consent-bg);
	box-shadow: 0 5px 24px rgb(56 21 34 / 9%);
}
#wpconsent-banner-holder .wpconsent-banner-body {
	display: grid;
	flex: 1;
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 14px;
	align-items: center;
	margin: 0;
	padding: 0;
	max-width: none;
	text-align: start;
}
.wpconsent-banner-body::before {
	content: "";
	grid-row: 1 / span 2;
	width: 30px;
	height: 30px;
	background: var(--consent-accent);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M17 3a6 6 0 0 0 7 7 5 5 0 0 0 5 5 13 13 0 1 1-12-12Z' fill='none' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='10' cy='15' r='1.5'/%3E%3Ccircle cx='16' cy='22' r='1.5'/%3E%3Ccircle cx='21' cy='15' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
#wpconsent-banner-title, #wpconsent-preferences-title, .atelier-consent-video-message strong {
	margin: 0;
	color: var(--consent-ink);
	font: 600 20px/1.08 var(--consent-serif);
}
#wpconsent-banner-holder .wpconsent-banner-message { margin: 0; padding: 0; }
#wpconsent-banner-holder .wpconsent-banner-message p { margin: 0; font: 400 15px/1.35 var(--consent-font); color: var(--consent-ink); }
#wpconsent-banner-holder .wpconsent-banner-message p { display: inline; }
#wpconsent-banner-holder .wpconsent-banner-message p + p { margin-inline-start: 6px; }
.atelier-consent-settings-inline { display: none; }
#wpconsent-banner-holder a, #wpconsent-preferences-modal a { color: var(--consent-accent); font: 400 14px/1.3 var(--consent-font); text-decoration: underline; text-underline-offset: 2px; }
#wpconsent-banner-holder .wpconsent-banner-footer {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}
#wpconsent-banner-holder button.wpconsent-banner-button,
#wpconsent-preferences-modal button.wpconsent-banner-button,
.atelier-consent-video button {
	box-sizing: border-box;
	min-height: 44px;
	min-width: 0;
	margin: 0;
	padding: 9px 17px;
	border: 1px solid var(--consent-ink);
	border-radius: 4px;
	background: var(--consent-ink);
	color: #fff;
	font: 600 15px/1.2 var(--consent-font);
	cursor: pointer;
	white-space: normal;
}
#wpconsent-banner-holder button.wpconsent-banner-button:hover,
#wpconsent-preferences-modal button.wpconsent-banner-button:hover,
.atelier-consent-video button:hover { background: var(--consent-rose); color: var(--consent-ink); }
#wpconsent-banner-holder button#wpconsent-preferences-all,
#wpconsent-preferences-modal button.wpconsent-banner-button.wpconsent-save-preferences { background: transparent; color: var(--consent-accent); border-color: var(--consent-accent); }
#wpconsent-banner-holder button#wpconsent-preferences-all:hover,
#wpconsent-preferences-modal button.wpconsent-banner-button.wpconsent-save-preferences:hover { background: var(--consent-line); }
#wpconsent-preferences-modal { background: rgb(56 21 34 / 27%); padding: 16px; box-sizing: border-box; }
#wpconsent-preferences-modal .wpconsent-preferences-content {
	box-sizing: border-box;
	width: min(580px, 100%);
	max-width: 100%;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 30px;
	overflow: auto;
	border: 1px solid var(--consent-line);
	border-radius: 16px;
	background: var(--consent-bg);
	color: var(--consent-ink);
	box-shadow: 0 8px 30px rgb(56 21 34 / 15%);
	font: 400 16px/1.4 var(--consent-font);
}
#wpconsent-preferences-title { font-size: 29px; }
#wpconsent-preferences-modal :is(.wpconsent-preferences-header,.wpconsent-preferences-body,.wpconsent-preferences-actions) {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
#wpconsent-preferences-modal .wpconsent-preferences-header { margin-bottom: 12px; }
#wpconsent-preferences-modal #wpconsent-preferences-close { color: var(--consent-accent); }
#wpconsent-preferences-modal .wpconsent-preferences-actions { display: block; }
#wpconsent-preferences-modal .wpconsent-preferences-buttons { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; max-width: none; gap: 10px; padding: 0; }
#wpconsent-preferences-modal .wpconsent-preferences-buttons-left { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
#wpconsent-preferences-modal .wpconsent-preferences-buttons button { width: 100%; max-width: none; }
#wpconsent-preferences-modal .atelier-consent-privacy { display: block; margin: 10px auto 0; width: fit-content; text-align: center; }
.atelier-consent-category { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; padding-block: 13px; border-top: 1px solid var(--consent-line); }
.atelier-consent-category h3 { margin: 0; font: 600 18px/1.2 var(--consent-font); }
.atelier-consent-category p { grid-column: 1 / -1; margin: 0; }
.atelier-consent-required { font-size: 13px; color: var(--consent-accent); }
.atelier-consent-toggle {
	appearance: none;
	position: relative;
	width: 45px;
	height: 26px;
	margin: 0;
	border-radius: 20px;
	background: #767173;
	cursor: pointer;
}
.atelier-consent-toggle:checked { background: var(--consent-accent); }
.atelier-consent-toggle::before { content: ""; position: absolute; inset: 4px auto auto 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.atelier-consent-toggle:checked::before { left: 23px; }
#wpconsent-root button:focus-visible, #wpconsent-banner-holder :focus-visible, #wpconsent-preferences-modal :focus-visible, .atelier-consent-video :focus-visible { outline: 2px solid var(--consent-accent); outline-offset: 3px; }

.atelier-consent-video {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
	aspect-ratio: 16 / 9;
	box-sizing: border-box;
	border: 1px solid var(--consent-line);
	border-radius: 12px;
	background: var(--consent-bg);
	color: var(--consent-accent);
	text-align: center;
	overflow: hidden;
}
.atelier-consent-video-message { display: grid; justify-items: center; gap: 6px; padding: clamp(10px, 3vw, 24px); }
.atelier-consent-video-message[hidden] { display: none; }
.atelier-consent-video-message p { max-width: 46ch; margin: 0; font: 400 16px/1.35 var(--consent-font); }
.atelier-consent-video-message a { font: 400 14px/1.3 var(--consent-font); color: var(--consent-accent); }
.atelier-consent-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.wp-has-aspect-ratio .wp-block-embed__wrapper:has(.atelier-consent-video)::before { display: none; }
html:is(.atelier-consent-banner-open,.atelier-consent-modal-open) .atelier-back-to-top { visibility: hidden; opacity: 0; pointer-events: none; }
.atelier-consent-commerce-link { margin: 0; padding: 0 24px 24px; text-align: center; }
@media (min-width: 1200px) {
	#wpconsent-banner-holder .wpconsent-banner { min-height: 80px; }
}
@media (max-width: 900px) {
	#wpconsent-banner-holder .wpconsent-banner { display: grid; gap: 12px; }
	#wpconsent-banner-holder .wpconsent-banner-footer { justify-self: start; }
}
@media (max-width: 600px) {
	#wpconsent-banner-holder.wpconsent-banner-visible { inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
	#wpconsent-banner-holder .wpconsent-banner { gap: 6px; padding: 10px 12px; }
	#wpconsent-banner-holder .wpconsent-banner-body { column-gap: 6px; row-gap: 2px; }
	.wpconsent-banner-body::before { grid-row: 1; width: 24px; height: 24px; }
	#wpconsent-banner-holder .wpconsent-banner-message { grid-column: 1 / -1; }
	#wpconsent-banner-holder .wpconsent-banner-footer { width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 6px; }
	#wpconsent-banner-holder button.wpconsent-banner-button { min-height: 44px; padding: 7px 4px; }
	#wpconsent-banner-holder #wpconsent-preferences-all { display: none; }
	.atelier-consent-settings-inline { display: contents; }
	.atelier-consent-settings-inline .wpconsent-open-preferences { display: inline-flex; align-items: center; justify-content: center; justify-self: end; min-width: 72px; min-height: 44px; padding: 8px 4px; }
	#wpconsent-preferences-modal .wpconsent-preferences-content { padding: 20px; }
	#wpconsent-preferences-modal button.wpconsent-banner-button { padding-inline: 8px; }
	.atelier-consent-video-message { box-sizing: border-box; max-height: 100%; overflow: auto; gap: 3px; padding: 8px; }
	.atelier-consent-video-message svg { width: 22px; height: 22px; }
	.atelier-consent-video-message strong { font-size: 17px; }
	.atelier-consent-video-message p { font-size: 14px; }
	.atelier-consent-video-message a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	#wpconsent-banner-holder.wpconsent-banner-visible { animation: none; }
}

/* Programmatic focus on the dialog heading is not an interactive control. */
#wpconsent-preferences-modal #wpconsent-preferences-title:focus { outline: none !important; box-shadow: none !important; }
