.product-scroll-story-panel[data-product-scroll-story-panel="ways-to-buy"] {
  position: relative;
  z-index: 4;
}

.ways-to-buy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
  align-items: start;
}

.ways-to-buy-item {
  position: relative;
  min-height: 100px;
}

.ways-to-buy-item:hover,
.ways-to-buy-item:focus-within {
  z-index: 2;
}


.ways-to-buy-card {
  --glass-rim: 1px;
  --glass-converge: 8px;
  --glass-depth: 27px;
  --glass-lit: 255, 255, 255;
  --glass-shade: 31, 57, 95;

  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  padding: 12px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-1);
  text-decoration: none;
  background-color: rgba(239, 241, 247, 0.4);
  box-shadow:
    inset 0 0 0 var(--glass-rim) rgba(var(--glass-lit), 0.75),
    inset calc(var(--glass-converge) * -1) calc(var(--glass-converge) * -1)
      calc(var(--glass-converge) * 1.4) calc(var(--glass-converge) * -0.8) rgba(var(--glass-lit), 0.38),
    inset calc(var(--glass-depth) * -1) calc(var(--glass-depth) * -1) calc(var(--glass-depth) * 1.2)
      calc(var(--glass-depth) * -0.95) rgba(var(--glass-lit), 0.22),
    inset var(--glass-depth) var(--glass-depth) calc(var(--glass-depth) * 1.5)
      calc(var(--glass-depth) * -0.95) rgba(var(--glass-shade), 0.07),
    2px 4px 4px rgba(0, 0, 0, 0.1);
}

.ways-to-buy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(31, 57, 95, 0.225), rgba(31, 57, 95, 0));
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.ways-to-buy-card:hover::before,
.ways-to-buy-card:focus-within::before {
  opacity: 1;
}

@media (max-width: 767px), (pointer: coarse) {
  .ways-to-buy-card::before {
    display: none;
  }
}

.ways-to-buy-card:focus-visible {
  outline: 2px solid var(--color-1);
  outline-offset: 2px;
}


.ways-to-buy-card-label {
  line-height: 1.1;
  letter-spacing: 0.7px;
}

.ways-to-buy-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  line-height: 0;
  color: var(--color-1);
  transition: opacity 250ms ease-out;
}

.ways-to-buy-card-icon svg {
  display: block;
  width: 11px;
  height: 16.1px;
}

.ways-to-buy-card-icon--diagonal {
  width: 19.163px;
  height: 19.163px;
}

.ways-to-buy-card-icon--diagonal svg {
  transform: rotate(45deg);
}

.ways-to-buy-card-icon--right {
  width: 16.1px;
  height: 11px;
}

.ways-to-buy-card-icon--right svg {
  transform: rotate(90deg);
}

.ways-to-buy-card-icon--pin {
  width: 14px;
  height: 19px;
}

.ways-to-buy-card-icon--pin svg {
  width: 14px;
  height: 19px;
}


.ways-to-buy-amazon-logo {
  flex-shrink: 0;
  width: 57.6px;
  height: 36px;
  object-fit: contain;
}


.ways-to-buy-delivery-logo {
  display: block;
  width: auto;
  height: 17px;
  object-fit: contain;
}

.ways-to-buy-delivery-collapse,
.ways-to-buy-delivery-options {
  display: grid;
  transition: grid-template-rows 300ms ease-out, opacity 250ms ease-out;
}

.ways-to-buy-delivery-collapse > *,
.ways-to-buy-delivery-options > * {
  min-height: 0;
  overflow: hidden;
}

.ways-to-buy-delivery-collapse {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
}

.ways-to-buy-delivery-collapse > * {
  margin-top: -12px;
  padding-top: 12px;
}

.ways-to-buy-delivery-options {
  grid-template-rows: minmax(0, 0fr);
  opacity: 0;
}

.ways-to-buy-card--delivery:hover .ways-to-buy-delivery-collapse,
.ways-to-buy-card--delivery:focus-within .ways-to-buy-delivery-collapse {
  grid-template-rows: minmax(0, 0fr);
  opacity: 0;
}

.ways-to-buy-card--delivery:hover .ways-to-buy-delivery-options,
.ways-to-buy-card--delivery:focus-within .ways-to-buy-delivery-options {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
}

.ways-to-buy-card--delivery:hover .ways-to-buy-card-icon,
.ways-to-buy-card--delivery:focus-within .ways-to-buy-card-icon {
  opacity: 0;
}

.ways-to-buy-card--delivery .ways-to-buy-delivery-options > * {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin: 0 calc(var(--s-1) * -1) calc(var(--s0) * -1);
  padding-inline: var(--s-1);
  padding-bottom: var(--s0);
}

