/**
 * HITEK Films - Cookie consent banner (template-parts/consent-banner.php).
 *
 * Plain CSS rather than Tailwind utilities: classes that are not already in
 * the compiled dist/style.css would not exist.
 */

.hitek-consent {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 16px;
	z-index: 100000;
	box-sizing: border-box;
	max-width: 960px;
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 20px 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-top: 2px solid #ed0004;
	border-radius: 12px;
	background: #1a1a1a;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	color: #e5e5e5;
	font-size: 14px;
	line-height: 1.55;
}

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

.hitek-consent p {
	margin: 0;
}

.hitek-consent a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hitek-consent a:hover {
	color: #ed0004;
}

.hitek-consent__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}

.hitek-consent__title {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hitek-consent__title:focus {
	outline: none;
}

.hitek-consent__close {
	flex: none;
	width: 36px;
	height: 36px;
	margin: -8px -10px 0 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.hitek-consent__close:hover {
	color: #fff;
}

.hitek-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Reject and Accept share this exact style: equal prominence. */
.hitek-consent__btn {
	flex: 1 1 120px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #ed0004;
	border-radius: 8px;
	background: #ed0004;
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.hitek-consent__btn:hover {
	border-color: #c40003;
	background: #c40003;
}

.hitek-consent__btn--ghost,
.hitek-consent__btn--ghost:hover {
	background: transparent;
}

.hitek-consent__btn--ghost {
	border-color: rgba(255, 255, 255, 0.25);
}

.hitek-consent__btn--ghost:hover {
	border-color: #fff;
}

.hitek-consent__btn:focus-visible,
.hitek-consent__close:focus-visible,
.hitek-consent a:focus-visible,
.hitek-consent input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hitek-consent__prefs {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hitek-consent fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.hitek-consent legend {
	margin-bottom: 4px;
	padding: 0;
	color: #fff;
	font-weight: 700;
}

.hitek-consent__option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	cursor: pointer;
}

.hitek-consent__option + .hitek-consent__option {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hitek-consent__option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #ed0004;
	cursor: pointer;
}

.hitek-consent__option input:disabled {
	cursor: not-allowed;
}

.hitek-consent__option strong {
	color: #fff;
}

.hitek-consent__gpc {
	margin-top: 8px !important;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.hitek-consent__save {
	width: 100%;
	margin-top: 12px;
}

@media (min-width: 640px) {
	.hitek-consent__save {
		width: auto;
	}
}

@media (max-width: 639px) {
	.hitek-consent {
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		left: 8px;
		max-height: calc(100vh - 16px);
		padding: 16px;
	}
}

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