/* Withdrawal form and acknowledgement, inside the shop's standard content container. */
.withdrawal {
  max-width: 780px;
  margin: 30px auto 48px;
  border: 1px solid #cbd6dc;
  border-top: 4px solid #23495e;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(24, 53, 69, .07);
  color: #223947;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.withdrawal .wd-heading, .withdrawal .wd-fields, .withdrawal .wd-items,
.withdrawal .wd-confirm, .withdrawal .wd-receipt { padding: 24px 34px; margin: 0; }
.withdrawal .wd-heading { border-bottom: 1px solid #d8e1e5; }
.withdrawal .wd-heading h1 {
  margin: 0 0 8px;
  color: #213f51;
  font: normal 34px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: normal;
  text-transform: none;
}
.withdrawal .wd-heading p, .withdrawal .wd-hint { margin: 0; color: #475d68; }
.withdrawal .wd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.withdrawal .wd-fields > div { min-width: 0; }
.withdrawal .wd-reference { grid-column: 1 / -1; }
.withdrawal label { display: block; margin: 0 0 6px; color: #243d4a; font-size: 14px; font-weight: 700; }
.withdrawal .wd-fields input, .withdrawal .wd-lines input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #82949c;
  border-radius: 4px;
  background: #fff;
  color: #172f3d;
  font-size: 16px;
  line-height: 1.4;
}
.withdrawal input[readonly] { background: #f2f5f6; }
.withdrawal .wd-hint { margin-top: 6px; font-size: 14px; }
.withdrawal .wd-items { min-width: 0; padding-top: 0; border: 0; }
.withdrawal .wd-items legend { margin: 0 0 12px; border: 0; color: #243d4a; font-size: 19px; font-weight: 700; }
.withdrawal .wd-options { display: flex; gap: 10px; flex-wrap: wrap; }
.withdrawal .wd-options label { display: flex; align-items: center; gap: 9px; padding: 10px 14px; min-height: 44px; margin: 0; border: 1px solid #82949c; border-radius: 4px; cursor: pointer; }
.withdrawal .wd-options input { margin: 0; accent-color: #23495e; }
.withdrawal .wd-options label:has(input:checked) { border-color: #23495e; background: #edf4f6; }
.withdrawal .wd-lines { width: 100%; table-layout: fixed; margin-top: 16px; border-collapse: collapse; }
.withdrawal .wd-lines th, .withdrawal .wd-lines td { padding: 9px 6px; border-bottom: 1px solid #d8e1e5; vertical-align: middle; }
.withdrawal .wd-lines thead th { background: #eff4f6; font-weight: 700; }
.withdrawal .wd-lines th:first-child { width: 52%; }
.withdrawal .wd-lines th, .withdrawal .wd-lines label { font-size: 14px; overflow-wrap: anywhere; }
.withdrawal .wd-lines label { margin: 0; font-weight: 400; }
.withdrawal .wd-lines input { max-width: 84px; }
.withdrawal .wd-confirm { background: #f2f6f7; border-top: 1px solid #d8e1e5; }
.withdrawal .wd-confirm p { margin: 0; }
.withdrawal button[type="submit"] { display: inline-block; margin-top: 14px; padding: 11px 22px; min-height: 46px; border: 1px solid #23495e; border-radius: 4px; background: #23495e; color: #fff; font-size: 16px; font-weight: 700; }
.withdrawal button[type="submit"]:hover { background: #173748; }
.withdrawal :focus { outline: 3px solid #885410; outline-offset: 2px; }
.withdrawal .wd-alert { margin: 18px 34px 0; padding: 12px 16px; border-left: 4px solid #963f23; background: #fff3ed; color: #702e19; }
.withdrawal .wd-alert a { color: inherit; text-decoration: underline; }
.withdrawal .wd-field-error { margin: 5px 0 0; color: #90321d; }
.withdrawal input[aria-invalid="true"] { border: 2px solid #963f23; }
.withdrawal .wd-extra[hidden] { display: none; }
.withdrawal .wd-receipt { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr); gap: 12px 20px; }
.withdrawal .wd-receipt dd { margin: 0; overflow-wrap: anywhere; }
.withdrawal .wd-narrow { display: none; }
@media (max-width: 650px) {
  .withdrawal { margin: 16px auto 24px; }
  .withdrawal .wd-heading, .withdrawal .wd-fields, .withdrawal .wd-items,
  .withdrawal .wd-confirm, .withdrawal .wd-receipt { padding: 18px 16px; }
  .withdrawal .wd-heading h1 { font-size: 28px; }
  .withdrawal .wd-fields { grid-template-columns: 1fr; gap: 16px; }
  .withdrawal .wd-items { padding-top: 0; }
  .withdrawal .wd-items legend { margin-bottom: 0; }
  .withdrawal .wd-lines th:first-child { width: 43%; }
  .withdrawal .wd-narrow { display: inline; }
  .withdrawal .wd-wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .withdrawal .wd-lines th, .withdrawal .wd-lines td { padding: 8px 4px; }
  .withdrawal .wd-alert { margin: 14px 16px 0; }
  .withdrawal .wd-receipt { grid-template-columns: 1fr; gap: 2px; }
  .withdrawal .wd-receipt dd + dt { margin-top: 10px; }
  .withdrawal button[type="submit"] { width: 100%; }
}