.ways-to-buy-delivery-option {
  gap: var(--s-1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 4px 4px rgba(255, 255, 255, 0.12);
}

.ways-to-buy-delivery-option .ways-to-buy-delivery-logo {
  height: 17px;
}

.ways-to-buy-delivery-option .ways-to-buy-delivery-logo--gopuff {
  height: 23px;
}

.ways-to-buy-delivery-option .ways-to-buy-delivery-logo--doordash {
  height: 16px;
}

.ways-to-buy-delivery-option-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 12px;
  height: 12px;
  color: var(--color-1);
}

.ways-to-buy-delivery-option-icon svg {
  display: block;
  width: 8px;
  height: auto;
  transform: rotate(45deg);
}


.ways-to-buy-card--dtc .ways-to-buy-shop {
  position: relative;
  z-index: 2;
}

.ways-to-buy-dtc-cans {
  --cans-width: min(272px, 100%);

  position: absolute;
  top: 36px;
  right: 0;
  left: 0;
  line-height: 0;
  pointer-events: none;
}

.ways-to-buy-dtc-can {
  position: absolute;
  top: 0;
  left: calc((100% - var(--cans-width)) * var(--spread));
  display: block;
  width: var(--cans-width);
}

.ways-to-buy-dtc-can:nth-child(1) {
  --spread: 0.14;

  clip-path: inset(0 72% 0 0);
}

.ways-to-buy-dtc-can:nth-child(2) {
  --spread: 0.39;

  clip-path: inset(0 50% 0 28%);
}

.ways-to-buy-dtc-can:nth-child(3) {
  --spread: 0.61;

  clip-path: inset(0 28% 0 50%);
}

.ways-to-buy-dtc-can:nth-child(4) {
  --spread: 0.86;

  clip-path: inset(0 0 0 72%);
}

.ways-to-buy-dtc-cans img {
  width: 100%;
  height: auto;
}


.ways-to-buy-locator-form {
  display: flex;
  align-items: center;
  gap: var(--s0);
  height: 40px;
  padding: 0 0 0 14px;
  border-radius: 70px;
  background-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(31, 57, 95, 0.18);
}

.ways-to-buy-locator-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: none;
  color: var(--color-1);
  font-family: var(--font-1);
  background-color: transparent;
}

.ways-to-buy-locator-input::placeholder {
  color: var(--color-1);
  opacity: 0.7;
}

.ways-to-buy-locator-input:focus {
  outline: none;
}

.ways-to-buy-locator-submit::before {
  display: none;
}

.ways-to-buy-locator-form .ways-to-buy-locator-submit {
  position: static;
  margin: 0;
  flex-shrink: 0;
  height: 100%;
  opacity: 1;
  transform: none;
  cursor: pointer;
}


.ways-to-buy-shop {
  display: inline-flex;
  flex-shrink: 0;
  gap: var(--s-2);
  height: 32px;
  padding-inline: 14px;
  font-size: var(--t-1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 4px 4px rgba(255, 255, 255, 0.12);
}

.ways-to-buy-shop-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 10px;
  height: 10px;
  color: var(--color-1);
}

.ways-to-buy-shop-icon svg {
  display: block;
  width: 7px;
  height: auto;
}

.ways-to-buy-shop-icon--diagonal svg {
  transform: rotate(45deg);
}

.ways-to-buy-shop-icon--right svg {
  transform: rotate(90deg);
}

.ways-to-buy-card--amazon {
  --prime-glint: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  --prime-flare-inline: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0));
  --prime-flare-block: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0));

  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 49.2%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 50.8%),
    linear-gradient(105deg, rgba(140, 215, 255, 0) 51%, rgba(140, 215, 255, 0.32) 54%, rgba(140, 215, 255, 0) 58%),
    linear-gradient(105deg, rgba(0, 168, 225, 0) 42%, rgba(0, 168, 225, 0.5) 50%, rgba(0, 168, 225, 0) 58%),
    linear-gradient(105deg, rgba(0, 168, 225, 0) 28%, rgba(0, 168, 225, 0.14) 50%, rgba(0, 168, 225, 0) 72%);
  background-repeat: no-repeat;
  background-size: 260% 100%;
  background-position: -60% 50%;
}

.ways-to-buy-card--amazon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    var(--prime-glint), var(--prime-flare-inline), var(--prime-flare-block),
    var(--prime-glint), var(--prime-flare-inline), var(--prime-flare-block);
  background-repeat: no-repeat;
  background-position: 74% 66%, 74% 66%, 74% 66%, 54% 30%, 54% 30%, 54% 30%;
  background-size: 0 0;
  pointer-events: none;
}

