/* Intro: "Feliz Navidad" lettering */
.christmas-intro-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-festive-veil);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.christmas-intro-splash.is-leaving {
  opacity: 0;
}

.christmas-intro-splash__art {
  display: block;
  width: min(94vw, 945px);
  height: auto;
  animation: christmas-intro-in 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.christmas-confetti {
  position: fixed;
  inset: 0;
  z-index: 2001;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Festive type on short headings only */
.booking-page--christmas .booking-v2-hero-title,
.booking-page--christmas .business-title,
.booking-page--christmas .booking-v2-panel-title {
  font-family: "Mountains of Christmas", "Plus Jakarta Sans", "Noto Sans", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.booking-page--christmas .booking-v2-hero-title {
  font-size: 1.9rem;
  line-height: 1.05;
}

.booking-page--christmas .business-title {
  font-size: 1.55rem;
  line-height: 1.1;
}

.booking-page--christmas .booking-v2-panel-title {
  font-size: 1.7rem;
  line-height: 1.1;
}

/* Banner snow and sleigh */
.christmas-banner-snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.christmas-banner-snow__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.christmas-sleigh {
  position: absolute;
  top: 34%;
  left: -115%;
  width: clamp(450px, 108%, 810px);
  aspect-ratio: 4 / 3;
  transform: translateY(-50%);
  visibility: hidden;
}

.christmas-sleigh.is-flying {
  visibility: visible;
  animation: christmas-sleigh-fly 7s linear both;
}

.christmas-sleigh__player {
  display: block;
  width: 100%;
  height: 100%;
}

.booking-page--christmas .booking-v2-hero-content {
  z-index: 2;
}

/* Friends peeking over the first service */
.booking-page--christmas .booking-v2-service {
  position: relative;
}

.christmas-peeking-friends {
  position: absolute;
  top: -44px;
  right: 56px;
  z-index: 1;
  width: 96px;
  height: 56px;
  pointer-events: none;
}

/* Stars in the bottom right corner of the first service */
.christmas-sparkle-stars {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 40px;
  height: 37px;
  pointer-events: none;
}

/* Baubles hanging from the add button of the second service */
.christmas-hanging-baubles {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: 28px;
  height: 50px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Santa hat on the chosen professional */
.booking-page--christmas .booking-v2-pro-chip {
  position: relative;
}

.booking-page--christmas .booking-v2-pro-chip::before,
.booking-page--christmas .booking-v2-pro-chip::after {
  content: "";
  position: absolute;
  top: 2px;
  left: calc(50% + 4px);
  width: 32px;
  height: 24px;
  pointer-events: none;
  transform: rotate(18deg) scale(0);
  transform-origin: 20% 90%;
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.booking-page--christmas .booking-v2-pro-chip::before {
  background-color: var(--color-base-primary);
  -webkit-mask: url("../img/christmas/gorro.0beb079280c8.svg") no-repeat center / contain;
  mask: url("../img/christmas/gorro.0beb079280c8.svg") no-repeat center / contain;
}

.booking-page--christmas .booking-v2-pro-chip::after {
  background: url("../img/christmas/gorro-borde.a7e14650aa3d.svg") no-repeat center / contain;
}

.booking-page--christmas .booking-v2-pro-chip.is-selected::before,
.booking-page--christmas .booking-v2-pro-chip.is-selected::after {
  transform: rotate(18deg) scale(1);
}

/* Chosen day hangs like a tree ornament */
.booking-page--christmas .booking-v2-day {
  position: relative;
}

.booking-page--christmas .booking-v2-day::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 18px;
  height: 15px;
  background-color: var(--color-festive-accent);
  -webkit-mask: url("../img/christmas/tapa-bola.35fb11de8b81.svg") no-repeat center / contain;
  mask: url("../img/christmas/tapa-bola.35fb11de8b81.svg") no-repeat center / contain;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}

.booking-page--christmas .booking-v2-day.selected {
  background-image: radial-gradient(
    circle at 20% 24%,
    var(--color-festive-ornament-shine) 0 3.5px,
    transparent 4.5px
  );
  transform-origin: 50% -10px;
  animation: christmas-day-sway 2s ease-out both;
}

.booking-page--christmas .booking-v2-day.selected::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Candy cane border on the chosen time */
.booking-page--christmas .booking-v2-slots .time-btn {
  position: relative;
}

.booking-page--christmas .booking-v2-slots .time-btn.selected {
  border: 3px solid transparent;
  background:
    linear-gradient(var(--color-base-primary), var(--color-base-primary)) padding-box,
    repeating-linear-gradient(
      -45deg,
      var(--color-festive-snow) 0 5px,
      var(--color-base-primary) 5px 10px
    ) border-box;
}

.booking-page--christmas .booking-v2-slots .time-btn.selected::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--shadow-primary-strong);
  border-radius: 14px;
  pointer-events: none;
}

/* "Ho ho ho" at the end of the review title */
.booking-page--christmas [data-v2-panel="confirm"] .booking-v2-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-page--christmas [data-v2-panel="confirm"] .booking-v2-panel-title::after {
  content: "";
  flex: 0 0 auto;
  width: 99px;
  height: 30px;
  background: url("../img/christmas/hohoho.a405e5eeb7b4.svg") no-repeat center / contain;
}

/* Reindeer sitting on the price of the first reviewed service */
.booking-v2-review--christmas .booking-v2-review-when {
  padding-right: 52px;
}

.booking-v2-review--christmas
  .confirmation-participant-section:first-child
  .confirmation-service-item:first-of-type
  .service-price {
  position: relative;
}

.booking-v2-review--christmas
  .confirmation-participant-section:first-child
  .confirmation-service-item:first-of-type
  .service-price::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 4px);
  width: 44px;
  height: 54px;
  background: url("../img/christmas/reno-sentado.2112f0da6fe6.svg") no-repeat center bottom / contain;
  pointer-events: none;
}

