.ccm-consent,
.ccm-consent *,
.ccm-consent *::before,
.ccm-consent *::after {
	box-sizing: border-box;
}

.ccm-consent[hidden],
.ccm-consent [hidden] {
	display: none !important;
}

.ccm-consent {
	/* Safe defaults remain usable if a strict CSP blocks the root inline style attribute. */
	--ccm-accent: #273018;
	--ccm-accent-text: #ffffff;
	--ccm-surface-light: rgba(255, 254, 251, 0.94);
	--ccm-surface-dark: #252815;
	--ccm-text-light: #20221d;
	--ccm-text-dark: #f4f2ec;
	--ccm-muted-light: #64645f;
	--ccm-muted-dark: #f4f2ec;
	--ccm-dark-button: #f4f2ec;
	--ccm-dark-button-text: #252815;
	--ccm-border-light: rgba(41, 43, 35, 0.07);
	--ccm-border-dark: rgba(244, 242, 236, 0.2);
	--ccm-divider-light: #ddd8cd;
	--ccm-divider-dark: rgba(244, 242, 236, 0.2);
	--ccm-off-light: #e4e0d5;
	--ccm-off-dark: #4d5048;
	position: fixed;
	z-index: 2147483000;
	width: min(320px, calc(100vw - 28px));
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
}

.ccm-consent--bottom-left {
	bottom: 20px;
	left: 20px;
}

.ccm-consent--bottom-center {
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
}

.ccm-consent--bottom-right {
	right: 20px;
	bottom: 20px;
}

.ccm-consent--top-left {
	top: 20px;
	left: 20px;
}

.ccm-consent--top-center {
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
}

.ccm-consent--top-right {
	top: 20px;
	right: 20px;
}

.ccm-consent__panel {
	position: relative;
	width: 100%;
	margin: 0;
	border: 1px solid;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0 15px 38px rgba(44, 40, 31, 0.11);
	scrollbar-width: thin;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.ccm-consent--light .ccm-consent__panel {
	border-color: var(--ccm-border-light);
	background: var(--ccm-surface-light);
	color: var(--ccm-text-light);
}

.ccm-consent--dark .ccm-consent__panel {
	border-color: var(--ccm-border-dark);
	background: var(--ccm-surface-dark);
	color: var(--ccm-text-dark);
	box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28);
}

.ccm-consent__panel--banner {
	padding: 31px 34px 29px;
	text-align: center;
}

.ccm-consent__panel--preferences {
	padding: 30px 24px 26px;
}

.ccm-consent__panel--details {
	width: 334px;
	max-width: calc(100vw - 28px);
	padding: 28px 24px 26px;
}

.ccm-consent__title {
	max-width: 244px;
	margin: 0 auto 16px;
	padding: 0;
	border: 0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.22;
	text-align: center;
	text-transform: none;
	letter-spacing: -0.015em;
	color: inherit;
}

