/* Instagram Subscriptions — page-scoped. Does not change shared component behavior. */

.ig-sub-page .config-layout {
  grid-template-columns: 1fr;
}

.ig-sub-page .config-summary {
  display: none;
}

.ig-sub-page .ig-sub-hero {
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ig-sub-page .ig-sub-hero .config-page-title {
  max-width: 22ch;
}

.ig-sub-page .ig-sub-hero__sub {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray-text);
}

.ig-sub-page .ig-sub-hero__trust {
  margin-top: 20px;
  justify-content: center;
}

.ig-sub-page .ig-sub-section + .ig-sub-section {
  margin-top: 36px;
}

.ig-sub-page .ig-sub-section .step-heading {
  margin-bottom: 14px;
}

.ig-sub-page .ig-sub-section .step-subheading {
  margin-bottom: 18px;
}

.ig-sub-page .ig-sub-chooser {
  margin-top: 12px;
}

.ig-sub-page .ig-sub-bill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 8px 0 36px;
}

.ig-sub-page .ig-sub-bill__text {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ig-sub-page .ig-sub-bill__text.is-active {
  color: var(--black);
}

.ig-sub-page .ig-sub-bill__switch {
  flex: 0 0 auto;
}

.ig-sub-page .ig-sub-bill__save {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--off-white);
  color: var(--gray-text);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ig-sub-page .ig-sub-bill__save.is-on {
  background: var(--primary);
  color: var(--black);
}

.ig-sub-page .ig-sub-bill__save.is-bump {
  animation: ig-sub-save-bump 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-sub-page .ig-sub-plan,
.ig-sub-page .ig-sub-boost,
.ig-sub-page .ig-sub-pref {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font-body);
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
  transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.ig-sub-page .ig-sub-plan:hover,
.ig-sub-page .ig-sub-boost:hover,
.ig-sub-page .ig-sub-pref:hover {
  border-color: var(--black);
}

.ig-sub-page .ig-sub-plan.is-selected,
.ig-sub-page .ig-sub-boost.is-selected,
.ig-sub-page .ig-sub-pref.is-selected {
  border-color: var(--black);
  background: var(--white);
}

.ig-sub-page .ig-sub-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 18px;
}

.ig-sub-page .ig-sub-plan {
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 34px 24px 28px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.06);
}

.ig-sub-page .ig-sub-plan--popular {
  border-color: var(--black);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.1);
}

.ig-sub-page .ig-sub-plan--popular:hover,
.ig-sub-page .ig-sub-plan--popular.is-selected {
  border-color: var(--black);
}

.ig-sub-page .ig-sub-plan__day {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--off-white);
  color: var(--gray-text);
  -webkit-text-fill-color: var(--gray-text);
  padding: 5px 10px;
  border-radius: 999px;
}

.ig-sub-page .ig-sub-plan--popular .ig-sub-plan__day {
  background: var(--primary);
  color: var(--black);
  -webkit-text-fill-color: var(--black);
}

.ig-sub-page .ig-sub-plan__popular {
  margin: 8px 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
}

.ig-sub-page .ig-sub-plan__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.ig-sub-page .ig-sub-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 16px;
}

.ig-sub-page .ig-sub-plan__now,
.ig-sub-page .ig-sub-plan__was,
.ig-sub-page .ig-sub-plan__mo {
  -webkit-text-fill-color: currentColor;
}

.ig-sub-page .ig-sub-plan__now {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
}

.ig-sub-page .ig-sub-plan__mo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
}

.ig-sub-page .ig-sub-plan__was {
  display: inline-block;
  width: 100%;
  order: -1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-text);
  text-decoration: line-through;
}

.ig-sub-page .ig-sub-plan__now.is-swap-down,
.ig-sub-page .ig-sub-plan__was.is-swap-down,
.ig-sub-page .ig-sub-plan__billed.is-swap-down {
  animation: ig-sub-swap-down 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-sub-page .ig-sub-plan__now.is-swap-up,
.ig-sub-page .ig-sub-plan__was.is-swap-up,
.ig-sub-page .ig-sub-plan__billed.is-swap-up {
  animation: ig-sub-swap-up 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-sub-page .ig-sub-plan__day.is-swap-down,
.ig-sub-page .ig-sub-plan__day.is-swap-up {
  animation: ig-sub-day-fade 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ig-sub-swap-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ig-sub-swap-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ig-sub-day-fade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@keyframes ig-sub-save-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.ig-sub-page .ig-sub-plan__billed {
  display: inline-flex;
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-text);
  -webkit-text-fill-color: var(--gray-text);
  background: var(--off-white);
  padding: 5px 10px;
  border-radius: 999px;
}

.ig-sub-page .ig-sub-plan--popular .ig-sub-plan__billed {
  background: var(--primary);
  color: var(--black);
  -webkit-text-fill-color: var(--black);
}

.ig-sub-page .ig-sub-plan__blurb {
  margin: 20px 0 22px;
  max-width: 38ch;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray-text);
  -webkit-text-fill-color: var(--gray-text);
}

.ig-sub-page .ig-sub-plan__cta,
.ig-sub-page .ig-sub-plan__cta span {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.ig-sub-page .ig-sub-plan__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 22px;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 12px;
}

.ig-sub-page .ig-sub-plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.ig-sub-page .ig-sub-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-text);
  -webkit-text-fill-color: var(--gray-text);
}

