/* Seasonal holiday layer for No Hands FSD.
   Remove this file, the holiday-banner markup, and the body.holiday class after the season. */

:root {
  --holiday-evergreen: #1f6f4a;
  --holiday-gold: #e8c547;
}

body.holiday-dismissed .holiday-banner {
  display: none;
}

body.holiday:not(.holiday-dismissed) {
  --banner-h: 3.4rem;
}

@media (max-width: 699px) {
  body.holiday:not(.holiday-dismissed) {
    --banner-h: 3.9rem;
  }
}


.holiday-banner {
  background: #0b0b0c;
  color: var(--text, #f5f5f6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.holiday-banner-inner {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0 0.45rem;
  min-height: 2.6rem;
}

@media (min-width: 720px) {
  .holiday-banner-inner {
    width: min(70rem, calc(100% - 4rem));
  }
}

.holiday-sparkle {
  flex-shrink: 0;
  color: var(--red, #e82127);
  display: inline-flex;
}

.holiday-banner-copy {
  flex: 1;
  min-width: 0;
}

.holiday-banner-title,
.holiday-banner-sub {
  margin: 0;
  line-height: 1.3;
}

.holiday-banner-title {
  font-family: var(--font-display, Outfit, Inter, sans-serif);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.holiday-banner-sub {
  font-size: 0.8rem;
  color: var(--muted, #c6c6cc);
  margin-top: 0.1rem;
}

.holiday-banner-book {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: var(--red, #e82127);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1.2;
}

.holiday-banner-book:hover,
.holiday-banner-book:focus-visible {
  background: var(--red-hover, #ff353b);
  color: #fff;
  text-decoration: none;
}

.holiday-banner-dismiss {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.35rem;
  border: 0;
  background: transparent;
  color: var(--muted, #c6c6cc);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.holiday-banner-dismiss:hover,
.holiday-banner-dismiss:focus-visible {
  color: #fff;
}

/* Soft light-string under the banner: red, white, gold, a touch of evergreen. */
.holiday-lights {
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      #e82127 0 6px,
      transparent 6px 18px,
      #f5f5f6 18px 24px,
      transparent 24px 36px,
      #e8c547 36px 42px,
      transparent 42px 54px,
      #1f6f4a 54px 60px,
      transparent 60px 72px
    );
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .holiday-lights {
    background-size: 72px 4px;
    animation: holiday-lights-shift 18s linear infinite;
  }
}

@keyframes holiday-lights-shift {
  from { background-position: 0 0; }
  to { background-position: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-lights {
    animation: none;
  }
}

/* A light festive accent on the holiday price card only. */
body.holiday .price-box {
  border-color: rgba(31, 111, 74, 0.45);
  box-shadow: inset 0 0 0 1px rgba(232, 33, 39, 0.18);
}

body.holiday .price-value {
  color: #fff;
}

@media (max-width: 699px) {
  .holiday-banner-inner {
    gap: 0.5rem;
    padding: 0.4rem 0 0.35rem;
  }

  .holiday-banner-title {
    font-size: 0.9rem;
  }

  .holiday-banner-sub {
    font-size: 0.75rem;
  }

  .holiday-sparkle {
    display: none;
  }
}
