/* THD Wholesale Application – front-end
   Everything is scoped under .thdwa and inherits the theme's font. */

.thdwa {
	--thdwa-accent: #025960;
	--thdwa-accent-rgb: 2, 89, 96;
	--thdwa-ink: #1c231f;
	--thdwa-muted: #5f6b65;
	--thdwa-line: #d7ddd9;
	--thdwa-line-strong: #b9c3bd;
	--thdwa-field: #f7f9f8;
	--thdwa-surface: #ffffff;
	--thdwa-error: #b3261e;
	--thdwa-error-bg: #fbeeed;
	--thdwa-warn-bg: #fff8e8;
	--thdwa-warn-ink: #6f4a08;
	--thdwa-radius: 14px;
	--thdwa-radius-sm: 8px;
	--thdwa-button-text: #ffffff;
	--thdwa-shadow: 0 1px 2px rgba(20, 30, 25, 0.05), 0 12px 32px -18px rgba(20, 30, 25, 0.25);
	--thdwa-font-body: inherit;
	--thdwa-font-heading: inherit;
	--thdwa-font-size: 16px;
	box-sizing: border-box;
	color: var(--thdwa-ink);
	font-family: var(--thdwa-font-body);
	font-size: var(--thdwa-font-size);
	line-height: 1.5;
	max-width: 780px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}
.thdwa *,
.thdwa *::before,
.thdwa *::after { box-sizing: inherit; }

/* Card ------------------------------------------------------------------ */
.thdwa-card {
	background: var(--thdwa-surface);
	border: 1px solid var(--thdwa-line);
	border-radius: var(--thdwa-radius);
	box-shadow: var(--thdwa-shadow);
	padding: clamp(24px, 4vw, 44px);
}
.thdwa-head { margin-bottom: 28px; }
.thdwa-title, .thdwa-section-title, .thdwa-form-heading {
	font-family: var(--thdwa-font-heading);
}
.thdwa-logo { display: block; height: 44px; width: auto; max-width: 240px; margin: 0 0 18px; }
.thdwa-title {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
	color: var(--thdwa-ink);
}
.thdwa-intro { margin: 0 0 14px; color: var(--thdwa-muted); font-size: 1.0625rem; }
.thdwa-intro p { margin: 0 0 10px; }
.thdwa-intro strong { color: var(--thdwa-ink); }

.thdwa-callout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--thdwa-warn-bg);
	color: var(--thdwa-warn-ink);
	border-radius: var(--thdwa-radius-sm);
	padding: 12px 14px;
	font-size: 0.9375rem;
	margin: 0;
}
.thdwa-callout p { margin: 0; }
.thdwa-callout-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.thdwa-callout-soft {
	background: rgba(var(--thdwa-accent-rgb), 0.08);
	color: var(--thdwa-ink);
	margin-bottom: 20px;
}
.thdwa-callout-soft a { color: var(--thdwa-accent); }

.thdwa-form-heading {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--thdwa-line);
}

/* Grid ------------------------------------------------------------------ */
.thdwa-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 18px;
}
.thdwa-col-full { grid-column: 1 / -1; }
.thdwa-col-half { grid-column: span 1; }
@media (max-width: 560px) {
	.thdwa-col-half { grid-column: 1 / -1; }
}

.thdwa-section {
	margin-top: 18px;
	padding-top: 22px;
	border-top: 1px solid var(--thdwa-line);
}
.thdwa-section:first-child { margin-top: 0; padding-top: 6px; border-top: 0; }
.thdwa-section-title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 4px; }
.thdwa-section-desc { margin: 0; color: var(--thdwa-muted); font-size: 0.9375rem; }
.thdwa-html { color: var(--thdwa-muted); font-size: 0.9375rem; }
.thdwa-html > :first-child { margin-top: 0; }
.thdwa-html > :last-child { margin-bottom: 0; }

/* Fields ---------------------------------------------------------------- */
.thdwa-field { min-width: 0; }
.thdwa-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.thdwa-fieldset legend { padding: 0; }
.thdwa-label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--thdwa-ink);
}
.thdwa-req { color: var(--thdwa-error); font-weight: 700; margin-left: 2px; }
.thdwa-desc { margin: 6px 0 0; font-size: 0.8125rem; color: var(--thdwa-muted); }
.thdwa-fieldset .thdwa-desc { margin: -2px 0 8px; }
.thdwa-error {
	display: none;
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: var(--thdwa-error);
	font-weight: 500;
}
.thdwa-field.has-error .thdwa-error { display: block; }

