.kp-consent {
	--kp-consent-bg: #fcfbf7;
	--kp-consent-ink: #28211d;
	--kp-consent-muted: #6f625a;
	--kp-consent-wine: #681c32;
	--kp-consent-rust: #b83f27;
	--kp-consent-rule: #d8cec4;
	--kp-consent-radius: 4px;
	--kp-consent-shadow: 0 22px 70px rgba(48, 28, 25, 0.2);
	position: relative;
	z-index: 2147483000;
	color: var(--kp-consent-ink);
	font-family: inherit;
}

.kp-consent-portal {
	display: block !important;
	position: static !important;
	z-index: auto !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	transform: none !important;
	filter: none !important;
	perspective: none !important;
	overflow: visible !important;
	pointer-events: none;
}

.kp-consent-portal .kp-consent__banner,
.kp-consent-portal .kp-consent__reopen,
.kp-consent-portal .kp-consent__overlay,
.kp-consent-portal .kp-consent__noscript {
	pointer-events: auto;
}

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

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

.kp-consent__banner {
	position: fixed;
	right: 24px;
	bottom: 24px;
	left: 24px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(520px, 0.9fr);
	gap: 28px;
	width: min(1040px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	margin: 0 auto;
	padding: 26px 28px;
	border: 1px solid var(--kp-consent-rule);
	border-inline-start: 5px solid var(--kp-consent-rust);
	border-radius: var(--kp-consent-radius);
	background: var(--kp-consent-bg);
	box-shadow: var(--kp-consent-shadow);
	overflow: auto;
	animation: kp-consent-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kp-consent--bottom-left .kp-consent__banner {
	right: auto;
	margin-left: 0;
}

.kp-consent--bottom-right .kp-consent__banner {
	left: auto;
	margin-right: 0;
}

.kp-consent__copy {
	align-self: center;
	min-width: 0;
}

.kp-consent__eyebrow {
	margin: 0 0 8px;
	color: var(--kp-consent-rust);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
}

.kp-consent h2,
.kp-consent h3,
.kp-consent p {
	font-family: inherit;
}

.kp-consent h2 {
	margin: 0 0 10px;
	color: var(--kp-consent-wine);
	font-size: clamp(22px, 2vw, 30px);
	line-height: 1.16;
}

.kp-consent__copy > p:last-child,
.kp-consent__intro {
	max-width: 68ch;
	margin: 0;
	color: var(--kp-consent-muted);
	font-size: 15px;
	line-height: 1.58;
}

.kp-consent a {
	color: var(--kp-consent-wine);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.kp-consent__actions,
.kp-consent__dialog-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	align-self: center;
	min-width: 0;
	width: 100%;
}

.kp-consent__button,
.kp-consent__reopen,
.kp-consent__close {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 44px;
	border: 1px solid var(--kp-consent-wine);
	border-radius: var(--kp-consent-radius);
	background: transparent;
	color: var(--kp-consent-wine);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	overflow-wrap: anywhere;
	white-space: normal !important;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kp-consent__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	min-width: 0;
	padding: 11px 12px;
	text-align: center;
}

.kp-consent__button:hover,
.kp-consent__button:focus-visible,
.kp-consent__reopen:hover,
.kp-consent__reopen:focus-visible,
.kp-consent__close:hover,
.kp-consent__close:focus-visible {
	background: var(--kp-consent-wine);
	color: #fff;
}

.kp-consent button:focus-visible,
.kp-consent a:focus-visible,
.kp-consent input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--kp-consent-rust) 55%, white);
	outline-offset: 3px;
}

.kp-consent__reopen {
	position: fixed;
	right: 18px;
	right: max(18px, env(safe-area-inset-right));
	bottom: 18px;
	bottom: max(18px, env(safe-area-inset-bottom));
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	border-color: var(--kp-consent-wine);
	border-radius: 50%;
	background: var(--kp-consent-bg);
	box-shadow: 0 8px 28px rgba(48, 28, 25, 0.16);
	line-height: 1;
	transform-origin: center;
}

