/**
 * Frontend styles for the WS Form GDPR Consent field.
 * Default stays close to WS Form. Optional styles add a sober premium look.
 */
.wsfgc-field {
	--wsfgc-accent: #2563eb;
	--wsfgc-border: rgba(15, 23, 42, 0.14);
	--wsfgc-muted: #646970;
	--wsfgc-surface: #ffffff;
	--wsfgc-surface-soft: #f8fbff;
	margin: 0;
	line-height: 1;
}

.wsfgc-label {
	display: flex;
	align-items: flex-start;
	gap: 0.78rem;
	line-height: 1.45;
	cursor: pointer;
	max-width: 100%;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wsfgc-label .wsfgc-field {
	flex: 0 0 auto;
	margin-top: 0.18em;
}

.wsfgc-label .wsfgc-text {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: inherit;
}

.wsfgc-label .wsfgc-required {
	flex: 0 0 auto;
	color: #d63638;
	font-weight: 800;
	line-height: 1.2;
	margin-left: 0.15rem;
}

.wsfgc-label input[type="checkbox"] {
	width: 1.15rem;
	height: 1.15rem;
	min-width: 1.15rem;
	min-height: 1.15rem;
	margin: 0;
	cursor: pointer;
	accent-color: var(--wsfgc-accent);
	box-shadow: none;
	outline: 0;
	transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.wsfgc-label input[type="checkbox"]:focus,
.wsfgc-label input[type="checkbox"]:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.10);
}

.wsfgc-label input[type="checkbox"]:checked {
	animation: wsfgc-check-pop 180ms ease-out;
}

.wsfgc-text a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wsfgc-description {
	margin: 0.55rem 0 0 calc(1.15rem + 0.78rem);
	font-size: 0.92em;
	line-height: 1.45;
	color: var(--wsfgc-muted);
}

.wsfgc-label.wsfgc-style-minimal {
	gap: 0.58rem;
}

.wsfgc-label.wsfgc-style-minimal + .wsfgc-description {
	margin-left: calc(1.15rem + 0.58rem);
}

