/* Homepage seasonal gift pill, in the hero under the booking links.
   A slim vertical ribbon crosses the gold, with a bow sitting on the
   top edge (it overflows above the pill). Keep overflow visible.
   Swap the label and href in the #now-on link; see HOW-TO-SWAP.md
   in the promo-spot-mockup folder. */

.now-on-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.45rem;
  /* Fixed left padding so the inward ribbon (~2.15rem, about 20% of the
     compact pill) has gold on both sides and never inflates the width. */
  padding: 0.42rem 1.1rem 0.44rem 3.05rem;
  max-width: calc(100vw - 3rem);
  overflow: visible;
  border-radius: 999px;
  /* Gold fill, border, and sheen live on ::before so overflow:visible
     does not let the sheen paint outside the capsule. */
  background: transparent;
  color: #1a150c;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 248, 224, 0.35);
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(.23, 1, .32, 1), filter 0.15s ease;
}

.now-on-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 236, 190, 0.55);
  background:
    linear-gradient(180deg,
      #f3e2b3 0%,
      #d4b15c 46%,
      #c49a3e 72%,
      #b48a32 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(90, 64, 16, 0.2),
    0 8px 18px rgba(18, 18, 17, 0.28);
  pointer-events: none;
}

/* Soft diagonal sheen, clipped to the gold capsule. */
.now-on-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 64%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: now-on-sheen 6s ease-in-out infinite;
}

@keyframes now-on-sheen {
  0%, 18% { background-position: 120% 0; }
  58%, 100% { background-position: -20% 0; }
}

/* Slim vertical wrap, about 20% in from the left. */
.now-on-ribbon {
  position: absolute;
  left: 2.35rem;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 0.44rem;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #4a1218 0%,
      #7a2230 28%,
      #c45a62 50%,
      #7a2230 72%,
      #4a1218 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 220, 200, 0.28),
    inset -1px 0 0 rgba(40, 8, 10, 0.4),
    0 0 0 1px rgba(90, 20, 28, 0.2);
}

/* Bow sits on the top edge and overflows above the pill. */
.now-on-bow {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  display: block;
  width: 20px;
  height: 19px;
  transform: translate(-50%, -46%);
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(18, 18, 17, 0.35));
  pointer-events: none;
}

.now-on-label {
  position: relative;
  z-index: 2;
}

.now-on-pill:hover,
.now-on-pill:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  outline: none;
}

.now-on-pill:hover::before,
.now-on-pill:focus-visible::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(90, 64, 16, 0.2),
    0 10px 22px rgba(18, 18, 17, 0.32);
}

.now-on-pill:focus-visible {
  outline: 2px solid #f3f0e8;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .now-on-pill,
  .now-on-pill:hover,
  .now-on-pill:focus-visible {
    transition: none;
    transform: none;
  }
  .now-on-pill::after {
    animation: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      transparent 48%
    );
    background-size: 100% 100%;
    background-position: 0 0;
  }
}

@media (max-width: 639px) {
  .now-on-pill {
    margin-top: 1.3rem;
    padding: 0.4rem 0.95rem 0.42rem 2.95rem;
    font-size: 0.78rem;
  }
  .now-on-ribbon { left: 2.25rem; width: 0.4rem; }
  .now-on-bow { width: 18px; height: 17px; }
}
