/* Scoped to the invoice section of the purchase wizard. */
.early-invoice {
  display:grid;gap:18px;margin-block:4px 0;padding-block-start:22px;
  border-top:1px solid var(--w-edge,#37363c);min-width:0;
}
.early-invoice h2,.invoice-review h3 {
  display:flex;align-items:center;gap:10px;margin:0;line-height:1.3;
}
.early-invoice h2 .icon,.invoice-review h3 .icon {color:var(--w-red,#df173a)}
.early-invoice fieldset {min-width:0;margin:0;padding:0;border:0}
.invoice-type-picker legend {font-size:.9rem;font-weight:650;margin-block-end:9px;color:var(--w-text,#f7f5f6)}
.invoice-type-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.invoice-type-option {
  position:relative;display:flex;align-items:center;gap:10px;min-width:0;
  min-height:48px;padding:12px 14px;border:1px solid var(--w-edge,#37363c);
  border-radius:9px;cursor:pointer;background:#1c1b1e;line-height:1.3;
}
.invoice-type-option span {display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.invoice-type-option:has(input:checked) {border-color:#e95072;background:#2a1c23}
.invoice-type-option:has(input:focus-visible) {outline:2px solid #ffc0ce;outline-offset:3px}
.w-shell .invoice-type-option input[type=radio] {
  width:17px;height:17px;min-height:0;flex:none;margin:0;padding:0;accent-color:var(--w-red,#df173a)
}
.invoice-fields,.invoice-company-fields {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
.invoice-company-fields,.invoice-address {grid-column:1/-1}
.invoice-company-fields[hidden] {display:none!important}
.early-invoice textarea {
  width:100%;min-width:0;resize:vertical;box-sizing:border-box;min-height:88px;
  color:var(--w-text,#f7f5f6);background:#111113;border:1px solid #49474d;
  border-radius:7px;padding:10px 13px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.45;
}
.early-invoice textarea:focus {border-color:#e46c83;outline:2px solid #e46c8370;outline-offset:2px}
.early-invoice textarea::placeholder {color:#959097}
.early-invoice :is(input,textarea)[aria-invalid=true] {border-color:#ff8fa6;box-shadow:0 0 0 1px #ff8fa65c}
.early-invoice .w-field-error[hidden] {display:none}
.early-invoice .w-preview-note {margin:0}
.invoice-review {padding:18px;border:1px solid var(--w-edge,#37363c);border-radius:10px;min-width:0}
.invoice-review dl {margin:14px 0 0;display:grid;gap:8px}
.invoice-review dl>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px;font-size:.9rem}
.invoice-review dt {color:var(--w-muted,#bdb9c0)}
.invoice-review dd {margin:0;font-weight:600;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:620px) {
  .invoice-fields,.invoice-company-fields {grid-template-columns:minmax(0,1fr);gap:14px}
  .invoice-type-option {padding:10px;gap:8px}
  .invoice-type-option span {gap:5px}
}
