/* ──────────────────────────────────────────────────────────────────────────────
 * APPLY MODAL — data-driven, matches approved design
 *
 * Structure:
 *   .dbw-modal-backdrop   → fullscreen overlay
 *     .dbw-modal          → dialog card (primary-tinted shadow)
 *       .dbw-modal__header    → solid primary header + title + close
 *       .dbw-modal__success   → success state (replaces body)
 *       .dbw-modal__body      → progress + steps + footer
 *
 * Color roles:
 *   --wp--preset--color--primary  → header background, submit CTA
 *   --wp--preset--color--accent   → progress fill, eyebrow, highlights
 *   heading font (serif) is used for modal titles
 * ────────────────────────────────────────────────────────────────────────── */

:root {
	--dbw-modal-primary: var(--wp--preset--color--primary, #00376b);
	--dbw-modal-accent: var(--wp--preset--color--accent, #e8a020);
	--dbw-modal-text: var(--wp--preset--color--dark-grey, #1a1a1a);
	--dbw-modal-muted: #6b7280;
	--dbw-modal-border: rgba(0, 0, 0, 0.1);
	--dbw-modal-surface: #ffffff;
	--dbw-modal-radius: 14px;
	--dbw-modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dbw-modal-open {
	overflow: hidden;
}

/* Hide the modal wrapper until Alpine boots and removes the attribute.
 * Without this rule [x-cloak] is a no-op and the modal markup flashes
 * for a frame on hard reload before x-show evaluates. */
[x-cloak] {
	display: none !important;
}

.dbw-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: color-mix(
		in srgb,
		var(--dbw-modal-primary) 42%,
		rgba(0, 0, 0, 0.55)
	);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.dbw-modal {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	background: var(--dbw-modal-surface);
	border-radius: var(--dbw-modal-radius);
	overflow: hidden;
	/* Primary-tinted shadow — gives the lightbox a subtle brand glow */
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--dbw-modal-primary) 8%, transparent),
		0 32px 64px -16px
			color-mix(in srgb, var(--dbw-modal-primary) 45%, rgba(0, 0, 0, 0.5)),
		0 16px 32px -8px rgba(0, 0, 0, 0.25);
}

/* Enter / leave transitions */

.dbw-modal-anim {
	transition:
		transform 0.32s var(--dbw-modal-ease),
		opacity 0.2s ease;
}

.dbw-modal-anim--from {
	opacity: 0;
	transform: translateY(24px) scale(0.96);
}

.dbw-modal-anim--to {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ── Header (solid primary, title + close) ────────────────────────────────── */

.dbw-modal__header {
	background: var(--dbw-modal-primary);
	color: #fff;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
}

.dbw-modal__header-title {
	font-family: var(
		--wp--preset--font-family--serif-heading,
		"Playfair Display",
		serif
	);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}

.dbw-modal__close {
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background 0.15s ease,
		transform 0.18s var(--dbw-modal-ease);
}

.dbw-modal__close:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: rotate(90deg);
}

.dbw-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* The host theme's SVG reset can drop stroke/fill on inline SVGs and
 * leave the close button looking like an empty circle. Force the X back
 * in with !important on the actual primitives. */
.dbw-modal__close svg,
.dbw-modal__close svg * {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.4 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

/* ── Body (progress + steps + footer) ─────────────────────────────────────── */

.dbw-modal__body {
	padding: 24px 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
	overflow-y: auto;
	min-height: 320px;
	overscroll-behavior: contain;
}

.dbw-modal__body::-webkit-scrollbar {
	width: 6px;
}
.dbw-modal__body::-webkit-scrollbar-track {
	background: transparent;
}
.dbw-modal__body::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.12);
	border-radius: 3px;
}

/* ── Progress (linear, accent-filled) ─────────────────────────────────────── */

.dbw-modal__progress {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dbw-modal__progress-track {
	height: 4px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 100px;
	overflow: hidden;
}

.dbw-modal__progress-fill {
	height: 100%;
	background: var(--dbw-modal-accent);
	border-radius: 100px;
	transition: width 0.45s var(--dbw-modal-ease);
}

.dbw-modal__step-counter {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dbw-modal-muted);
}

/* ── Steps (stacked absolute surface so transitions overlap cleanly) ──────── */

.dbw-modal__steps {
	position: relative;
	flex: 1;
	min-height: 220px;
}

.dbw-modal__step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dbw-step-anim {
	transition:
		opacity 0.28s ease,
		transform 0.32s var(--dbw-modal-ease);
}

.dbw-step-anim--from {
	opacity: 0;
	transform: translateY(12px);
}

.dbw-step-anim--to {
	opacity: 1;
	transform: translateY(0);
}

.dbw-modal__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dbw-modal-accent);
	margin: 0;
	line-height: 1.2;
}

