#checkout-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid #dce8df;
  border-radius: 16px;
  color: var(--ink);
}
#checkout-dialog::backdrop { background: #0d2a23a8; }
#checkout-dialog [hidden] { display: none; }
.checkout-header, .checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.checkout-header h2 { font-size: 24px; }
.checkout-header button { font-size: 22px; flex: none; }
#checkout-form, #checkout-confirmation { display: grid; gap: 14px; margin-top: 18px; }
#checkout-form fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid #dce8df; border-radius: 8px; }
#checkout-form legend, #checkout-form label { font-size: 14px; font-weight: 600; }
#checkout-form fieldset:first-child label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
#checkout-form label:not(:has(input[type="radio"])) { display: grid; gap: 6px; }
#checkout-form :is(input:not([type="radio"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #b9cdc1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.checkout-fields { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
#checkout-form p, #checkout-confirmation p { margin: 0; font-size: 14px; line-height: 1.5; }
#checkout-postal-status:not(:empty) { margin-top: 8px; }
#checkout-postal-status:empty, #checkout-feedback:empty { display: none; }
#checkout-shipping del { margin-right: 4px; }
#checkout-feedback { padding: 10px; border-radius: 8px; background: #fff0ec; color: #903327; }
#checkout-confirmation .button { justify-self: start; }
@media (max-width: 420px) {
  #checkout-dialog { padding: 16px; }
  #checkout-form :is(input:not([type="radio"]), select, textarea) { font-size: 16px; }
}
