/*!
 * Sedeus Cookie Consent - frontend styles.
 * All colors and sizes come from CSS custom properties printed by the plugin.
 */

#scc-root {
	--scc-bg: #ffffff;
	--scc-text: #1f2937;
	--scc-title: #111827;
	--scc-link: #1d4ed8;
	--scc-accept-bg: #111827;
	--scc-accept-text: #ffffff;
	--scc-reject-bg: #111827;
	--scc-reject-text: #ffffff;
	--scc-settings-bg: transparent;
	--scc-settings-text: #111827;
	--scc-settings-border: #d1d5db;
	--scc-toggle-on: #16a34a;
	--scc-toggle-off: #cbd5e1;
	--scc-overlay: rgba(15, 23, 42, 0.5);
	--scc-floating-bg: #111827;
	--scc-floating-icon: #ffffff;
	--scc-border: #e5e7eb;
	--scc-radius: 14px;
	--scc-btn-radius: 8px;
	--scc-font-size: 14px;
	--scc-box-width: 440px;
	--scc-bar-width: 1240px;
	--scc-z: 999999;
	--scc-font: inherit;
	--scc-shadow: 0 -4px 32px rgba(15, 23, 42, 0.10), 0 12px 40px rgba(15, 23, 42, 0.14);

	position: relative;
	z-index: var(--scc-z);
	font-family: var(--scc-font);
	font-size: var(--scc-font-size);
	line-height: 1.55;
	color: var(--scc-text);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#scc-root.scc-no-shadow {
	--scc-shadow: none;
}

#scc-root,
#scc-root *,
#scc-root *::before,
#scc-root *::after {
	box-sizing: border-box;
}

#scc-root [hidden] {
	display: none !important;
}

html.scc-lock,
html.scc-lock body {
	overflow: hidden !important;
}

/* ------------------------------------------------------------ reset */

#scc-root h2,
#scc-root h3,
#scc-root p,
#scc-root ul,
#scc-root li {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

#scc-root ul {
	list-style: none;
}

#scc-root a {
	color: var(--scc-link);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	transition: opacity 0.15s ease;
}

#scc-root a:hover {
	color: var(--scc-link);
	opacity: 0.8;
}

#scc-root a:focus-visible,
#scc-root button:focus-visible,
#scc-root summary:focus-visible {
	outline: 2px solid var(--scc-link);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ overlay */

#scc-root .scc-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--scc-z);
	background: var(--scc-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
}

#scc-root .scc-overlay.is-visible {
	opacity: 1;
}

/* ------------------------------------------------------------ banner */

#scc-root .scc-banner {
	position: fixed;
	z-index: calc(var(--scc-z) + 1);
	max-height: 85vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--scc-bg);
	color: var(--scc-text);
	border: 1px solid var(--scc-border);
	box-shadow: var(--scc-shadow);
	outline: none;
}

#scc-root .scc-banner__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0 auto;
	padding: 20px 24px;
}

#scc-root .scc-banner__content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
}

#scc-root .scc-banner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--scc-title);
	background: rgba(127, 127, 127, 0.12);
	background: color-mix(in srgb, var(--scc-accept-bg) 10%, transparent);
}

#scc-root .scc-banner__icon svg {
	width: 26px;
	height: 26px;
}

#scc-root .scc-banner__text {
	min-width: 0;
}

#scc-root .scc-banner__title {
	margin: 0 0 4px;
	color: var(--scc-title);
	font-size: calc(var(--scc-font-size) + 3px);
	font-weight: 700;
	line-height: 1.3;
}

#scc-root .scc-banner__desc {
	color: var(--scc-text);
}

#scc-root .scc-banner__desc p {
	margin: 0 0 6px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

#scc-root .scc-banner__desc p:last-child {
	margin-bottom: 0;
}

#scc-root .scc-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin-top: 8px;
	font-size: calc(var(--scc-font-size) - 1px);
}

#scc-root .scc-banner__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

/* ------------------------------------------------------------ buttons */

#scc-root .scc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--scc-btn-radius);
	box-shadow: none;
	font-family: inherit;
	font-size: var(--scc-font-size);
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.15s ease, transform 0.05s ease;
}

