/* =========================
  ScanWin — retail-campaigns.css
========================= */

.sw-cmp > * {
  margin-bottom: 20px;
}

/* ===== Featured carousel track (Bootstrap slide) ===== */
.sw-cmp-featcarousel {
  border-radius: 24px;
}
.sw-cmp-featcarousel .carousel-inner {
  border-radius: 24px;
  overflow: hidden;
}
.sw-cmp-featcarousel .sw-cmp-feat {
  margin-bottom: 0;
  border-radius: 24px;
  height: 100%;
}

/* ===== Desktop eligibility note ===== */
.sw-cmp-note {
  background: #f3f1fe;
  border-radius: 12px;
  padding: 13px 18px 13px 16px;
}
.sw-cmp-note__i {
  width: 34px;
  height: 34px;
  background: #e2ddfd;
  color: #6e5df8;
}
.sw-cmp-note__i svg {
  width: 18px;
  height: 18px;
}
.sw-cmp-note__title {
  font-size: 13.5px;
  color: #0f0f21;
}
.sw-cmp-note__sub {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.45;
}

/* ===== Featured campaign (carousel) ===== */
.sw-cmp-feat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    21.6deg,
    #0f0f21 31.7%,
    #4a3dc4 68.3%,
    #6e5ef7 104.9%
  );
}
.sw-cmp-feat__glow {
  position: absolute;
  top: -130px;
  right: 96px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}
.sw-cmp-feat__main {
  gap: 18px;
}
.sw-cmp-feat__badge {
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 11px;
  --bs-badge-color: #1f3305;
  --bs-badge-padding-y: 6px;
  --bs-badge-padding-x: 12px;
  background: #a3db45;
  letter-spacing: 0.4px;
  padding-left: 11px;
}
.sw-cmp-feat__badge svg {
  width: 13px;
  height: 13px;
}
.sw-cmp-feat__title {
  font-size: 28px;
  line-height: 1.15;
}
.sw-cmp-feat__stats {
  gap: 40px;
  padding-top: 2px;
}
.sw-cmp-feat__k {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.6);
}
.sw-cmp-feat__v {
  font-size: 15px;
}
/* white-on-gradient CTA — .btn themed via vars */
.sw-cmp-feat__cta {
  --bs-btn-bg: #fff;
  --bs-btn-color: #6e5df8;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: #6e5df8;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: #6e5df8;
  --bs-btn-border-width: 0;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 700;
  --bs-btn-padding-y: 13px;
  --bs-btn-padding-x: 22px;
  --bs-btn-border-radius: 12px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  box-shadow: 0 5px 12px rgba(51, 26, 102, 0.25);
}
.sw-cmp-feat__side {
  flex-shrink: 0;
  width: 280px;
  height: 196px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.sw-cmp-feat__logo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
}
.sw-cmp-feat__cbox {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  padding: 7px 10px;
}
.sw-cmp-feat__cbox b {
  font-size: 18px;
}
.sw-cmp-feat__cbox i {
  font-size: 9px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.6);
}
.sw-cmp-feat__expire {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* featured controls */
.sw-cmp-featctl__label {
  font-size: 13px;
  color: #6b7280;
}
.sw-cmp-featctl__auto {
  font-size: 13px;
  color: #9ca3af;
}
.sw-cmp-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #d6d2f5;
  cursor: pointer;
  transition:
    width 0.2s,
    background 0.2s;
}
.sw-cmp-dot.is-active {
  width: 18px;
  background: #6e5df8;
}

/* ===== Browse + filters ===== */
.sw-cmp-browse__head {
  gap: 12px; /* off the spacer scale */
}
.sw-cmp-browse__title {
  font-size: 18px;
  color: #0f0f21;
}
.sw-cmp-browse__sub {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0;
}
/* recommended toggle — .btn themed via vars */
.sw-cmp-rec {
  --bs-btn-bg: #f3f1fe;
  --bs-btn-color: #6e5df8;
  --bs-btn-border-color: #6e5df8;
  --bs-btn-hover-bg: #f3f1fe;
  --bs-btn-hover-color: #6e5df8;
  --bs-btn-hover-border-color: #6e5df8;
  --bs-btn-active-bg: #f3f1fe;
  --bs-btn-active-color: #6e5df8;
  --bs-btn-active-border-color: #6e5df8;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 9px;
  --bs-btn-padding-x: 14px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}