/* Success check hangs like a tree ornament */
.booking-page--christmas .booking-v2-success-icon {
  position: relative;
  margin-top: 2rem;
  background-image: radial-gradient(
    circle at 30% 28%,
    var(--color-festive-ornament-shine) 0 7px,
    transparent 8px
  );
  transform-origin: 50% -31px;
  animation: christmas-ornament-in 2.4s ease-out both;
}

.booking-page--christmas .booking-v2-success-icon::before,
.booking-page--christmas .booking-v2-success-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.booking-page--christmas .booking-v2-success-icon::before {
  top: -17px;
  width: 22px;
  height: 18px;
  background-color: var(--color-festive-accent);
  -webkit-mask: url("../img/christmas/tapa-bola.35fb11de8b81.svg") no-repeat center / contain;
  mask: url("../img/christmas/tapa-bola.35fb11de8b81.svg") no-repeat center / contain;
}

.booking-page--christmas .booking-v2-success-icon::after {
  top: -31px;
  width: 1.5px;
  height: 16px;
  background: var(--color-festive-string);
}

.christmas-success-wish {
  margin: 0.25rem 0 1rem;
  font-family: "Mountains of Christmas", "Plus Jakarta Sans", "Noto Sans", serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary-hover);
  animation: christmas-wish-in 0.6s ease-out 0.35s both;
}

/* Continue button */
.booking-page--christmas .btn-booking-continue {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-festive-shade);
}

.booking-page--christmas .btn-booking-continue::before,
.booking-page--christmas .btn-booking-continue::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  -webkit-mask: url("../img/christmas/glaseado.4c5971d54da9.svg") repeat-x 0 0 / 96px 16px;
  mask: url("../img/christmas/glaseado.4c5971d54da9.svg") repeat-x 0 0 / 96px 16px;
  pointer-events: none;
}

.booking-page--christmas .btn-booking-continue::before {
  top: 0;
  z-index: 1;
  background: var(--color-festive-snow);
}

.booking-page--christmas .btn-booking-continue::after {
  top: 2px;
  background: var(--color-festive-snow-shadow);
}

.booking-page--christmas .btn-booking-continue:disabled::before,
.booking-page--christmas .btn-booking-continue.disabled::before {
  background: var(--color-festive-frosting-muted);
}

.booking-page--christmas .btn-booking-continue:disabled::after,
.booking-page--christmas .btn-booking-continue.disabled::after {
  display: none;
}

.booking-page--christmas .btn-booking-continue:not(:disabled) {
  background-image: linear-gradient(
    105deg,
    transparent 40%,
    var(--color-festive-shimmer) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: 150% 0;
  animation: christmas-shimmer 4.5s ease-in-out infinite 1.5s;
}

@keyframes christmas-sleigh-fly {
  from {
    left: -115%;
    transform: translateY(-40%);
  }

  to {
    left: 105%;
    transform: translateY(-70%);
  }
}

@keyframes christmas-intro-in {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes christmas-ornament-in {
  0% {
    transform: scale(0);
  }

  20% {
    transform: scale(1) rotate(10deg);
  }

  40% {
    transform: rotate(-7deg);
  }

  60% {
    transform: rotate(4deg);
  }

  80% {
    transform: rotate(-2deg);
  }

  100% {
    transform: none;
  }
}

@keyframes christmas-day-sway {
  0% {
    transform: rotate(8deg);
  }

  30% {
    transform: rotate(-5deg);
  }

  60% {
    transform: rotate(2deg);
  }

  100% {
    transform: none;
  }
}

@keyframes christmas-wish-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes christmas-shimmer {
  0% {
    background-position: 150% 0;
  }

  30%,
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-page--christmas .booking-v2-success-icon,
  .booking-page--christmas .booking-v2-day.selected,
  .booking-page--christmas .btn-booking-continue:not(:disabled),
  .christmas-success-wish {
    animation: none;
  }

  .christmas-intro-splash.is-leaving,
  .booking-page--christmas .booking-v2-pro-chip::before,
  .booking-page--christmas .booking-v2-pro-chip::after,
  .booking-page--christmas .booking-v2-day::before {
    transition: none;
  }
}
