/* #372 seller workflow; native dialog keeps keyboard focus within the review. */
.ebay-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #d5d8de; border-radius: 14px; color: #242735; background: #fff; box-shadow: 0 20px 80px #0005; text-align: left; }
.ebay-dialog::backdrop { background: #16203499; }
.ebay-dialog * { box-sizing: border-box; }
.ebay-dialog header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: #fff; border-bottom: 1px solid #e4e6ec; }
.ebay-dialog h2 { margin: 0; color: #e0a83a; font-size: 1.4rem; }
.ebay-dialog h3 { font-size: 1.05rem; margin: 18px 0 10px; }
.ebay-dialog .eb-body { padding: 18px 22px 24px; }
.ebay-dialog .eb-help { color: #626778; font-size: .9rem; line-height: 1.5; }
.ebay-dialog .eb-actions, .ebay-dialog .eb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.ebay-dialog .eb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ebay-dialog fieldset { border: 1px solid #dadde5; border-radius: 8px; padding: 12px; min-width: 0; margin: 12px 0; }
.ebay-dialog legend { color: #343949; font-weight: 600; padding: 0 6px; }
.ebay-dialog button { width: auto; min-height: 36px; margin: 0; padding: 7px 12px; border: 1px solid #c1c6d2; border-radius: 6px; color: #252d42; background: #f8f9fb; cursor: pointer; font: inherit; }
.ebay-dialog button:disabled { opacity: .45; cursor: default; }
.ebay-dialog button.eb-primary { background: #283954; color: #fff; border-color: #283954; }
.ebay-dialog button.eb-danger { color: #a22424; border-color: #dca5a5; }
.ebay-dialog button:focus-visible, .ebay-dialog input:focus-visible, .ebay-dialog select:focus-visible { outline: 3px solid #e0a83a; outline-offset: 2px; }
.ebay-dialog input:not([type=checkbox]):not([type=radio]), .ebay-dialog select { max-width: 100%; width: auto; padding: 6px; border: 1px solid #bdc3cf; border-radius: 5px; margin: 0; background: white; color: #242735; font: inherit; }
.ebay-dialog input[type=number] { width: 80px; }
.ebay-dialog input[type=checkbox], .ebay-dialog input[type=radio] { width: auto; margin-right: 5px; }
.ebay-dialog label { font-size: .94rem; }
.ebay-dialog .eb-notice { padding: 10px 12px; border-left: 3px solid #e0a83a; background: #fbf7ed; line-height: 1.5; margin: 12px 0; overflow-wrap: anywhere; }
.ebay-dialog .eb-error { border-color: #a22424; background: #fff3f2; }
.ebay-dialog .eb-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; font-weight: 600; }
.ebay-dialog .eb-summary span { background: #edf1f7; border-radius: 5px; padding: 8px 12px; }
.ebay-dialog .eb-table-wrap { overflow-x: auto; border: 1px solid #e0e3e9; border-radius: 8px; }
.ebay-dialog table { border-collapse: collapse; width: 100%; table-layout: fixed !important; font-size: .9rem; text-align: left; }
.ebay-dialog td:first-child, .ebay-dialog th:first-child { width: 34%; }
.ebay-dialog th { background: #f5f6f9; color: #555c70; font-weight: 600; }
.ebay-dialog td, .ebay-dialog th { padding: 10px; border-bottom: 1px solid #e4e7ed; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.ebay-dialog td small { display: block; line-height: 1.4; color: #626778; margin-top: 4px; }
.ebay-dialog .eb-card { display: flex; gap: 10px; min-width: 175px; }
.ebay-dialog .eb-card img { width: 42px; height: 58px; object-fit: contain; border-radius: 3px; }
.ebay-dialog .eb-state { display: inline-block; border-radius: 5px; padding: 3px 6px; background: #edf1f7; }
.ebay-dialog .eb-state.pending, .ebay-dialog .eb-state.queued { background: #fff0c4; }
.ebay-dialog .eb-state.action_required, .ebay-dialog .eb-state.failed { background: #fde1de; color: #82251e; }
.ebay-dialog .eb-state.synced, .ebay-dialog .eb-state.published { background: #e4f3e8; color: #235d37; }
.ebay-dialog [hidden] { display: none !important; }
.ebay-badge { font-size: .75em; padding: 2px 5px; border-radius: 4px; background: #edf1f7; margin-left: 5px; }
.ebay-row-btn, .ebay-card-btn { font-size: .75em; padding: 2px 7px; margin-left: 5px; border: 1px solid #b4bfce; border-radius: 5px; background: #fff; color: #334867; cursor: pointer; }
.sale-price-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
@media (max-width: 600px) {
  .ebay-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 9px; }
  .ebay-dialog header, .ebay-dialog .eb-body { padding: 14px; }
  .ebay-dialog .eb-columns { grid-template-columns: 1fr; gap: 0; }
  .ebay-dialog .eb-actions button { flex: 1 1 auto; }
  .ebay-dialog .eb-card { min-width: 140px; }
  .ebay-dialog .eb-table-wrap { overflow: visible; }
  .ebay-dialog table, .ebay-dialog tbody, .ebay-dialog tr { display: block; width: 100%; }
  .ebay-dialog thead { display: none; }
  .ebay-dialog tr { padding: 8px; border-bottom: 1px solid #d5dbe5; }
  .ebay-dialog td { display: block; width: 100% !important; padding: 6px; border: 0; overflow-wrap: anywhere; white-space: normal; }
  .ebay-dialog td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
  .ebay-dialog td small { max-width: none; }
  .ebay-dialog .eb-card { min-width: 0; }
}
