.ep-consent-scroll-lock {
	overflow: hidden;
}

.ep-consent-banner,
.ep-consent-modal,
.ep-consent-reopen,
.ep-consent-embed {
	box-sizing: border-box;
	font-family: inherit;
}

.ep-consent-banner *,
.ep-consent-modal * {
	box-sizing: border-box;
}

.ep-consent-banner[hidden],
.ep-consent-modal[hidden] {
	display: none !important;
}

.ep-consent-banner {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: flex-end;
	color: #17211e;
}

.ep-consent-banner__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(9 15 13 / 62%);
	backdrop-filter: blur(1px);
}

.ep-consent-banner__panel {
	position: relative;
	width: 100%;
	background: #fff;
	border-top: 1px solid #d8e2df;
	box-shadow: 0 -16px 44px rgb(9 25 19 / 14%);
}

.ep-consent-banner__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 36px;
	align-items: end;
	width: min(1200px, calc(100% - 48px));
	margin: 0 auto;
	padding: 22px 0 24px;
}

.ep-consent-brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 13px !important;
	padding: 7px 12px;
	font-size: 17px !important;
	font-weight: 800;
	font-style: italic;
	line-height: 1 !important;
	letter-spacing: -0.03em;
	color: #fff !important;
	background: #17211e;
	border-radius: 7px;
}

.ep-consent-banner h2,
.ep-consent-dialog h2,
.ep-consent-dialog h3 {
	margin: 0;
	color: #17211e;
}

.ep-consent-banner h2 {
	font-size: clamp(20px, 1.8vw, 25px);
	line-height: 1.2;
}

.ep-consent-banner__copy > p:not(.ep-consent-brand) {
	max-width: 780px;
	margin: 9px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: #596661;
}

.ep-consent-banner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ep-consent-banner__actions .ep-consent-button--accept {
	grid-column: 2;
	grid-row: 1;
}

.ep-consent-banner__actions .ep-consent-button--customize {
	grid-column: 1;
	grid-row: 1;
}

.ep-consent-banner__actions .ep-consent-button--reject {
	grid-column: 1 / -1;
	justify-self: center;
	min-height: 34px;
	padding: 5px 12px;
	color: #596661 !important;
	background: transparent !important;
	border-color: transparent !important;
}

.ep-consent-button,
.ep-consent-reopen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none !important;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 9px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ep-consent-button:hover,
.ep-consent-reopen:hover {
	transform: translateY(-1px);
}

.ep-consent-button:focus-visible,
.ep-consent-reopen:focus-visible,
.ep-consent-dialog__close:focus-visible,
.ep-consent-category__toggle:focus-visible,
.ep-consent-switch input:focus-visible + .ep-consent-switch__track,
.ep-consent-policy-links a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ep-consent-accent, #34d399) 58%, #17211e);
	outline-offset: 3px;
}

.ep-consent-button--accept,
.ep-consent-button--save {
	color: #10201b !important;
	background: var(--ep-consent-accent, #34d399) !important;
	border-color: var(--ep-consent-accent, #34d399) !important;
}

.ep-consent-button--accept:hover,
.ep-consent-button--save:hover {
	background: color-mix(in srgb, var(--ep-consent-accent, #34d399) 88%, #17211e) !important;
}

.ep-consent-button--reject {
	color: #17211e !important;
	background: #f2f5f4 !important;
	border-color: #d8e2df !important;
}

.ep-consent-button--customize {
	color: #17211e !important;
	background: #fff !important;
	border-color: #aebcb7 !important;
}

.ep-consent-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 10px;
}

.ep-consent-policy-links a {
	font-size: 13px;
	font-weight: 700;
	color: #118165;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ep-consent-modal {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.ep-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(9 15 13 / 62%);
	backdrop-filter: blur(1px);
}

.ep-consent-dialog {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(660px, 100%);
	max-height: min(90dvh, 780px);
	color: #17211e;
	background: #fff;
	border: 1px solid #d8e2df;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 24%);
	overflow: hidden;
}

.ep-consent-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px 16px;
	border-bottom: 1px solid #e1e8e6;
}

.ep-consent-dialog__header .ep-consent-brand {
	margin-bottom: 10px !important;
}

.ep-consent-dialog h2 {
	font-size: clamp(20px, 2.5vw, 24px);
	line-height: 1.25;
}

.ep-consent-dialog__close {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 27px;
	line-height: 1;
	color: #27342f;
	cursor: pointer;
	background: #f2f5f4;
	border: 0;
	border-radius: 50%;
}

.ep-consent-dialog__body {
	padding: 18px 20px 20px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #97a49f transparent;
}

.ep-consent-dialog__body > p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #596661;
}

.ep-consent-dialog__accept-all {
	min-width: 230px;
	margin-top: 18px;
}

.ep-consent-dialog__section-title {
	margin: 22px 0 12px !important;
	font-size: 17px;
	line-height: 1.3;
}

.ep-consent-categories {
	display: grid;
	gap: 9px;
}

.ep-consent-category {
	background: #f3f5f4;
	border: 1px solid transparent;
	border-radius: 8px;
	overflow: hidden;
}

.ep-consent-category__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	padding: 8px 12px;
}

