/* List-view layer: reuses the card renderer while switching the card frame. */
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  align-items: stretch !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card {
  grid-template-columns: clamp(190px, 13vw, 260px) minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  min-height: 220px !important;
  height: auto !important;
  align-items: stretch !important;
  align-content: stretch !important;
  border-color: rgba(0, 229, 255, .52) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-media {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  aspect-ratio: auto !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-media img,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-img-placeholder {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-body {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(340px, 520px) !important;
  grid-template-rows: auto auto auto minmax(8px, 1fr) 36px !important;
  gap: 6px 8px !important;
  min-height: 0 !important;
  padding: 8px 9px 10px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-list-summary {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-list-metrics {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-titleline,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-short,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-chip-row-one,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-chip-row-two {
  grid-column: 1 / 3 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-titleline .n30n-qd-rating,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-score-row {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metrics {
  display: flex !important;
  grid-column: 3 / 4 !important;
  grid-row: 1 / 2 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metric {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 25px !important;
  max-width: 100% !important;
  padding: 0 8px !important;
  border: 1px solid rgba(255, 220, 120, .45) !important;
  border-radius: 999px !important;
  background: rgba(20, 20, 30, .72) !important;
  color: #ffe79a !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metric small {
  margin-left: 3px !important;
  color: #aeb8d4 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metric-steam {
  border-color: rgba(0, 229, 255, .44) !important;
  color: #8df7ff !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metric-score {
  border-color: rgba(56, 239, 255, .24) !important;
  color: #b8c7ee !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-video-slot {
  grid-column: 1 / 2 !important;
  grid-row: 5 !important;
  align-self: end !important;
  transform: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-detail-slot {
  grid-column: 2 / 3 !important;
  grid-row: 5 !important;
  align-self: end !important;
  transform: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-no-video .n30n-qd-detail-slot {
  grid-column: 2 / 3 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-addon-slot,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-video-slot,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-detail-slot,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-slot-button {
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  font-size: 12px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-detail-slot .n30n-qd-button-detail,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-video-slot .n30n-qd-slot-button {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card h3 {
  -webkit-line-clamp: 1 !important;
  font-size: 18px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-short {
  -webkit-line-clamp: 1 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-chip-filter {
  min-height: 28px !important;
  height: auto !important;
  max-height: none !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1.12 !important;
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-chip-row-one {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  grid-row: 3 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-chip-row-two {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-addon-slot:empty,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-video-slot:empty,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-addon-slot:has(.n30n-qd-slot-button.is-empty),
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-video-slot:has(.n30n-qd-slot-button.is-empty) {
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-addon-slot:has(.n30n-qd-slot-button.is-empty) .n30n-qd-slot-button,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-video-slot:has(.n30n-qd-slot-button.is-empty) .n30n-qd-slot-button {
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-side {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-pricebox {
  min-height: 42px !important;
  justify-content: flex-start !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-pricebox strong {
  font-size: 16px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-actions {
  align-content: end !important;
  grid-template-rows: 29px 29px !important;
  gap: 4px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-actions .n30n-qd-button {
  min-height: 29px !important;
  height: 29px !important;
  max-height: 29px !important;
  font-size: 12px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-inline-children {
  width: 100% !important;
  margin: -2px 0 10px !important;
  padding: 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 229, 255, .42) !important;
  background: linear-gradient(180deg, rgba(5, 9, 24, .96), rgba(4, 7, 20, .98)) !important;
  box-shadow: 0 0 22px rgba(0, 229, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-inline-children-head {
  margin-bottom: 8px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-inline-children-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-inline-children-grid .n30n-qd-rest-card {
  margin: 0 !important;
}

@media (min-width: 901px) {
  .n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-layout {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-filter-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 40 !important;
    width: min(326px, calc(100vw - 42px)) !important;
    max-height: none !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(5, 10, 28, .985), rgba(4, 8, 22, .992)) !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-filter-collapsed .n30n-qd-filter-panel {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-16px) scale(.985) !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-filter-collapsed) .n30n-qd-filter-panel {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) scale(1) !important;
  }
}

@media (max-width: 900px) {
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card {
    grid-template-columns: 118px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-media {
    min-height: 132px !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-body {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto auto auto !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-titleline,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-short,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-chip-row-one,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-chip-row-two,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-score-row,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metrics,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-store-footer {
    grid-column: 1 / -1 !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-list-metrics {
    grid-row: auto !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-video-slot {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-detail-slot {
    grid-column: 2 / 3 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 620px) {
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-results-panel,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-grid,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    min-width: 0 !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-media {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card .n30n-qd-body,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-store-footer {
    grid-template-columns: 1fr !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-video-slot,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-detail-slot {
    grid-column: 1 / -1 !important;
  }
}
