/**
 * Automentic cookie consent banner.
 *
 * The theme styles h2 and button globally (Archivo 800 at heading sizes), and
 * those rules out-specify plain class selectors. Everything that controls the
 * banner's size and colour is therefore scoped under .am-consent and marked
 * !important — without it the title renders at the kit's 42px h2 and all three
 * buttons inherit one identical fill.
 */

.am-consent {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
	font-family: var( --e-global-typography-text-font-family, inherit );
}

.am-consent[hidden] {
	display: none;
}

.am-consent__panel {
	pointer-events: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 680px;
	padding: 24px 26px 22px;
	border: 1px solid var( --e-global-color-border, rgba( 255, 255, 255, 0.16 ) );
	border-radius: 16px;
	background: #0b0619;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, 0.6 );
}

/* --- Title: beat the theme's global h2 sizing ------------------------- */
.am-consent .am-consent__title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-family: var( --e-global-typography-primary-font-family, inherit ) !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.2px !important;
	text-transform: none !important;
	color: #ffffff !important;
}

.am-consent .am-consent__desc {
	margin: 0 0 18px !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: var( --e-global-color-text, #b4aec6 ) !important;
}

.am-consent .am-consent__desc a {
	color: var( --e-global-color-accent, #a855f7 ) !important;
	text-decoration: underline !important;
}

.am-consent .am-consent__desc a:hover {
	color: #ffffff !important;
}

/* --- Category options ------------------------------------------------- */
.am-consent__options {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	padding-top: 2px;
}

.am-consent__options[hidden] {
	display: none;
}

.am-consent .am-consent__option {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var( --e-global-color-text, #b4aec6 ) !important;
	cursor: pointer;
}

.am-consent .am-consent__option input {
	width: auto !important;
	margin-top: 3px !important;
	accent-color: var( --e-global-color-primary, #7a00ff );
	flex: 0 0 auto;
}

.am-consent .am-consent__option input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.am-consent .am-consent__option strong {
	display: block;
	color: #ffffff !important;
	font-weight: 600 !important;
}

.am-consent .am-consent__option em {
	font-style: normal;
}

/* --- Actions ---------------------------------------------------------- */
.am-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
}

/* Base button — every visual property forced, so the theme cannot flatten
   the three variants into one look. */
.am-consent .am-consent__btn {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0 !important;
	padding: 11px 20px !important;
	border-radius: 8px !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

/* Reject — solid white. Deliberately as prominent as Accept: under EDPB
   guidance refusing must be no harder than consenting. */
.am-consent .am-consent__btn--light {
	background-color: #ffffff !important;
	border-color: #ffffff !important;
	color: #05030e !important;
}

.am-consent .am-consent__btn--light:hover,
.am-consent .am-consent__btn--light:focus-visible {
	background-color: #e9e6f5 !important;
	border-color: #e9e6f5 !important;
	color: #05030e !important;
}

/* Choose — the middle path, outlined. */
.am-consent .am-consent__btn--ghost {
	background-color: transparent !important;
	border-color: rgba( 255, 255, 255, 0.34 ) !important;
	color: #e9e6f5 !important;
}

.am-consent .am-consent__btn--ghost:hover,
.am-consent .am-consent__btn--ghost:focus-visible {
	background-color: rgba( 255, 255, 255, 0.08 ) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}

/* Accept — brand violet. */
.am-consent .am-consent__btn--solid {
	background-color: var( --e-global-color-primary, #7a00ff ) !important;
	border-color: var( --e-global-color-primary, #7a00ff ) !important;
	color: #ffffff !important;
}

.am-consent .am-consent__btn--solid:hover,
.am-consent .am-consent__btn--solid:focus-visible {
	background-color: #8f2bff !important;
	border-color: #8f2bff !important;
	color: #ffffff !important;
}

.am-consent .am-consent__btn:focus-visible {
	outline: 2px solid var( --e-global-color-accent, #a855f7 ) !important;
	outline-offset: 2px;
}

/* --- Small screens ---------------------------------------------------- */
@media ( max-width: 640px ) {
	.am-consent {
		padding: 10px;
	}

	.am-consent__panel {
		padding: 20px 18px;
	}

	.am-consent .am-consent__title {
		font-size: 18px !important;
	}

	.am-consent__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	/* Accept spans the full width on the second row. */
	.am-consent .am-consent__btn--solid {
		grid-column: 1 / -1;
	}

	.am-consent .am-consent__btn {
		width: 100% !important;
		padding: 12px 14px !important;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.am-consent .am-consent__btn {
		transition: none;
	}
}

/* --- Form honeypot ----------------------------------------------------
   The demo form carries a decoy "website" field. Humans never see it;
   bots fill it in and FormHandler silently discards the submission.
   Hidden with position, not display:none — some bots skip undisplayed
   fields, which would defeat the trap. Also removed from the tab order
   and from screen readers.                                              */
.elementor-field-group.elementor-field-group-website,
.elementor-field-group.am-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