.ep-consent-category__toggle {
	display: flex;
	align-items: center;
	justify-content: flex-start !important;
	gap: 10px;
	min-width: 0;
	padding: 6px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	text-transform: none !important;
	color: #27322e;
	cursor: pointer;
	background: transparent;
	border: 0;
}

.ep-consent-category__toggle > span:last-child {
	min-width: 0;
	text-align: left;
}

.ep-consent-category__chevron {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #596661;
	border-bottom: 2px solid #596661;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
}

.ep-consent-category__toggle[aria-expanded="true"] .ep-consent-category__chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}

.ep-consent-category__control {
	display: flex;
	align-items: center;
}

.ep-consent-category__description {
	padding: 0 14px 13px 30px;
}

.ep-consent-category__description p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #66736e;
}

.ep-consent-category__required {
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	color: #118165;
}

.ep-consent-switch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.ep-consent-switch input {
	position: absolute;
	left: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ep-consent-switch__track {
	display: flex;
	align-items: center;
	width: 46px;
	height: 26px;
	padding: 3px;
	background: #9fa9a5;
	border-radius: 999px;
	transition: background-color 160ms ease;
}

.ep-consent-switch__track span {
	display: block;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgb(0 0 0 / 18%);
	transition: transform 160ms ease;
}

.ep-consent-switch input:checked + .ep-consent-switch__track {
	background: var(--ep-consent-accent, #34d399);
}

.ep-consent-switch input:checked + .ep-consent-switch__track span {
	transform: translateX(20px);
}

.ep-consent-dialog__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 15px 20px 18px;
	background: #fff;
	border-top: 1px solid #e1e8e6;
}

.ep-consent-reopen {
	gap: 7px;
	min-height: 40px;
	color: #17211e;
	background: #fff;
	border-color: #bdcbc6;
	box-shadow: 0 8px 24px rgb(20 35 30 / 10%);
}

.ep-consent-reopen--floating {
	position: fixed;
	z-index: 999990;
	left: 16px;
	bottom: 16px;
	max-width: calc(100vw - 32px);
}

.ep-consent-reopen__icon {
	font-size: 15px;
}

.ep-consent-embed {
	display: grid;
	place-items: center;
	gap: 12px;
	min-height: 220px;
	padding: 24px;
	text-align: center;
	background: #f3f7f5;
	border: 1px solid #d8e2df;
	border-radius: 14px;
}

.ep-consent-embed p {
	margin: 0;
	color: #5d6965;
}

.ep-consent-embed iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

@media (max-width: 760px) {
	.ep-consent-banner__panel {
		max-height: 86dvh;
		overflow-y: auto;
		border-radius: 16px 16px 0 0;
	}

	.ep-consent-banner__inner {
		grid-template-columns: 1fr;
		gap: 18px;
		width: 100%;
		padding: 18px 16px 16px;
	}

	.ep-consent-banner__copy > p:not(.ep-consent-brand) {
		font-size: 14px;
	}

	.ep-consent-modal {
		align-items: end;
		padding: 0;
	}

	.ep-consent-dialog {
		width: 100%;
		max-height: 94dvh;
		border-radius: 16px 16px 0 0;
		border-bottom: 0;
	}

	.ep-consent-dialog__header,
	.ep-consent-dialog__body,
	.ep-consent-dialog__footer {
		padding-right: 16px;
		padding-left: 16px;
	}

	.ep-consent-dialog__accept-all {
		width: 100%;
	}

	.ep-consent-category__header {
		gap: 10px;
	}

	.ep-consent-category__required {
		max-width: 86px;
		white-space: normal;
		text-align: right;
	}

	.ep-consent-reopen--floating {
		bottom: 74px;
		width: 42px;
		min-height: 42px;
		padding: 0;
		border-radius: 50%;
	}

	.ep-consent-reopen--floating span:last-child {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

@media (max-width: 430px) {
	.ep-consent-banner__actions,
	.ep-consent-dialog__footer {
		grid-template-columns: 1fr;
	}

	.ep-consent-banner__actions .ep-consent-button--accept,
	.ep-consent-banner__actions .ep-consent-button--customize,
	.ep-consent-banner__actions .ep-consent-button--reject {
		grid-column: auto;
		grid-row: auto;
		justify-self: stretch;
	}

	.ep-consent-policy-links {
		gap: 8px 14px;
	}

	.ep-consent-dialog__header {
		gap: 10px;
	}

	.ep-consent-dialog h2 {
		font-size: 19px;
	}

	.ep-consent-category__toggle {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ep-consent-button,
	.ep-consent-reopen,
	.ep-consent-category__chevron,
	.ep-consent-switch__track,
	.ep-consent-switch__track span {
		transition: none;
	}

	.ep-consent-button:hover,
	.ep-consent-reopen:hover {
		transform: none;
	}
}
