/**
 * DL Work Licence Checker — frontend styles.
 * Scoped entirely under .dl-work-licence-checker; variables are set on
 * that element only (never :root), so nothing here can leak into or be
 * affected by the rest of the site's CSS, theme, or Elementor.
 */

.dl-work-licence-checker {
	--dl-wlc-bg: #f7f5ee;
	--dl-wlc-ink: #122019;
	--dl-wlc-body: #4c5449;
	--dl-wlc-green: #0f8a4f;
	--dl-wlc-green-dark: #0b4d2e;
	--dl-wlc-border: #e2ddd0;
	--dl-wlc-opt-border: #d7ddd2;
	--dl-wlc-success-bg: #eaf4ea;
	--dl-wlc-fail-bg: #f6e5e2;
	--dl-wlc-fail-text: #a8503a;
	--dl-wlc-note-bg: #fdf6e3;
	--dl-wlc-note-border: #ecd9a0;
	--dl-wlc-radius-lg: 18px;
	--dl-wlc-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--dl-wlc-font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	display: block;
	max-width: 760px;
	margin: 0 auto;
	font-family: var(--dl-wlc-font-sans);
	color: var(--dl-wlc-ink);
	box-sizing: border-box;
}

.dl-work-licence-checker *,
.dl-work-licence-checker *::before,
.dl-work-licence-checker *::after {
	box-sizing: border-box;
}

.dl-work-licence-checker.dl-wlc-unconfigured {
	background: #fff;
	border: 1px dashed var(--dl-wlc-border);
	border-radius: var(--dl-wlc-radius-lg);
	padding: 24px;
	color: var(--dl-wlc-body);
	font-size: 14.5px;
	text-align: center;
}

.dl-work-licence-checker .dl-wlc-card {
	background: #fff;
	border: 1px solid var(--dl-wlc-border);
	border-radius: var(--dl-wlc-radius-lg);
	padding: 32px;
	box-shadow: 0 10px 30px rgba(6, 48, 29, 0.07);
}

/* Optional header */

.dl-work-licence-checker .dl-wlc-title {
	font-family: var(--dl-wlc-font-serif);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--dl-wlc-ink);
	margin: 0 0 18px;
}

.dl-work-licence-checker .dl-wlc-subtitle {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--dl-wlc-body);
	margin: -12px 0 18px;
}

/* Progress bar */

.dl-work-licence-checker .dl-wlc-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
}

.dl-work-licence-checker .dl-wlc-progress-seg {
	height: 5px;
	flex: 1;
	border-radius: 3px;
	background: var(--dl-wlc-border);
}

.dl-work-licence-checker .dl-wlc-progress-seg.dl-wlc-progress-filled {
	background: var(--dl-wlc-green);
}

.dl-work-licence-checker .dl-wlc-step-label {
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dl-wlc-green);
	font-weight: 700;
}

.dl-work-licence-checker .dl-wlc-question-text {
	font-family: var(--dl-wlc-font-serif);
	font-size: 25px;
	font-weight: 500;
	color: var(--dl-wlc-ink);
	margin: 8px 0 6px;
}

/* Options */

.dl-work-licence-checker .dl-wlc-options {
	margin-top: 12px;
}

.dl-work-licence-checker .dl-wlc-option {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--dl-wlc-bg);
	border: 1.5px solid var(--dl-wlc-opt-border);
	border-radius: 12px;
	padding: 16px 18px;
	font-size: 16px;
	font-weight: 600;
	color: var(--dl-wlc-ink);
	cursor: pointer;
	font-family: var(--dl-wlc-font-sans);
	margin-top: 10px;
	transition: border-color 0.15s ease, background 0.15s ease;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	line-height: 1.4;
}

.dl-work-licence-checker .dl-wlc-option:hover {
	border-color: var(--dl-wlc-green);
}

.dl-work-licence-checker .dl-wlc-option:focus-visible {
	outline: 2px solid var(--dl-wlc-green-dark);
	outline-offset: 2px;
}

/* Result */

.dl-work-licence-checker .dl-wlc-badge {
	display: inline-block;
	font-weight: 700;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: 0.04em;
}

