/* Store footer layer: Video -> Details -> store-specific price/button/add-ons. */
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card {
  --n30n-qd-store-price-height: 82px;
  --n30n-qd-store-control-height: var(--n30n-qd-button-height);
  grid-template-rows: auto 1fr !important;
  align-content: stretch !important;
  min-height: var(--n30n-qd-card-height) !important;
  padding-bottom: 0 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-body {
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(8px, 1fr) var(--n30n-qd-slot-height) var(--n30n-qd-button-height) auto !important;
  gap: 9px !important;
  align-content: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  padding-bottom: 26px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-titleline {
  grid-row: 1 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-short {
  grid-row: 2 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-chip-row-one {
  grid-row: 3 !important;
  max-height: none !important;
  overflow: visible !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-score-row {
  grid-row: 4 !important;
}

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

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-actions {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-addon-slot {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card.n30n-qd-no-video .n30n-qd-video-slot {
  display: block !important;
  min-height: var(--n30n-qd-slot-height) !important;
  height: var(--n30n-qd-slot-height) !important;
  max-height: var(--n30n-qd-slot-height) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-video-slot,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-detail-slot {
  width: 100% !important;
  min-width: 0 !important;
  align-self: end !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-video-slot {
  grid-row: 6 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-detail-slot {
  grid-row: 7 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-video-slot .n30n-qd-slot-button,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-detail-slot .n30n-qd-button-detail {
  width: 100% !important;
  min-width: 0 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 8px !important;
  align-self: end !important;
  margin-top: 9px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell:not(.n30n-qd-list-view) .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
  grid-row: 8 !important;
}

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

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer.n30n-qd-store-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer.n30n-qd-store-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer.n30n-qd-store-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit {
  display: grid !important;
  grid-template-rows: var(--n30n-qd-store-price-height) var(--n30n-qd-store-control-height) var(--n30n-qd-store-control-height) !important;
  gap: 7px !important;
  min-width: 0 !important;
  align-items: stretch !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit.n30n-qd-store-unit-no-addons {
  grid-template-rows: var(--n30n-qd-store-price-height) var(--n30n-qd-store-control-height) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit-label {
  display: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-pricebox {
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--n30n-qd-store-price-height) !important;
  height: var(--n30n-qd-store-price-height) !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-price-label {
  display: block !important;
  margin: 0 0 4px !important;
  color: #b9c7f5 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-button,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-slot-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--n30n-qd-store-control-height) !important;
  height: var(--n30n-qd-store-control-height) !important;
  max-height: var(--n30n-qd-store-control-height) !important;
  margin: 0 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-store-addon.is-disabled,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-store-action.is-disabled,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-video-button.is-disabled,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-addon-btn.is-disabled {
  opacity: .42 !important;
  filter: grayscale(.35) !important;
  pointer-events: none !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-store-addon.is-disabled:hover,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-store-action.is-disabled:hover,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-video-button.is-disabled:hover,
.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-addon-btn.is-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, .045) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit-meta .n30n-qd-pricebox {
  border-color: rgba(255, 43, 214, .58) !important;
  background: linear-gradient(180deg, rgba(255, 43, 214, .14), rgba(72, 12, 92, .24)) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit-steam .n30n-qd-pricebox {
  border-color: rgba(0, 229, 255, .56) !important;
  background: linear-gradient(180deg, rgba(0, 229, 255, .13), rgba(0, 60, 98, .28)) !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(284px, 360px) !important;
  grid-template-rows: auto auto auto minmax(8px, 1fr) 36px !important;
  gap: 6px 8px !important;
  padding-bottom: 12px !important;
  height: auto !important;
}

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

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-titleline {
  grid-column: 1 / 3 !important;
  grid-row: 1 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-short {
  grid-column: 1 / 3 !important;
  grid-row: 2 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-chip-row-one {
  grid-column: 1 / 3 !important;
  grid-row: 3 !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-store-footer-card .n30n-qd-video-slot,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-detail-slot {
  grid-row: 5 !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
  grid-column: 3 / 4 !important;
  grid-row: 2 / 6 !important;
  align-self: end !important;
  gap: 5px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  transform: none !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit {
  grid-template-rows: 56px 36px 36px !important;
  gap: 5px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit.n30n-qd-store-unit-no-addons {
  grid-template-rows: 56px 36px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-pricebox {
  min-height: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
}

.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-button,
.n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-unit .n30n-qd-slot-button {
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 900px) {
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: start !important;
    transform: none !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-titleline,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-short,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-chip-row-one,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-video-slot,
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-detail-slot {
    grid-row: auto !important;
  }
}

@media (max-width: 620px) {
  .n30n-quest-deals.n30n-qd-rest-shell.n30n-qd-list-view .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: start !important;
    transform: none !important;
  }

  .n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer.n30n-qd-store-count-3,
  .n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer.n30n-qd-store-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .n30n-quest-deals.n30n-qd-rest-shell .n30n-qd-rest-card.n30n-qd-store-footer-card .n30n-qd-store-footer {
    grid-template-columns: 1fr !important;
  }
}