.thdwa-subgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.thdwa-sub { min-width: 0; }
.thdwa-sub-full { grid-column: 1 / -1; }
.thdwa-sublabel {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--thdwa-muted);
	margin: 0 0 4px;
}
@media (max-width: 480px) {
	.thdwa-subgrid { grid-template-columns: 1fr; }
}

.thdwa input[type="text"],
.thdwa input[type="email"],
.thdwa input[type="tel"],
.thdwa input[type="url"],
.thdwa input[type="number"],
.thdwa input[type="date"],
.thdwa input[type="password"],
.thdwa select,
.thdwa textarea {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--thdwa-ink);
	background: var(--thdwa-field);
	border: 1px solid var(--thdwa-line-strong);
	border-radius: var(--thdwa-radius-sm);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	min-height: 0;
	height: auto;
}
.thdwa textarea { min-height: 120px; resize: vertical; }
.thdwa select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235f6b65' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}
.thdwa input::placeholder,
.thdwa textarea::placeholder { color: #98a39d; opacity: 1; }
.thdwa input:hover,
.thdwa select:hover,
.thdwa textarea:hover { border-color: #9aa8a0; }
.thdwa input:focus,
.thdwa select:focus,
.thdwa textarea:focus {
	outline: none;
	background: var(--thdwa-surface);
	border-color: var(--thdwa-accent);
	box-shadow: 0 0 0 3px rgba(var(--thdwa-accent-rgb), 0.22);
}
.thdwa .has-error input,
.thdwa .has-error select,
.thdwa .has-error textarea,
.thdwa input[aria-invalid="true"],
.thdwa select[aria-invalid="true"] {
	border-color: var(--thdwa-error);
	background: var(--thdwa-error-bg);
}
.thdwa .has-error input:focus,
.thdwa .has-error select:focus,
.thdwa .has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }

/* Choices --------------------------------------------------------------- */
.thdwa-choices { display: flex; flex-direction: column; gap: 8px; }
.thdwa-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9375rem;
	font-weight: 400;
	cursor: pointer;
	margin: 0;
}
.thdwa-choice input[type="checkbox"],
.thdwa-choice input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid var(--thdwa-line-strong);
	border-radius: 5px;
	background: var(--thdwa-surface);
	display: grid;
	place-content: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.thdwa-choice input[type="radio"] { border-radius: 50%; }