@media (hover: hover) {
	#scc-root .scc-btn:hover {
		box-shadow: inset 0 0 0 100vmax rgba(127, 127, 127, 0.16);
	}

	#scc-root .scc-close:hover {
		background: rgba(127, 127, 127, 0.16);
	}

	#scc-root .scc-floating:hover {
		box-shadow: 0 8px 26px rgba(15, 23, 42, 0.32);
		transform: translateY(-1px);
	}
}

#scc-root .scc-btn:active {
	transform: translateY(1px);
}

#scc-root .scc-btn--accept,
#scc-root .scc-btn--accept:hover,
#scc-root .scc-btn--accept:focus {
	background: var(--scc-accept-bg);
	border-color: var(--scc-accept-bg);
	color: var(--scc-accept-text);
}

#scc-root .scc-btn--reject,
#scc-root .scc-btn--reject:hover,
#scc-root .scc-btn--reject:focus {
	background: var(--scc-reject-bg);
	border-color: var(--scc-reject-bg);
	color: var(--scc-reject-text);
}

#scc-root .scc-btn--settings,
#scc-root .scc-btn--settings:hover,
#scc-root .scc-btn--settings:focus {
	background: var(--scc-settings-bg);
	border-color: var(--scc-settings-border);
	color: var(--scc-settings-text);
}

#scc-root .scc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--scc-title);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#scc-root .scc-close svg {
	width: 20px;
	height: 20px;
}

#scc-root .scc-banner > .scc-banner__inner > .scc-close {
	position: absolute;
	top: 8px;
	right: 8px;
}

#scc-root.scc-has-close .scc-banner__inner {
	padding-right: 52px;
}

/* ------------------------------------------------------------ layouts */

/* Bars */
#scc-root.scc-layout-bar-bottom .scc-banner,
#scc-root.scc-layout-bar-top .scc-banner {
	left: 0;
	right: 0;
	border-radius: 0;
}

#scc-root.scc-layout-bar-bottom .scc-banner {
	bottom: 0;
	border-width: 1px 0 0;
}

#scc-root.scc-layout-bar-top .scc-banner {
	top: 0;
	border-width: 0 0 1px;
}

.admin-bar #scc-root.scc-layout-bar-top .scc-banner {
	top: 32px;
}

#scc-root.scc-layout-bar-bottom .scc-banner__inner,
#scc-root.scc-layout-bar-top .scc-banner__inner {
	max-width: var(--scc-bar-width);
}

/* Boxes */
#scc-root.scc-layout-box-left .scc-banner,
#scc-root.scc-layout-box-right .scc-banner,
#scc-root.scc-layout-box-center .scc-banner {
	width: min(var(--scc-box-width), calc(100vw - 40px));
	border-radius: var(--scc-radius);
}

#scc-root.scc-layout-box-left .scc-banner {
	left: 20px;
	bottom: 20px;
}

#scc-root.scc-layout-box-right .scc-banner {
	right: 20px;
	bottom: 20px;
}

#scc-root.scc-layout-box-center .scc-banner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#scc-root.scc-layout-box-left .scc-banner__inner,
#scc-root.scc-layout-box-right .scc-banner__inner,
#scc-root.scc-layout-box-center .scc-banner__inner {
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	padding: 22px;
}

#scc-root.scc-layout-box-left .scc-banner__content,
#scc-root.scc-layout-box-right .scc-banner__content,
#scc-root.scc-layout-box-center .scc-banner__content {
	flex-direction: column;
	gap: 12px;
}

#scc-root.scc-layout-box-left .scc-banner__actions,
#scc-root.scc-layout-box-right .scc-banner__actions,
#scc-root.scc-layout-box-center .scc-banner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

#scc-root.scc-layout-box-left .scc-banner__actions .scc-btn--settings,
#scc-root.scc-layout-box-right .scc-banner__actions .scc-btn--settings,
#scc-root.scc-layout-box-center .scc-banner__actions .scc-btn--settings {
	grid-column: 1 / -1;
	order: 3;
}

#scc-root.scc-layout-box-left .scc-banner__actions .scc-btn,
#scc-root.scc-layout-box-right .scc-banner__actions .scc-btn,
#scc-root.scc-layout-box-center .scc-banner__actions .scc-btn {
	width: 100%;
	white-space: normal;
}

/* ------------------------------------------------------------ animations */

