/* Professional cookie consent — ARK */
/* Hide old cookieconsent banner; keep existing theme CSS untouched */
.cc-window,
.cc-revoke {
	display: none !important;
}

.ark-cc-banner {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 10050;
	width: calc(100% - 32px);
	max-width: 720px;
	margin: 0;
	background: #fff;
	color: #1a1d21;
	border: none;
	outline: none;
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(11, 15, 20, 0.18);
	padding: 18px 18px 16px;
	display: none;
	animation: arkCcIn 0.28s ease;
}

.ark-cc-banner.is-open,
.ark-cc-modal.is-open {
	display: block;
}

@keyframes arkCcIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes arkCcInDesktop {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Desktop: X-center inside main content area (red-mark zone) */
@media (min-width: 992px) {
	.ark-cc-banner {
		left: 250px;
		right: 40px;
		bottom: 20px;
		width: 840px;
		max-width: calc(100vw - 310px);
		margin-left: auto;
		margin-right: auto;
		transform: none;
		animation: arkCcInDesktop 0.28s ease;
	}
}

.ark-cc-banner__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #0b0f14;
}

.ark-cc-banner__text {
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0 0 14px;
	color: #4b5563;
}

.ark-cc-banner__text a {
	color: #0b0f14;
	font-weight: 600;
	text-decoration: underline;
}

.ark-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ark-cc-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ark-cc-btn:active {
	transform: scale(0.98);
}

.ark-cc-btn--primary {
	background: var(--main, #e0b200);
	color: var(--main-color, #fff);
}

.ark-cc-btn--primary:hover {
	filter: brightness(0.96);
}

.ark-cc-btn--secondary {
	background: #0b0f14;
	color: #fff;
}

.ark-cc-btn--ghost {
	background: transparent;
	color: #374151;
	border: 1px solid #d1d5db;
}

.ark-cc-btn--ghost:hover {
	background: #f3f4f6;
}

.ark-cc-btn--link {
	background: transparent;
	color: #4b5563;
	padding-left: 6px;
	padding-right: 6px;
	text-decoration: underline;
}

.ark-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 10060;
	background: rgba(11, 15, 20, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ark-cc-overlay.is-open {
	display: flex;
}

.ark-cc-modal {
	width: 100%;
	max-width: 560px;
	max-height: min(86vh, 720px);
	overflow: auto;
	background: #fff;
	border: none;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(11, 15, 20, 0.28);
	display: none;
}

.ark-cc-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 10px;
	border-bottom: 1px solid #eef0f3;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.ark-cc-modal__head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0b0f14;
}

.ark-cc-modal__head p {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.ark-cc-close {
	border: 0;
	background: #f3f4f6;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #111827;
	flex-shrink: 0;
}

.ark-cc-modal__body {
	padding: 8px 18px 6px;
}

.ark-cc-cat {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.ark-cc-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ark-cc-cat__name {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.ark-cc-cat__desc {
	font-size: 12.5px;
	line-height: 1.5;
	color: #6b7280;
	margin: 6px 0 0;
}

.ark-cc-switch {
	position: relative;
	width: 44px;
	height: 26px;
	flex-shrink: 0;
}

.ark-cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ark-cc-switch span {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ark-cc-switch span:before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ark-cc-switch input:checked+span {
	background: var(--main, #e0b200);
}

.ark-cc-switch input:checked+span:before {
	transform: translateX(18px);
}

.ark-cc-switch input:disabled+span {
	opacity: 0.7;
	cursor: not-allowed;
	background: #9ca3af;
}

.ark-cc-modal__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	padding: 12px 18px 18px;
	border-top: 1px solid #eef0f3;
	position: sticky;
	bottom: 0;
	background: #fff;
}

.ark-cc-fab {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 10040;
	border: 0;
	border-radius: 999px;
	background: #0b0f14;
	color: #fff;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(11, 15, 20, 0.25);
	cursor: pointer;
	display: none;
}

.ark-cc-fab.is-visible {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.ark-cc-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.ark-cc-banner {
		left: 50%;
		right: auto;
		bottom: 10px;
		width: calc(100% - 20px);
		max-width: none;
		margin: 0;
		padding: 16px;
		border-radius: 14px;
		transform: translateX(-50%);
		animation: arkCcIn 0.28s ease;
	}

	.ark-cc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ark-cc-btn {
		width: 100%;
		text-align: center;
	}

	.ark-cc-btn--link {
		order: 4;
	}

	.ark-cc-modal__foot {
		flex-direction: column-reverse;
	}

	.ark-cc-modal__foot .ark-cc-btn {
		width: 100%;
	}
}

body:has(#night-mode-css) .ark-cc-banner,
body:has(#night-mode-css) .ark-cc-modal,
.night_mode .ark-cc-banner,
.night_mode .ark-cc-modal {
	background: #1f2329;
	color: #e5e7eb;
	border: none;
}

body:has(#night-mode-css) .ark-cc-banner__title,
body:has(#night-mode-css) .ark-cc-modal__head h3,
body:has(#night-mode-css) .ark-cc-cat__name,
.night_mode .ark-cc-banner__title,
.night_mode .ark-cc-modal__head h3,
.night_mode .ark-cc-cat__name {
	color: #f9fafb;
}

body:has(#night-mode-css) .ark-cc-banner__text,
body:has(#night-mode-css) .ark-cc-modal__head p,
body:has(#night-mode-css) .ark-cc-cat__desc,
.night_mode .ark-cc-banner__text,
.night_mode .ark-cc-modal__head p,
.night_mode .ark-cc-cat__desc {
	color: #9ca3af;
}

body:has(#night-mode-css) .ark-cc-banner__text a,
.night_mode .ark-cc-banner__text a {
	color: #f3f4f6;
}

body:has(#night-mode-css) .ark-cc-btn--ghost,
.night_mode .ark-cc-btn--ghost {
	background: #2a2f36;
	color: #e5e7eb;
	border: none;
}

body:has(#night-mode-css) .ark-cc-btn--ghost:hover,
.night_mode .ark-cc-btn--ghost:hover {
	background: #374151;
}

body:has(#night-mode-css) .ark-cc-modal__head,
body:has(#night-mode-css) .ark-cc-modal__foot,
.night_mode .ark-cc-modal__head,
.night_mode .ark-cc-modal__foot {
	background: #1f2329;
	border-color: #2d333b;
}

body:has(#night-mode-css) .ark-cc-cat,
.night_mode .ark-cc-cat {
	border-color: #2d333b;
}

body:has(#night-mode-css) .ark-cc-close,
.night_mode .ark-cc-close {
	background: #2a2f36;
	color: #f3f4f6;
}