/* Shirts4Christ v64.20: compact occasions and artifact-free Trending Stores mascot display. */
main {
  background-color: #eef8fd;
  background-image:
    radial-gradient(ellipse at 12% 12%, rgba(255, 255, 255, .9) 0 5%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(ellipse at 84% 27%, rgba(255, 255, 255, .76) 0 4%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(116deg, transparent 0 31%, rgba(113, 183, 220, .07) 31.15%, transparent 31.6%),
    linear-gradient(66deg, transparent 0 63%, rgba(255, 255, 255, .42) 63.1%, transparent 63.45%),
    linear-gradient(29deg, transparent 0 18%, rgba(96, 166, 205, .05) 18.1%, transparent 18.38%),
    linear-gradient(143deg, transparent 0 74%, rgba(255, 255, 255, .3) 74.1%, transparent 74.38%),
    linear-gradient(84deg, transparent 0 46%, rgba(105, 175, 212, .045) 46.08%, transparent 46.27%),
    linear-gradient(180deg, #f8fcff 0%, #edf8fd 47%, #e8f5fb 100%);
  background-attachment: local;
}

.s4c-number-slider {
  background: transparent !important;
}

#charity-impact-tracker {
  background: rgba(255, 255, 255, .88) !important;
  border: 1px solid rgba(164, 204, 227, .48);
  box-shadow:
    0 14px 34px rgba(10, 67, 104, .09),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.rebuilt-bottom-section .mission-card {
  border-color: rgba(154, 198, 224, .54) !important;
  box-shadow: 0 12px 28px rgba(10, 67, 104, .07);
}

.rebuilt-bottom-section .mission-card.blue {
  background: linear-gradient(105deg, rgba(237, 247, 255, .91), rgba(250, 253, 255, .84)) !important;
}

.rebuilt-bottom-section .mission-card.green {
  background: linear-gradient(105deg, rgba(238, 249, 244, .91), rgba(250, 253, 255, .84)) !important;
}

.s4c-trending-replay {
  margin-top: -14px;
  color: #0b4f96;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .92);
}

.s4c-number-slider {
  padding-bottom: 13px !important;
}

.s4c-number-slide {
  height: 242px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.s4c-number-content {
  gap: 7px;
  padding: 11px 12px 12px !important;
}

.s4c-number-title {
  font-size: 20px !important;
}

.s4c-number-ideas {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  column-gap: clamp(8px, .72vw, 13px);
  color: #fff;
  font-size: clamp(6.5px, .5vw, 9px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .9);
}

.s4c-number-ideas span {
  position: relative;
  display: block;
}

.s4c-number-ideas span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(clamp(8px, .72vw, 13px) / -2);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f24a13;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
  transform: translate(-50%, -50%);
}

.s4c-number-card:hover .s4c-number-ideas,
.s4c-number-card:focus-within .s4c-number-ideas,
.s4c-number-card:focus .s4c-number-ideas {
  opacity: 1;
  transform: translateY(0);
}

#trending-stores.s4c-opt2-section {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 16px;
  height: 392px !important;
  min-height: 392px !important;
  padding: 0 !important;
  background: #258fd0 !important;
  overflow: hidden !important;
}

#trending-stores > .s4c-section-heading,
#trending-stores > .s4c-opt2-carousel {
  position: relative;
  z-index: 5;
}

#trending-stores > .s4c-trending-section-heading {
  margin: 0 !important;
}

#trending-stores > .s4c-trending-section-heading h2 {
  font-size: clamp(22px, 3.2vw, 38px) !important;
  text-shadow:
    0 0 3px #fff,
    0 0 9px rgba(255, 255, 255, .98),
    0 2px 1px rgba(255, 255, 255, .92) !important;
}

/* 77% transparency on the original white card and arrow surfaces. */
#trending-stores .s4c-opt2-card,
#trending-stores .s4c-opt2-media,
#trending-stores .s4c-opt2-title,
#trending-stores .s4c-opt2-card.father .s4c-opt2-media .s4c-opt2-photo {
  background-color: rgba(255, 255, 255, .23) !important;
}

#trending-stores .s4c-opt2-card,
#trending-stores .s4c-opt2-media {
  border-color: rgba(219, 227, 239, .42) !important;
}

#trending-stores .s4c-opt2-title {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .9);
}