.dbw-modal__title {
	font-family: var(
		--wp--preset--font-family--serif-heading,
		"Playfair Display",
		serif
	);
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--dbw-modal-primary);
	margin: 0;
	line-height: 1.15;
}

.dbw-modal__subtitle {
	font-size: 14px;
	color: var(--dbw-modal-muted);
	margin: 0;
	line-height: 1.55;
}

/* ── Step 1: Benefits read-only list ──────────────────────────────────────── */

.dbw-modal__benefits {
	list-style: none;
	padding: 0;
	margin: 6px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dbw-modal__benefit {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	background: #f5f5f5;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--dbw-modal-text);
	line-height: 1.4;
}

.dbw-modal__benefit-check {
	color: var(--dbw-modal-accent);
	flex-shrink: 0;
}

/* ── Single-choice options ────────────────────────────────────────────────── */

.dbw-modal__choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

/* Choice button — scoped + double-tag selectors so the host theme's
 * generic `button:hover { color/background … }` resets can't bleed in
 * (we kept losing the option text on hover otherwise). Every visual
 * property is re-asserted in :hover so nothing inherits. */
.dbw-modal-backdrop .dbw-modal__choice,
.dbw-modal-backdrop button.dbw-modal__choice {
	width: 100%;
	padding: 15px 18px;
	border: 1.5px solid var(--dbw-modal-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--dbw-modal-text);
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		color 0.15s ease,
		transform 0.18s var(--dbw-modal-ease);
}

.dbw-modal-backdrop .dbw-modal__choice:hover,
.dbw-modal-backdrop button.dbw-modal__choice:hover,
.dbw-modal-backdrop .dbw-modal__choice:focus,
.dbw-modal-backdrop button.dbw-modal__choice:focus {
	border-color: color-mix(
		in srgb,
		var(--dbw-modal-primary) 35%,
		var(--dbw-modal-border)
	);
	background: color-mix(in srgb, var(--dbw-modal-primary) 3%, #fff);
	color: var(--dbw-modal-text);
	transform: translateY(-1px);
	box-shadow: none;
}

.dbw-modal-backdrop .dbw-modal__choice.is-selected,
.dbw-modal-backdrop button.dbw-modal__choice.is-selected,
.dbw-modal-backdrop .dbw-modal__choice.is-selected:hover,
.dbw-modal-backdrop button.dbw-modal__choice.is-selected:hover {
	border-color: var(--dbw-modal-primary);
	background: color-mix(in srgb, var(--dbw-modal-primary) 7%, #fff);
	color: var(--dbw-modal-primary);
	font-weight: 600;
	box-shadow: 0 2px 8px
		color-mix(in srgb, var(--dbw-modal-primary) 16%, transparent);
}

.dbw-modal-backdrop .dbw-modal__choice:focus-visible,
.dbw-modal-backdrop button.dbw-modal__choice:focus-visible {
	outline: 2px solid var(--dbw-modal-primary);
	outline-offset: 2px;
}

/* ── Form fields (labels ABOVE input, per design) ─────────────────────────── */

.dbw-modal__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
}

.dbw-modal__row {
	display: grid;
	gap: 12px;
}

.dbw-modal__row--two {
	grid-template-columns: 1fr 1fr;
}

.dbw-modal__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dbw-modal__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--dbw-modal-primary);
	line-height: 1.3;
}

.dbw-modal__required {
	color: var(--dbw-modal-accent);
	font-style: normal;
	font-weight: 700;
	margin-left: 2px;
}

.dbw-modal__field input[type="text"],
.dbw-modal__field input[type="tel"],
.dbw-modal__field input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--dbw-modal-border);
	border-radius: 10px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--dbw-modal-text);
	background: #f7f7f9;
	box-sizing: border-box;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		box-shadow 0.15s ease;
	line-height: 1.5;
}

.dbw-modal__field input::placeholder {
	color: #a1a1aa;
}

.dbw-modal__field input:focus {
	outline: none;
	border-color: var(--dbw-modal-primary);
	background: #fff;
	box-shadow: 0 0 0 3px
		color-mix(in srgb, var(--dbw-modal-primary) 12%, transparent);
}

.dbw-modal__field-error {
	margin: 0;
	font-size: 12.5px;
	color: #c0392b;
	line-height: 1.4;
}

/* ── Upload step ──────────────────────────────────────────────────────────── */

.dbw-modal__upload-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.dbw-modal__upload {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	border: 1.5px dashed var(--dbw-modal-border);
	border-radius: 12px;
	background: #f7f7f9;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		transform 0.18s var(--dbw-modal-ease);
}

