/* =====================================================
   TAJ cookie consent — banner, preference center, revisit
===================================================== */

.taj-cookie-root {
	--cc-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
	--cc-cyan: #2abeec;
	--cc-cyan-deep: #159fce;
	--cc-bg: rgba(31, 30, 35, 0.96);
	--cc-panel: #1F1E23;
	--cc-border: rgba(255, 255, 255, 0.12);
	--cc-ink: #f8f8f9;
	--cc-muted: #c8c6cd;
	--cc-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--cc-z: 1900;
	font-family: var(--cc-font);
	-webkit-font-smoothing: antialiased;
}

.taj-cookie-root *,
.taj-cookie-root *::before,
.taj-cookie-root *::after {
	box-sizing: border-box;
}

.taj-cookie-root .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.taj-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--cc-z);
	background: var(--cc-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--cc-border);
	color: var(--cc-ink);
	transform: translateY(0);
	opacity: 1;
	transition: transform 0.35s var(--cc-ease), opacity 0.35s var(--cc-ease);
}

.taj-cookie[hidden],
.taj-cookie-overlay[hidden],
.taj-cookie-panel[hidden],
.taj-cookie-revisit[hidden] {
	display: none !important;
}

.taj-cookie.is-hidden {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

.taj-cookie-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px clamp(20px, 4vw, 56px);
}

.taj-cookie-icon,
.taj-cookie-revisit {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(42, 190, 236, 0.3) 0%, rgba(42, 190, 236, 0) 100%);
	color: var(--cc-ink);
}

.taj-cookie-icon svg,
.taj-cookie-revisit svg {
	width: 20px;
	height: 20px;
}

.taj-cookie-text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cc-muted);
}

.taj-cookie-link {
	color: var(--cc-cyan);
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: text-decoration-color 0.2s var(--cc-ease);
}

.taj-cookie-link:hover {
	text-decoration-color: currentColor;
}

.taj-cookie-actions,
.taj-cookie-panel-actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.taj-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s var(--cc-ease), color 0.2s var(--cc-ease), border-color 0.2s var(--cc-ease);
}

.taj-cookie-btn:focus-visible,
.taj-cookie-revisit:focus-visible,
.taj-cookie-panel-close:focus-visible,
.taj-cookie-switch input:focus-visible + .taj-cookie-switch-ui {
	outline: 2px solid var(--cc-cyan);
	outline-offset: 2px;
}

.taj-cookie-btn--decline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--cc-ink);
}

.taj-cookie-btn--decline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.taj-cookie-btn--ghost {
	background: transparent;
	border: 1px solid rgba(42, 190, 236, 0.55);
	color: var(--cc-cyan);
}

.taj-cookie-btn--ghost:hover {
	border-color: var(--cc-cyan);
	background: rgba(42, 190, 236, 0.12);
}

.taj-cookie-btn--accept {
	border: 1px solid var(--cc-cyan);
	background: var(--cc-cyan);
	color: #fff;
}

.taj-cookie-btn--accept:hover {
	background: var(--cc-cyan-deep);
	border-color: var(--cc-cyan-deep);
}

.taj-cookie-revisit {
	position: fixed;
	left: calc(20px + env(safe-area-inset-left, 0px));
	bottom: calc(40px + env(safe-area-inset-bottom, 0px));
	z-index: 2001;
	width: 48px;
	height: 48px;
	border: 1px solid var(--cc-border);
	background: var(--cc-panel);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: transform 0.2s var(--cc-ease), border-color 0.2s var(--cc-ease);
}

.taj-cookie-revisit.is-open,
.taj-cookie-revisit:hover {
	border-color: var(--cc-cyan);
}

.taj-cookie-revisit:hover {
	transform: translateY(-2px);
}

.taj-cookie-overlay {
	position: fixed;
	inset: 0;
	z-index: 1990;
	background: transparent;
}

.taj-cookie-panel {
	position: fixed;
	left: calc(20px + env(safe-area-inset-left, 0px) + 60px);
	bottom: calc(40px + env(safe-area-inset-bottom, 0px));
	z-index: 2000;
	width: min(440px, calc(100vw - 96px));
	max-height: min(80vh, 600px);
	display: flex;
	flex-direction: column;
	background: var(--cc-panel);
	border: 1px solid var(--cc-border);
	border-radius: 16px;
	color: var(--cc-ink);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.taj-cookie-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px 8px;
}

.taj-cookie-panel-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.taj-cookie-panel-close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cc-muted);
	cursor: pointer;
}

.taj-cookie-panel-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.taj-cookie-cats {
	overflow: auto;
	padding: 8px 22px 12px;
}

.taj-cookie-cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--cc-border);
}

.taj-cookie-cat:first-child {
	border-top: 0;
}

.taj-cookie-cat-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.taj-cookie-cat-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 650;
	color: #fff;
}

.taj-cookie-cat-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cc-muted);
}

.taj-cookie-always {
	flex: none;
	font-size: 12px;
	font-weight: 600;
	color: var(--cc-cyan);
	white-space: nowrap;
}

.taj-cookie-switch {
	flex: none;
	position: relative;
	display: inline-flex;
	width: 44px;
	height: 26px;
	cursor: pointer;
}

.taj-cookie-switch input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.taj-cookie-switch-ui {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	transition: background 0.2s var(--cc-ease);
}

.taj-cookie-switch-ui::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s var(--cc-ease);
}

.taj-cookie-switch input:checked + .taj-cookie-switch-ui {
	background: var(--cc-cyan);
}

.taj-cookie-switch input:checked + .taj-cookie-switch-ui::after {
	transform: translateX(18px);
}

.taj-cookie-panel-actions {
	padding: 12px 22px 20px;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.taj-cookie-panel-actions .taj-cookie-btn {
	padding: 10px 16px;
}

@media (max-width: 720px) {
	.taj-cookie-inner {
		flex-wrap: wrap;
		padding: 16px 20px;
	}

	.taj-cookie-text {
		flex: 1 1 calc(100% - 56px);
	}

	.taj-cookie-actions,
	.taj-cookie-panel-actions {
		flex: 1 1 100%;
		flex-wrap: wrap;
		justify-content: stretch;
	}

	.taj-cookie-actions .taj-cookie-btn,
	.taj-cookie-panel-actions .taj-cookie-btn {
		flex: 1 1 auto;
	}

	.taj-cookie-panel {
		left: calc(20px + env(safe-area-inset-left, 0px));
		right: calc(20px + env(safe-area-inset-right, 0px));
		bottom: calc(20px + 48px + 12px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-height: min(70vh, 520px);
		border-radius: 16px;
	}

	.taj-cookie-revisit {
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.taj-cookie,
	.taj-cookie-btn,
	.taj-cookie-revisit,
	.taj-cookie-switch-ui,
	.taj-cookie-switch-ui::after {
		transition: none;
	}
}