.ig-sub-page .ig-sub-plan__features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    #E7F6C4
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 6.2L4.8 8.5L9.5 3.5' stroke='%235A7A00' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 10px 10px no-repeat;
}

.ig-sub-page .ig-sub-plan__more {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ig-sub-page .ig-sub-plan .qty-card__mark {
  display: none;
}

.ig-sub-page .ig-sub-boosts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ig-sub-page .ig-sub-boost {
  gap: 6px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  justify-content: center;
}

.ig-sub-page .ig-sub-boost--recommended {
  padding-top: 22px;
}

.ig-sub-page .ig-sub-boost__badge {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--black);
  -webkit-text-fill-color: var(--black);
  padding: 3px 7px;
  border-radius: 999px;
}

.ig-sub-page .ig-sub-boost.is-selected {
  background: var(--primary);
}

.ig-sub-page .ig-sub-boost__split {
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray-text);
}

.ig-sub-page .ig-sub-prefs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-sub-page .ig-sub-pref {
  gap: 4px;
  padding: 16px 16px 14px;
  border-radius: 16px;
}

.ig-sub-page .ig-sub-pref__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-right: 28px;
}

.ig-sub-page .ig-sub-pref__desc {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-text);
  -webkit-text-fill-color: var(--gray-text);
}

.ig-sub-page .ig-sub-faq-section {
  padding-bottom: 8px;
}

.ig-sub-page .ig-sub-summary .config-summary-total {
  align-items: baseline;
}

.ig-sub-page .ig-sub-summary .config-summary-total span:last-child {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.ig-sub-page .ig-sub-summary__hint {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
}

.ig-sub-page .ig-sub-summary__note {
  margin-top: 8px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

.ig-sub-page .ig-sub-summary__save {
  color: #5A7A00;
  font-weight: 700;
}

.ig-sub-page .mobile-checkout-breakdown .ig-sub-summary__hint,
.ig-sub-page .mobile-checkout-breakdown .ig-sub-summary__note {
  text-align: left;
}

.ig-sub-page .ig-sub-plan.is-selected .qty-card__mark,
.ig-sub-page .ig-sub-pref.is-selected .qty-card__mark {
  display: inline-flex;
}

.ig-sub-page #ig-sub-chooser[hidden] {
  display: none !important;
}

.ig-sub-page .ig-sub-funnel {
  max-width: 440px;
  margin: 4px auto 0;
  padding: 0 4px 8px;
}

.ig-sub-page .ig-sub-funnel[hidden] {
  display: none !important;
}

.ig-sub-page .ig-sub-funnel .step-back-btn {
  margin-bottom: 18px;
}

.ig-sub-page .ig-sub-funnel__recap {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--off-white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ig-sub-page .ig-sub-funnel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
}

.ig-sub-page .ig-sub-funnel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.22s ease, background-color 0.22s ease;
}

.ig-sub-page .ig-sub-funnel__dot.is-on {
  width: 22px;
  background: var(--black);
}

.ig-sub-page .ig-sub-funnel__step[hidden] {
  display: none !important;
}

.ig-sub-page .ig-sub-funnel__step:not([hidden]) {
  animation: ig-sub-setup-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ig-sub-page .ig-sub-funnel .step-heading {
  margin-bottom: 8px;
}

.ig-sub-page .ig-sub-funnel .step-subheading {
  margin-bottom: 18px;
}

.ig-sub-page .ig-sub-funnel .order-field {
  margin-bottom: 8px;
}

.ig-sub-page .ig-sub-funnel__error {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8a2b2b;
  line-height: 1.4;
}

.ig-sub-page .ig-sub-funnel__error.is-hidden {
  display: none;
}

.ig-sub-page .ig-sub-funnel .order-input-wrap.is-invalid {
  border-color: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.18);
}

.ig-sub-page .ig-sub-funnel__cta {
  width: 100%;
  margin-top: 22px;
}

.ig-sub-page .ig-sub-funnel__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
}

@keyframes ig-sub-setup-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .ig-sub-page.configurator-page:not(.post-purchase-page) .config-shell {
    padding-bottom: 28px;
  }

  .ig-sub-page .mobile-checkout-sticky {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .ig-sub-page .ig-sub-boosts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ig-sub-page .ig-sub-boost--recommended {
    padding-top: 28px;
  }
}