.thdwa-choice input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--thdwa-accent-rgb), 0.22); }
.thdwa-choice input::before {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform 0.12s ease;
	background: #fff;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.thdwa-choice input[type="radio"]::before { clip-path: none; border-radius: 50%; width: 8px; height: 8px; }
.thdwa-choice input:checked { background: var(--thdwa-accent); border-color: var(--thdwa-accent); }
.thdwa-choice input:checked::before { transform: scale(1); }

/* Product-interest tiles: the one deliberately expressive element. */
.thdwa-choices-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
}
.thdwa-choices-tiles .thdwa-choice {
	border: 1px solid var(--thdwa-line-strong);
	background: var(--thdwa-field);
	border-radius: var(--thdwa-radius-sm);
	padding: 11px 13px;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.thdwa-choices-tiles .thdwa-choice:hover { border-color: #9aa8a0; }
.thdwa-choices-tiles .thdwa-choice:has(input:checked) {
	border-color: var(--thdwa-accent);
	background: rgba(var(--thdwa-accent-rgb), 0.08);
	box-shadow: inset 0 0 0 1px var(--thdwa-accent);
}
.thdwa-choices-tiles .thdwa-choice-all {
	grid-column: 1 / -1;
	background: transparent;
	border-style: dashed;
	color: var(--thdwa-muted);
}
.thdwa-consent { align-items: flex-start; }
.thdwa-consent input { margin-top: 3px; }
.thdwa-consent span a { color: var(--thdwa-accent); }

/* Password meter -------------------------------------------------------- */
.thdwa-meter {
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	height: 18px;
}
.thdwa-meter-bar { height: 5px; border-radius: 3px; background: var(--thdwa-line); transition: background-color 0.2s ease; }
.thdwa-meter-text { font-style: normal; font-size: 0.75rem; color: var(--thdwa-muted); min-width: 44px; text-align: right; }
.thdwa-meter[data-score="1"] .thdwa-meter-bar:nth-child(-n+1) { background: #d64545; }
.thdwa-meter[data-score="2"] .thdwa-meter-bar:nth-child(-n+2) { background: #e0a326; }
.thdwa-meter[data-score="3"] .thdwa-meter-bar:nth-child(-n+3) { background: #6db46b; }
.thdwa-meter[data-score="4"] .thdwa-meter-bar:nth-child(-n+4) { background: var(--thdwa-accent); }

/* File upload ----------------------------------------------------------- */
.thdwa-file { position: relative; }
.thdwa-file input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.thdwa-file-ui {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	padding: 18px 14px;
	border: 1.5px dashed var(--thdwa-line-strong);
	border-radius: var(--thdwa-radius-sm);
	background: var(--thdwa-field);
	color: var(--thdwa-muted);
	font-size: 0.875rem;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	min-height: 96px;
}
.thdwa-file-ui svg { width: 24px; height: 24px; color: var(--thdwa-accent); }
.thdwa-file-text { color: var(--thdwa-ink); font-weight: 500; word-break: break-word; }
.thdwa-file-hint { font-size: 0.75rem; }
.thdwa-file:hover .thdwa-file-ui,
.thdwa-file.is-dragover .thdwa-file-ui { border-color: var(--thdwa-accent); background: rgba(var(--thdwa-accent-rgb), 0.06); }
.thdwa-file input:focus-visible + .thdwa-file-ui { box-shadow: 0 0 0 3px rgba(var(--thdwa-accent-rgb), 0.22); border-color: var(--thdwa-accent); }
.thdwa-file.has-file .thdwa-file-ui { border-style: solid; border-color: var(--thdwa-accent); }

/* Honeypot: off-screen, still "visible" to naive bots */
.thdwa-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Alerts, actions ------------------------------------------------------- */
.thdwa-alert {
	border-radius: var(--thdwa-radius-sm);
	padding: 12px 14px;
	margin: 0 0 18px;
	font-size: 0.9375rem;
	font-weight: 500;
}
.thdwa-alert[hidden] { display: none; }
.thdwa-alert-error { background: var(--thdwa-error-bg); color: var(--thdwa-error); border: 1px solid rgba(179, 38, 30, 0.25); }

.thdwa-captcha { margin-top: 20px; }
.thdwa-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.thdwa-button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	padding: 14px 26px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--thdwa-button-text);
	background: var(--thdwa-accent);
	border: 0;
	border-radius: var(--thdwa-radius-sm);
	cursor: pointer;
	text-decoration: none;
	min-width: 220px;
	transition: filter 0.15s ease, transform 0.05s ease;
}
.thdwa-button:hover { filter: brightness(0.92); color: var(--thdwa-button-text); text-decoration: none; }
.thdwa-button:active { transform: translateY(1px); }
.thdwa-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--thdwa-accent-rgb), 0.35); }
.thdwa-button[disabled] { cursor: progress; filter: saturate(0.6) brightness(1.05); }
.thdwa-button[disabled] .thdwa-spinner { display: inline-block; }
.thdwa-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: thdwa-spin 0.7s linear infinite;
}
@keyframes thdwa-spin { to { transform: rotate(360deg); } }
.thdwa-login-hint { margin: 0; font-size: 0.9375rem; color: var(--thdwa-muted); }
.thdwa-login-hint a { color: var(--thdwa-accent); font-weight: 600; }
@media (max-width: 560px) {
	.thdwa-button { width: 100%; }
}