/* Elementor's shared button radius control must not turn the icon into a pill. */
.kp-consent-portal .kp-consent .kp-consent__reopen {
	border-radius: 50%;
}

.kp-consent__reopen-icon {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	vector-effect: non-scaling-stroke;
}

.kp-consent__reopen-icon circle {
	fill: currentColor;
	stroke: none;
}

.kp-consent__reopen:hover,
.kp-consent__reopen:focus-visible {
	box-shadow: 0 12px 32px rgba(48, 28, 25, 0.24);
	transform: translateY(-2px);
}

.kp-consent__reopen:active {
	box-shadow: 0 6px 18px rgba(48, 28, 25, 0.18);
	transform: translateY(0) scale(0.96);
}

.kp-consent__overlay {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(28, 18, 16, 0.58);
	backdrop-filter: blur(3px);
}

.kp-consent__dialog {
	width: min(720px, 100%);
	max-height: min(780px, calc(100vh - 48px));
	padding: 28px;
	border: 1px solid var(--kp-consent-rule);
	border-top: 5px solid var(--kp-consent-rust);
	border-radius: var(--kp-consent-radius);
	background: var(--kp-consent-bg);
	box-shadow: var(--kp-consent-shadow);
	overflow: auto;
	animation: kp-consent-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kp-consent__dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
}

.kp-consent__close {
	flex: 0 0 44px;
	width: 44px;
	padding: 0;
	font-size: 27px;
	line-height: 1;
}

.kp-consent__categories {
	display: grid;
	gap: 10px;
	margin: 22px 0;
}

.kp-consent__category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 16px 18px;
	border: 1px solid var(--kp-consent-rule);
	background: rgba(104, 28, 50, 0.025);
}

.kp-consent__category h3 {
	margin: 0 0 5px;
	color: var(--kp-consent-ink);
	font-size: 15px;
	line-height: 1.3;
}

.kp-consent__category p {
	margin: 0;
	color: var(--kp-consent-muted);
	font-size: 13px;
	line-height: 1.5;
}

.kp-consent__always-active {
	max-width: 110px;
	color: var(--kp-consent-wine);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-align: right;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.kp-consent__switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 48px;
	min-height: 44px;
	cursor: pointer;
}

.kp-consent__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.kp-consent__switch > span:last-child {
	position: relative;
	display: block;
	width: 48px;
	height: 26px;
	border: 1px solid #9d9189;
	border-radius: 999px;
	background: #e8e1da;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.kp-consent__switch > span:last-child::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(40, 33, 29, 0.25);
	content: '';
	transition: transform 160ms ease;
}

.kp-consent__switch input:checked + span {
	border-color: var(--kp-consent-wine);
	background: var(--kp-consent-wine);
}

.kp-consent__switch input:checked + span::after {
	transform: translateX(22px);
}

.kp-consent__status {
	min-height: 18px;
	margin: 12px 0 0;
	color: var(--kp-consent-muted);
	font-size: 12px;
	text-align: center;
}

.kp-consent__noscript {
	position: fixed;
	right: 20px;
	bottom: 20px;
	left: 20px;
	padding: 16px;
	border: 1px solid var(--kp-consent-rule);
	background: var(--kp-consent-bg);
	box-shadow: var(--kp-consent-shadow);
}

body.kp-consent-open {
	overflow: hidden;
}

.kp-consent .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	margin: -1px;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
	white-space: nowrap;
}

@keyframes kp-consent-enter {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
	.kp-consent__banner {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px;
	}
}

@media (max-width: 560px) {
	.kp-consent__banner {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
		padding: 19px;
	}

	.kp-consent__actions,
	.kp-consent__dialog-actions {
		grid-template-columns: 1fr;
	}

	.kp-consent__overlay {
		align-items: end;
		padding: 10px;
	}

	.kp-consent__dialog {
		max-height: calc(100vh - 20px);
		padding: 20px;
	}

	.kp-consent__category {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kp-consent *,
	.kp-consent *::before,
	.kp-consent *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
