/**
 * Cookie Compliance Suite - front-end styles.
 * No external fonts, images or requests. System font stack only.
 */

:root {
	--ccs-border: rgba(0, 0, 0, 0.09);
	--ccs-soft: rgba(0, 0, 0, 0.035);
	--ccs-hover: rgba(0, 0, 0, 0.06);
	--ccs-muted: rgba(17, 24, 39, 0.7);
	--ccs-link: var(--ccs-accent-strong, var(--ccs-accent));
	--ccs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#ccs-banner,
#ccs-banner *,
#ccs-modal,
#ccs-modal *,
#ccs-reopen,
#ccs-toast {
	box-sizing: border-box;
}

#ccs-banner,
#ccs-modal,
#ccs-reopen,
#ccs-toast {
	--ccs-border: rgba(0, 0, 0, 0.09);
	--ccs-soft: rgba(0, 0, 0, 0.035);
	--ccs-hover: rgba(0, 0, 0, 0.06);
	--ccs-muted: rgba(17, 24, 39, 0.7);
	--ccs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#ccs-banner [hidden],
#ccs-modal [hidden],
#ccs-reopen[hidden],
#ccs-toast[hidden] {
	display: none !important;
}

/* Banner shell */
.ccs-banner {
	position: fixed;
	inset-inline: 0;
	z-index: 999999;
	display: flex;
	padding: 16px;
	pointer-events: none;
	font-family: var(--ccs-font);
	color: var(--ccs-text);
}

.ccs-banner--bottom {
	bottom: 0;
	align-items: flex-end;
	justify-content: center;
}

.ccs-banner--top {
	top: 0;
	align-items: flex-start;
	justify-content: center;
}

body.admin-bar .ccs-banner--top {
	top: 32px;
}

.ccs-banner--center {
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	pointer-events: auto;
}

.ccs-has-consent .ccs-banner {
	display: none;
}

/* Card */
.ccs-banner__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 26px;
	width: min(980px, 100%);
	padding: 22px 24px;
	background: var(--ccs-bg);
	color: var(--ccs-text);
	border: 1px solid var(--ccs-border);
	border-radius: var(--ccs-radius);
	box-shadow: 0 18px 50px -14px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.07);
	pointer-events: auto;
	text-align: start;
}

.ccs-banner--bar {
	padding: 0;
}

.ccs-banner--bar .ccs-banner__card {
	width: 100%;
	max-width: none;
	border-radius: 0;
	border-inline: 0;
}

.ccs-banner--bar.ccs-banner--bottom .ccs-banner__card {
	border-bottom: 0;
}

.ccs-banner--bar.ccs-banner--top .ccs-banner__card {
	border-top: 0;
}

.ccs-banner--center .ccs-banner__card {
	flex-direction: column;
	align-items: stretch;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	gap: 20px;
	padding: 28px;
	overflow-y: auto;
}

.ccs-banner__copy {
	max-width: 660px;
}

.ccs-banner__title {
	margin: 0 0 7px;
	padding: 0;
	font-family: var(--ccs-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: inherit;
}

.ccs-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: inherit;
	opacity: 0.82;
}

.ccs-msg-ccpa {
	display: none;
}

.ccs-region-ccpa .ccs-msg-default {
	display: none;
}

.ccs-region-ccpa .ccs-msg-ccpa {
	display: block;
}

