/* Keep Radix's measurement wrapper inside the chat, so nested rows overflow. */
[data-radix-scroll-area-viewport] > div {
  display: block !important;
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
}
[data-deals-scroll] {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: none !important;
  grid-auto-columns: min(340px, calc(100% - 20px));
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin !important;
}
[data-deals-scroll]::-webkit-scrollbar { display: block !important; height: 6px; }
[data-deals-scroll] > div { min-width: 0; scroll-snap-align: start; }
[data-deals-scroll] .justify-between { flex-wrap: wrap; gap: 6px; }
.deals-scroll-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.deals-scroll-controls span { font: 12px Arial, sans-serif; color: #777; }
.deals-scroll-controls button { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #e5e5e5; color: #111; font-size: 20px; cursor: pointer; }
.deals-scroll-controls button:disabled { opacity: .3; cursor: default; }
[data-wishlist-panel] { container-type: inline-size; container-name: wishlist; }
[data-wishlist-grid] { grid-template-columns: minmax(0, 1fr) !important; }
[data-wishlist-row] {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 28px;
  column-gap: 12px;
  row-gap: 8px;
  min-width: 0;
  align-items: start;
}
[data-wishlist-row] > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
[data-wishlist-row] > :nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; }
[data-wishlist-row] > :nth-child(2) p { overflow-wrap: anywhere; }
[data-wishlist-row] > :nth-child(2) > div { flex-wrap: wrap; }
[data-wishlist-row] > :nth-child(3) { grid-column: 2 / -1; grid-row: 2; flex-direction: row !important; flex-wrap: wrap; min-width: 0; }
[data-wishlist-row] > :nth-child(3) button { min-height: 32px; }
[data-wishlist-row] > :nth-child(4) { grid-column: 3; grid-row: 1; margin-left: 0; }
[data-wishlist-panel] > div:last-child > .justify-between { flex-wrap: wrap; gap: 12px; }
[data-wishlist-panel] > div:last-child .items-baseline { flex-wrap: wrap; }
@container wishlist (min-width: 760px) {
  [data-wishlist-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container wishlist (max-width: 340px) {
  [data-wishlist-panel] > div:last-child > .justify-between > button { width: 100%; justify-content: center; }
}
[data-radix-scroll-area-viewport] .scrollbar-hide {
  max-width: 100%;
  min-width: 0;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
}
