/* Top Stores SEO crosslink carousel — shared across cashback / coupons / GC */
.cs-tsx {
  --cs-tsx-tile: 104px;
  --cs-tsx-gap: 12px;
  --cs-tsx-visible: 10; /* ~6 prior + ~4 more */
  text-align: center;
}

.cs-tsx__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cs-tsx__head {
  margin-bottom: 18px;
}

.cs-tsx__head h2 {
  margin: 0;
}

.cs-tsx__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 100%;
}

.cs-tsx__track {
  list-style: none;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--cs-tsx-gap);
  margin: 0 !important;
  padding: 6px 2px 10px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  width: 100%;
  max-width: calc(var(--cs-tsx-visible) * var(--cs-tsx-tile) + (var(--cs-tsx-visible) - 1) * var(--cs-tsx-gap));
  min-height: calc(var(--cs-tsx-tile) + 16px);
  box-sizing: border-box;
}

.cs-tsx__track:focus {
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 2px;
}

.cs-tsx__item {
  flex: 0 0 var(--cs-tsx-tile);
  width: var(--cs-tsx-tile);
  scroll-snap-align: start;
}

.cs-tsx__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cs-tsx-tile);
  height: var(--cs-tsx-tile);
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(77, 179, 255, 0.18);
  box-shadow: 0 6px 18px rgba(5, 10, 20, 0.12);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: #15252c;
}

.cs-tsx__tile:hover,
.cs-tsx__tile:focus {
  border-color: rgba(77, 179, 255, 0.45);
  box-shadow: 0 10px 24px rgba(5, 10, 20, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.cs-tsx__tile img,
.cs-tsx__tile .cs-store-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 88px !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: center;
  margin: 0 auto !important;
}

.cs-tsx__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  padding: 4px;
  word-break: break-word;
}

.cs-tsx__nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(21, 37, 44, 0.18);
  background: #fff;
  color: #15252c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(20, 36, 44, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.cs-tsx__nav:hover:not(:disabled),
.cs-tsx__nav:focus:not(:disabled) {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
  outline: none;
}

.cs-tsx__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.cs-tsx__cta.btn.btn-blue-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Dark band (cashback store pages) */
.cs-tsx--band.cs-cb-top-stores-band {
  padding: 28px 0 36px;
}

.store-sec-2 .cs-tsx--band .cs-tsx__cta.btn.btn-blue-outline,
.store-sec-2 .cs-tsx--band .cs-cb-top-stores__cta.btn.btn-blue-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
}

.store-sec-2 .cs-tsx--band .cs-tsx__cta.btn.btn-blue-outline:hover,
.store-sec-2 .cs-tsx--band .cs-tsx__cta.btn.btn-blue-outline:focus {
  background: #1677ff !important;
  border-color: #1677ff !important;
  color: #fff !important;
}

/* Light panel (coupon / GC pages) */
.cs-tsx--panel {
  margin: 28px 0;
  padding: 8px 0 12px;
}

.cs-tsx--panel .cs-tsx__inner {
  padding: 22px 18px 20px;
  background: #f4f7f9;
  border: 1px solid #e4eef2;
  border-radius: 16px;
}

@media only screen and (max-width: 991px) {
  .cs-tsx {
    --cs-tsx-visible: 6;
    --cs-tsx-tile: 96px;
  }
}

@media only screen and (max-width: 767px) {
  .cs-tsx {
    --cs-tsx-visible: 3;
    --cs-tsx-tile: 88px;
    --cs-tsx-gap: 8px;
  }

  .cs-tsx__nav {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .cs-tsx__tile {
    height: 72px;
    border-radius: 12px;
  }

  .store-sec-2 .cs-tsx--band .cs-tsx__inner {
    margin: 0 12px;
    padding: 18px 12px 16px;
    border-radius: 16px;
    background: #f4f7f9;
    border: 1px solid rgba(77, 179, 255, 0.14);
    color: #15252c;
  }

  .store-sec-2 .cs-tsx--band .cs-tsx__head h2 {
    color: #15252c !important;
  }

  .store-sec-2 .cs-tsx--band .cs-tsx__cta.btn.btn-blue-outline {
    color: #1677ff !important;
    border-color: #1677ff !important;
  }
}
