.auctions-overview {
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px 0 32px;
}

.auctions-overview__title {
  margin: 0;
  color: #1d1f20;
}

.auctions-overview__description {
  margin: 4px 0 0;
  color: var(--Dark-grey, #6f7072);
  font-size: 16px;
  font-weight: 400;
}

.auctions-overview__list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.auction-type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px 12px 12px;
  background: #ffffff;
  border: 1px solid #d3d6db;
  border-radius: 8px;
  color: #1d1f20;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auction-type-card:hover,
.auction-type-card:focus {
  border-color: var(--red, #ec3d3c);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.20);
  color: #1d1f20;
}

.auction-type-card__icon {
  display: flex;
  flex: 0 0 88px;
  align-items: center;
  justify-content: center;
  height: 68px;
  background: #f4f5f7;
  border-radius: 6px;
  color: #1d1f20;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.auction-type-card__image {
  display: inline-block;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--auction-type-card-image) center / contain no-repeat;
  mask: var(--auction-type-card-image) center / contain no-repeat;
}

.auction-type-card__image--gavel {
  --auction-type-card-image: url("/content/images/icons/auction-gavel.svg");
}

.auction-type-card__image--car {
  --auction-type-card-image: url("/content/images/icons/auction-car.svg");
}

.auction-type-card__image--arrow {
  --auction-type-card-image: url("/content/images/icons/arrow-right.svg");
}

.auction-type-card__icon .auction-type-card__image {
  width: 50px;
  height: 50px;
}

.auction-type-card__title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.auction-type-card__name {
  flex: 0 0 auto;
  margin: 0;
  color: #1d1f20;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auction-type-card__description {
  padding-left: 16px;
  border-left: 1px solid #d3d6db;
  color: var(--Dark-grey, #6f7072);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.auction-type-card:hover .auction-type-card__description,
.auction-type-card:focus .auction-type-card__description {
  opacity: 1;
}

.auction-type-card__count {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  margin-right: 24px;
  padding: 10px 0 10px 32px;
  border-left: 1px solid #e6e8eb;
  color: var(--Dark-grey, #6f7072);
  font-size: 20px;
}

.auction-type-card__count strong {
  color: #1d1f20;
  font-weight: 500;
}

.auction-type-card__count .auction-type-card__image {
  width: 30px;
  height: 30px;
  color: #1d1f20;
}

.auction-type-card__view {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--Dark-grey, #6f7072);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.auction-type-card__view .auction-type-card__image {
  width: 16px;
  height: 16px;
}

.auction-type-card:hover .auction-type-card__icon,
.auction-type-card:focus .auction-type-card__icon {
  background: #fdeeee;
  color: var(--red, #ec3d3c);
}

.auction-type-card:hover .auction-type-card__name,
.auction-type-card:hover .auction-type-card__view,
.auction-type-card:focus .auction-type-card__name,
.auction-type-card:focus .auction-type-card__view {
  color: var(--red, #ec3d3c);
}

@media only screen and (max-width: 640px) {
  .auctions-overview {
    padding: 16px 16px 40px;
  }
  .auctions-overview__list {
    margin-top: 24px;
  }
  .auction-type-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }
  .auction-type-card__icon {
    flex-basis: 68px;
    height: 56px;
  }
  .auction-type-card__icon .auction-type-card__image {
    width: 40px;
    height: 40px;
  }
  .auction-type-card__title {
    flex-basis: calc(100% - 80px);
  }
  .auction-type-card__description {
    display: none;
  }
  .auction-type-card__count {
    flex-basis: 100%;
    min-width: 0;
    margin-right: 0;
    padding: 0;
    border-left: 0;
  }
  .auction-type-card__view {
    margin-left: auto;
  }
}
