.header-switch {
  position: relative;
  display: none;
  flex: 1 1 auto;
  max-width: 248px;
  min-height: 40px;
  margin: 0 8px;
  padding: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.header-switch__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.header-switch.is-gift .header-switch__pill {
  transform: translateX(100%);
}

.header-switch__btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 220ms ease;
}

.header-switch__btn.is-active {
  color: var(--color-primary, #1A1124);
}

@media (min-width: 993px) {
  .header-switch {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 992px) {
  .header-switch {
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.is-mobile-vertical .site-header,
  body.is-mobile-c .site-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 6px;
  }

  body.is-mobile-vertical .site-header__logo,
  body.is-mobile-c .site-header__logo {
    margin: 0;
    transform: none;
  }

  body.is-mobile-vertical .site-header__logo img,
  body.is-mobile-c .site-header__logo img {
    height: 42px;
    transform: none;
  }
}

.gift-page[hidden] {
  display: none !important;
}

.gift-page {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  background: #140b1a;
  color: #fff;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition:
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 560ms;
}

.gift-page.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.gift-page__sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(18px, env(safe-area-inset-right, 0px))
    max(18px, env(safe-area-inset-bottom, 0px))
    max(18px, env(safe-area-inset-left, 0px));
}

.gift-page__top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.gift-page__back {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.gift-page__back::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.gift-page__heading {
  text-align: center;
}

.gift-page__eyebrow {
  margin: 0;
  color: var(--color-gold, #d4a574);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-page__title {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}

.gift-page__count {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  text-align: right;
}

.gift-page__progress {
  height: 3px;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.gift-page.is-intro .gift-page__heading,
.gift-page.is-intro .gift-page__count,
.gift-page.is-intro .gift-page__progress {
  opacity: 0;
  pointer-events: none;
}

.gift-page__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent, #e81e73);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-page__viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.gift-page__track {
  display: flex;
  width: 800%;
  height: 100%;
  transform: translate3d(calc(var(--gift-step, 0) * -12.5%), 0, 0);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-step {
  display: flex;
  flex-direction: column;
  width: 12.5%;
  height: 100%;
  padding-right: 2px;
  overflow: auto;
}

.gift-step--story .gift-step__title {
  font-size: 26px;
}

.gift-step--story .gift-next {
  margin-top: auto;
}

.gift-path {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.gift-path li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-path li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-path span {
  color: var(--color-gold, #d4a574);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.gift-path strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}

.gift-path em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.gift-intro__gifts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.gift-intro__gifts li {
  padding: 6px 12px;
  border: 1px solid rgba(212, 165, 116, 0.38);
  border-radius: 999px;
  color: var(--color-gold, #d4a574);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-step--intro {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px 12px;
}

.gift-intro__logo {
  display: block;
  width: min(200px, 52%);
  height: auto;
  margin: 0 auto 18px;
}

.gift-intro__quote {
  margin: 0 0 32px;
  max-width: 22em;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-accent, "Playfair Display", serif);
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}

.gift-step--intro .gift-next {
  width: min(100%, 280px);
  margin-top: 0;
}

.gift-formats {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.gift-format {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 92px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.gift-format.is-active {
  border-color: transparent;
  background: #fff;
  color: var(--color-primary, #1A1124);
}

.gift-format__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.gift-format__lead {
  color: inherit;
  opacity: 0.72;
  font-size: 14px;
  line-height: 1.4;
}

.gift-pay__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.gift-step__label {
  margin: 0;
  color: var(--color-accent-light, #f06292);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-step__title {
  margin: 8px 0 6px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.gift-step__lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.gift-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.gift-amount {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.gift-amount.is-active {
  border-color: transparent;
  background: #fff;
  color: var(--color-primary, #1A1124);
}

.gift-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.gift-field input,
.gift-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
}

.gift-field textarea {
  resize: vertical;
  min-height: 88px;
}

.gift-error {
  margin: -6px 0 12px;
  color: #ff8aa8;
  font-size: 13px;
}

.gift-next,
.gift-pay__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-cta, #e81e73);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.gift-step--done .gift-pay__link {
  background: rgba(255, 255, 255, 0.1);
}

.gift-step--done .gift-next {
  margin-top: 10px;
}

.gift-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.gift-pay__sum {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 40px;
  line-height: 1;
}


@media (prefers-reduced-motion: reduce) {
  .gift-page,
  .gift-page__track,
  .header-switch__pill,
  .gift-page__progress-bar {
    transition: none;
  }
}
