/* Arcade Cookie Consent */

:root {
	--acc-banner-bg: #1a1a2e;
	--acc-banner-text: #ffffff;
	--acc-accent: #e94560;
	--acc-btn-text: #ffffff;
	--acc-radius: 12px;
	--acc-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.acc-consent {
	position: relative;
	z-index: 2147483646;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Heebo", "Noto Sans Hebrew", sans-serif;
	color: var(--acc-banner-text);
}

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

.acc-consent__banner[hidden],
.acc-consent__modal[hidden],
.acc-consent__reopen[hidden] {
	display: none !important;
}

.acc-consent__banner {
	position: fixed;
	inset: auto 0 0 0;
	background: color-mix(in srgb, var(--acc-banner-bg) 92%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: var(--acc-shadow);
	padding: 18px 20px;
}

.acc-consent--bottom-left .acc-consent__banner {
	inset: auto auto 20px 20px;
	width: min(420px, calc(100vw - 40px));
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--acc-radius);
}

.acc-consent__banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 14px;
}

.acc-consent--bottom .acc-consent__banner-inner {
	grid-template-columns: 1fr auto;
	align-items: center;
}

.acc-consent--bottom-left .acc-consent__banner-inner {
	grid-template-columns: 1fr;
}

.acc-consent__message {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

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

.acc-consent--bottom-left .acc-consent__actions {
	justify-content: stretch;
}

.acc-consent__btn {
	border: 0;
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.acc-consent__btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--acc-accent) 60%, white);
	outline-offset: 2px;
}

.acc-consent__btn--primary {
	background: var(--acc-accent);
	color: var(--acc-btn-text);
}

.acc-consent__btn--primary:hover {
	transform: translateY(-1px);
}

.acc-consent__btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--acc-banner-text);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.acc-consent__policy {
	color: var(--acc-banner-text);
	font-size: 13px;
	text-decoration: underline;
	opacity: 0.9;
}

.acc-consent__modal {
	position: fixed;
	inset: 0;
	z-index: 2147483635;
}

.acc-consent__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.acc-consent__modal-panel {
	position: relative;
	width: min(520px, calc(100vw - 32px));
	margin: 8vh auto 0;
	background: var(--acc-banner-bg);
	color: var(--acc-banner-text);
	border-radius: var(--acc-radius);
	box-shadow: var(--acc-shadow);
	border: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.acc-consent__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-consent__modal-title {
	margin: 0;
	font-size: 18px;
}

.acc-consent__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--acc-banner-text);
	cursor: pointer;
	position: relative;
}

.acc-consent__close::before,
.acc-consent__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: currentColor;
}

.acc-consent__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.acc-consent__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.acc-consent__categories {
	padding: 8px 20px 4px;
	display: grid;
	gap: 14px;
}

.acc-consent__category {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-consent__category:last-child {
	border-bottom: 0;
}

.acc-consent__category-title {
	font-weight: 600;
	margin: 0;
	font-size: 15px;
}

.acc-consent__category-desc {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	opacity: 0.85;
	line-height: 1.45;
}

.acc-consent__switch {
	position: relative;
	width: 46px;
	height: 26px;
}

.acc-consent__switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.acc-consent__switch span {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.acc-consent__switch span::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.acc-consent__switch input:checked + span {
	background: var(--acc-accent);
}

.acc-consent__switch input:checked + span::before {
	transform: translateX(20px);
}

.acc-consent__switch input:disabled + span {
	opacity: 0.55;
	cursor: not-allowed;
}

.acc-consent__modal-footer {
	padding: 16px 20px 20px;
	display: flex;
	justify-content: flex-end;
}

.acc-consent__reopen {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483646;
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	background: var(--acc-banner-bg);
	color: var(--acc-banner-text);
	box-shadow: var(--acc-shadow);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

[dir="rtl"] .acc-consent__reopen {
	left: auto;
	right: 20px;
}

[dir="rtl"] .acc-consent--bottom-left .acc-consent__banner {
	left: auto;
	right: 20px;
}

@media (max-width: 767px) {
	.acc-consent--bottom .acc-consent__banner-inner {
		grid-template-columns: 1fr;
	}

	.acc-consent__actions {
		justify-content: stretch;
	}

	.acc-consent__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.acc-consent__btn,
	.acc-consent__switch span,
	.acc-consent__switch span::before {
		transition: none;
	}
}
