/*
 * Cookie consent banner — modal layout; colors from brand tokens.
 */

.it-consent {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.it-consent.is-visible {
	pointer-events: auto;
	opacity: 1;
}

.it-consent__bar,
.it-consent__panel {
	background: var(--surface-card, rgba(13, 1, 40, 0.96));
	border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
	border-radius: var(--radius-lg, 16px);
	width: 100%;
	max-width: 640px;
	margin: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.it-consent__inner,
.it-consent__panel-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 32px;
}

.it-consent__main {
	width: 100%;
	max-width: 100%;
}

.it-consent__title {
	margin: 0 0 16px;
	font-family: var(--font-heading, inherit);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text, #fff);
}

.it-consent__lead,
.it-consent__option-desc,
.it-consent__policy {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-muted, rgba(255, 255, 255, 0.8));
}

.it-consent__policy {
	margin-top: 12px;
}

.it-consent__policy-link {
	color: var(--accent, #b5a2ff);
	text-decoration: underline;
}

.it-consent__actions,
.it-consent__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	width: 100%;
}

.it-consent__actions button,
.it-consent__panel-actions button {
	flex: 1 1 auto;
	justify-content: center;
	padding: 12px 24px;
	font-size: 1rem;
}

.it-consent__panel-title {
	margin: 0 0 16px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text, #fff);
}

.it-consent__option {
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
	border-radius: var(--radius-md, 10px);
	background: var(--surface-elev, rgba(255, 255, 255, 0.04));
	width: 100%;
}

.it-consent__option-head {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text, #fff);
	cursor: pointer;
}

.it-consent__option-head input[type="checkbox"] {
	width: 20px;
	height: 20px;
}

.it-consent__option-desc {
	margin-top: 10px;
}

.it-consent__reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99998;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--text-muted, rgba(255, 255, 255, 0.8));
	background: var(--surface-card, rgba(13, 1, 40, 0.92));
	border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
	border-radius: var(--radius-md, 10px);
	cursor: pointer;
}

.it-consent__reopen:hover {
	color: var(--text, #fff);
	border-color: var(--border-strong, rgba(255, 255, 255, 0.22));
}

.is-footer__link-btn {
	display: inline;
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.is-footer__link-btn:hover {
	color: var(--text, #fff);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.it-consent__actions,
	.it-consent__panel-actions {
		flex-direction: column;
	}
	
	.it-consent__actions button,
	.it-consent__panel-actions button {
		width: 100%;
	}
}