.dl-work-licence-checker .dl-wlc-badge.dl-wlc-badge-success {
	background: var(--dl-wlc-success-bg);
	color: var(--dl-wlc-green);
}

.dl-work-licence-checker .dl-wlc-badge.dl-wlc-badge-fail {
	background: var(--dl-wlc-fail-bg);
	color: var(--dl-wlc-fail-text);
}

.dl-work-licence-checker .dl-wlc-result-heading {
	font-family: var(--dl-wlc-font-serif);
	font-size: 27px;
	font-weight: 500;
	color: var(--dl-wlc-ink);
	margin: 14px 0 0;
}

.dl-work-licence-checker .dl-wlc-result-message {
	font-size: 16px;
	line-height: 1.7;
	color: var(--dl-wlc-body);
	margin-top: 12px;
	white-space: pre-line;
}

.dl-work-licence-checker .dl-wlc-note {
	font-size: 15px;
	line-height: 1.65;
	color: var(--dl-wlc-body);
	margin-top: 12px;
	background: var(--dl-wlc-note-bg);
	border: 1px solid var(--dl-wlc-note-border);
	border-radius: 10px;
	padding: 12px 14px;
}

.dl-work-licence-checker .dl-wlc-disclaimer {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--dl-wlc-body);
	margin-top: 18px;
}

/* CTA */

.dl-work-licence-checker .dl-wlc-cta {
	margin-top: 22px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.dl-work-licence-checker .dl-wlc-btn {
	display: inline-block;
	font-family: var(--dl-wlc-font-sans);
	font-weight: 700;
	font-size: 16px;
	border-radius: 999px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dl-work-licence-checker .dl-wlc-btn:focus-visible {
	outline: 2px solid var(--dl-wlc-green-dark);
	outline-offset: 2px;
}

.dl-work-licence-checker .dl-wlc-btn-primary {
	background: var(--dl-wlc-green);
	color: #fff;
	padding: 14px 24px;
	border: 1.5px solid var(--dl-wlc-green);
}

.dl-work-licence-checker .dl-wlc-btn-primary:hover {
	background: var(--dl-wlc-green-dark);
	border-color: var(--dl-wlc-green-dark);
	color: #fff;
}

.dl-work-licence-checker .dl-wlc-btn-secondary {
	background: transparent;
	color: var(--dl-wlc-green);
	border: 1.5px solid var(--dl-wlc-green);
	padding: 13px 24px;
}

.dl-work-licence-checker .dl-wlc-btn-secondary:hover {
	background: var(--dl-wlc-success-bg);
}

.dl-work-licence-checker .dl-wlc-restart {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	margin-top: 18px;
	background: none;
	border: none;
	color: var(--dl-wlc-green);
	font-family: var(--dl-wlc-font-sans);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.dl-work-licence-checker .dl-wlc-restart:hover {
	color: var(--dl-wlc-green-dark);
	text-decoration: underline;
}

.dl-work-licence-checker .dl-wlc-restart:focus-visible {
	outline: 2px solid var(--dl-wlc-green-dark);
	outline-offset: 2px;
}

/* Tablet */

@media (max-width: 720px) {
	.dl-work-licence-checker .dl-wlc-card {
		padding: 26px;
	}

	.dl-work-licence-checker .dl-wlc-question-text {
		font-size: 22px;
	}
}

/* Mobile */

@media (max-width: 480px) {
	.dl-work-licence-checker .dl-wlc-card {
		padding: 20px;
		border-radius: 14px;
	}

	.dl-work-licence-checker .dl-wlc-question-text {
		font-size: 20px;
	}

	.dl-work-licence-checker .dl-wlc-result-heading {
		font-size: 22px;
	}

	.dl-work-licence-checker .dl-wlc-option {
		padding: 14px 16px;
		font-size: 15px;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
		line-height: 1.4;
	}

	.dl-work-licence-checker .dl-wlc-cta {
		flex-direction: column;
	}

	.dl-work-licence-checker .dl-wlc-btn {
		width: 100%;
	}
}