.ccm-consent__description,
.ccm-consent__preferences-intro,
.ccm-consent__category-description,
.ccm-consent__policy-wrap {
	padding: 0;
	border: 0;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.ccm-consent__description {
	margin: 0 auto;
	font-size: 14px;
	line-height: 1.58;
	text-align: center;
	color: inherit;
}

.ccm-consent__preferences-intro {
	margin: -5px 0 18px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.ccm-consent--light .ccm-consent__preferences-intro,
.ccm-consent--light .ccm-consent__category-description {
	color: var(--ccm-muted-light);
}

.ccm-consent--dark .ccm-consent__preferences-intro,
.ccm-consent--dark .ccm-consent__category-description {
	color: var(--ccm-muted-dark);
}

.ccm-consent__policy-wrap {
	margin: 11px 0 0;
	font-size: 12px;
	text-align: center;
}

.ccm-consent__policy {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ccm-consent__banner-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 25px;
}

.ccm-consent button,
.ccm-consent a {
	font-family: inherit;
}

.ccm-consent button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ccm-consent button:disabled {
	cursor: default;
}

.ccm-consent button:focus-visible,
.ccm-consent a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ccm-consent__pill {
	display: inline-flex;
	min-width: 86px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
}

.ccm-consent--light .ccm-consent__pill {
	background: var(--ccm-accent);
	color: var(--ccm-accent-text);
}

.ccm-consent--dark .ccm-consent__pill {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

.ccm-consent__text-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 3px 2px;
	background: transparent;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: inherit;
}

.ccm-consent__panel--banner > .ccm-consent__text-action {
	margin-top: 25px;
}

.ccm-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.ccm-consent__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	width: 26px;
	height: 26px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: 0.5;
}

.ccm-consent__close:hover,
.ccm-consent__close:focus-visible {
	opacity: 1;
}

.ccm-consent__close .ccm-icon {
	width: 15px;
	height: 15px;
}

.ccm-consent__summary-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.ccm-consent__summary-row,
.ccm-consent__detail-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ccm-consent__category-name {
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.35;
	color: inherit;
}

.ccm-consent__switch {
	position: relative;
	display: inline-flex;
	width: 56px;
	height: 30px;
	flex: 0 0 56px;
	align-items: center;
	border-radius: 999px;
	background: var(--ccm-off-light);
	color: #4f504b;
	transition: background-color 140ms ease;
}

.ccm-consent--dark .ccm-consent__switch {
	background: var(--ccm-off-dark);
	color: var(--ccm-text-dark);
}

.ccm-consent__switch.is-on {
	background: var(--ccm-accent);
	color: var(--ccm-accent-text);
}

.ccm-consent__switch-symbol {
	position: absolute;
	right: 7px;
	display: flex;
	width: 13px;
	height: 13px;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.ccm-consent__switch.is-on .ccm-consent__switch-symbol {
	right: auto;
	left: 7px;
}

.ccm-consent__switch-symbol .ccm-icon {
	width: 13px;
	height: 13px;
}

.ccm-consent__switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(0, 0, 0, 0.13);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
	transition: transform 140ms ease;
	pointer-events: none;
}

.ccm-consent__switch.is-on .ccm-consent__switch-knob {
	transform: translateX(26px);
}

/* The extra .ccm-consent ancestor intentionally beats the generic button reset. */
.ccm-consent .ccm-consent__save {
	display: flex;
	width: 190px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 28px auto 0;
	padding: 10px 16px;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 6px;
	background: var(--ccm-accent);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ccm-accent-text);
}

