.order-exchange-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; padding: 24px; border: 1px solid #cdd9e8; border-radius: 10px; color: #203b59; background: #fff; font: inherit; overflow-y: auto; }
.order-exchange-dialog::backdrop { background: #14243880; }
.order-exchange-dialog header, .ex-actions, .ex-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-exchange-dialog header h2 { margin: 0; font-size: 20px; }
.order-exchange-dialog header { position: sticky; top: -24px; z-index: 2; background: #fff; padding: 12px 0; border-bottom: 1px solid #e0e7f0; }
.order-exchange-dialog p, .order-exchange-dialog small { font-size: 13px; line-height: 1.6; }
.order-exchange-dialog [data-ex-error] { color: #b42318; white-space: pre-wrap; }
.ex-notice { background: #f0f6ff; padding: 12px; border-radius: 6px; }
.ex-warning { background: #fff4e5; padding: 12px; }
.ex-search, .ex-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.order-exchange-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.order-exchange-dialog input, .order-exchange-dialog textarea { min-width: 0; width: 100%; box-sizing: border-box; font: inherit; padding: 9px 10px; border: 1px solid #c9d7e7; border-radius: 4px; }
.order-exchange-dialog textarea { min-height: 65px; resize: vertical; }
.ex-wide { grid-column: 1 / -1; }
.order-exchange-dialog .ex-check { flex-direction: row; align-items: flex-start; line-height: 1.5; }
.order-exchange-dialog .ex-check input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 2px 0 0; flex: 0 0 18px; }
.order-exchange-dialog [hidden] { display: none !important; }
.ex-result { border-bottom: 1px solid #e0e7f0; padding: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.ex-result > div { min-width: 0; flex: 1; }
.ex-result small { display: block; color: #647995; }
.ex-result button { flex-shrink: 0; }
.ex-actions { flex-wrap: wrap; margin-top: 12px; }
.ex-form > .ex-actions { position: sticky; bottom: -24px; background: #fff; padding: 12px 0; }
.order-exchange-dialog button:disabled { opacity: .55; cursor: wait; }
.order-exchange-row-action { margin-top: 8px; }
.ex-product-code, .ex-product-search { display: flex; align-items: flex-end; gap: 8px; }
.ex-product-code label, .ex-product-search label { min-width: 0; flex: 1; }
.ex-product-code button, .ex-product-search button { flex-shrink: 0; }
.ex-product-picker { border: 1px solid #c9d7e7; border-radius: 6px; padding: 12px; background: #f7faff; }
.ex-product-picker [data-ex-product-results] { max-height: 280px; overflow-y: auto; }
.ex-tracking-warning { color: #9d4500; }
.cj-return-dialog select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; padding: 9px 10px; border: 1px solid #c9d7e7; border-radius: 4px; background: #fff; }
.cj-return-dialog { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .order-exchange-dialog { padding: 14px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .order-exchange-dialog header { top: -14px; }
  .ex-form > .ex-actions { bottom: -14px; }
  .ex-search, .ex-form { grid-template-columns: minmax(0, 1fr); }
  .ex-result { align-items: flex-start; }
  .ex-actions > button { flex: 1; }
}
