/**
 * Gift card art — ISO ID-1 proportions (~1.586:1), shared buy/sell store pages.
 */
:root {
  --cs-gc-card-ratio: 1.586;
  --cs-gc-card-frame-bg: #f8fafb;
  --cs-gc-card-frame-border: #e4eef0;
}

/* Hero / sidebar card on buy-discount store pages */
.sell_giftcard .img-cover figure,
.cs-gc-card-frame {
  width: min(100%, 280px);
  max-width: 280px;
  aspect-ratio: var(--cs-gc-card-ratio) / 1;
  height: auto;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  box-sizing: border-box;
  background: var(--cs-gc-card-frame-bg);
  border: 1px solid var(--cs-gc-card-frame-border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 70, 90, 0.07);
  overflow: hidden;
}

.sell_giftcard .img-cover figure img,
.sell_giftcard .img-cover figure img.cs-store-logo,
.cs-gc-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.sell_giftcard .img-cover {
  max-width: 300px;
  max-height: none;
}

/* Listing table thumbnails */
.gc-listing-thumb {
  width: 72px;
  height: auto;
  aspect-ratio: var(--cs-gc-card-ratio) / 1;
  max-width: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8ecef;
  padding: 2px;
  box-sizing: border-box;
}

/* See-more carousel on buy store pages */
.sell_giftcard .giftcards .swiper-slide a {
  display: block;
  width: 100%;
  max-width: 168px;
  margin: 0 auto;
  aspect-ratio: var(--cs-gc-card-ratio) / 1;
  padding: 6px 8px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 70, 90, 0.06);
}

.sell_giftcard .giftcards .swiper-slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
}

/* Sell store hero card art */
.cs-ssgc-page .cs-ssgc-card-art {
  aspect-ratio: var(--cs-gc-card-ratio) / 1 !important;
  max-width: 360px !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid var(--cs-gc-card-frame-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(20, 36, 44, 0.08) !important;
  overflow: hidden;
}

.cs-ssgc-page .cs-ssgc-card-art img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

@media only screen and (max-width: 767px) {
  .sell_giftcard .img-cover figure {
    width: 104px !important;
    max-width: 104px !important;
    aspect-ratio: var(--cs-gc-card-ratio) / 1;
    height: auto !important;
    padding: 6px 8px;
  }

  .gc-listing-thumb {
    width: 56px;
    max-width: 56px;
  }

  .sell_giftcard .giftcards .swiper-slide a {
    max-width: 140px;
  }
}
