/* Generated from app/common/nodejs/gametopup/catalog/main.scss. Edit the source. */
.af-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

#main .af-heading-row h1 {
  margin-bottom: 4px;
}

#main .af-heading-row p {
  margin: 0;
}

.af-catalog-currency {
  margin-left: auto;
}

.af-muted {
  color: var(--af-muted);
}

.af-catalog-layout {
  display: block;
}

#catalog-products {
  scroll-margin-top: 16px;
  width: fit-content;
  max-width: 100%;
}

.af-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-game-card {
  min-width: 0;
}

.af-game-card a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  background: var(--af-bg);
  color: var(--af-ink);
  text-align: left;
  text-decoration: none;
}

.af-game-card a:hover {
  border-color: var(--af-green);
}

.af-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--af-soft);
  color: var(--af-muted);
  font-size: 12px;
  text-align: center;
}

.af-cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.af-cover > [data-testid=game-image-fallback] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: var(--af-soft);
  overflow-wrap: normal;
}

.af-card-copy {
  display: contents;
}

.af-card-copy strong {
  align-self: center;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.af-card-meta, .af-card-price {
  grid-column: 1/-1;
}

.af-card-meta {
  color: var(--af-muted);
  font-size: 14px;
}

.af-card-price {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--af-green);
}

.af-card-price {
  overflow-wrap: anywhere;
}

.af-card-price [data-testid=game-price-unavailable] {
  color: var(--af-muted);
}

.af-card-action {
  grid-column: 1/-1;
  align-self: end;
  color: var(--af-green);
  font-weight: 500;
}

.af-catalog-count {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 8px;
  color: var(--af-muted);
  font-size: 14px;
}

.af-catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 12px 0;
}

.af-catalog-pagination a, .af-catalog-pagination span {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 5px;
}

.af-catalog-pagination a {
  border: 1px solid var(--af-line);
  background: var(--af-bg);
  text-decoration: none;
}

.af-catalog-pagination [aria-current] {
  background: var(--af-green);
  color: var(--af-on-green);
  font-weight: 700;
}

.af-catalog-pagination [aria-disabled] {
  color: var(--af-muted);
}

.af-search-results {
  margin-top: 16px;
  color: var(--af-muted);
}

.af-search-results p {
  margin-bottom: 8px;
}

.af-center {
  max-width: 600px;
  margin: 24px auto;
  text-align: center;
}

#main .af-center.af-empty, #main .af-center.af-error {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.af-search-suggestions ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-search-suggestions a {
  display: block;
  min-height: 44px;
  padding: 10px 8px;
  color: var(--af-ink);
  font-size: 14px;
  text-decoration: none;
}

.af-search-suggestions a:hover, .af-search-suggestions a:focus-visible {
  background: var(--af-soft);
}

.af-how {
  margin: 0 0 14px;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  background: var(--af-soft);
}

.af-how summary {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--af-ink);
  font-weight: 600;
  list-style: none;
}

.af-how summary::-webkit-details-marker {
  display: none;
}

.af-how-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--af-green);
  border-radius: 50%;
  color: var(--af-green);
}

.af-how-arrow {
  margin-left: auto;
  transition: transform 0.15s;
}

.af-how[open] .af-how-arrow {
  transform: rotate(180deg);
}

.af-how ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 4px 14px 16px;
  list-style: none;
}

.af-how li {
  display: flex;
  align-items: start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.af-how-number {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 50%;
  background: var(--af-selected);
  color: var(--af-green);
  font-weight: 600;
}

.af-how li strong {
  padding-top: 2px;
}

#main .af-preview-note {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--af-green);
  background: var(--af-selected);
  font-size: 14px;
}

@container (max-width: 1199px) {
  .af-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container (max-width: 699px) {
  .af-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .af-game-card a {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .af-cover {
    width: 56px;
    height: 56px;
  }
  .af-heading-row {
    align-items: start;
  }
  .af-catalog-currency {
    margin-left: 0;
  }
  .af-how ol {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@container (max-width: 379px) {
  .af-catalog {
    grid-template-columns: 1fr;
  }
}