@media (min-width: 900px) {
  .ig-sub-page .ig-sub-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
  }

  .ig-sub-page .ig-sub-boosts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ig-sub-page .ig-sub-boost--recommended {
    padding-top: 28px;
  }
}

.ig-sub-proof {
  position: relative;
  margin-top: 22px;
}

.ig-sub-proof__title {
  margin-bottom: 2px;
}

.ig-sub-proof__sub {
  margin: 0 0 14px;
  max-width: 46ch;
}

.ig-sub-proof__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  border-radius: 16px;
}

.ig-sub-proof__viewport:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.ig-sub-proof__viewport::-webkit-scrollbar {
  display: none;
}

.ig-sub-proof__track {
  display: flex;
}

.ig-sub-proof__slide {
  box-sizing: border-box;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  max-width: 33.333333%;
  margin: 0;
  min-width: 0;
  padding: 0 6px;
  scroll-snap-align: none;
  scroll-snap-stop: always;
}

.ig-sub-proof__slide:nth-child(3n + 1) {
  scroll-snap-align: start;
}

.ig-sub-proof__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ig-sub-proof-slot:empty {
  display: none;
}

.config-main--continue {
  margin-top: 40px;
}

@media (min-width: 961px) {
  .config-layout > .ig-sub-proof,
  .config-layout > .ig-sub-proof-slot,
  .config-layout > .config-main--continue {
    grid-column: 1 / -1;
  }

  .ig-sub-proof {
    margin-top: 8px;
  }

  .ig-sub-proof__slide {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    padding: 0 8px;
  }

  .ig-sub-proof__slide:nth-child(3n + 1) {
    scroll-snap-align: none;
  }

  .ig-sub-proof__slide:nth-child(4n + 1) {
    scroll-snap-align: start;
  }
}

@media (max-width: 639px) {
  .ig-sub-proof__viewport {
    border-radius: 16px;
  }

  .ig-sub-proof__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 0;
    scroll-snap-align: start;
  }

  .ig-sub-proof__slide img {
    border-radius: 0;
  }

  .ig-sub-page .ig-sub-plan__now {
    font-size: 1.875rem;
  }
}

@media (max-width: 960px) {
  .ig-sub-page .ig-sub-faq-section {
    padding-bottom: 12px;
  }
}

.ig-sub-benefits {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.ig-sub-benefits[hidden] {
  display: none;
}

.ig-sub-benefits.is-open,
.ig-sub-benefits.is-closing {
  pointer-events: auto;
}

.ig-sub-benefits__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ig-sub-benefits.is-open .ig-sub-benefits__backdrop {
  opacity: 1;
}

.ig-sub-benefits.is-closing .ig-sub-benefits__backdrop {
  opacity: 0;
}

.ig-sub-benefits__panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-sub-benefits.is-open .ig-sub-benefits__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ig-sub-benefits.is-closing .ig-sub-benefits__panel {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.ig-sub-benefits__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.05);
  color: var(--gray-text);
  cursor: pointer;
}

.ig-sub-benefits__close:hover {
  color: var(--black);
  background: rgba(10, 10, 10, 0.09);
}

.ig-sub-benefits__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  padding-right: 36px;
}

.ig-sub-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ig-sub-benefits__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 10px;
  align-items: start;
}

.ig-sub-benefits__list li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    #E7F6C4
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 6.2L4.8 8.5L9.5 3.5' stroke='%235A7A00' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 10px 10px no-repeat;
}

.ig-sub-benefits__list strong {
  grid-column: 2;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.ig-sub-benefits__list p {
  grid-column: 2;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray-text);
}

@media (prefers-reduced-motion: reduce) {
  .ig-sub-proof__viewport {
    scroll-behavior: auto;
  }

  .ig-sub-page .ig-sub-plan,
  .ig-sub-page .ig-sub-boost,
  .ig-sub-page .ig-sub-pref,
  .ig-sub-page .ig-sub-bill__text,
  .ig-sub-page .ig-sub-bill__save {
    transition: none;
  }

  .ig-sub-page .ig-sub-plan__now.is-swap-down,
  .ig-sub-page .ig-sub-plan__now.is-swap-up,
  .ig-sub-page .ig-sub-plan__was.is-swap-down,
  .ig-sub-page .ig-sub-plan__was.is-swap-up,
  .ig-sub-page .ig-sub-plan__billed.is-swap-down,
  .ig-sub-page .ig-sub-plan__billed.is-swap-up,
  .ig-sub-page .ig-sub-plan__day.is-swap-down,
  .ig-sub-page .ig-sub-plan__day.is-swap-up,
  .ig-sub-page .ig-sub-bill__save.is-bump,
  .ig-sub-page .ig-sub-funnel__step:not([hidden]) {
    animation: none;
  }

  .ig-sub-benefits__backdrop,
  .ig-sub-benefits__panel {
    transition: none;
  }
}
