/*
 * Every text-bearing rule below sets an explicit `color`, and the ones
 * controlling buttons/selects/backgrounds use `!important`. This is
 * deliberate: the widget used to only set `background`, trusting the
 * theme to supply readable text color by inheritance — but if a theme's
 * global text color is light (common on dark-hero/dark-nav themes), that
 * white text lands on our white button/select backgrounds and becomes
 * invisible. Setting every color explicitly makes the widget look the
 * same regardless of what theme it's dropped into.
 */

.ldtk-widget {
	max-width: 560px;
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #d8dce1;
	border-radius: 10px;
	background: #fafbfc !important;
	color: #1f2937 !important;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.ldtk-widget *,
.ldtk-widget *::before,
.ldtk-widget *::after {
	box-sizing: border-box;
}

.ldtk-widget .ldtk-disclaimer {
	font-size: 0.85em;
	color: #4b5563 !important;
	background: #eef0f3 !important;
	border-left: 3px solid #8892a0;
	padding: 0.6em 0.9em;
	margin-bottom: 1.2em;
	border-radius: 4px;
}

.ldtk-question {
	margin: 0 0 0.8em;
	font-size: 1.15em;
	font-weight: 600;
	color: #111827 !important;
}

.ldtk-options,
.ldtk-results {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.ldtk-option-button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.7em 1em;
	border: 1px solid #c7cdd6 !important;
	border-radius: 8px;
	background: #ffffff !important;
	color: #1f2937 !important;
	cursor: pointer;
	font-size: 0.98em;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ldtk-option-button:hover,
.ldtk-option-button:focus {
	border-color: #2563eb !important;
	background: #f5f8ff !important;
	color: #1e3a8a !important;
	outline: none;
}

.ldtk-back-link,
.ldtk-restart-link {
	display: inline-block;
	background: none !important;
	border: none;
	color: #2563eb !important;
	cursor: pointer;
	padding: 0;
	margin-bottom: 0.8em;
	font-size: 0.9em;
	font-family: inherit;
	text-decoration: underline;
}

.ldtk-back-link:hover,
.ldtk-restart-link:hover {
	color: #1d4ed8 !important;
}

.ldtk-restart-link {
	margin-top: 1em;
	margin-bottom: 0;
}

.ldtk-result-card {
	border: 1px solid #d8dce1;
	border-radius: 8px;
	padding: 1em;
	background: #ffffff !important;
	color: #1f2937 !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
}

.ldtk-result-title {
	font-weight: 600;
	font-size: 1.02em;
	color: #111827 !important;
}

.ldtk-result-note {
	font-size: 0.85em;
	color: #4b5563 !important;
	margin-top: 0.4em;
}

.ldtk-button {
	display: inline-block;
	background: #2563eb !important;
	color: #ffffff !important;
	padding: 0.55em 1.1em;
	border-radius: 6px;
	border: none;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
	font-family: inherit;
}

.ldtk-button:hover {
	background: #1d4ed8 !important;
	color: #ffffff !important;
}

.ldtk-label {
	display: block;
	font-weight: 600;
	margin: 0.8em 0 0.3em;
	font-size: 0.92em;
	color: #111827 !important;
}

.ldtk-label:first-of-type {
	margin-top: 0;
}

.ldtk-select {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid #c7cdd6 !important;
	border-radius: 6px;
	font-size: 0.98em;
	font-family: inherit;
	background: #ffffff !important;
	color: #1f2937 !important;
}

.ldtk-select option {
	color: #1f2937;
	background: #ffffff;
}

.ldtk-output {
	margin-top: 1.2em;
}

.ldtk-output .ldtk-result-title {
	font-size: 1.1em;
	color: #1e3a8a !important;
}
