.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.lead-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lead-fields input,
.lead-fields textarea {
  width: 100%;
  border: 1px solid #cfcfcd;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  background: #fff;
}

.lead-fields input:focus,
.lead-fields textarea:focus {
  outline: 2px solid #f8c400;
  outline-offset: 1px;
  border-color: #8a7100;
}

.lead-wide { grid-column: 1 / -1; }
.lead-consent { flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; line-height: 1.35; }
.lead-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.lead-consent a { color: #665400; }
.lead-honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.lead-submit { width: 100%; }
.lead-note { display: block; margin: 8px 0 15px; text-align: center; }

.order-send-status {
  min-height: 20px;
  margin: -5px 0 12px;
  color: #2f6736;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.order-send-status:empty { display: none; }
.order-send-status.is-error { color: #a62525; }

#orderDialog { max-width: 920px; }

.order-success-dialog { max-width: 560px; }
.order-success-card { text-align: center; }
.order-success-card p { margin: 10px 0 22px; line-height: 1.55; }
.order-success-card .primary { min-width: 170px; }

.order-spec-title {
  margin: 17px 0 9px;
  font-size: 16px;
}

.order-specification {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.order-specification th,
.order-specification td {
  padding: 9px 8px;
  border: 1px solid #d8d8d5;
  text-align: left;
  vertical-align: top;
}

.order-specification th {
  background: #e9e9e6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.order-specification .spec-number { width: 38px; text-align: center; }
.order-specification .spec-sku { width: 125px; font-weight: 800; white-space: nowrap; }
.order-specification .spec-name { min-width: 220px; }
.order-specification .spec-placement { width: 145px; }
.order-specification .spec-price { width: 95px; text-align: right; font-weight: 800; white-space: nowrap; }
.order-specification small { display: block; margin-top: 3px; color: #707377; font-weight: 400; }

@media (max-width: 560px) {
  .lead-fields { grid-template-columns: 1fr; }
  .lead-wide { grid-column: auto; }
  #orderDialog .dialog-card { padding: 22px 16px; }
  .order-specification { min-width: 620px; }
}

@media print {
  @page { margin: 14mm; }
  body > :not(#orderDialog) { display: none !important; }
  #orderDialog {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  #orderDialog::backdrop { display: none !important; }
  #orderDialog .dialog-card { padding: 0; box-shadow: none; }
  #orderDialog .dialog-close,
  #orderDialog .dialog-icon,
  #orderDialog .dialog-card > p,
  #orderDialog .lead-fields,
  #orderDialog .lead-submit,
  #orderDialog .lead-note,
  #orderDialog .order-send-status,
  #orderDialog .dialog-actions { display: none !important; }
  #orderDialog .dialog-card h2 { margin: 0 0 12px; }
  #orderDialog .order-details {
    max-height: none;
    overflow: visible;
    margin: 0;
    background: #fff;
    padding: 0;
  }
  #orderDialog .order-details div { break-inside: avoid; }
  #orderDialog .order-specification {
    min-width: 0;
    table-layout: fixed;
    font-size: 9pt;
  }
  #orderDialog .order-specification thead { display: table-header-group; }
  #orderDialog .order-specification tr { break-inside: avoid; }
  #orderDialog .order-specification th,
  #orderDialog .order-specification td { padding: 6px 5px; }
  #orderDialog .order-specification .spec-number { width: 6%; }
  #orderDialog .order-specification .spec-sku { width: 18%; }
  #orderDialog .order-specification .spec-name { width: 38%; min-width: 0; }
  #orderDialog .order-specification .spec-placement { width: 23%; }
  #orderDialog .order-specification .spec-price { width: 15%; }
}
