/* Floating Holiday Gifts button: cream pill, ink type, gold gift-box mark.
   Shared across every public page. Safe-area aware. */

.holiday-gifts-btn {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 1rem 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #c9a04a;
  background: #faf8f3;
  color: #121211;
  font-family: var(--font-sans, "Figtree", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 16px rgba(18, 18, 17, 0.16);
  isolation: isolate;
  overflow: visible;
  transition: transform 0.18s cubic-bezier(.23, 1, .32, 1), filter 0.18s ease, box-shadow 0.18s ease;
}

.holiday-gifts-btn__icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: url("/assets/holiday-gift-box.svg?v=869d1862") center / 32px 32px no-repeat;
  pointer-events: none;
}

.holiday-gifts-btn__label {
  position: relative;
  z-index: 1;
  padding-right: 0.15rem;
}

/* Subtle diagonal shimmer, clipped to the pill. */
.holiday-gifts-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.06) 44%,
    rgba(255, 248, 224, 0.45) 50%,
    rgba(255, 255, 255, 0.06) 56%,
    transparent 64%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: 120% 0;
  animation: holiday-gifts-sheen 7s ease-in-out infinite;
}

@keyframes holiday-gifts-sheen {
  0%, 22% { background-position: 120% 0; }
  58%, 100% { background-position: -20% 0; }
}

.holiday-gifts-btn:hover,
.holiday-gifts-btn:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 20px rgba(18, 18, 17, 0.2);
}

.holiday-gifts-btn:hover::after,
.holiday-gifts-btn:focus-visible::after {
  animation-duration: 2.8s;
}

.holiday-gifts-btn:focus-visible {
  outline: 2px solid #121211;
  outline-offset: 3px;
}

.holiday-gifts-btn:active {
  transform: translateY(0);
  filter: none;
}

/* /schedule: keep clear of the MassageBook iframe, especially on small screens.
   Desktop: stay bottom-right (the iframe is centered and narrower than the viewport).
   Mobile: smaller, just under the sticky header so it does not sit on iframe controls. */
.holiday-gifts-btn--schedule {
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  font-size: 0.75rem;
  gap: 0.4rem;
}

.holiday-gifts-btn--schedule .holiday-gifts-btn__icon {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  background-size: 28px 28px;
}

@media (max-width: 767px) {
  .holiday-gifts-btn--schedule {
    bottom: auto;
    top: 7rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

/* Anchor for the gifts-page in-page link. */
#gift-cards {
  scroll-margin-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .holiday-gifts-btn,
  .holiday-gifts-btn:hover,
  .holiday-gifts-btn:focus-visible,
  .holiday-gifts-btn:active {
    transition: none;
    transform: none;
  }
  .holiday-gifts-btn::after,
  .holiday-gifts-btn:hover::after,
  .holiday-gifts-btn:focus-visible::after {
    animation: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      transparent 55%
    );
    background-size: 100% 100%;
    background-position: 0 0;
  }
}


/* Top-nav Gifts link: subtle gold accent, same type as the other links. */
nav[aria-label="Primary"] a,
nav[aria-label="Mobile"] a {
  white-space: nowrap;
}
nav[aria-label="Primary"] a.nav-gifts,
nav[aria-label="Mobile"] a.nav-gifts {
  color: #C9A04A;
  font-weight: 600;
}
nav[aria-label="Primary"] a.nav-gifts:hover,
nav[aria-label="Mobile"] a.nav-gifts:hover {
  color: #e0bc66;
}
nav[aria-label="Primary"] a.nav-gifts[aria-current="page"],
nav[aria-label="Mobile"] a.nav-gifts[aria-current="page"] {
  color: #e8c97a;
}
nav[aria-label="Mobile"] a.nav-gifts::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  background: url("/assets/holiday-gift-box.svg") center / contain no-repeat;
  flex: none;
}
@media (min-width: 768px) and (max-width: 1279px) {
  nav[aria-label="Primary"] {
    gap: 0;
  }
  nav[aria-label="Primary"] a {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/* Flyer / QR landings: keep the floating button clear of the in-flow Call CTAs on mobile. */
@media (max-width: 767px) {
  .holiday-gifts-btn--above-cta {
    bottom: auto;
    top: 5.25rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}


/* Hidden when the float would cover a membership card button. */
.holiday-gifts-btn--hide-for-cards {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* /membership and /book: on mobile, park the float under the header so it never sits on the cards or CTAs. */
@media (max-width: 767px) {
  .holiday-gifts-btn--membership,
  .holiday-gifts-btn--book,
  .holiday-gifts-btn--welcome,
  .holiday-gifts-btn--friend {
    bottom: auto;
    top: 5.25rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}