#scc-root.scc-anim .scc-banner {
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#scc-root.scc-anim.scc-layout-bar-bottom .scc-banner {
	transform: translateY(100%);
}

#scc-root.scc-anim.scc-layout-bar-top .scc-banner {
	transform: translateY(-100%);
}

#scc-root.scc-anim.scc-layout-box-left .scc-banner,
#scc-root.scc-anim.scc-layout-box-right .scc-banner {
	transform: translateY(24px);
}

#scc-root.scc-anim.scc-layout-box-center .scc-banner {
	transform: translate(-50%, -46%) scale(0.98);
}

#scc-root.scc-anim .scc-banner.is-visible {
	opacity: 1;
	transform: none;
}

#scc-root.scc-anim.scc-layout-box-center .scc-banner.is-visible {
	transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------ preferences modal */

#scc-root .scc-modal {
	position: fixed;
	inset: 0;
	z-index: calc(var(--scc-z) + 2);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#scc-root .scc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: var(--scc-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
}

#scc-root .scc-modal.is-visible .scc-modal__backdrop {
	opacity: 1;
}

#scc-root .scc-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 660px;
	max-height: min(88vh, 780px);
	overflow: hidden;
	background: var(--scc-bg);
	color: var(--scc-text);
	border: 1px solid var(--scc-border);
	border-radius: var(--scc-radius);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
	outline: none;
}

#scc-root.scc-anim .scc-modal__dialog {
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#scc-root.scc-anim .scc-modal.is-visible .scc-modal__dialog {
	opacity: 1;
	transform: none;
}

#scc-root .scc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--scc-border);
}

#scc-root .scc-modal__title {
	color: var(--scc-title);
	font-size: calc(var(--scc-font-size) + 4px);
	font-weight: 700;
	line-height: 1.3;
}

#scc-root .scc-modal__body {
	flex: 1 1 auto;
	padding: 18px 22px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

#scc-root .scc-modal__intro p {
	margin: 0 0 6px;
}

#scc-root .scc-modal__intro p:last-child {
	margin-bottom: 0;
}

#scc-root .scc-modal__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px;
	border-top: 1px solid var(--scc-border);
}

#scc-root .scc-modal__footer .scc-btn--settings {
	margin-right: auto;
}

/* Categories */
#scc-root .scc-cats {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

#scc-root .scc-cat {
	padding: 14px 16px;
	border: 1px solid var(--scc-border);
	border-radius: calc(var(--scc-radius) * 0.7);
}

#scc-root .scc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#scc-root .scc-cat__title {
	color: var(--scc-title);
	font-size: calc(var(--scc-font-size) + 1px);
	font-weight: 650;
	line-height: 1.35;
}

#scc-root .scc-cat__desc {
	margin-top: 6px;
	font-size: calc(var(--scc-font-size) - 1px);
}

#scc-root .scc-cat__desc p {
	margin: 0 0 4px;
	color: inherit;
	font-size: inherit;
}

#scc-root .scc-cat details {
	margin-top: 8px;
}

#scc-root .scc-cat summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--scc-link);
	font-size: calc(var(--scc-font-size) - 1px);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

#scc-root .scc-cat summary::-webkit-details-marker {
	display: none;
}

#scc-root .scc-cat summary::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

#scc-root .scc-cat details[open] summary::before {
	transform: rotate(45deg);
}

#scc-root .scc-cookie-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

#scc-root .scc-cookie-list code {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.14);
	color: var(--scc-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
}

#scc-root .scc-badge {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(22, 163, 74, 0.12);
	background: color-mix(in srgb, var(--scc-toggle-on) 14%, transparent);
	color: var(--scc-toggle-on);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

#scc-root .scc-consent-id {
	margin-top: 14px;
	color: var(--scc-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	opacity: 0.6;
	word-break: break-all;
}

/* Switch */
#scc-root .scc-switch {
	position: relative;
	display: inline-flex;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}

#scc-root .scc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#scc-root .scc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--scc-toggle-off);
	transition: background-color 0.2s ease;
}

#scc-root .scc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

#scc-root .scc-switch input:checked + .scc-switch__track {
	background: var(--scc-toggle-on);
}

#scc-root .scc-switch input:checked + .scc-switch__track::after {
	transform: translateX(20px);
}