/* Status card ----------------------------------------------------------- */
.thdwa-status { text-align: left; }
.thdwa-status .thdwa-title { margin-top: 12px; }
.thdwa-status-icon { width: 52px; height: 52px; display: block; }
.thdwa-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f3f2;
	color: var(--thdwa-muted);
}
.thdwa-badge-pending { background: #fff1d6; color: #7a4b00; }
.thdwa-badge-approved { background: rgba(var(--thdwa-accent-rgb), 0.12); color: var(--thdwa-accent); }
.thdwa-badge-rejected { background: var(--thdwa-error-bg); color: var(--thdwa-error); }
.thdwa-note { background: var(--thdwa-field); border-left: 3px solid var(--thdwa-line-strong); padding: 10px 14px; border-radius: 0 var(--thdwa-radius-sm) var(--thdwa-radius-sm) 0; color: var(--thdwa-ink); }

.thdwa-steps {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	counter-reset: thdwa-step;
}
.thdwa-steps li { position: relative; padding-top: 22px; font-size: 0.875rem; color: var(--thdwa-muted); }
.thdwa-steps li::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--thdwa-line);
}
.thdwa-steps li.is-done::before { background: var(--thdwa-accent); }
.thdwa-steps li.is-current::before { background: linear-gradient(90deg, var(--thdwa-accent) 50%, var(--thdwa-line) 50%); }
.thdwa-step-dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--thdwa-surface);
	border: 2px solid var(--thdwa-line);
}
.thdwa-steps li.is-done .thdwa-step-dot { background: var(--thdwa-accent); border-color: var(--thdwa-accent); }
.thdwa-steps li.is-done .thdwa-step-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	background: #fff;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.thdwa-steps li.is-current .thdwa-step-dot { border-color: var(--thdwa-accent); box-shadow: 0 0 0 4px rgba(var(--thdwa-accent-rgb), 0.18); }
.thdwa-steps li.is-current { color: var(--thdwa-ink); font-weight: 600; }
.thdwa-steps li.is-negative .thdwa-step-dot { background: var(--thdwa-error); border-color: var(--thdwa-error); }
.thdwa-steps li.is-negative::before { background: var(--thdwa-error); }
.thdwa-step-label { display: block; padding-right: 8px; }

@media (prefers-reduced-motion: reduce) {
	.thdwa *, .thdwa *::before, .thdwa *::after { transition: none !important; animation-duration: 0.01ms !important; }
}

/* Layout variants (Settings → Design) ---------------------------------- */
.thdwa-style-flat .thdwa-card { box-shadow: none; }
.thdwa-style-borderless .thdwa-card { box-shadow: none; border: 0; background: transparent; padding: 0; }
.thdwa-style-borderless .thdwa-status { padding: 24px; border: 1px solid var(--thdwa-line); background: var(--thdwa-surface); }
.thdwa-btn-full .thdwa-button { width: 100%; }
.thdwa-align-center .thdwa-actions { align-items: center; text-align: center; }
.thdwa-align-right .thdwa-actions { align-items: flex-end; text-align: right; }
.thdwa-size-compact input[type="text"], .thdwa-size-compact input[type="email"], .thdwa-size-compact input[type="tel"], .thdwa-size-compact input[type="url"], .thdwa-size-compact input[type="number"], .thdwa-size-compact input[type="date"], .thdwa-size-compact input[type="password"], .thdwa-size-compact select { padding: 8px 12px; font-size: 0.9375rem; }
.thdwa-size-compact .thdwa-grid { row-gap: 14px; }
.thdwa-size-compact .thdwa-button { padding: 11px 22px; }
.thdwa-message p { margin: 0 0 8px; }
.thdwa-message p:last-child { margin: 0; }

/* Error summary --------------------------------------------------------- */
.thdwa-alert-error { display: flex; flex-direction: column; gap: 6px; }
.thdwa-alert-error[hidden] { display: none; }
.thdwa-alert-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.thdwa-alert-title::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--thdwa-error); -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-1 4h2v6H9Zm0 7h2v2H9Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-1 4h2v6H9Zm0 7h2v2H9Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.thdwa-alert-list { margin: 0; padding: 0 0 0 26px; font-weight: 400; font-size: 0.9rem; }
.thdwa-alert-list li { margin: 2px 0; }
.thdwa-alert-list a { color: var(--thdwa-error); font-weight: 600; text-decoration: underline; }
.thdwa-alert-error:focus { outline: none; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2); }
.thdwa-field.has-error .thdwa-label { color: var(--thdwa-error); }
.thdwa-error::before { content: "⚠ "; }
.thdwa-field.is-valid input:not([aria-invalid]), .thdwa-field.is-valid select { border-color: rgba(var(--thdwa-accent-rgb), 0.55); }