.ccs-banner__ccpa {
	display: none;
	margin: 9px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.ccs-region-ccpa .ccs-banner__ccpa {
	display: block;
}

.ccs-donotsell-off .ccs-msg-default {
	display: block;
}

.ccs-donotsell-off .ccs-msg-ccpa,
.ccs-donotsell-off .ccs-banner__ccpa {
	display: none;
}

.ccs-link {
	color: var(--ccs-link);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.ccs-link:hover {
	text-decoration-thickness: 2px;
}

.ccs-link--button {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: start;
	cursor: pointer;
}

.ccs-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-family: var(--ccs-font);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.65;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ccs-icon-btn:hover {
	background: var(--ccs-hover);
	opacity: 1;
}

.ccs-banner__close {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
}

/* Buttons */
.ccs-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.ccs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 0;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: calc(var(--ccs-radius) - 3px);
	background: transparent;
	color: inherit;
	font-family: var(--ccs-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.ccs-btn:hover {
	transform: translateY(-1px);
}

.ccs-btn:active {
	transform: translateY(0);
}

.ccs-btn--primary {
	background: var(--ccs-accent-strong, var(--ccs-accent));
	border-color: var(--ccs-accent-strong, var(--ccs-accent));
	color: var(--ccs-accent-contrast);
}

.ccs-btn--primary:hover {
	opacity: 0.92;
}

.ccs-btn--secondary {
	background: transparent;
	border-color: var(--ccs-border);
	color: var(--ccs-text);
}

.ccs-btn--secondary:hover {
	background: var(--ccs-hover);
	border-color: var(--ccs-muted);
}

.ccs-btn--ghost {
	background: var(--ccs-soft);
	border-color: transparent;
	color: var(--ccs-text);
}

.ccs-btn--ghost:hover {
	background: var(--ccs-hover);
}

.ccs-btn[disabled] {
	opacity: 0.55;
	cursor: wait;
	transform: none;
}

/* GPC / notices */
.ccs-gpc-note {
	margin: 10px 0 0;
	padding: 9px 12px;
	border-inline-start: 3px solid var(--ccs-accent);
	border-radius: 6px;
	background: rgba(251, 72, 72, 0.08);
	font-size: 13px;
	line-height: 1.5;
	color: inherit;
}

.ccs-noscript {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: inherit;
	opacity: 0.8;
}

/* Reopen button */
.ccs-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--ccs-border);
	border-radius: 999px;
	background: var(--ccs-bg);
	color: var(--ccs-text);
	font-family: var(--ccs-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.35);
	opacity: 0.94;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.ccs-has-consent .ccs-reopen {
	display: inline-flex;
}

.ccs-reopen:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.ccs-reopen svg {
	color: var(--ccs-accent);
}

.ccs-reopen.is-bump {
	animation: ccs-bump 0.5s ease;
}

@keyframes ccs-bump {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-5px); }
}

/* Modal */
.ccs-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--ccs-font);
	color: var(--ccs-text);
}

.ccs-modal[hidden] {
	display: none !important;
}

.ccs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.ccs-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(640px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: var(--ccs-bg);
	border-radius: calc(var(--ccs-radius) + 4px);
	box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.6);
	overflow: hidden;
	text-align: start;
}

.ccs-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px 14px;
	border-bottom: 1px solid var(--ccs-border);
}

.ccs-modal__title {
	margin: 0;
	padding: 0;
	font-family: var(--ccs-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: inherit;
}

.ccs-modal__company {
	margin: 4px 0 0;
	font-size: 12px;
	opacity: 0.72;
}

.ccs-modal__body {
	overflow-y: auto;
	padding: 16px 22px;
	overscroll-behavior: contain;
}

.ccs-modal__desc {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.78;
}

.ccs-categories {
	margin-top: 8px;
}

.ccs-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ccs-border);
}

.ccs-category:last-child {
	border-bottom: 0;
}

.ccs-category__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ccs-category__title {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--ccs-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
}

.ccs-category__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.68;
}

.ccs-badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-top: 2px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--ccs-soft);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Switch */
.ccs-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 46px;
	height: 27px;
	margin-top: 1px;
	cursor: pointer;
}

.ccs-switch__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
}

.ccs-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(100, 116, 139, 0.38);
	transition: background-color 0.18s ease;
}

.ccs-switch__track::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
	transition: transform 0.18s ease;
}

.ccs-switch__input:checked + .ccs-switch__track {
	background: var(--ccs-accent);
}

.ccs-switch__input:checked + .ccs-switch__track::before {
	transform: translateX(19px);
}

.ccs-switch__input:disabled + .ccs-switch__track {
	opacity: 0.5;
	cursor: not-allowed;
}

.ccs-modal__policy {
	margin: 12px 0 0;
	font-size: 13px;
}

.ccs-modal__footer {
	padding: 14px 22px 18px;
	border-top: 1px solid var(--ccs-border);
	background: var(--ccs-soft);
}

.ccs-modal__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 12px;
	font-size: 12px;
}

.ccs-modal__footer-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

/* Toast */
.ccs-toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	z-index: 1000001;
	max-width: min(440px, calc(100% - 32px));
	padding: 12px 16px;
	border-radius: 10px;
	background: #111827;
	color: #ffffff;
	font-family: var(--ccs-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.6);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ccs-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Dark theme */