.dbw-modal__upload:hover {
	border-color: var(--dbw-modal-primary);
	background: color-mix(in srgb, var(--dbw-modal-primary) 4%, #fff);
	transform: translateY(-1px);
}

.dbw-modal__upload.has-file {
	border-style: solid;
	border-color: var(--dbw-modal-primary);
	background: color-mix(in srgb, var(--dbw-modal-primary) 6%, #fff);
}

.dbw-modal__upload.has-error {
	border-color: #c0392b;
	background: #fef2f2;
}

.dbw-modal__upload-icon {
	color: var(--dbw-modal-primary);
	flex-shrink: 0;
}

.dbw-modal__upload-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.dbw-modal__upload-text strong {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--dbw-modal-text);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dbw-modal__upload-text small {
	font-size: 12px;
	color: var(--dbw-modal-muted);
	font-weight: 500;
}

/* ── DSGVO consent checkbox ───────────────────────────────────────────────── */

.dbw-modal__consent {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #f7f7f9;
	border-radius: 10px;
	border: 1.5px solid transparent;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dbw-modal-text);
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.dbw-modal__consent:has(input:checked) {
	border-color: var(--dbw-modal-primary);
	background: color-mix(in srgb, var(--dbw-modal-primary) 5%, #fff);
}

.dbw-modal__consent input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--dbw-modal-accent);
	cursor: pointer;
	flex-shrink: 0;
}

.dbw-modal__privacy {
	margin: 0;
	font-size: 12.5px;
	color: var(--dbw-modal-muted);
	line-height: 1.5;
}

.dbw-modal__privacy a {
	color: var(--dbw-modal-primary);
	text-decoration: underline;
}

/* ── Error ────────────────────────────────────────────────────────────────── */

.dbw-modal__error {
	margin: 0;
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	font-size: 13px;
	color: #c0392b;
	line-height: 1.5;
}

/* ── Footer / nav ─────────────────────────────────────────────────────────── */

.dbw-modal__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 4px;
}

.dbw-modal__nav-spacer {
	flex: 1;
}

/* Footer buttons — same scoped + double-tag pattern as the choice rows
 * so the host theme can't repaint them on hover. */
.dbw-modal-backdrop .dbw-modal__btn,
.dbw-modal-backdrop button.dbw-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: none;
	white-space: nowrap;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition:
		transform 0.18s var(--dbw-modal-ease),
		background 0.15s ease,
		box-shadow 0.18s ease,
		opacity 0.15s ease;
}

.dbw-modal-backdrop .dbw-modal__btn--primary,
.dbw-modal-backdrop button.dbw-modal__btn--primary {
	flex: 1;
	background: var(--dbw-modal-primary);
	color: #fff;
	box-shadow: 0 4px 16px
		color-mix(in srgb, var(--dbw-modal-primary) 25%, transparent);
}

.dbw-modal-backdrop .dbw-modal__btn--primary:hover:not(:disabled),
.dbw-modal-backdrop button.dbw-modal__btn--primary:hover:not(:disabled),
.dbw-modal-backdrop .dbw-modal__btn--primary:focus:not(:disabled),
.dbw-modal-backdrop button.dbw-modal__btn--primary:focus:not(:disabled) {
	background: var(--dbw-modal-primary);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px
		color-mix(in srgb, var(--dbw-modal-primary) 35%, transparent);
}

.dbw-modal-backdrop .dbw-modal__btn--primary:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

.dbw-modal-backdrop .dbw-modal__btn--primary:focus-visible {
	outline: 2px solid var(--dbw-modal-primary);
	outline-offset: 3px;
}

.dbw-modal-backdrop .dbw-modal__btn--ghost,
.dbw-modal-backdrop button.dbw-modal__btn--ghost {
	background: transparent;
	color: var(--dbw-modal-muted);
	padding: 13px 18px;
	box-shadow: none;
}

.dbw-modal-backdrop .dbw-modal__btn--ghost:hover,
.dbw-modal-backdrop button.dbw-modal__btn--ghost:hover,
.dbw-modal-backdrop .dbw-modal__btn--ghost:focus,
.dbw-modal-backdrop button.dbw-modal__btn--ghost:focus {
	color: var(--dbw-modal-primary);
	background: rgba(0, 0, 0, 0.04);
	box-shadow: none;
	transform: none;
}

.dbw-modal__btn--ghost:focus-visible {
	outline: 2px solid var(--dbw-modal-primary);
	outline-offset: 2px;
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */

.dbw-modal__spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dbw-spin 0.7s linear infinite;
	display: inline-block;
}

@keyframes dbw-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Success ──────────────────────────────────────────────────────────────── */

.dbw-modal__success {
	position: relative;            /* anchors the .dbw-confetti overlay */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 14px;
	padding: 48px 32px 40px;
	overflow: hidden;              /* keeps falling pieces inside the card */
}

.dbw-modal__success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dbw-modal-accent) 18%, #fff);
	color: var(--dbw-modal-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	animation: dbw-pop 0.5s var(--dbw-modal-ease) both;
}

