/* === TAGANEMISAVALDUS / WITHDRAWAL STATEMENT (privaed) ===
   Ported from nordhauser nh-order-tracking 2026-10-27 and restyled with the
   theme tokens from assets/css/styles.css (cream / ink / amber, DM Sans +
   Epilogue, pill buttons). Renders inside page-legal.php's .prose column,
   hence the resets. */

.nh-wd { margin: 28px 0 8px; }
/* The form self-POSTs to #nh-wd, so the reload scrolls here (privaed's header
   is not sticky, so a small offset is enough). */
.nh-wd { scroll-margin-top: 24px; }
.nh-wd * { box-sizing: border-box; }

.nh-wd .nh-wd-card {
	background: #fff; border: 0; border-radius: var(--r-card);
	padding: 28px; box-shadow: var(--shadow); max-width: 560px;
}
.nh-wd .nh-wd-card--wide { max-width: 100%; }

.nh-wd .nh-wd-lbl {
	display: block; font-family: "DM Sans", system-ui, sans-serif; font-size: 10.5px;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
	font-weight: 600; margin-bottom: 18px;
}

/* ---------- alerts ---------- */
.nh-wd .nh-wd-alert {
	margin: 0 0 18px; padding: 13px 15px; border-radius: var(--r-sm);
	background: #fdf3e1; border: 1px solid var(--amber-soft);
	font-size: 13.5px; line-height: 1.55; color: var(--body);
}
.nh-wd .nh-wd-alert a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nh-wd .nh-wd-alert--info { background: var(--cream); border-color: var(--line); }

/* ---------- order summary strip ---------- */
.nh-wd .nh-wd-order {
	display: flex; flex-wrap: wrap; gap: 26px;
	padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--line);
}
.nh-wd .nh-wd-order-k {
	display: block; font-family: "DM Sans", system-ui, sans-serif; font-size: 10px;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.nh-wd .nh-wd-order-v { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------- fields ---------- */
.nh-wd .nh-wd-field { margin-bottom: 16px; }
.nh-wd .nh-wd-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--body); margin-bottom: 6px; }
.nh-wd .nh-wd-inp {
	display: flex; align-items: center; gap: 10px; background: var(--cream);
	border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; height: 50px;
	transition: border-color 0.15s, background 0.15s;
}
.nh-wd .nh-wd-inp--area { height: auto; padding: 12px 14px; }
.nh-wd .nh-wd-inp:focus-within { border-color: var(--amber-deep); background: #fff; }
.nh-wd .nh-wd-inp input,
.nh-wd .nh-wd-inp textarea {
	flex: 1; width: 100%; border: 0; outline: 0; background: transparent;
	font: inherit; font-size: 14.5px; color: var(--ink); resize: vertical;
}
.nh-wd .nh-wd-inp input::placeholder,
.nh-wd .nh-wd-inp textarea::placeholder { color: var(--muted); }
.nh-wd .nh-wd-mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

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

.nh-wd .nh-wd-qty { margin-left: auto; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.nh-wd .nh-wd-qty input {
	width: 68px; height: 38px; text-align: center; border: 1px solid var(--line);
	border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 14px; color: var(--ink);
}
.nh-wd .nh-wd-qty input:focus { outline: 0; border-color: var(--amber-deep); }
.nh-wd .nh-wd-of { font-size: 12.5px; color: var(--muted); }

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

/* ---------- checkboxes ---------- */
.nh-wd .nh-wd-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.nh-wd .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(--line);
	border-radius: 4px; background: #fff; cursor: pointer; position: relative;
	transition: background 0.12s, border-color 0.12s;
}
.nh-wd .nh-wd-check input[type="checkbox"]:checked { background: var(--amber-deep); border-color: var(--amber-deep); }
.nh-wd .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 .nh-wd-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }

.nh-wd .nh-wd-terms {
	padding: 15px 16px; background: var(--cream); border: 1px solid var(--line);
	border-radius: var(--r-sm); margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; color: var(--body);
}
.nh-wd .nh-wd-terms a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- submit ---------- */
.nh-wd .nh-wd-btn {
	width: 100%; height: 52px; background: var(--amber); color: #231a06; border: 0;
	cursor: pointer; border-radius: var(--r-pill); font: inherit; font-size: 15px; font-weight: 700;
	box-shadow: 0 10px 22px -8px rgba(221,154,51,.6);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin-top: 4px; transition: background 0.15s;
}
.nh-wd .nh-wd-btn:hover { background: #E6A53C; }
.nh-wd .nh-wd-btn:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }

/* Waiting for the step fragment (JS path only — the label never changes, so the
   spinner carries the state and nothing needs translating). */
.nh-wd .nh-wd-btn.is-busy { cursor: progress; opacity: 0.75; }
.nh-wd .nh-wd-btn.is-busy::after {
	content: ""; width: 15px; height: 15px; border-radius: 50%;
	border: 2px solid rgba(35, 26, 6, 0.25); border-top-color: #231a06;
	animation: nh-wd-spin 0.7s linear infinite;
}
@keyframes nh-wd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.nh-wd .nh-wd-btn.is-busy::after { animation-duration: 2.4s; }
}

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

/* ---------- receipt ---------- */
.nh-wd .nh-wd-tick {
	width: 46px; height: 46px; border-radius: 999px; background: var(--amber); color: #231a06;
	display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 18px;
}
.nh-wd .nh-wd-done-h { margin: 0 0 10px; font-family: "Epilogue", system-ui, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.nh-wd .nh-wd-done-p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--body); }

.nh-wd .nh-wd-summary {
	padding: 20px; background: var(--cream); border: 1px solid var(--line);
	border-radius: var(--r-sm); margin: 0 0 20px;
}
.nh-wd .nh-wd-summary dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 26%) 1fr; gap: 8px 18px; }
.nh-wd .nh-wd-summary dt { font-size: 12.5px; color: var(--muted); }
.nh-wd .nh-wd-summary dd { margin: 0; font-size: 14px; color: var(--ink); }
/* The shortcode renders inside page-legal.php's .prose column, whose list styles
   would otherwise decorate the summary. Out-specify them so this stays a plain
   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 .nh-wd-sum-items .nh-wd-mono { color: var(--muted); font-size: 12.5px; margin-left: 6px; white-space: nowrap; }

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