/* Form controls, card, colours and buttons come directly from pridat-referenci.css. */
/* Keep the review form width; constrain only the inner controls to their parent. */
.withdrawal-page .reference-form-wrap { min-width: 0; }
main.withdrawal-page { min-width: 0; max-width: 100%; touch-action: pan-y pinch-zoom; }
.withdrawal-page .reference-form-card,
.withdrawal-page .reference-form,
.withdrawal-page .reference-form-group,
.withdrawal-page .withdrawal-actions,
.withdrawal-page .withdrawal-actions form { min-width: 0; max-width: 100%; }
.withdrawal-page .reference-form-card { content-visibility: visible; contain-intrinsic-size: none; overflow-wrap: anywhere; }
.withdrawal-page .reference-form,
.withdrawal-page .reference-form-group,
.withdrawal-page .withdrawal-section,
.withdrawal-page .withdrawal-actions { grid-template-columns: minmax(0, 1fr); }
.withdrawal-page .reference-form { position: relative; }
.withdrawal-page .reference-honeypot { left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.withdrawal-page .withdrawal-section legend { max-width: 100%; white-space: normal; }
.withdrawal-page .reference-form-group input,
.withdrawal-page .reference-form-group select,
.withdrawal-page .reference-form-group textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  /* rem is smaller than 10px on mobile here; keep fields at least 16px to avoid focus zoom. */
  font-size: max(16px, 1.6rem);
}
.withdrawal-page .reference-form-group input[type="date"] { -webkit-appearance: none; appearance: none; }
.withdrawal-page .reference-form-group input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.withdrawal-page .withdrawal-section { margin: .9rem 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 1.15rem; }
.withdrawal-page .withdrawal-section legend, .withdrawal-page h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 1rem; padding: 0; }
.withdrawal-page .withdrawal-seller { font-style: normal; font-size: 1.3rem; line-height: 1.6; margin-bottom: 1.5rem; }
.withdrawal-page .withdrawal-declaration { font-size: 1.3rem; font-weight: 700; line-height: 1.6; margin: 1.2rem 0; }
.withdrawal-page .withdrawal-summary { width: 100%; display: grid; gap: .65rem; text-align: left; margin: 1rem 0; }
.withdrawal-page .withdrawal-summary div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; border-bottom: 1px solid var(--border); padding: .6rem 0; font-size: 1.25rem; line-height: 1.5; }
.withdrawal-page .withdrawal-summary dt { font-weight: 700; }
.withdrawal-page .withdrawal-summary dd { margin: 0; overflow-wrap: anywhere; }
.withdrawal-page .withdrawal-actions { display: grid; gap: 1rem; }
.withdrawal-page .withdrawal-edit { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.withdrawal-page .reference-submit-btn { white-space: normal; padding-block: .8rem; }
.withdrawal-page .reference-form-note a, .withdrawal-page .reference-product-name a { text-decoration: underline; color: inherit; }
.withdrawal-page [aria-invalid="true"] { border-color: #b42318; }
.withdrawal-page .withdrawal-field-error { color: #b42318; font-size: 1.2rem; }
.withdrawal-page .withdrawal-optional { color: var(--muted); font-weight: 400; }
@media (max-width: 420px) { .withdrawal-page .withdrawal-summary div { grid-template-columns: 1fr; gap: .25rem; } }
@media print {
  header, footer, .withdrawal-actions, .reference-back-link, .reference-honeypot, [data-withdrawal-print] { display: none !important; }
  body.reference-form-body { padding: 0 !important; background: #fff !important; }
  main.reference-page-main { width: 100%; padding: 0; }
  .withdrawal-page .reference-form-card, .withdrawal-page .reference-success-box { border: 0; box-shadow: none; max-width: none; }
}