.ways-to-buy.state--revealed .ways-to-buy-card--amazon::after {
  animation: ways-to-buy-glint 7000ms ease-in-out infinite;
}

.ways-to-buy.state--revealed .ways-to-buy-card--amazon {
  animation: ways-to-buy-sweep 7000ms linear infinite;
}

.ways-to-buy-card--amazon .ways-to-buy-shop {
  position: relative;
  overflow: hidden;
}

.ways-to-buy-card--amazon .ways-to-buy-shop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateX(-180%);
}

.ways-to-buy.state--revealed .ways-to-buy-card--amazon .ways-to-buy-shop::after {
  animation: ways-to-buy-spark 7000ms linear infinite;
}

.ways-to-buy.state--revealed .ways-to-buy-card--amazon .ways-to-buy-shop {
  animation: ways-to-buy-glow 7000ms linear infinite;
}

.ways-to-buy.state--revealed .ways-to-buy-delivery-option,
.ways-to-buy.state--revealed .ways-to-buy-delivery-collapse .ways-to-buy-delivery-logo {
  animation: ways-to-buy-wave 7000ms ease-in-out infinite;
  animation-delay: calc(var(--index, 0) * 140ms + 400ms);
}

.ways-to-buy-delivery-option:nth-child(2),
.ways-to-buy-delivery-collapse .ways-to-buy-delivery-logo:nth-child(2) {
  --index: 1;
}

.ways-to-buy-delivery-option:nth-child(3),
.ways-to-buy-delivery-collapse .ways-to-buy-delivery-logo:nth-child(3) {
  --index: 2;
}

.ways-to-buy-delivery-option:nth-child(4),
.ways-to-buy-delivery-collapse .ways-to-buy-delivery-logo:nth-child(4) {
  --index: 3;
}

.ways-to-buy.state--revealed .ways-to-buy-dtc-cans {
  animation: ways-to-buy-descent 2200ms cubic-bezier(0.22, 0.7, 0.25, 1) 300ms backwards;
}

.ways-to-buy.state--revealed .ways-to-buy-dtc-can {
  animation: ways-to-buy-float 4200ms ease-in-out infinite alternate;
  animation-delay: calc(var(--index, 0) * 300ms + 2300ms);
}

.ways-to-buy-dtc-can:nth-child(2) {
  --index: 1;
}

.ways-to-buy-dtc-can:nth-child(3) {
  --index: 2;
}

.ways-to-buy-dtc-can:nth-child(4) {
  --index: 3;
}

.ways-to-buy.state--revealed .ways-to-buy-card-icon--pin {
  animation: ways-to-buy-jump 7000ms ease-in-out 300ms infinite;
}

