:root {
	--w40iq-grot-green: #6dfc00;
	--w40iq-dark-green: #004f1b;
	--w40iq-blood-red: #a90f0f;
	--w40iq-bone-sign: #f0d9a6;
	--w40iq-scrap-black: #0b0a07;
	--w40iq-steel-grey: #b8b9b2;
	--w40iq-rust-orange: #c75a1b;
	--w40iq-warning-yellow: #f3c63b;
}

.w40iq-consent-lock {
	overflow: hidden;
}

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

.w40iq-consent {
	position: fixed;
	inset: auto 16px 16px 16px;
	z-index: 99998;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.w40iq-consent__panel,
.w40iq-consent-modal__panel {
	box-sizing: border-box;
	width: min(100%, 760px);
	color: #fff;
	background:
		linear-gradient(135deg, rgba(109, 252, 0, 0.08), transparent 34%),
		linear-gradient(180deg, #17130d 0%, #0b0a07 100%);
	border: 2px solid var(--w40iq-dark-green);
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(240, 217, 166, 0.2);
	border-radius: 7px;
	padding: 22px;
	pointer-events: auto;
}

.w40iq-consent__badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 8px;
	padding: 4px 9px;
	color: var(--w40iq-scrap-black);
	background: var(--w40iq-warning-yellow);
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.w40iq-consent h2,
.w40iq-consent-modal h2 {
	margin: 0 0 8px;
	color: var(--w40iq-grot-green);
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.08;
	letter-spacing: 0;
}

.w40iq-consent p,
.w40iq-consent-modal p {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.55;
}

.w40iq-consent__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 14px;
}

.w40iq-consent__links a {
	color: var(--w40iq-bone-sign);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.w40iq-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.w40iq-consent__button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 2px solid transparent;
	border-radius: 5px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}

.w40iq-consent__button:hover,
.w40iq-consent__button:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.08);
	outline: 3px solid rgba(243, 198, 59, 0.5);
	outline-offset: 2px;
}

.w40iq-consent__button--primary {
	color: #fff;
	background: linear-gradient(180deg, var(--w40iq-grot-green), var(--w40iq-dark-green));
	border-color: var(--w40iq-grot-green);
}

.w40iq-consent__button--secondary {
	color: var(--w40iq-bone-sign);
	background: #25180f;
	border-color: rgba(240, 217, 166, 0.55);
}

.w40iq-consent__button--ghost {
	color: #fff;
	background: transparent;
	border-color: rgba(184, 185, 178, 0.45);
}

.w40iq-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(0, 0, 0, 0.74);
}

.w40iq-consent-modal__panel {
	position: relative;
	max-height: min(780px, calc(100vh - 36px));
	overflow: auto;
}

.w40iq-consent-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	color: #fff;
	background: var(--w40iq-blood-red);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 5px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.w40iq-consent-modal__categories {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.w40iq-consent-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px;
	background: rgba(240, 217, 166, 0.08);
	border: 1px solid rgba(240, 217, 166, 0.24);
	border-radius: 6px;
}

.w40iq-consent-category strong {
	display: block;
	margin-bottom: 4px;
	color: #fff;
}

.w40iq-consent-category small {
	display: block;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	line-height: 1.45;
}

.w40iq-consent-category input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	accent-color: var(--w40iq-grot-green);
}

.w40iq-compliance-policy {
	padding: 18px;
	background: rgba(11, 10, 7, 0.04);
	border-left: 4px solid var(--w40iq-dark-green);
}

.w40iq-blocked-media {
	display: grid;
	place-items: center;
	min-height: 220px;
	margin: 18px 0;
	padding: 18px;
	color: #fff;
	background:
		linear-gradient(135deg, rgba(169, 15, 15, 0.2), transparent 42%),
		linear-gradient(180deg, #17130d, #0b0a07);
	border: 2px dashed rgba(240, 217, 166, 0.58);
	border-radius: 7px;
	text-align: center;
}

.w40iq-blocked-media__inner {
	max-width: 520px;
}

.w40iq-blocked-media strong {
	display: block;
	margin-bottom: 8px;
	color: var(--w40iq-warning-yellow);
	font-size: 20px;
	line-height: 1.2;
}

.w40iq-blocked-media p {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.88);
}

.w40iq-blocked-media__source {
	display: inline-block;
	margin-left: 12px;
	color: var(--w40iq-bone-sign);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 640px) {
	.w40iq-consent {
		inset: auto 10px 10px 10px;
	}

	.w40iq-consent__panel,
	.w40iq-consent-modal__panel {
		padding: 18px;
	}

	.w40iq-consent__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.w40iq-consent__button {
		width: 100%;
	}
}
