:root {
  --store-green: #119447;
  --store-white: #ffffff;
}

.store-top-alert {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 67, 140, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(0, 67, 140, .07);
}

.store-brand {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  width: clamp(200px, 56vw, 240px);
  min-width: 0;
}

.store-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.store-top-badge {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #23b85d, var(--store-green));
  color: var(--store-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 12px;
  white-space: nowrap;
}

.store-benefits-ribbon {
  position: sticky;
  top: 53px;
  z-index: 9;
  min-height: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  border-bottom: 1px solid rgba(6, 116, 54, .24);
  background: linear-gradient(120deg, #00b84f, #16d463 32%, #078d3f 64%, #00c853);
  background-size: 220% 100%;
  box-shadow: 0 12px 28px rgba(0, 148, 71, .2);
  color: var(--store-white);
  animation: store-benefits-gradient 4.8s ease-in-out infinite;
}

.store-benefits-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .34), transparent 19%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, .22), transparent 19%);
  opacity: .9;
  pointer-events: none;
}

.store-benefits-ribbon::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -30%;
  width: 24%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: store-benefits-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.store-benefits-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  min-height: 56px;
  will-change: transform;
  animation: store-benefits-scroll 22s linear infinite;
}

.store-benefits-track.is-js-marquee {
  animation: none;
}

.store-benefits-set {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
}

.store-benefit-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: clamp(220px, 28vw, 360px);
  min-height: 56px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .3);
  color: var(--store-white);
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .72), 0 0 10px rgba(0, 0, 0, .28);
  text-transform: uppercase;
  white-space: nowrap;
}

.store-benefit-icon {
  flex: 0 0 auto;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 12px rgba(0, 0, 0, .14);
}

.store-benefit-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes store-benefits-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes store-benefits-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes store-benefits-shine {
  0% {
    left: -30%;
    opacity: 0;
  }

  20%,
  58% {
    opacity: 1;
  }

  80%,
  100% {
    left: 112%;
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .store-top-alert {
    justify-content: flex-start;
  }

  .store-brand {
    width: 210px;
  }

  .store-top-badge {
    display: none;
  }

  .store-benefit-item {
    min-width: 235px;
    padding: 8px 16px;
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .store-top-alert {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .store-brand {
    width: 166px;
  }

  .store-benefits-ribbon {
    top: 55px;
    min-height: 58px;
  }

  .store-benefits-track {
    min-height: 58px;
    animation-duration: 18s;
  }

  .store-benefit-item {
    min-width: 210px;
    min-height: 58px;
    gap: 7px;
    padding: 7px 13px;
    font-size: 14px;
  }

  .store-benefit-icon {
    width: 27px;
    height: 27px;
  }

  .store-benefit-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-benefits-ribbon,
  .store-benefits-ribbon::after {
    animation: none;
  }
}