#scc-root .scc-switch input:focus-visible + .scc-switch__track {
	outline: 2px solid var(--scc-link);
	outline-offset: 2px;
}

#scc-root .scc-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ------------------------------------------------------------ floating button */

#scc-root .scc-floating {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: var(--scc-z);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--scc-floating-bg);
	color: var(--scc-floating-icon);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
	cursor: pointer;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease;
}

#scc-root .scc-floating.is-visible {
	opacity: 1;
	transform: none;
}

#scc-root .scc-floating--right {
	left: auto;
	right: 20px;
}

#scc-root .scc-floating svg {
	width: 24px;
	height: 24px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	#scc-root.scc-layout-bar-bottom .scc-banner__inner,
	#scc-root.scc-layout-bar-top .scc-banner__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	#scc-root.scc-layout-bar-bottom .scc-banner__actions,
	#scc-root.scc-layout-bar-top .scc-banner__actions {
		justify-content: flex-end;
	}
}

@media (max-width: 782px) {
	.admin-bar #scc-root.scc-layout-bar-top .scc-banner {
		top: 46px;
	}
}

@media (max-width: 640px) {
	#scc-root.scc-layout-bar-bottom .scc-banner,
	#scc-root.scc-layout-box-left .scc-banner,
	#scc-root.scc-layout-box-right .scc-banner {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		border-width: 1px 0 0;
		border-radius: var(--scc-radius) var(--scc-radius) 0 0;
	}

	#scc-root.scc-layout-bar-top .scc-banner {
		border-radius: 0 0 var(--scc-radius) var(--scc-radius);
	}

	#scc-root.scc-layout-box-center .scc-banner {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
	}

	#scc-root .scc-banner__inner,
	#scc-root.scc-layout-box-left .scc-banner__inner,
	#scc-root.scc-layout-box-right .scc-banner__inner,
	#scc-root.scc-layout-box-center .scc-banner__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	#scc-root.scc-has-close .scc-banner__inner {
		padding-right: 16px;
	}

	#scc-root.scc-has-close .scc-banner__title {
		padding-right: 36px;
	}

	#scc-root .scc-banner__content {
		flex-direction: column;
		gap: 10px;
	}

	#scc-root .scc-banner__icon {
		display: none;
	}

	#scc-root .scc-banner__title {
		font-size: calc(var(--scc-font-size) + 2px);
	}

	#scc-root .scc-banner__desc {
		font-size: calc(var(--scc-font-size) - 0.5px);
	}

	#scc-root .scc-banner__actions,
	#scc-root.scc-layout-bar-bottom .scc-banner__actions,
	#scc-root.scc-layout-bar-top .scc-banner__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	#scc-root .scc-banner__actions .scc-btn {
		width: 100%;
		padding: 10px 12px;
		white-space: normal;
	}

	#scc-root .scc-banner__actions .scc-btn--settings {
		grid-column: 1 / -1;
		order: 3;
	}

	#scc-root .scc-modal {
		align-items: flex-end;
		padding: 0;
	}

	#scc-root .scc-modal__dialog {
		max-width: none;
		max-height: 92vh;
		border-width: 1px 0 0;
		border-radius: var(--scc-radius) var(--scc-radius) 0 0;
	}

	#scc-root.scc-anim .scc-modal__dialog {
		transform: translateY(40px);
	}

	#scc-root .scc-modal__header {
		padding: 16px;
	}

	#scc-root .scc-modal__body {
		padding: 16px;
	}

	#scc-root .scc-modal__footer {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}

	#scc-root .scc-modal__footer .scc-btn {
		width: 100%;
		padding: 10px 12px;
		white-space: normal;
	}

	#scc-root .scc-modal__footer .scc-btn--settings {
		grid-column: 1 / -1;
		order: 3;
		margin-right: 0;
	}

	#scc-root .scc-cat {
		padding: 12px 14px;
	}

	#scc-root .scc-floating {
		bottom: 14px;
		left: 14px;
		width: 44px;
		height: 44px;
	}

	#scc-root .scc-floating--right {
		left: auto;
		right: 14px;
	}

	body.sticky-toolbar-on #scc-root .scc-floating {
		bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#scc-root *,
	#scc-root *::before,
	#scc-root *::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	#scc-root {
		display: none !important;
	}
}
