/* A centered offer with neighbouring formats visible on either side. */
.formats .pricing-grid {
  --pricing-card-width: clamp(380px, 44vw, 640px);
  --pricing-gap: 24px;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--pricing-gap);
  width: calc(100% + var(--gutter) * 2);
  margin: 40px calc(var(--gutter) * -1) 0;
  padding: 36px 0 42px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.formats .pricing-grid::-webkit-scrollbar {
  display: none;
}

.formats .pricing-grid::before,
.formats .pricing-grid::after {
  content: '';
  flex: 0 0 max(0px, calc((100% - var(--pricing-card-width)) / 2 - var(--pricing-gap)));
}

.formats .pricing-grid > .price-card {
  flex: 0 0 var(--pricing-card-width);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 600px;
  padding: 36px 40px;
  scroll-snap-align: center;
  transform: scale(.92);
  transform-origin: center;
  opacity: .7;
  box-shadow: none;
  z-index: auto;
  transition: transform .3s ease, opacity .3s ease, box-shadow .3s ease;
}

.formats .pricing-grid > .price-card.is-active {
  position: relative;
  z-index: 1;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 16px 32px #24271f16;
}

.formats .pricing-grid > .price-card.is-before {
  transform: perspective(1200px) rotateY(10deg) rotateZ(-4deg) scale(.92);
}

.formats .pricing-grid > .price-card.is-after {
  transform: perspective(1200px) rotateY(-10deg) rotateZ(4deg) scale(.92);
}

.formats .price-card .price-card-top {
  font-size: 10px;
}

.formats .price-card h3 {
  margin-top: 34px;
  font-size: 32px;
  line-height: 1.2;
}

.formats .price-card h3 br {
  display: none;
}

.formats .price-card .price {
  margin-top: 30px;
  gap: 8px 14px;
}

.formats .price-card .price strong {
  font-size: 54px;
}

.formats .price-card .price > span,
.formats .price-card .price-detail {
  font-size: 13px;
}

.formats .price-card .price-detail {
  margin-top: 12px;
}

.formats .price-card .price-card-description {
  margin-top: 30px;
  padding-bottom: 30px;
  font-size: 14px;
  line-height: 1.85;
}

.formats .price-card .price-action {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
}

.pricing-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.pricing-carousel-dot {
  position: relative;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  color: #686e61;
  font-size: 11px;
  letter-spacing: .04em;
}

.pricing-carousel-dot::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: #24271f27;
  transition: background .2s ease;
}

.pricing-carousel-dot[aria-pressed='true'] {
  color: #24271f;
}

.pricing-carousel-dot[aria-pressed='true']::after {
  background: #24271f;
}

@media (max-width: 820px) {
  .formats .pricing-grid {
    --pricing-card-width: min(78vw, 340px);
    --pricing-gap: 12px;
    margin-top: 28px;
    padding: 18px 0 24px;
  }

  .formats .pricing-grid > .price-card {
    min-height: 450px;
    padding: 24px 22px;
  }

  .formats .pricing-grid > .price-card.is-active {
    box-shadow: 0 12px 24px #24271f13;
  }

  .formats .pricing-grid > .price-card.is-before {
    transform: perspective(900px) rotateY(10deg) rotateZ(-4deg) scale(.92);
  }

  .formats .pricing-grid > .price-card.is-after {
    transform: perspective(900px) rotateY(-10deg) rotateZ(4deg) scale(.92);
  }

  .formats .price-card .price-card-top {
    font-size: 9px;
  }

  .formats .price-card h3 {
    margin-top: 26px;
    font-size: 24px;
  }

  .formats .price-card .price {
    margin-top: 24px;
    gap: 6px 10px;
  }

  .formats .price-card .price strong {
    font-size: 42px;
  }

  .formats .price-card .price > span,
  .formats .price-card .price-detail {
    font-size: 11px;
  }

  .formats .price-card .price-detail {
    margin-top: 10px;
  }

  .formats .price-card .price-card-description {
    margin-top: 24px;
    padding-bottom: 24px;
    font-size: 12px;
    line-height: 1.75;
  }

  .formats .price-card .price-action {
    padding-top: 16px;
    font-size: 12px;
  }

  .pricing-carousel-controls {
    margin-top: 4px;
  }

  .pricing-carousel-dot {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .formats .pricing-grid > .price-card,
  .pricing-carousel-dot::after {
    transition: none;
  }
}
