/* Self-contained — duplicates the design tokens from the exchange-widget
   stylesheet so this form renders correctly even on a page where the
   widget's own style.css hasn't been enqueued (e.g. a standalone
   /support/ page). Values are kept in sync by hand; if the design
   system tokens change, update both files. */
:root {
	--wx-bg: #F3F4F7;
	--wx-surface: #FFFFFF;
	--wx-ink: #12161C;
	--wx-accent: #1652E0;
	--wx-accent-press: #1247C4;
	--wx-muted: #5B6472;
	--wx-border: #E1E4EA;
	--wx-success: #0E8F6A;
	--wx-error: #B3261E;
	--wx-radius-sm: 8px;
	--wx-radius-md: 12px;
	--wx-sp-sm: 8px;
	--wx-sp-md: 16px;
	--wx-sp-lg: 32px;
	--wx-font-heading: 'Switzer', system-ui, sans-serif;
	--wx-font-body: 'General Sans', system-ui, sans-serif;
}

.wx-support {
	font-family: var(--wx-font-body);
	color: var(--wx-ink);
	background: var(--wx-surface);
	border: 1px solid var(--wx-border);
	border-radius: var(--wx-radius-md);
	padding: var(--wx-sp-lg);
	max-width: 640px;
	margin: 0 auto;
	box-shadow: 0 12px 32px -16px rgba(18, 22, 28, 0.18);
}

.wx-support * { box-sizing: border-box; }

.wx-support__warning {
	margin: 0 0 var(--wx-sp-md);
	padding: 12px 14px;
	border-radius: var(--wx-radius-sm);
	background: #FFF6E9;
	border: 1px solid #F0D9A8;
	color: #7A5B12;
	font-size: 14px;
	line-height: 1.5;
}

.wx-support__form {
	display: flex;
	flex-direction: column;
	gap: var(--wx-sp-md);
}

.wx-support .wx-field { display: flex; flex-direction: column; gap: 6px; }

.wx-support .wx-field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--wx-muted);
	letter-spacing: 0.01em;
}

.wx-support input[type="email"],
.wx-support input[type="text"],
.wx-support select,
.wx-support textarea {
	font-family: var(--wx-font-body);
	font-size: 15px;
	line-height: 1.4;
	color: var(--wx-ink);
	background: var(--wx-surface);
	border: 1px solid var(--wx-border);
	border-radius: var(--wx-radius-sm);
	padding: 10px 12px;
	width: 100%;
}

.wx-support textarea { resize: vertical; min-height: 120px; }

.wx-support input:focus-visible,
.wx-support select:focus-visible,
.wx-support textarea:focus-visible,
.wx-support__submit:focus-visible {
	outline: 2px solid var(--wx-accent);
	outline-offset: 2px;
}

/* Honeypot — visually hidden but present in the DOM (not display:none)
   so it still catches bots that skip display:none-hidden fields, while
   never being visible or reachable via Tab for a real visitor. */
.wx-support__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wx-support__submit {
	font-family: var(--wx-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: #fff;
	background: var(--wx-accent);
	border: none;
	border-radius: var(--wx-radius-sm);
	padding: 12px 20px;
	cursor: pointer;
}
.wx-support__submit:hover { background: var(--wx-accent-press); }
.wx-support__submit:disabled { opacity: 0.6; cursor: default; }

.wx-support__status {
	margin: 0;
	font-size: 14px;
	color: var(--wx-muted);
}
.wx-support__status--error { color: var(--wx-error); }

.wx-support__prefill {
	margin: 0 0 var(--wx-sp-md);
	padding: 12px 14px;
	border-radius: var(--wx-radius-sm);
	background: var(--wx-bg);
	border: 1px solid var(--wx-border);
}
.wx-support__prefill-title {
	margin: 0 0 4px;
	font-family: var(--wx-font-heading);
	font-weight: 600;
	font-size: 14px;
}
.wx-support__prefill-body {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--wx-muted);
	line-height: 1.5;
}
.wx-support__prefill-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
}
.wx-support__prefill-key { color: var(--wx-muted); }
.wx-support__prefill-value { color: var(--wx-ink); font-weight: 500; }
.wx-support__prefill-remove {
	font-family: var(--wx-font-body);
	font-size: 13px;
	color: var(--wx-accent);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
}

.wx-support__sent {
	text-align: center;
	padding: var(--wx-sp-lg) 0;
}
.wx-support__sent-title {
	font-family: var(--wx-font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--wx-success);
	margin: 0 0 8px;
}
.wx-support__sent-body {
	margin: 0;
	color: var(--wx-muted);
	font-size: 15px;
}

@media (max-width: 480px) {
	.wx-support { padding: var(--wx-sp-md); }
}