#trending-stores .s4c-opt2-arrow,
#trending-stores .s4c-opt2-arrow:hover,
#trending-stores .s4c-opt2-arrow:focus-visible {
  border-color: rgba(219, 227, 239, .5) !important;
  background: rgba(255, 255, 255, .23) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.s4c-trending-ice-scene,
.s4c-trending-ice-background,
.s4c-trending-team-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.s4c-trending-ice-scene {
  /* Keep this wrapper out of its own stacking context. Its background/cloud
     children stay behind the cards, while the team stage can sit above them. */
  z-index: auto;
  overflow: hidden;
}

.s4c-trending-ice-background {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}

.s4c-trending-cloud-field {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 63%;
  overflow: hidden;
  pointer-events: none;
}

.s4c-trending-cloud {
  position: absolute;
  top: var(--cloud-top, 18%);
  left: calc(-1 * var(--cloud-size, 220px) - 8vw);
  width: var(--cloud-size, 220px);
  aspect-ratio: 1;
  background-image: url("trending-ice/realistic-cloud-strip.png");
  background-repeat: no-repeat;
  background-size: 500% 100%;
  background-position: var(--cloud-crop, 0%) center;
  opacity: var(--cloud-opacity, .78);
  filter: drop-shadow(0 8px 12px rgba(26, 91, 139, .12));
  transform: scaleX(var(--cloud-flip, 1));
  will-change: translate;
  animation: s4cTrendingCloudFloat var(--cloud-speed, 78s) linear infinite;
  animation-delay: var(--cloud-delay, 0s);
}

.s4c-trending-team-stage {
  z-index: 9;
  overflow: hidden;
}

.s4c-trending-team-character {
  --s4c-mascot-width: clamp(82px, 7.7vw, 122px);
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--s4c-mascot-width);
  height: 100%;
  margin-left: calc(var(--s4c-mascot-width) / -2);
  opacity: 1;
  translate: none;
  transform: none;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.s4c-trending-team-character[data-position="left"] { left: 5.5%; }
.s4c-trending-team-character[data-position="mid-left"] { left: 29%; }
.s4c-trending-team-character[data-position="center"] { left: 50%; }
.s4c-trending-team-character[data-position="mid-right"] { left: 71%; }
.s4c-trending-team-character[data-position="right"] { left: 94.5%; }

.s4c-trending-team-character.is-entering {
  animation: none;
}

.s4c-trending-team-character.is-present {
  opacity: 1;
  translate: none;
  animation: none;
}

.s4c-trending-team-character.is-exiting[data-exit="left"] {
  animation: none;
}

.s4c-trending-team-character.is-exiting[data-exit="right"] {
  animation: none;
}

.s4c-trending-team-character.is-exiting[data-exit="down"] {
  animation: none;
}

.s4c-trending-team-image {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: -45%;
  width: 100%;
  height: 43%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  transform: none;
  filter: none;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  user-select: none;
}

.s4c-trending-team-character.is-entering .s4c-trending-team-image {
  animation: s4cTrendingImageEnter .9s cubic-bezier(.2,.86,.24,1) forwards;
}

.s4c-trending-team-character.is-present .s4c-trending-team-image {
  bottom: 1%;
  animation: s4cTrendingImageGlide 2.2s ease-in-out infinite alternate;
}

.s4c-trending-team-character.is-exiting[data-exit="left"] .s4c-trending-team-image {
  bottom: 1%;
  animation: s4cTrendingImageExitLeft 1.35s cubic-bezier(.48,.08,.74,.52) forwards;
}

.s4c-trending-team-character.is-exiting[data-exit="right"] .s4c-trending-team-image {
  bottom: 1%;
  animation: s4cTrendingImageExitRight 1.35s cubic-bezier(.48,.08,.74,.52) forwards;
}

.s4c-trending-team-character.is-exiting[data-exit="down"] .s4c-trending-team-image {
  bottom: 1%;
  animation: s4cTrendingImageExitDown 1.05s ease-in forwards;
}

.s4c-trending-team-reflection {
  display: none !important;
}

.s4c-trending-team-bubble {
  position: absolute;
  z-index: 5;
  bottom: 43%;
  width: clamp(210px, 20vw, 292px);
  padding: 11px 14px 12px;
  border: 3px solid #0b4f96;
  border-radius: 24px 24px 20px 24px;
  background: rgba(255, 255, 255, .98);
  color: #082452;
  box-shadow: 0 12px 28px rgba(3, 27, 61, .2);
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateY(9px) scale(.94);
  transition: opacity .24s ease, transform .24s ease;
}

