/*
 * Cookie banner.
 *
 * Every rule is written under the .rk-consent ancestor so it carries at least two classes of
 * specificity: the Elementor kit styles bare `a` and `button` elements and loads late, and a
 * single-class rule here would lose to it.
 *
 * Colours come from the kit's global palette (primary #23340D, secondary #3A6B25, accent #7FB53F,
 * text #5F5F5F, rkcream #F8F0EB, rkline #EDEAE4) so the banner belongs to the same design system as
 * the rest of the site; the variables fall back to those literals when the kit stylesheet is not on
 * the page.
 */

.rk-consent {
	--rk-consent-primary: var( --e-global-color-primary, #23340D );
	--rk-consent-secondary: var( --e-global-color-secondary, #3A6B25 );
	--rk-consent-accent: var( --e-global-color-accent, #7FB53F );
	--rk-consent-text: var( --e-global-color-text, #5F5F5F );
	--rk-consent-cream: var( --e-global-color-rkcream, #F8F0EB );
	--rk-consent-line: rgba( 35, 52, 13, .18 );
	/* The accept button's own fill, measured off the approved design; the kit's primary is
	   several shades darker and reads as black on a white card. */
	--rk-consent-button: #455B30;
	--rk-consent-button-hover: #37481F;

	position: fixed;
	z-index: 99990;
	inset: auto 0 0 0;
	padding: 0 24px 24px;
	pointer-events: none;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.rk-consent .rk-consent__panel {
	position: relative;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 64px 20px 24px;
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 18px 48px rgba( 30, 41, 7, .16 );
	pointer-events: auto;
	animation: rk-consent-rise .28s ease-out both;
}

@keyframes rk-consent-rise {
	from { transform: translateY( 16px ); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

@media ( prefers-reduced-motion: reduce ) {
	.rk-consent .rk-consent__panel { animation: none; }
}

/* ----------------------------------------------------------------- the banner row */

.rk-consent .rk-consent__banner {
	display: flex;
	align-items: center;
	gap: 22px;
}

.rk-consent .rk-consent__banner[hidden] {
	display: none !important;
}

.rk-consent .rk-consent__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba( 127, 181, 63, .16 );
}

.rk-consent .rk-consent__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.rk-consent .rk-consent__title {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var( --rk-consent-primary );
	letter-spacing: 0;
	text-transform: none;
}

.rk-consent .rk-consent__text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var( --rk-consent-text );
	max-width: 62ch;
}

.rk-consent .rk-consent__more {
	flex: 0 0 auto;
	padding: 4px 2px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14.5px;
	letter-spacing: normal;
	text-transform: none;
	color: var( --rk-consent-secondary );
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	border-radius: 4px;
}

.rk-consent .rk-consent__more:hover {
	color: var( --rk-consent-primary );
}

/* ----------------------------------------------------------------- buttons */

.rk-consent .rk-consent__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rk-consent .rk-consent__button {
	box-sizing: border-box;
	min-height: 46px;
	min-width: 132px;
	padding: 12px 26px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.rk-consent .rk-consent__button--primary {
	background: var( --rk-consent-button );
	color: #FFFFFF;
}

.rk-consent .rk-consent__button--primary:hover {
	background: var( --rk-consent-button-hover );
}

.rk-consent .rk-consent__button--secondary {
	background: #FFFFFF;
	border-color: var( --rk-consent-line );
	color: var( --rk-consent-primary );
}

.rk-consent .rk-consent__button--secondary:hover {
	background: var( --rk-consent-cream );
}

.rk-consent .rk-consent__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EDEAE4;
	color: #5F5F5F;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.rk-consent .rk-consent__close:hover {
	background: #E0DCD3;
	color: var( --rk-consent-primary );
}

.rk-consent :focus-visible {
	outline: 3px solid var( --rk-consent-accent );
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- preferences */

.rk-consent .rk-consent__preferences {
	max-width: 640px;
}

.rk-consent .rk-consent__preferences[hidden] {
	display: none !important;
}

.rk-consent .rk-consent__group {
	padding: 14px 0;
	border-top: 1px solid #EDEAE4;
}

.rk-consent .rk-consent__group:first-of-type {
	border-top: 0;
	padding-top: 10px;
}

.rk-consent .rk-consent__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.rk-consent .rk-consent__group-name {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var( --rk-consent-primary );
}

.rk-consent .rk-consent__always {
	font-size: 13px;
	color: var( --rk-consent-secondary );
}

.rk-consent .rk-consent__group-text {
	margin: 4px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var( --rk-consent-text );
	max-width: 60ch;
}

.rk-consent .rk-consent__switch {
	flex: 0 0 auto;
	padding: 2px;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 999px;
}

.rk-consent .rk-consent__switch-track {
	display: block;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #D8D4CC;
	transition: background-color .18s ease;
}

.rk-consent .rk-consent__switch-thumb {
	display: block;
	width: 20px;
	height: 20px;
	margin: 3px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .25 );
	transition: transform .18s ease;
}

.rk-consent .rk-consent__switch[aria-checked="true"] .rk-consent__switch-track {
	background: var( --rk-consent-secondary );
}

.rk-consent .rk-consent__switch[aria-checked="true"] .rk-consent__switch-thumb {
	transform: translateX( 20px );
}

@media ( prefers-reduced-motion: reduce ) {
	.rk-consent .rk-consent__switch-thumb,
	.rk-consent .rk-consent__switch-track,
	.rk-consent .rk-consent__button { transition: none; }
}

.rk-consent .rk-consent__policy {
	margin: 12px 0 0;
	font-size: 13.5px;
}

.rk-consent .rk-consent__policy a {
	color: var( --rk-consent-secondary );
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rk-consent .rk-consent__actions--preferences {
	margin-top: 18px;
}

/* ----------------------------------------------------------------- tablet */

@media ( max-width: 1024px ) {
	.rk-consent .rk-consent__banner {
		flex-wrap: wrap;
		gap: 14px 18px;
	}

	.rk-consent .rk-consent__copy {
		flex: 1 1 260px;
		order: 2;
	}

	.rk-consent .rk-consent__icon {
		order: 1;
		width: 52px;
		height: 52px;
	}

	.rk-consent .rk-consent__more {
		order: 3;
	}

	.rk-consent .rk-consent__actions {
		order: 4;
		margin-left: auto;
	}
}

/* ----------------------------------------------------------------- mobile */

@media ( max-width: 767px ) {
	.rk-consent {
		padding: 0 12px 12px;
	}

	.rk-consent .rk-consent__panel {
		padding: 18px 18px 20px;
		border-radius: 16px;
	}

	.rk-consent .rk-consent__banner {
		gap: 12px;
	}

	.rk-consent .rk-consent__icon {
		width: 44px;
		height: 44px;
		order: 1;
	}

	.rk-consent .rk-consent__icon svg {
		width: 26px;
		height: 26px;
	}

	.rk-consent .rk-consent__title {
		font-size: 17px;
	}

	.rk-consent .rk-consent__text,
	.rk-consent .rk-consent__more {
		font-size: 14px;
	}

	.rk-consent .rk-consent__actions {
		order: 4;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		margin-left: 0;
		gap: 10px;
	}

	.rk-consent .rk-consent__button {
		width: 100%;
		min-height: 48px;
	}

	.rk-consent .rk-consent__close {
		top: 12px;
		right: 12px;
	}

	.rk-consent .rk-consent__preferences {
		max-width: none;
	}

	.rk-consent .rk-consent__group-head {
		gap: 12px;
	}
}
