/**
 * Cashback store page hero (/cashback/{slug}) — 3-column top layout.
 * Scoped under .cs-cb-hero
 */
/* Neutralize legacy store page photo background behind the new hero */
.store-sec-1.cs-cb-store-page {
  background: #f4f7f9 !important;
  background-image: none !important;
}

.cs-cb-hero {
  --cs-cb-blue: #1f7cff;
  --cs-cb-blue-hover: #0d66e0;
  --cs-cb-green: #1f9d57;
  --cs-cb-green-soft: #e8f8ef;
  --cs-cb-ink: #15252c;
  --cs-cb-muted: #5a6f78;
  --cs-cb-line: #e4eef2;
  --cs-cb-bg: #f4f7f9;
  --cs-cb-card: #ffffff;
  --cs-cb-radius: 14px;
  background: var(--cs-cb-bg);
  padding: 8px 0 28px;
  margin: 0 0 8px;
}

.cs-cb-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cs-cb-muted);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.cs-cb-hero__crumbs a {
  color: var(--cs-cb-muted);
  text-decoration: none;
  font-weight: 500;
}
.cs-cb-hero__crumbs a:hover,
.cs-cb-hero__crumbs a:focus {
  color: var(--cs-cb-blue);
  text-decoration: underline;
}
.cs-cb-hero__crumbs .sep {
  opacity: 0.55;
}
.cs-cb-hero__crumbs .current {
  color: var(--cs-cb-ink);
  font-weight: 600;
}

.cs-cb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}
.cs-cb-hero__grid.is-authed {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.95fr);
}

.cs-cb-hero__panel,
.cs-cb-hero__rate,
.cs-cb-hero__join {
  background: var(--cs-cb-card);
  border: 1px solid var(--cs-cb-line);
  border-radius: var(--cs-cb-radius);
  box-shadow: 0 6px 22px rgba(21, 37, 44, 0.06);
}

.cs-cb-hero__panel {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cs-cb-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cs-cb-hero__logo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--cs-cb-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-cb-hero__logo img {
  max-width: 58px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cs-cb-hero__name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cs-cb-ink);
  letter-spacing: -0.02em;
}

.cs-cb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
}
.cs-cb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cs-cb-green-soft);
  color: var(--cs-cb-green);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 999px;
}
.cs-cb-hero__badge i {
  font-size: 12px;
}
.cs-cb-hero__channel {
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-cb-muted);
}

.cs-cb-hero__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cs-cb-muted);
  max-width: 36em;
}

.cs-cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cs-cb-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--cs-cb-blue) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(31, 124, 255, 0.28);
  cursor: pointer;
}
.cs-cb-hero__cta:hover,
.cs-cb-hero__cta:focus {
  background: var(--cs-cb-blue-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.cs-cb-hero__cta i {
  font-size: 14px;
  opacity: 0.95;
}

.cs-cb-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cs-cb-muted);
}
.cs-cb-hero__trust i {
  color: var(--cs-cb-green);
}
.cs-cb-hero__trust a {
  color: var(--cs-cb-blue);
  font-weight: 600;
  text-decoration: none;
}
.cs-cb-hero__trust a:hover {
  text-decoration: underline;
}

.cs-cb-hero__rate {
  padding: 20px 20px 18px;
}
.cs-cb-hero__rate-title {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cs-cb-green);
  letter-spacing: -0.01em;
}
.cs-cb-hero__rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-cb-hero__rate-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.cs-cb-hero__rate-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--cs-cb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.cs-cb-hero__rate-icon.is-warn {
  background: #fff1f0;
  color: #d64545;
}
.cs-cb-hero__rate-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-cb-muted);
  margin-bottom: 2px;
  text-transform: none;
}
.cs-cb-hero__rate-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-cb-ink);
  line-height: 1.35;
}

.cs-cb-hero__join {
  padding: 18px 18px 16px;
  min-width: 0;
}
.cs-cb-hero__join .banner_form,
.cs-cb-hero__join .cs-auth-banner {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
}
.cs-cb-hero__join .banner_form h4,
.cs-cb-hero__join .cs-auth-banner h4 {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-cb-ink);
  text-align: left;
}
.cs-cb-hero__join .banner_form .form-control,
.cs-cb-hero__join .cs-auth-banner .form-control {
  border-radius: 8px;
  border: 1px solid #d5e0e6;
  min-height: 44px;
  margin-bottom: 10px;
}
.cs-cb-hero__join .banner_form .btn_email,
.cs-cb-hero__join .cs-auth-banner .btn_email {
  width: 100%;
  border-radius: 8px;
  min-height: 44px;
  background: var(--cs-cb-blue) !important;
  border-color: var(--cs-cb-blue) !important;
  font-weight: 700;
}
.cs-cb-hero__join .banner_form h6,
.cs-cb-hero__join .cs-auth-banner h6 {
  margin: 12px 0;
  text-align: center;
  color: var(--cs-cb-muted);
  font-size: 13px;
}
.cs-cb-hero__join .cs-sso-buttons {
  max-width: none;
  width: 100%;
}
.cs-cb-hero__join .banner_form > p,
.cs-cb-hero__join .cs-auth-banner > p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cs-cb-muted);
  margin: 12px 0 0;
  text-align: left;
}

.cs-cb-hero__signed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}
.cs-cb-hero__signed h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--cs-cb-ink);
}
.cs-cb-hero__signed p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-cb-muted);
}
.cs-cb-hero__signed a.cs-cb-hero__cta {
  width: 100%;
}

@media only screen and (max-width: 1199px) {
  .cs-cb-hero__grid,
  .cs-cb-hero__grid.is-authed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cs-cb-hero__join {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 767px) {
  .cs-cb-hero {
    padding: 4px 0 18px;
  }
  .cs-cb-hero__grid,
  .cs-cb-hero__grid.is-authed {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cs-cb-hero__join {
    grid-column: auto;
  }
  .cs-cb-hero__name {
    font-size: 24px;
  }
  .cs-cb-hero__logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
  .cs-cb-hero__cta {
    width: 100%;
  }
  .cs-cb-hero__rate-title {
    font-size: 20px;
  }
}

/* Similar stores: native horizontal scroll (no Swiper on cashback slim) */
.similar-store-slider .swiper-container {
  overflow: hidden;
}
.similar-store-slider .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}
.similar-store-slider .swiper-slide {
  flex: 0 0 160px;
  width: 160px;
  max-width: 160px;
  height: auto;
  scroll-snap-align: start;
}
.similar-store-slider-sec .similar-store-nav {
  display: none;
}