.wsfgc-label.wsfgc-style-default,
.wsfgc-label.wsfgc-style-card,
.wsfgc-label.wsfgc-style-highlighted {
	padding: 1rem 1.1rem;
	border: 1px solid var(--wsfgc-border);
	border-radius: 14px;
	background: var(--wsfgc-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wsfgc-label.wsfgc-style-default:hover,
.wsfgc-label.wsfgc-style-card:hover,
.wsfgc-label.wsfgc-style-highlighted:hover,
.wsfgc-label.wsfgc-style-default:focus-within,
.wsfgc-label.wsfgc-style-card:focus-within,
.wsfgc-label.wsfgc-style-highlighted:focus-within {
	border-color: rgba(37, 99, 235, 0.38);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.wsfgc-label.wsfgc-style-default:hover,
.wsfgc-label.wsfgc-style-card:hover,
.wsfgc-label.wsfgc-style-highlighted:hover {
	transform: translateY(-1px);
}

.wsfgc-label.wsfgc-style-card {
	position: relative;
	padding: 1.15rem 1.2rem;
	border: 1px solid rgba(37, 99, 235, 0.24);
	background: linear-gradient(180deg, #ffffff 0%, var(--wsfgc-surface-soft) 100%);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
	overflow: hidden;
}

.wsfgc-label.wsfgc-style-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wsfgc-accent), #60a5fa);
}

.wsfgc-label.wsfgc-style-card input[type="checkbox"],
.wsfgc-label.wsfgc-style-highlighted input[type="checkbox"] {
	width: 1.3rem;
	height: 1.3rem;
	min-width: 1.3rem;
	min-height: 1.3rem;
}

.wsfgc-label.wsfgc-style-highlighted {
	border-color: rgba(37, 99, 235, 0.30);
	background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wsfgc-label.wsfgc-style-highlighted::after {
	content: "";
	flex: 0 0 8px;
	align-self: stretch;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.18);
	order: -1;
}

.wsfgc-label.wsfgc-style-default + .wsfgc-description,
.wsfgc-label.wsfgc-style-card + .wsfgc-description,
.wsfgc-label.wsfgc-style-highlighted + .wsfgc-description {
	margin-left: 0;
	padding: 0 1.1rem;
}

.wsfgc-layout-inline.wsfgc-label {
	display: inline-flex;
	width: auto;
}

.wsfgc-layout-block.wsfgc-label {
	display: flex;
	width: 100%;
}

@keyframes wsfgc-check-pop {
	0% { transform: scale(0.86); }
	58% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.wsfgc-label,
	.wsfgc-label input[type="checkbox"] {
		transition: none;
	}

	.wsfgc-label input[type="checkbox"]:checked {
		animation: none;
	}
}

@media (max-width: 640px) {
	.wsfgc-label {
		gap: 0.65rem;
	}

	.wsfgc-label.wsfgc-style-default,
	.wsfgc-label.wsfgc-style-card,
	.wsfgc-label.wsfgc-style-highlighted {
		padding: 0.9rem;
		border-radius: 12px;
	}

	.wsfgc-label.wsfgc-style-highlighted::after {
		flex-basis: 6px;
	}

	.wsfgc-description,
	.wsfgc-label.wsfgc-style-default + .wsfgc-description,
	.wsfgc-label.wsfgc-style-card + .wsfgc-description,
	.wsfgc-label.wsfgc-style-highlighted + .wsfgc-description,
	.wsfgc-label.wsfgc-style-minimal + .wsfgc-description {
		margin-left: 0;
		padding: 0;
	}
}

/* Additional sober premium consent styles. */
.wsfgc-label.wsfgc-style-soft,
.wsfgc-label.wsfgc-style-bordered,
.wsfgc-label.wsfgc-style-compact,
.wsfgc-label.wsfgc-style-legal,
.wsfgc-label.wsfgc-style-success,
.wsfgc-label.wsfgc-style-glass {
	padding: 1rem 1.1rem;
	border: 1px solid var(--wsfgc-border);
	border-radius: 14px;
	background: var(--wsfgc-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wsfgc-label.wsfgc-style-soft:hover,
.wsfgc-label.wsfgc-style-bordered:hover,
.wsfgc-label.wsfgc-style-compact:hover,
.wsfgc-label.wsfgc-style-legal:hover,
.wsfgc-label.wsfgc-style-success:hover,
.wsfgc-label.wsfgc-style-glass:hover,
.wsfgc-label.wsfgc-style-soft:focus-within,
.wsfgc-label.wsfgc-style-bordered:focus-within,
.wsfgc-label.wsfgc-style-compact:focus-within,
.wsfgc-label.wsfgc-style-legal:focus-within,
.wsfgc-label.wsfgc-style-success:focus-within,
.wsfgc-label.wsfgc-style-glass:focus-within {
	border-color: rgba(37, 99, 235, 0.38);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.wsfgc-label.wsfgc-style-soft:hover,
.wsfgc-label.wsfgc-style-bordered:hover,
.wsfgc-label.wsfgc-style-compact:hover,
.wsfgc-label.wsfgc-style-legal:hover,
.wsfgc-label.wsfgc-style-success:hover,
.wsfgc-label.wsfgc-style-glass:hover {
	transform: translateY(-1px);
}

.wsfgc-label.wsfgc-style-soft {
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
	border-color: rgba(37, 99, 235, 0.18);
}

.wsfgc-label.wsfgc-style-bordered {
	border-width: 2px;
	border-color: rgba(15, 23, 42, 0.20);
	box-shadow: none;
}

.wsfgc-label.wsfgc-style-bordered:focus-within {
	border-color: var(--wsfgc-accent);
}

.wsfgc-label.wsfgc-style-compact {
	padding: 0.72rem 0.85rem;
	gap: 0.55rem;
	border-radius: 10px;
	font-size: 0.95em;
}

.wsfgc-label.wsfgc-style-compact + .wsfgc-description {
	margin-top: 0.4rem;
	font-size: 0.88em;
}

.wsfgc-label.wsfgc-style-legal {
	position: relative;
	padding-left: 1.25rem;
	background: #ffffff;
	border-style: dashed;
	border-color: rgba(100, 116, 139, 0.45);
}

.wsfgc-label.wsfgc-style-legal::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: 14px 0 0 14px;
	background: rgba(15, 23, 42, 0.18);
}

.wsfgc-label.wsfgc-style-success {
	--wsfgc-accent: #16a34a;
	border-color: rgba(22, 163, 74, 0.24);
	background: linear-gradient(180deg, rgba(240, 253, 244, 0.88) 0%, #ffffff 100%);
}

.wsfgc-label.wsfgc-style-success input[type="checkbox"]:checked + .wsfgc-text,
.wsfgc-label.wsfgc-style-success:has(input[type="checkbox"]:checked) .wsfgc-text {
	color: #166534;
}

.wsfgc-label.wsfgc-style-glass {
	background: rgba(255, 255, 255, 0.78);
	border-color: rgba(148, 163, 184, 0.32);
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
	backdrop-filter: blur(10px);
}

.wsfgc-label.wsfgc-style-soft + .wsfgc-description,
.wsfgc-label.wsfgc-style-bordered + .wsfgc-description,
.wsfgc-label.wsfgc-style-compact + .wsfgc-description,
.wsfgc-label.wsfgc-style-legal + .wsfgc-description,
.wsfgc-label.wsfgc-style-success + .wsfgc-description,
.wsfgc-label.wsfgc-style-glass + .wsfgc-description {
	margin-left: 0;
	padding: 0 1.1rem;
}

@media (max-width: 640px) {
	.wsfgc-label.wsfgc-style-soft,
	.wsfgc-label.wsfgc-style-bordered,
	.wsfgc-label.wsfgc-style-compact,
	.wsfgc-label.wsfgc-style-legal,
	.wsfgc-label.wsfgc-style-success,
	.wsfgc-label.wsfgc-style-glass {
		padding: 0.9rem;
		border-radius: 12px;
	}

	.wsfgc-label.wsfgc-style-soft + .wsfgc-description,
	.wsfgc-label.wsfgc-style-bordered + .wsfgc-description,
	.wsfgc-label.wsfgc-style-compact + .wsfgc-description,
	.wsfgc-label.wsfgc-style-legal + .wsfgc-description,
	.wsfgc-label.wsfgc-style-success + .wsfgc-description,
	.wsfgc-label.wsfgc-style-glass + .wsfgc-description {
		padding: 0;
	}
}
