/* === TAGANEMISAVALDUS / WITHDRAWAL STATEMENT ===
   Reuses the theme CSS variables from assets/css/main.css (loaded globally).
   Self-contained: the visual idiom follows tracking.css (.lookup-card et al) but
   the selectors are independent, so the two pages can't break each other.
   Renders inside template-klienditugi.php's .prose column, hence the resets. */

.nh-wd { margin: 28px 0 8px; }
.nh-wd * { box-sizing: border-box; }

.nh-wd-card {
	background: #fff; border: 1px solid var(--bone-300); border-radius: 8px;
	padding: 26px; box-shadow: var(--shadow-md); max-width: 560px;
}
.nh-wd-card--wide { max-width: 100%; }

.nh-wd-lbl {
	display: block; font-family: "JetBrains Mono", monospace; font-size: 10.5px;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500);
	font-weight: 600; margin-bottom: 18px;
}

/* ---------- alerts ---------- */
.nh-wd-alert {
	margin: 0 0 18px; padding: 13px 15px; border-radius: 6px;
	background: var(--terra-50, #fdf1e7); border-left: 3px solid var(--terra-500, #e68a5e);
	font-size: 13.5px; line-height: 1.55; color: var(--ink-700);
}
.nh-wd-alert a { color: var(--green-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nh-wd-alert--info { background: var(--bone-100); border-left-color: var(--green-700); }

/* ---------- order summary strip ---------- */
.nh-wd-order {
	display: flex; flex-wrap: wrap; gap: 26px;
	padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--bone-300);
}
.nh-wd-order-k {
	display: block; font-family: "JetBrains Mono", monospace; font-size: 10px;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 4px;
}
.nh-wd-order-v { display: block; font-size: 15px; font-weight: 700; color: var(--ink-900); }

/* ---------- fields ---------- */
.nh-wd-field { margin-bottom: 16px; }
.nh-wd-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.nh-wd-inp {
	display: flex; align-items: center; gap: 10px; background: var(--bone-100);
	border: 1px solid var(--bone-300); border-radius: 6px; padding: 0 14px; height: 50px;
	transition: border-color 0.15s, background 0.15s;
}
.nh-wd-inp--area { height: auto; padding: 12px 14px; }
.nh-wd-inp:focus-within { border-color: var(--green-700); background: #fff; }
.nh-wd-inp input,
.nh-wd-inp textarea {
	flex: 1; width: 100%; border: 0; outline: 0; background: transparent;
	font: inherit; font-size: 14.5px; color: var(--ink-900); resize: vertical;
}
.nh-wd-inp input::placeholder,
.nh-wd-inp textarea::placeholder { color: var(--ink-400); }
.nh-wd-mono { font-family: "JetBrains Mono", monospace; letter-spacing: 0.02em; }

/* ---------- item picker ---------- */
.nh-wd-items { border: 0; padding: 0; margin: 0 0 22px; }
.nh-wd-items legend {
	padding: 0; margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-700);
}
.nh-wd-item {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px;
	border: 1px solid var(--bone-300); border-radius: 6px; margin-bottom: 8px; background: var(--bone-100);
}
.nh-wd-item:has(input[type="checkbox"]:checked) { background: #fff; border-color: var(--green-700); }
.nh-wd-item-name { font-size: 14px; line-height: 1.45; color: var(--ink-900); }
.nh-wd-sku { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

.nh-wd-qty { margin-left: auto; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.nh-wd-qty input {
	width: 68px; height: 38px; text-align: center; border: 1px solid var(--bone-300);
	border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: var(--ink-900);
}
.nh-wd-qty input:focus { outline: 0; border-color: var(--green-700); }
.nh-wd-of { font-size: 12.5px; color: var(--ink-500); }

.nh-wd-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-500); }
.nh-wd-note a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- checkboxes ---------- */
.nh-wd-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.nh-wd-check input[type="checkbox"] {
	appearance: none; -webkit-appearance: none; flex: 0 0 auto;
	width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--bone-300);
	border-radius: 4px; background: #fff; cursor: pointer; position: relative;
	transition: background 0.12s, border-color 0.12s;
}
.nh-wd-check input[type="checkbox"]:checked { background: var(--green-800); border-color: var(--green-800); }
.nh-wd-check input[type="checkbox"]:checked::after {
	content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.nh-wd-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }

.nh-wd-terms {
	padding: 15px 16px; background: var(--bone-100); border: 1px solid var(--bone-300);
	border-radius: 6px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; color: var(--ink-700);
}
.nh-wd-terms a { color: var(--green-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- submit ---------- */
.nh-wd-btn {
	width: 100%; height: 52px; background: var(--green-800); color: #fff; border: 0;
	cursor: pointer; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin-top: 4px; transition: background 0.15s;
}
.nh-wd-btn:hover { background: var(--green-700); }
.nh-wd-btn:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }

.nh-wd-hint { margin: 14px 0 0; font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.nh-wd-hint a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- receipt ---------- */
.nh-wd-tick {
	width: 46px; height: 46px; border-radius: 999px; background: var(--green-800); color: #fff;
	display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 18px;
}
.nh-wd-done-h { margin: 0 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.nh-wd-done-p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-700); }

.nh-wd-summary {
	padding: 20px; background: var(--bone-100); border: 1px solid var(--bone-300);
	border-radius: 6px; margin: 0 0 20px;
}
.nh-wd-summary dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 26%) 1fr; gap: 8px 18px; }
.nh-wd-summary dt { font-size: 12.5px; color: var(--ink-500); }
.nh-wd-summary dd { margin: 0; font-size: 14px; color: var(--ink-900); }
/* The shortcode renders inside template-klienditugi.php's .prose column, whose
   `.prose ul li` adds a terra dash ::before, 36px of left padding and a divider
   rule. Out-specify it (0,3,1 beats 0,2,1) so this stays a plain summary list
   regardless of stylesheet order. */
.nh-wd .nh-wd-summary .nh-wd-sum-items { list-style: none; margin: 0; padding: 0; }
.nh-wd .nh-wd-summary .nh-wd-sum-items li {
	padding: 0 0 5px; border-top: 0; position: static;
	font-size: 14px; line-height: 1.5;
}
.nh-wd .nh-wd-summary .nh-wd-sum-items li::before { content: none; }
.nh-wd-sum-items .nh-wd-mono { color: var(--ink-500); font-size: 12.5px; margin-left: 6px; white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
	.nh-wd-card { padding: 20px; }
	.nh-wd-order { gap: 18px; }
	.nh-wd-item { flex-wrap: wrap; gap: 10px; }
	.nh-wd-qty { margin-left: 0; width: 100%; }
	.nh-wd-summary dl { grid-template-columns: 1fr; gap: 2px; }
	.nh-wd-summary dt { margin-top: 8px; }
}