@keyframes dbw-pop {
	0% {
		opacity: 0;
		transform: scale(0.6);
	}
	70% {
		transform: scale(1.08);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.dbw-modal__success-title {
	font-family: var(
		--wp--preset--font-family--serif-heading,
		"Playfair Display",
		serif
	);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--dbw-modal-primary);
	margin: 0;
	line-height: 1.2;
}

.dbw-modal__success-text {
	font-size: 15px;
	color: var(--dbw-modal-muted);
	line-height: 1.6;
	margin: 0;
	max-width: 380px;
}

/* Optional motivational line under the message — accent, slightly bolder
 * so the eye lands on it last, before the close button. */
.dbw-modal__success-cheer {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--dbw-modal-accent);
	line-height: 1.5;
	max-width: 380px;
}

.dbw-modal__success .dbw-modal__btn {
	margin-top: 12px;
	flex: 0 0 auto;
	padding-inline: 32px;
	position: relative;            /* keeps button above the confetti */
	z-index: 2;
}

/* ── Confetti overlay (success only) ──────────────────────────────────────
 * Pure CSS, no JS. 18 deterministic <span> pieces are emitted by
 * dbw_career_render_confetti() with inline left/delay/duration/color so the
 * pattern is the same on every render but the timing feels organic.
 *
 * The success block is position:relative + overflow:hidden, so all pieces
 * stay inside the rounded modal panel. */

.dbw-confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.dbw-confetti__piece {
	position: absolute;
	top: -16px;
	width: 8px;
	height: 14px;
	border-radius: 1px;
	opacity: 0;
	animation-name: dbw-confetti-fall;
	animation-timing-function: cubic-bezier(0.4, 0.5, 0.3, 1);
	animation-fill-mode: forwards;
	animation-iteration-count: 1;
	will-change: transform, opacity;
}

@keyframes dbw-confetti-fall {
	0% {
		transform: translate3d(0, -20px, 0) rotate(0deg);
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	100% {
		transform: translate3d(20px, 480px, 0) rotate(540deg);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dbw-confetti { display: none; }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
	/* Stay centered (not bottom-sheet) so the backdrop is visible on
	 * every side — matches the desktop framing on small screens. */
	.dbw-modal-backdrop {
		padding: 14px;
	}

	.dbw-modal {
		width: 100%;
		max-height: calc(100dvh - 28px);
		border-radius: var(--dbw-modal-radius);
	}

	.dbw-modal__body {
		padding: 20px 20px 18px;
	}

	.dbw-modal__row--two {
		grid-template-columns: 1fr;
	}

	.dbw-modal__title {
		font-size: 22px;
	}
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.dbw-modal-anim,
	.dbw-step-anim,
	.dbw-modal__choice,
	.dbw-modal__btn,
	.dbw-modal__close,
	.dbw-modal__upload,
	.dbw-modal__progress-fill {
		transition: none !important;
		animation: none !important;
	}
}

/* ── Job picker (site-wide modal first step) ──────────────────────────────── */

.dbw-modal__picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	max-height: 380px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
}

.dbw-modal__picker::-webkit-scrollbar {
	width: 6px;
}
.dbw-modal__picker::-webkit-scrollbar-track {
	background: transparent;
}
.dbw-modal__picker::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.12);
	border-radius: 3px;
}

/* Picker job row — same hardening pattern as .dbw-modal__choice. */
.dbw-modal-backdrop .dbw-modal__picker-job,
.dbw-modal-backdrop button.dbw-modal__picker-job {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid var(--dbw-modal-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--dbw-modal-primary);
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		color 0.15s ease,
		transform 0.18s var(--dbw-modal-ease);
}

.dbw-modal-backdrop .dbw-modal__picker-job:hover,
.dbw-modal-backdrop button.dbw-modal__picker-job:hover,
.dbw-modal-backdrop .dbw-modal__picker-job:focus,
.dbw-modal-backdrop button.dbw-modal__picker-job:focus {
	border-color: color-mix(
		in srgb,
		var(--dbw-modal-primary) 35%,
		var(--dbw-modal-border)
	);
	background: color-mix(in srgb, var(--dbw-modal-primary) 3%, #fff);
	color: var(--dbw-modal-primary);
	transform: translateY(-1px);
	box-shadow: none;
}

.dbw-modal-backdrop .dbw-modal__picker-job:focus-visible,
.dbw-modal-backdrop button.dbw-modal__picker-job:focus-visible {
	outline: 2px solid var(--dbw-modal-primary);
	outline-offset: 2px;
}

.dbw-modal__picker-job-arrow {
	color: var(--dbw-modal-accent);
	flex-shrink: 0;
}

.dbw-modal__picker-empty {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	color: var(--dbw-modal-muted);
	font-size: 14px;
	background: #f7f7f9;
	border-radius: 10px;
}