/* Header styles ---------------------------------------------------------- */
.thdwa-header-bar .thdwa-card { border-top: 5px solid var(--thdwa-accent); }
.thdwa-header-band .thdwa-card { padding-top: 0; overflow: hidden; }
.thdwa-header-band .thdwa-head {
	margin: 0 calc(-1 * clamp(24px, 4vw, 44px)) 28px;
	padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 44px) 26px;
	background: linear-gradient(135deg, var(--thdwa-accent), rgba(var(--thdwa-accent-rgb), 0.82));
	color: #fff;
}
.thdwa-header-band .thdwa-title, .thdwa-header-band .thdwa-intro, .thdwa-header-band .thdwa-intro strong { color: #fff; }
.thdwa-header-band .thdwa-intro { opacity: 0.92; }
.thdwa-header-band .thdwa-callout { background: rgba(255, 255, 255, 0.14); color: #fff; }
.thdwa-header-band .thdwa-callout-icon { color: #fff; }
.thdwa-header-band .thdwa-logo { filter: brightness(0) invert(1); }

/* Numbered sections ------------------------------------------------------ */
.thdwa-numbered .thdwa-form { counter-reset: thdwa-section; }
.thdwa-numbered .thdwa-section-title { display: flex; align-items: center; gap: 10px; }
.thdwa-numbered .thdwa-section-title::before {
	counter-increment: thdwa-section;
	content: counter(thdwa-section, decimal-leading-zero);
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--thdwa-accent);
	background: rgba(var(--thdwa-accent-rgb), 0.1);
	border-radius: 999px;
	padding: 3px 9px;
	font-variant-numeric: tabular-nums;
}
.thdwa-numbered .thdwa-section-desc { padding-left: 0; }

/* Built-in captcha ------------------------------------------------------- */
.thdwa-captcha-builtin { margin-top: 20px; }
.thdwa-captcha-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.thdwa-captcha-img { display: block; width: 190px; height: 60px; border: 1px solid var(--thdwa-line); border-radius: var(--thdwa-radius-sm); background: #f4f7f6; }
.thdwa .thdwa-captcha-row input[type="text"] { width: 96px; text-align: center; font-size: 1.125rem; font-weight: 600; letter-spacing: 0.05em; }
.thdwa-captcha-refresh { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: transparent; color: var(--thdwa-accent); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; border-radius: var(--thdwa-radius-sm); }
.thdwa-captcha-refresh:hover { background: rgba(var(--thdwa-accent-rgb), 0.08); }
.thdwa-captcha-refresh:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--thdwa-accent-rgb), 0.22); }
.thdwa-captcha-refresh svg { flex: 0 0 auto; }

/* Google address suggestions ------------------------------------------- */
.thdwa-sub-places { position: relative; }
.thdwa-places {
	position: absolute;
	z-index: 60;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: var(--thdwa-surface);
	border: 1px solid var(--thdwa-line-strong);
	border-radius: var(--thdwa-radius-sm);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	text-align: left;
}
.thdwa-places[hidden] { display: none; }
.thdwa-places-list { list-style: none; margin: 0; padding: 6px 0; max-height: 280px; overflow-y: auto; }
.thdwa-places-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 9px 14px;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--thdwa-ink);
}
.thdwa-places-item.is-active { background: rgba(var(--thdwa-accent-rgb), 0.09); }
.thdwa-places-pin { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--thdwa-muted); }
.thdwa-places-item.is-active .thdwa-places-pin { color: var(--thdwa-accent); }
.thdwa-places-text { min-width: 0; }
.thdwa-places-main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thdwa-places-main b { font-weight: 600; }
.thdwa-places-sub { display: block; font-size: 0.8125rem; color: var(--thdwa-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thdwa-places-attr {
	display: flex;
	justify-content: flex-end;
	padding: 6px 14px 7px;
	border-top: 1px solid var(--thdwa-line);
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
	color: var(--thdwa-muted);
}
.thdwa-places-attr b { font-weight: 600; margin-left: 4px; color: var(--thdwa-ink); }
.thdwa-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