@media (min-width: 768px) {
  .ways-to-buy-card--amazon .ways-to-buy-shop,
  .ways-to-buy-card--dtc .ways-to-buy-shop {
    position: absolute;
    top: 9px;
    right: 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 250ms ease-out, transform 250ms ease-out;
  }

  .ways-to-buy-card--amazon:hover .ways-to-buy-shop,
  .ways-to-buy-card--amazon:focus-within .ways-to-buy-shop,
  .ways-to-buy-card--dtc:hover .ways-to-buy-shop,
  .ways-to-buy-card--dtc:focus-within .ways-to-buy-shop {
    opacity: 1;
    transform: translateY(0);
  }

  .ways-to-buy-card--amazon:hover .ways-to-buy-card-icon,
  .ways-to-buy-card--amazon:focus-within .ways-to-buy-card-icon,
  .ways-to-buy-card--dtc:hover .ways-to-buy-card-icon,
  .ways-to-buy-card--dtc:focus-within .ways-to-buy-card-icon {
    opacity: 0;
  }

  .ways-to-buy-card--locator .ways-to-buy-locator-submit {
    gap: 0;
    padding-inline: 14px;
    border-color: transparent;
    background-image: none;
    box-shadow: none;
    transition: border-color 250ms ease-out;
  }

  .ways-to-buy-card--locator .ways-to-buy-locator-submit-label {
    display: none;
  }

  .ways-to-buy-card--locator .ways-to-buy-shop-icon {
    width: 16px;
    height: 16px;
  }

  .ways-to-buy-card--locator .ways-to-buy-shop-icon svg {
    width: 11px;
  }

  .ways-to-buy-card--locator:hover .ways-to-buy-locator-submit,
  .ways-to-buy-card--locator:focus-within .ways-to-buy-locator-submit {
    gap: var(--s-2);
    border-color: var(--color-1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 4px 4px rgba(255, 255, 255, 0.12);
  }

  .ways-to-buy-card--locator:hover .ways-to-buy-locator-submit-label,
  .ways-to-buy-card--locator:focus-within .ways-to-buy-locator-submit-label {
    display: inline;
  }
}

@media (max-width: 767px) {
  .ways-to-buy-card--amazon .ways-to-buy-shop,
  .ways-to-buy-card--dtc .ways-to-buy-shop {
    margin: -4px -4px -4px 0;
  }

  .ways-to-buy-card--amazon .ways-to-buy-card-icon,
  .ways-to-buy-card--dtc .ways-to-buy-card-icon {
    display: none;
  }

  .ways-to-buy-dtc-cans {
    top: 38px;
  }

}

@keyframes ways-to-buy-sweep {
  0% {
    background-position: -60% 50%, -60% 50%, -60% 50%, -60% 50%;
  }

  20% {
    background-position: 160% 50%, 131% 50%, 140% 50%, 116% 50%;
  }

  22% {
    background-position: 160% 50%, 150% 50%, 160% 50%, 134% 50%;
  }

  25%,
  100% {
    background-position: 160% 50%, 160% 50%, 160% 50%, 160% 50%;
  }
}

@keyframes ways-to-buy-glint {
  0%,
  7%,
  14%,
  100% {
    background-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  9.5% {
    background-size: 9px 9px, 26px 1.5px, 1.5px 26px, 0 0, 0 0, 0 0;
  }

  11.5% {
    background-size: 0 0, 0 0, 0 0, 7px 7px, 18px 1px, 1px 18px;
  }
}

@keyframes ways-to-buy-spark {
  0%,
  6% {
    opacity: 0;
    transform: translateX(-180%);
  }

  10% {
    opacity: 1;
  }

  20% {
    opacity: 0;
    transform: translateX(320%);
  }

  21%,
  100% {
    opacity: 0;
    transform: translateX(-180%);
  }
}

@keyframes ways-to-buy-glow {
  0%,
  6%,
  26%,
  100% {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 4px 4px rgba(255, 255, 255, 0.12);
  }

  14% {
    box-shadow: 0 5px 14px rgba(0, 168, 225, 0.45), inset 0 4px 4px rgba(255, 255, 255, 0.5);
  }
}

@keyframes ways-to-buy-wave {
  0%,
  86%,
  100% {
    transform: translateY(0);
  }

  91% {
    transform: translateY(-11px);
  }

  96% {
    transform: translateY(1px);
  }
}

@keyframes ways-to-buy-descent {
  from {
    opacity: 0;
    transform: translateY(-120px);
  }

  35% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ways-to-buy-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-9px);
  }
}

@keyframes ways-to-buy-jump {
  0%,
  88%,
  100% {
    transform: translateY(0);
  }

  92% {
    transform: translateY(-12px);
  }

  96% {
    transform: translateY(2px);
  }
}

@media (max-width: 1023px) {
  .ways-to-buy {
    gap: var(--s0);
  }
}

@media (max-width: 767px) {
  .ways-to-buy {
    grid-template-columns: 1fr;
    gap: var(--s0);
  }

  .ways-to-buy-item {
    min-height: 0;
  }

  .ways-to-buy-card {
    position: relative;
  }

  .ways-to-buy-card--delivery .ways-to-buy-delivery-collapse {
    display: none;
  }

  .ways-to-buy-card--delivery .ways-to-buy-delivery-options {
    grid-template-rows: minmax(0, 1fr);
    opacity: 1;
  }

  .ways-to-buy-card--delivery .ways-to-buy-card-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ways-to-buy.state--revealed .ways-to-buy-card--amazon,
  .ways-to-buy.state--revealed .ways-to-buy-delivery-option,
  .ways-to-buy.state--revealed .ways-to-buy-dtc-cans,
  .ways-to-buy.state--revealed .ways-to-buy-dtc-can,
  .ways-to-buy.state--revealed .ways-to-buy-card--amazon .ways-to-buy-shop,
  .ways-to-buy.state--revealed .ways-to-buy-card--amazon .ways-to-buy-shop::after,
  .ways-to-buy.state--revealed .ways-to-buy-card--amazon::after,
  .ways-to-buy.state--revealed .ways-to-buy-card-icon--pin {
    animation: none;
  }

  .ways-to-buy-card::before,
  .ways-to-buy-delivery-collapse,
  .ways-to-buy-delivery-options {
    transition: none;
  }
}

h2.ways-to-buy-heading {
  display: none;
}

@media (max-width: 767px) {
  h2.ways-to-buy-heading {
    display: block;
    text-align: left;
  }

  .ways-to-buy-stack > * + * {
    margin-top: 15px;
  }
}