.sw-cmp-rec svg {
  width: 14px;
  height: 14px;
}
/* filter chips: shared sw-chip-filter (sw-theme.css); campaigns
   uses 10px padding-y (1px over the shared 9px, within tolerance) */

/* ===== Campaign grid ===== */
.sw-cmp-grid {
  --bs-gutter-x: 20px; /* off the spacer scale */
  --bs-gutter-y: 20px;
}
.sw-cmp-card {
  --bs-card-border-color: rgba(110, 93, 248, 0.5);
  --bs-card-border-radius: 16px;
  --bs-card-spacer-y: 12px;
  --bs-card-spacer-x: 14px;
  box-shadow: 0 6px 18px rgba(26, 26, 56, 0.07);
}
.sw-cmp-card__media {
  height: 128px;
}
.sw-cmp-card__fav {
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 28px;
  height: 28px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 6px 18px rgba(26, 26, 56, 0.07);
}
.sw-cmp-card__fav svg {
  width: 15px;
  height: 15px;
}
.sw-cmp-card__fav.is-saved {
  color: #e8113b;
}
.sw-cmp-card__fav.is-saved svg {
  fill: #e8113b;
}
/* status badge (PREMIUM etc.) */
.sw-cmp-card__media .sw-status {
  color: #fff; /* shared .sw-status--premium (retail.css) is violet-on-tint */
  top: 12px;
  left: 12px;
  z-index: 1;
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 10px;
  --bs-badge-padding-y: 4px;
  --bs-badge-padding-x: 9px;
  letter-spacing: 0.4px;
}
.sw-status--premium {
  background: #6e5df8;
}

.sw-cmp-card__body {
  gap: 12px; /* off the spacer scale */
}
.sw-cmp-card__name {
  font-size: 14px;
  color: #0f0f21;
}
.sw-cmp-card__cat {
  font-size: 11px;
  color: #9ca3af;
}
.sw-cmp-card__pts {
  color: #6e5df8;
}
.sw-cmp-card__timer {
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 12px;
  --bs-badge-font-weight: 600;
  --bs-badge-color: #92400e;
  --bs-badge-padding-y: 4px;
  --bs-badge-padding-x: 8px;
  background: #fef3d9;
}
.sw-cmp-card__timer svg {
  width: 11px;
  height: 11px;
}
/* Bootstrap .progress via its vars */
.sw-cmp-card__bar {
  --bs-progress-height: 5px;
  --bs-progress-bg: #e5e8ed;
  --bs-progress-border-radius: 999px;
  --bs-progress-bar-bg: #6e5df8;
}
.sw-cmp-card__bar .progress-bar {
  border-radius: 999px; /* design rounds the leading edge */
}
.sw-cmp-card__left {
  font-size: 11px;
  font-weight: 500;
  color: #8c94a3;
}
.sw-cmp-card__left--hot {
  color: #dc2626;
}
.sw-cmp-card__view {
  --bs-btn-bg: #6e5df8;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #6e5df8;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #6e5df8;
  --bs-btn-active-color: #fff;
  --bs-btn-border-width: 0;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 10px;
  --bs-btn-border-radius: 10px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}
.sw-cmp-card__view svg {
  width: 16px;
  height: 16px;
}
.sw-cmp-card__view:hover {
  filter: brightness(0.96);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .sw-cmp-feat {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
  }
  .sw-cmp-feat__side {
    order: -1;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 12px;
  }
  .sw-cmp-feat__expire {
    display: none;
  }
  .sw-cmp-feat__title {
    font-size: 22px;
  }
  .sw-cmp-feat__stats {
    gap: 22px;
  }
  .sw-cmp-feat__cta {
    width: 100%;
  }
  .sw-cmp-feat__glow {
    right: -60px;
  }
}
@media (max-width: 575.98px) {
  .sw-cmp-filters {
    scrollbar-width: none;
  }
  .sw-cmp-filters::-webkit-scrollbar {
    display: none;
  }
}