.ccs-theme-dark {
	--ccs-bg: #1f2937;
	--ccs-text: #f9fafb;
	--ccs-border: rgba(255, 255, 255, 0.14);
	--ccs-soft: rgba(255, 255, 255, 0.06);
	--ccs-hover: rgba(255, 255, 255, 0.1);
	--ccs-muted: rgba(255, 255, 255, 0.72);
	--ccs-accent-strong: #ff8a8a;
	--ccs-accent-contrast: #111111;
	--ccs-link: #ff9a9a;
}

@media (prefers-color-scheme: dark) {
	.ccs-theme-auto {
		--ccs-bg: #1f2937;
		--ccs-text: #f9fafb;
		--ccs-border: rgba(255, 255, 255, 0.14);
		--ccs-soft: rgba(255, 255, 255, 0.06);
		--ccs-hover: rgba(255, 255, 255, 0.1);
		--ccs-muted: rgba(255, 255, 255, 0.72);
		--ccs-accent-strong: #ff8a8a;
		--ccs-accent-contrast: #111111;
		--ccs-link: #ff9a9a;
	}
}

/* Focus visibility */
.ccs-banner :focus-visible,
.ccs-modal :focus-visible,
.ccs-reopen:focus-visible,
.ccs-toast:focus-visible {
	outline: 3px solid var(--ccs-accent);
	outline-offset: 2px;
}

.ccs-btn--primary:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--ccs-bg), 0 0 0 5px var(--ccs-accent);
}

.ccs-switch__input:focus-visible + .ccs-switch__track {
	outline: 3px solid var(--ccs-accent);
	outline-offset: 2px;
}

/* Cookie policy shortcode */
.ccs-policy {
	max-width: 100%;
	font-family: var(--ccs-font);
	font-size: 15px;
	line-height: 1.65;
	color: inherit;
}

.ccs-policy__intro {
	margin: 0 0 1.25rem;
}

.ccs-policy__meta {
	margin: 0 0 1.5rem;
	font-size: 13px;
	opacity: 0.68;
}

.ccs-policy__category {
	margin-top: 2.25rem;
}

.ccs-policy__category h2,
.ccs-policy__category h3 {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	line-height: 1.35;
}

.ccs-policy__category p {
	margin: 0 0 0.9rem;
}

.ccs-policy__table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--ccs-border);
	border-radius: 10px;
}

.ccs-policy table {
	width: 100%;
	min-width: 680px;
	margin: 0;
	border-collapse: collapse;
	font-size: 13.5px;
	line-height: 1.5;
}

.ccs-policy th,
.ccs-policy td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ccs-border);
	text-align: start;
	vertical-align: top;
}

.ccs-policy thead th {
	background: var(--ccs-soft);
	font-weight: 600;
	white-space: nowrap;
}

.ccs-policy tbody tr:last-child td {
	border-bottom: 0;
}

.ccs-policy__empty {
	font-size: 14px;
	opacity: 0.72;
}

.ccs-policy__actions {
	margin-top: 1.75rem;
}

/* Responsive */
@media (max-width: 782px) {
	body.admin-bar .ccs-banner--top {
		top: 46px;
	}

	.ccs-banner {
		padding: 10px;
	}

	.ccs-banner__card {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px;
	}

	.ccs-banner__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.ccs-banner__actions .ccs-btn--ghost {
		grid-column: 1 / -1;
		order: 3;
	}

	.ccs-banner__actions .ccs-btn {
		width: 100%;
		white-space: normal;
	}

	.ccs-banner--bar {
		padding: 0;
	}

	.ccs-modal {
		padding: 10px;
	}

	.ccs-modal__header,
	.ccs-modal__body {
		padding-inline: 18px;
	}

	.ccs-modal__footer {
		padding: 14px 18px 16px;
	}

	.ccs-modal__footer-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ccs-modal__footer-actions .ccs-btn--primary {
		grid-column: 1 / -1;
		order: 3;
	}

	.ccs-modal__footer-actions .ccs-btn {
		width: 100%;
	}

	.ccs-reopen {
		bottom: 12px;
		left: 12px;
		padding: 0;
		width: 46px;
		height: 46px;
		justify-content: center;
	}

	.ccs-reopen__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccs-banner *,
	.ccs-modal *,
	.ccs-reopen,
	.ccs-toast {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

html.ccs-no-scroll,
html.ccs-no-scroll body {
	overflow: hidden !important;
}

@media print {
	.ccs-banner,
	.ccs-modal,
	.ccs-reopen,
	.ccs-toast {
		display: none !important;
	}
}