.ccm-consent--dark .ccm-consent__save {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

.ccm-consent .ccm-consent__details-action {
	display: flex;
	margin: 22px auto 0;
}

.ccm-consent__detail-category {
	margin-top: 18px;
	padding-bottom: 19px;
	border-bottom: 1px solid var(--ccm-divider-light);
}

.ccm-consent--dark .ccm-consent__detail-category {
	border-bottom-color: var(--ccm-divider-dark);
}

.ccm-consent__detail-category:last-of-type {
	padding-bottom: 18px;
}

.ccm-consent__category-description {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.58;
}

.ccm-consent__panel--details .ccm-consent__title {
	margin-bottom: 23px;
}

.ccm-consent__panel--details .ccm-consent__save {
	margin-top: 22px;
}

.ccm-consent__panel--details .ccm-consent__details-action {
	margin-top: 22px;
}

.ccm-consent__revisit {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 50%;
	background: var(--ccm-accent);
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
	color: var(--ccm-accent-text);
}

.ccm-consent--dark .ccm-consent__revisit {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

.ccm-icon--revisit {
	width: 20px;
	height: 20px;
}

.ccm-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 600px) {
	.ccm-consent {
		right: 14px !important;
		left: 14px !important;
		width: auto;
		transform: none !important;
	}

	.ccm-consent--bottom-left,
	.ccm-consent--bottom-center,
	.ccm-consent--bottom-right {
		bottom: max(14px, env(safe-area-inset-bottom));
	}

	.ccm-consent--top-left,
	.ccm-consent--top-center,
	.ccm-consent--top-right {
		top: max(14px, env(safe-area-inset-top));
	}

	.ccm-consent__panel--banner {
		padding: 28px 24px 26px;
	}

	.ccm-consent__panel--preferences,
	.ccm-consent__panel--details {
		width: 100%;
		max-width: none;
		padding-right: 20px;
		padding-left: 20px;
	}

	.ccm-consent__panel {
		max-height: calc(100vh - 28px);
		max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
	}

	.ccm-consent__title {
		font-size: 22px;
	}

	.ccm-consent__description {
		font-size: 13.5px;
	}

	.ccm-consent__pill {
		min-width: 82px;
	}
}

@media (max-width: 300px) {
	.ccm-consent__banner-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ccm-consent__pill {
		width: 100%;
	}

	.ccm-consent__switch {
		width: 52px;
		flex-basis: 52px;
	}

	.ccm-consent__switch.is-on .ccm-consent__switch-knob {
		transform: translateX(22px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccm-consent *,
	.ccm-consent *::before,
	.ccm-consent *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

/* Keep compact cards slightly narrower than the expanded details view. */
@media (min-width: 601px) {
	.ccm-consent {
		width: 334px;
	}

	.ccm-consent__panel--banner,
	.ccm-consent__panel--preferences {
		width: 320px;
	}

	.ccm-consent--bottom-right .ccm-consent__panel--banner,
	.ccm-consent--bottom-right .ccm-consent__panel--preferences,
	.ccm-consent--top-right .ccm-consent__panel--banner,
	.ccm-consent--top-right .ccm-consent__panel--preferences,
	.ccm-consent--bottom-right .ccm-consent__revisit,
	.ccm-consent--top-right .ccm-consent__revisit {
		margin-left: auto;
	}

	.ccm-consent--bottom-center .ccm-consent__panel--banner,
	.ccm-consent--bottom-center .ccm-consent__panel--preferences,
	.ccm-consent--top-center .ccm-consent__panel--banner,
	.ccm-consent--top-center .ccm-consent__panel--preferences,
	.ccm-consent--bottom-center .ccm-consent__revisit,
	.ccm-consent--top-center .ccm-consent__revisit {
		margin-right: auto;
		margin-left: auto;
	}
}

.ccm-switch-icon {
	display: none;
}

.ccm-consent__switch .ccm-switch-icon--close,
.ccm-consent__switch.is-on .ccm-switch-icon--check {
	display: block;
}

.ccm-consent__switch.is-on .ccm-switch-icon--close {
	display: none;
}

.ccm-consent__title[tabindex="-1"]:focus {
	outline: none;
}

/*
 * Theme/page-builder isolation.
 *
 * Some WordPress themes apply global button, :hover and :focus styles with higher
 * specificity than component classes. Keep the consent UI visually self-contained
 * without changing the approved layout or interaction model.
 */
.ccm-consent.ccm-consent button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	font-family: inherit;
	font-style: normal;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ccm-consent.ccm-consent button.ccm-consent__text-action,
.ccm-consent.ccm-consent button.ccm-consent__text-action:hover,
.ccm-consent.ccm-consent button.ccm-consent__text-action:focus,
.ccm-consent.ccm-consent button.ccm-consent__text-action:active {
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 3px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: inherit;
}

/* Preserve the approved vertical rhythm after the high-specificity theme reset above. */
.ccm-consent.ccm-consent .ccm-consent__panel--banner > button.ccm-consent__text-action {
	margin: 25px auto 0;
}

.ccm-consent.ccm-consent .ccm-consent__panel--preferences button.ccm-consent__details-action {
	display: flex;
	margin: 18px auto 0;
}

.ccm-consent.ccm-consent .ccm-consent__panel--details button.ccm-consent__details-action {
	display: flex;
	margin: 22px auto 0;
}

.ccm-consent.ccm-consent button.ccm-consent__close,
.ccm-consent.ccm-consent button.ccm-consent__close:hover,
.ccm-consent.ccm-consent button.ccm-consent__close:focus,
.ccm-consent.ccm-consent button.ccm-consent__close:active {
	width: 26px;
	min-width: 26px;
	height: 26px;
	min-height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

.ccm-consent.ccm-consent button.ccm-consent__switch,
.ccm-consent.ccm-consent button.ccm-consent__switch:hover,
.ccm-consent.ccm-consent button.ccm-consent__switch:focus,
.ccm-consent.ccm-consent button.ccm-consent__switch:active {
	width: 56px;
	min-width: 56px;
	height: 30px;
	min-height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--ccm-off-light);
	box-shadow: none;
	color: #4f504b;
}

.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__switch,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__switch:hover,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__switch:focus,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__switch:active {
	background: var(--ccm-off-dark);
	color: var(--ccm-text-dark);
}

.ccm-consent.ccm-consent button.ccm-consent__switch.is-on,
.ccm-consent.ccm-consent button.ccm-consent__switch.is-on:hover,
.ccm-consent.ccm-consent button.ccm-consent__switch.is-on:focus,
.ccm-consent.ccm-consent button.ccm-consent__switch.is-on:active {
	background: var(--ccm-accent);
	color: var(--ccm-accent-text);
}

.ccm-consent.ccm-consent button.ccm-consent__pill,
.ccm-consent.ccm-consent button.ccm-consent__pill:hover,
.ccm-consent.ccm-consent button.ccm-consent__pill:focus,
.ccm-consent.ccm-consent button.ccm-consent__pill:active {
	min-width: 86px;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 9px;
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
}

.ccm-consent.ccm-consent.ccm-consent--light button.ccm-consent__pill,
.ccm-consent.ccm-consent.ccm-consent--light button.ccm-consent__pill:hover,
.ccm-consent.ccm-consent.ccm-consent--light button.ccm-consent__pill:focus,
.ccm-consent.ccm-consent.ccm-consent--light button.ccm-consent__pill:active {
	background: var(--ccm-accent);
	color: var(--ccm-accent-text);
}

.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__pill,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__pill:hover,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__pill:focus,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__pill:active {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

.ccm-consent.ccm-consent button.ccm-consent__save,
.ccm-consent.ccm-consent button.ccm-consent__save:hover,
.ccm-consent.ccm-consent button.ccm-consent__save:focus,
.ccm-consent.ccm-consent button.ccm-consent__save:active {
	width: 190px;
	min-width: 190px;
	min-height: 44px;
	margin: 24px auto 0;
	padding: 10px 16px;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 6px;
	background: var(--ccm-accent);
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ccm-accent-text);
}

.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__save,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__save:hover,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__save:focus,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__save:active {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

.ccm-consent.ccm-consent button.ccm-consent__revisit,
.ccm-consent.ccm-consent button.ccm-consent__revisit:hover,
.ccm-consent.ccm-consent button.ccm-consent__revisit:focus,
.ccm-consent.ccm-consent button.ccm-consent__revisit:active {
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--ccm-accent) !important;
	border-radius: 50%;
	background: var(--ccm-accent);
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
	color: var(--ccm-accent-text);
}

.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__revisit,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__revisit:hover,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__revisit:focus,
.ccm-consent.ccm-consent.ccm-consent--dark button.ccm-consent__revisit:active {
	border-color: var(--ccm-dark-button) !important;
	background: var(--ccm-dark-button);
	color: var(--ccm-dark-button-text);
}

@media (max-width: 300px) {
	.ccm-consent.ccm-consent button.ccm-consent__pill {
		width: 100%;
	}

	.ccm-consent.ccm-consent button.ccm-consent__switch,
	.ccm-consent.ccm-consent button.ccm-consent__switch:hover,
	.ccm-consent.ccm-consent button.ccm-consent__switch:focus,
	.ccm-consent.ccm-consent button.ccm-consent__switch:active {
		width: 52px;
		min-width: 52px;
	}
}
