body#inventoryListing.inventory-redesign #inventoryInspector .inv-prices.inv-price-strip { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body#inventoryListing.inventory-redesign #inventoryInspector .inv-price-strip > :is(article, .inv-price-feature) { grid-column: auto !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 5px !important; min-height: 63px; }
#inventoryInspector [data-price-display][role=button] { cursor: text; }
#inventoryInspector [data-price-display][role=button]:is(:hover, :focus-visible) { text-decoration: underline dotted; text-underline-offset: .18em; }
#inventoryInspector [data-inline-price-amount] > [hidden],
#inventoryInspector .inv-price-status:empty { display: none !important; }
#inventoryInspector .inv-price-status { margin: 0; color: #794023; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }

body#inventoryListing dialog.inv-price-confirm {
 position: fixed; inset: 0 !important; box-sizing: border-box;
 width: min(320px, calc(100% - 24px)) !important; max-width: calc(100% - 24px) !important;
 height: max-content !important; max-height: calc(100dvh - 20px) !important; overflow: auto; margin: auto !important;
 padding: 0 !important; border: 1px solid #d8e2eb !important; border-radius: 13px !important;
 background: #fff; color: #142d46; box-shadow: 0 16px 50px #10284438;
 font: 14px/1.45 'Segoe UI', system-ui, sans-serif;
}
dialog.inv-price-confirm::backdrop { background: #10243b3b; }
dialog.inv-price-confirm > header { padding: 14px 16px 8px; cursor: move; touch-action: none; }
dialog.inv-price-confirm > header:focus-visible { outline: 2px solid #285981; outline-offset: -3px; }
dialog.inv-price-confirm h2 { margin: 0; font-size: 16px; font-weight: 650; }
dialog.inv-price-confirm > p { margin: 0; padding: 0 16px 14px; color: #41546b; }
dialog.inv-price-confirm > form { margin: 0; padding: 10px 14px; border-top: 1px solid #e7edf3; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
dialog.inv-price-confirm button { min-height: 34px; padding: 4px 12px; border: 1px solid #d1dce7; border-radius: 7px; background: #fff; color: #183650; font: 600 13px/1.2 'Segoe UI', system-ui, sans-serif; }
#inventoryListing dialog.inv-price-confirm button.inv-price-confirm-primary { border-color: #162f4b !important; background: #162f4b !important; color: #fff !important; }
dialog.inv-price-confirm button:focus-visible { outline: 2px solid #285981; outline-offset: 2px; }
@media (min-width: 1180px) { body#inventoryListing.inventory-redesign #inventoryInspector .inv-prices.inv-price-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (pointer: coarse), (max-width: 700px) {
 dialog.inv-price-confirm button { min-height: 44px; }
}

/* Keep these exceptions above the existing important rules in the brand layers. */
@layer inventory-price-controls {
 body#inventoryListing.inventory-redesign #inventoryInspector .inv-prices.inv-price-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
 body#inventoryListing.inventory-redesign #inventoryInspector .inv-price-strip > :is(article, .inv-price-feature) { grid-column: auto !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; }
 #inventoryInspector .inv-price-strip > :is(article, .inv-price-feature) > :is(strong, b) { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
 #inventoryInspector .inv-price-strip [data-inline-price-amount] { width: 100% !important; }
 #inventoryInspector .inv-price-strip [data-price-display]:not([hidden]) {
  display: block !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important;
  font: inherit !important; color: inherit !important;
 }
 #inventoryInspector .inv-price-strip .inv-inline-price-editor:not([hidden]) { display: flex !important; align-items: baseline !important; gap: 0 !important; width: 100% !important; font: inherit !important; color: inherit !important; }
 #inventoryInspector .inv-inline-price-editor > span { flex: none; font: inherit !important; color: inherit !important; }
 #inventoryInspector .inv-inline-price-editor input {
  appearance: none; flex: 1; width: 0 !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
  box-sizing: border-box; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  outline: 0 !important; box-shadow: none !important; background: transparent !important;
  color: inherit !important; font: inherit !important; letter-spacing: inherit !important; cursor: text;
 }
 #inventoryInspector .inv-inline-price-editor input:focus { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
 #inventoryListing dialog.inv-price-confirm button.inv-price-confirm-primary { border-color: #162f4b !important; background: #162f4b !important; color: #fff !important; }
 @media (max-width: 355px) {
  #inventoryInspector .inv-price-strip > :is(article, .inv-price-feature) > :is(strong, b) { font-size: 18px !important; }
 }
 @media (min-width: 1180px) { body#inventoryListing.inventory-redesign #inventoryInspector .inv-prices.inv-price-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
}
