.modal-card:has(.shipment-form) { max-height:min(900px,calc(100dvh - 48px)); }
.shipment-form .shipment-order-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin:0 0 22px; padding:18px 20px; border-radius:6px; background:var(--surface-alt,#f5f7f6); }
.shipment-order-summary > div { min-width:0; }
.shipment-order-summary .shipment-summary-wide { grid-column:1/-1; display:grid; grid-template-columns:100px minmax(0,1fr); gap:12px; }
.shipment-order-summary dt { color:var(--muted,#66736b); font-size:13px; font-weight:400; }
.shipment-order-summary dd { margin:4px 0 0; overflow-wrap:anywhere; font-size:14px; }
.shipment-summary-wide dd { margin:0; }
.shipment-order-summary .shipment-paid { font-size:20px; font-weight:650; color:var(--text,#203b2a); }
.shipment-section { margin:0 0 22px; }
.shipment-section h3 { margin:0 0 16px; font-size:15px; font-weight:650; }
.shipment-products { border:1px solid var(--line,#dfe7e1); border-radius:6px; padding:0 16px; }
.shipment-product { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; min-width:0; }
.shipment-product + .shipment-product { border-top:1px solid var(--line,#dfe7e1); }
.shipment-product > div { min-width:0; overflow-wrap:anywhere; }
.shipment-product strong { font-size:14px; font-weight:550; }
.shipment-product small { display:block; margin-top:4px; color:var(--muted,#66736b); font-size:12px; }
.shipment-product > span { flex:none; font-size:13px; }
.shipment-field-row { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:start; gap:12px; margin:16px 0; }
.shipment-field-row > div { min-width:0; }
.shipment-field-label { padding-top:11px; font-size:13px; }
.shipment-field-label > span { color:var(--danger,#ab3939); }
.shipment-field-row .merchant-help { display:block; margin:7px 0 0; line-height:1.6; }
.shipment-method { display:flex; align-items:center; gap:8px; min-height:42px; font-size:14px; }
.shipment-method > span { width:15px; height:15px; border:4px solid var(--primary,#237044); border-radius:50%; background:var(--card,#fff); box-sizing:border-box; }
.shipment-carrier-input { display:flex; border:1px solid var(--line,#dfe7e1); border-radius:6px; background:var(--card,#fff); }
.shipment-carrier-input:focus-within { outline:2px solid var(--primary,#237044); outline-offset:2px; }
.shipment-carrier-input .form-input { border:0; min-width:0; box-shadow:none; outline:none; background:transparent; }
.shipment-form .shipment-carrier-input .form-input:focus { box-shadow:none; outline:none; border-color:transparent; }
.shipment-carrier-input > button { flex:none; width:40px; border:0; background:transparent; color:var(--muted,#66736b); cursor:pointer; font-size:20px; }
.shipment-carrier-options { margin-top:6px; padding:5px; border:1px solid var(--line,#dfe7e1); border-radius:6px; background:var(--card,#fff); max-height:190px; overflow:auto; overscroll-behavior:contain; }
.shipment-carrier-options[hidden] { display:none; }
.shipment-carrier-options > button { display:block; width:100%; text-align:left; padding:10px 12px; border:0; border-radius:4px; background:transparent; color:inherit; font:inherit; font-size:14px; cursor:pointer; }
.shipment-carrier-options > button:hover,.shipment-carrier-options > button.is-active,.shipment-carrier-options > button[aria-selected=true] { background:var(--surface-alt,#eef4ef); color:var(--primary,#237044); }
.shipment-carrier-empty { margin:10px; font-size:13px; color:var(--muted,#66736b); }
.shipment-form .shipment-sync-help { margin:0; line-height:1.7; }
.shipment-form .shipment-actions { justify-content:flex-start; gap:12px; }
.shipment-actions > .primary-button,.shipment-actions > .secondary-button { min-width:90px; }
.shipment-actions .shipment-order-link { margin-left:auto; background:transparent; color:var(--muted,#66736b); border:0; font-size:12px; cursor:pointer; padding-inline:0; }
@media(max-width:600px) {
  .shipment-form .shipment-order-summary { padding:15px; gap:14px; grid-template-columns:minmax(0,1fr); margin-bottom:22px; }
  .shipment-order-summary .shipment-summary-wide { display:block; }
  .shipment-summary-wide dd { margin-top:4px; }
  .shipment-field-row { grid-template-columns:minmax(0,1fr); gap:7px; }
  .shipment-field-label { padding-top:0; }
  .shipment-method { min-height:26px; }
  .shipment-form .shipment-actions > .primary-button,.shipment-form .shipment-actions > .secondary-button { flex:1 1 90px; }
  .shipment-form .shipment-actions > .shipment-order-link { flex:0 0 100%; margin:0; min-height:28px; padding:2px; }
}
