/* styles/checkout-details.css — the "Fill in checkout for me" form and the
   one-time Buy now offer (utils/checkoutDetailsDialog.js). Loaded by the
   supplier and profile pages. */
.checkout-details-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--leif-border); border-radius: 16px;
  background: var(--leif-surface); color: var(--leif-text);
}
.checkout-details-dialog::backdrop { background: rgb(10 20 35 / 55%); }
.cd-form { padding: 22px 22px 18px; }
.cd-form h2 { margin: 0 0 8px; font-size: 20px; }
.cd-lead, .cd-fine { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--leif-text-secondary); }
.cd-fine a { color: var(--leif-action-blue); }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 14px; }
.cd-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.cd-field em { font-style: normal; font-weight: 400; color: var(--leif-text-secondary); }
.cd-wide { grid-column: 1 / -1; }
.cd-field input, .cd-field select {
  min-height: 42px; padding: 8px 10px; border: 1px solid var(--leif-border); border-radius: 10px;
  background: var(--leif-surface); color: var(--leif-text); font: inherit; font-size: 16px; font-weight: 400;
}
.cd-field input:focus-visible, .cd-field select:focus-visible { outline: 2px solid var(--leif-action-blue); outline-offset: 1px; }
.cd-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.cd-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--leif-action-blue); }
.cd-error { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #b3261e; }
.cd-error[hidden] { display: none; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cd-actions button {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid var(--leif-action-blue); background: var(--leif-surface); color: var(--leif-action-blue);
}
.cd-actions .cd-save { background: var(--leif-action-blue); color: #fff; }
.cd-actions .cd-remove { margin-right: auto; border-color: transparent; padding-left: 0; padding-right: 0; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .cd-error { color: #ffb4ab; } }
@media (max-width: 480px) {
  .cd-grid { grid-template-columns: 1fr; }
  .cd-form { padding: 18px 16px 14px; }
}
.cd-actions--stack { flex-direction: column; align-items: stretch; }
.cd-actions--stack button { width: 100%; }

/* Profile page → Checkout Details section (user_profile.checkout.js). */
.checkout-details-summary {
  margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--leif-border); border-radius: 12px;
  font-size: 15px; line-height: 1.5;
}
.checkout-details-summary p { margin: 0; overflow-wrap: anywhere; }
.checkout-details-summary p:first-child { font-weight: 600; }
.checkout-details-empty { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.checkout-details-actions { justify-content: flex-start; margin-bottom: 14px; }