.s4c-trending-team-character[data-bubble="left"] .s4c-trending-team-bubble {
  right: calc(100% + 11px);
}

.s4c-trending-team-character[data-bubble="right"] .s4c-trending-team-bubble {
  left: calc(100% + 11px);
}

.s4c-trending-team-bubble::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
}

.s4c-trending-team-character[data-bubble="left"] .s4c-trending-team-bubble::after {
  right: -11px;
  border-top: 3px solid #0b4f96;
  border-right: 3px solid #0b4f96;
}

.s4c-trending-team-character[data-bubble="right"] .s4c-trending-team-bubble::after {
  left: -11px;
  border-bottom: 3px solid #0b4f96;
  border-left: 3px solid #0b4f96;
}

.s4c-trending-team-bubble strong {
  display: block;
  margin-bottom: 3px;
  color: #f24a13;
  font-size: 1.12em;
}

.s4c-trending-team-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes s4cTrendingCloudFloat {
  from { translate: 0 0; }
  to { translate: calc(100vw + var(--cloud-size, 220px) + 16vw) 0; }
}

@keyframes s4cTrendingImageEnter {
  0% { bottom: -45%; }
  82% { bottom: 2%; }
  100% { bottom: 1%; }
}

@keyframes s4cTrendingImageGlide {
  from { bottom: 1%; }
  to { bottom: 2%; }
}

@keyframes s4cTrendingImageExitLeft {
  from { left: 0; }
  to { left: -150%; }
}

@keyframes s4cTrendingImageExitRight {
  from { left: 0; }
  to { left: 150%; }
}

@keyframes s4cTrendingImageExitDown {
  from { bottom: 1%; }
  to { bottom: -45%; }
}

@media (max-width: 1050px) {
  #trending-stores.s4c-opt2-section {
    height: 385px !important;
    min-height: 385px !important;
  }
}

@media (max-width: 700px) {
  .s4c-number-slide {
    height: 234px !important;
    padding: 10px !important;
  }

  .s4c-number-content {
    gap: 6px;
    padding: 10px 10px 11px !important;
  }

  .s4c-number-title {
    font-size: 20px !important;
  }

  .s4c-number-ideas {
    column-gap: clamp(7px, 2.2vw, 10px);
    font-size: clamp(7px, 2.05vw, 9px);
  }

  .s4c-number-ideas span + span::before {
    left: calc(clamp(7px, 2.2vw, 10px) / -2);
    width: 3px;
    height: 3px;
  }

  #trending-stores.s4c-opt2-section {
    height: 354px !important;
    min-height: 354px !important;
    row-gap: 12px;
  }

  .s4c-trending-cloud-field {
    height: 60%;
  }

  .s4c-trending-team-character {
    --s4c-mascot-width: clamp(68px, 18vw, 88px);
  }

  .s4c-trending-team-bubble {
    bottom: 38%;
    width: clamp(148px, 43vw, 190px);
    padding: 8px 9px;
    border-width: 2px;
    border-radius: 18px;
    font-size: 10px;
  }

  .s4c-trending-team-character[data-bubble="left"] .s4c-trending-team-bubble {
    right: calc(100% + 6px);
  }

  .s4c-trending-team-character[data-bubble="right"] .s4c-trending-team-bubble {
    left: calc(100% + 6px);
  }

  .s4c-trending-team-bubble::after {
    width: 13px;
    height: 13px;
    bottom: 13px;
  }

  .s4c-trending-team-character[data-bubble="left"] .s4c-trending-team-bubble::after {
    right: -8px;
    border-width: 2px;
  }

  .s4c-trending-team-character[data-bubble="right"] .s4c-trending-team-bubble::after {
    left: -8px;
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s4c-trending-cloud { animation-play-state: paused; }
  .s4c-trending-team-character,
  .s4c-trending-team-character.is-entering,
  .s4c-trending-team-character.is-present,
  .s4c-trending-team-character.is-exiting {
    animation: none !important;
    left: 90%;
    opacity: 1;
    translate: none;
  }
  .s4c-trending-team-image,
  .s4c-trending-team-character.is-entering .s4c-trending-team-image,
  .s4c-trending-team-character.is-present .s4c-trending-team-image,
  .s4c-trending-team-character.is-exiting .s4c-trending-team-image {
    left: 0;
    bottom: 1%;
    animation: none !important;
  }
}
