.rv-holiday-banner {
  --rv-banner-wreath-size: clamp(59px, 8.2vw, 108px);
  --rv-banner-scene-size: clamp(144px, 22vw, 255px);
  --rv-banner-top-padding: clamp(12px, 2vw, 24px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  box-sizing: border-box;
  width: min(calc(100% - 30px), 1160px);
  min-height: clamp(194px, 21vw, 263px);
  margin: 12px auto 0;
  padding: var(--rv-banner-top-padding) clamp(14px, 3vw, 38px) clamp(17px, 2vw, 25px) clamp(108px, 16vw, 205px);
  overflow: hidden;
  border: 1px solid #e5bf68;
  border-radius: 15px;
  color: #fff8e9;
  background:
    radial-gradient(ellipse at 50% 108%, #377047 0%, transparent 67%),
    radial-gradient(ellipse at 10% 100%, #764339 0%, transparent 37%),
    radial-gradient(ellipse at 90% 100%, #764339 0%, transparent 37%),
    linear-gradient(125deg, #10281d, #153f2d 50%, #0a241d);
  box-shadow: 0 6px 16px #172b2030;
  text-align: center;
}

.rv-festive-greeting {
  position: relative;
  z-index: 1;
}

.rv-festive-greeting > .rv-dot-garland {
  --rv-garland-size: 260px;
  margin-inline: auto;
}

.rv-festive-title {
  margin: 0;
  color: #fff8e9;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 71px);
  line-height: 1.02;
  letter-spacing: -.042em;
  text-shadow: 0 2px 12px #101e15;
  text-wrap: balance;
}

.rv-festive-title em {
  color: #ffde88;
}

.rv-festive-message {
  margin: 8px 0 0;
  color: #fff5da;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 18px);
  line-height: 1.35;
  text-wrap: balance;
}

.rv-festive-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 31% 54%, #fff5d56b 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 21%, #fff9e891 0 1px, transparent 1.5px);
  background-size: 73px 89px, 103px 61px;
}

.rv-festive-snow > span {
  position: absolute;
  inset: 0 auto 0 var(--x);
  width: var(--size);
  animation: rv-festive-fall var(--duration) linear var(--delay) infinite;
}

.rv-festive-snow > span::before {
  content: '';
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff8e1;
  box-shadow: 0 0 4px #fff5d899;
}

.rv-festive-tree {
  --tree-shape: polygon(50% 0%, 62% 20%, 57% 19%, 74% 41%, 66% 40%, 85% 63%, 75% 62%, 100% 92%, 88% 91%, 82% 95%, 70% 93%, 62% 97%, 48% 94%, 35% 97%, 27% 93%, 18% 95%, 0 91%, 25% 62%, 15% 64%, 33% 40%, 26% 42%, 42% 19%, 37% 21%);
  position: absolute;
  bottom: 10px;
  width: clamp(59px, 12.6vw, 145px);
  aspect-ratio: 1 / 1.12;
  filter: drop-shadow(0 4px 8px #07160ed0);
  pointer-events: none;
}

.rv-festive-tree-left { left: 4%; }

.rv-festive-tree::before {
  content: '';
  position: absolute;
  inset: auto 45% 2% 45%;
  height: 16%;
  border-radius: 1px;
  background: linear-gradient(90deg, #66341d, #b07c47, #713e27);
}

.rv-festive-tree-star {
  position: absolute;
  z-index: 1;
  top: 1%;
  left: 39%;
  width: 22%;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 5px #ffd065);
  animation: rv-festive-twinkle 3.8s ease-in-out -1s infinite alternate;
}

.rv-festive-tree-star::before {
  content: '';
  display: block;
  height: 100%;
  clip-path: polygon(50% 0%, 63% 34%, 99% 38%, 72% 62%, 80% 98%, 50% 79%, 19% 98%, 27% 62%, 1% 38%, 37% 34%);
  background: linear-gradient(130deg, #fffaaf, #ffd06b 57%, #e9933f 95%);
}

.rv-festive-branches {
  position: absolute;
  inset: 12% 0 7%;
  clip-path: var(--tree-shape);
  background:
    radial-gradient(circle at 48% 27%, #fff3a5 0 1px, #ffcc69 2px 4px, transparent 5px),
    radial-gradient(circle at 39% 43%, #fff1bb 0 1px, #fb654f 2px 4px, transparent 5px),
    radial-gradient(circle at 60% 48%, #fff2cb 0 1px, #ffd36e 2px 4px, transparent 5px),
    radial-gradient(circle at 32% 65%, #fff2cb 0 1px, #ffb75f 2px 4px, transparent 5px),
    radial-gradient(circle at 53% 66%, #fff1bb 0 1px, #fc5d58 2px 5px, transparent 6px),
    radial-gradient(circle at 70% 74%, #fff2cb 0 1px, #ffda80 2px 4px, transparent 5px),
    radial-gradient(circle at 27% 83%, #fff1bb 0 1px, #ff615b 2px 4px, transparent 5px),
    radial-gradient(circle at 52% 86%, #fff4be 0 1px, #ffd879 2px 4px, transparent 5px),
    repeating-linear-gradient(-16deg, transparent 0 27%, #e8b956 28% 30%, #ffdd83 30% 31%, transparent 32% 38%),
    repeating-linear-gradient(172deg, #ffffff16 0 7%, transparent 8% 13%, #0a322135 14% 19%, transparent 20% 27%),
    linear-gradient(100deg, #164631 12%, #66a463 49%, #235a3a 70%, #123d2a 94%);
}

.rv-festive-gifts {
  position: absolute;
  bottom: 0;
  left: 12%;
  width: 24%;
  height: 17%;
  border: 1px solid #dd765c;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 42%, #ffd880 43% 58%, transparent 59%),
    linear-gradient(transparent 36%, #f0cb76 37% 51%, transparent 52%),
    linear-gradient(140deg, #ee625c, #9a182c);
}

.rv-festive-gifts::after {
  content: '';
  position: absolute;
  left: 95%;
  bottom: -2px;
  width: 64%;
  height: 64%;
  border: 1px solid #ffe0a0;
  border-radius: 2px;
  background: linear-gradient(90deg, #eac075 39%, #ac303a 40% 58%, #ffd887 59%);
  transform: rotate(8deg);
}

.rv-holiday-banner > .rv-festive-motion {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 7px;
}

.rv-holiday-banner > .rv-festive-motion:focus-within { outline-color: #fff8e9; }

:is(.rv-home-v2, body.reyven-christmas):has(.rv-festive-motion input:checked) {
  --rv-festive-play-state: paused;
}

:is(.rv-festive-snow > span, .rv-festive-tree-star) {
  animation-play-state: var(--rv-festive-play-state, running);
}

.rv-festive-signoff {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(9px, 2vw, 22px);
  margin: clamp(22px, 4vw, 45px) 0 0;
  padding: 15px 20px;
  border-block: 1px solid #d0a354;
  background: linear-gradient(90deg, #681c2b, #9e2934 28%, #174432 78%, #122e22);
  color: #fff8e9;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.rv-festive-signoff [aria-hidden='true'] { color: #ffdb83; }

/* The ornament art is shared by the home page and the public Club. */
.rv-home-v2,
body.reyven-christmas {
  --rv-wreath-art: url('/navidad/corona-lazo-rojo.webp');
  --rv-wreath-size: clamp(76px, 9vw, 120px);
  --rv-wreath-card-size: clamp(59px, 7.25vw, 90px);
  --rv-wreath-lights:
    radial-gradient(circle at 17% 26%, #fff9d2 0 1.25px, #ffd26a 1.5px 2.65px, #ffb52880 3px, transparent 5px),
    radial-gradient(circle at 81% 26%, #fff9d2 0 1.25px, #ffd26a 1.5px 2.65px, #ffb52880 3px, transparent 5px),
    radial-gradient(circle at 10% 53%, #fff9d2 0 1.25px, #ffbc69 1.5px 2.65px, #ffa54180 3px, transparent 5px),
    radial-gradient(circle at 90% 54%, #fff9d2 0 1.25px, #ffbc69 1.5px 2.65px, #ffa54180 3px, transparent 5px),
    radial-gradient(circle at 22% 79%, #fff9d2 0 1.25px, #ffd26a 1.5px 2.65px, #ffb52880 3px, transparent 5px),
    radial-gradient(circle at 77% 80%, #fff9d2 0 1.25px, #ffd26a 1.5px 2.65px, #ffb52880 3px, transparent 5px),
    radial-gradient(circle at 50% 91%, #fff9d2 0 1.25px, #ffd26a 1.5px 2.65px, #ffb52880 3px, transparent 5px);
  --rv-pine-garland:
    radial-gradient(circle at 13% 44%, #fff2bf 0 1px, #eaae43 1.35px 2.8px, transparent 3.4px),
    radial-gradient(circle at 30% 65%, #ffc9ae 0 1px, #d64a4b 1.35px 3.05px, transparent 3.65px),
    radial-gradient(circle at 50% 78%, #fff2bf 0 1px, #ecc360 1.35px 3.2px, transparent 3.8px),
    radial-gradient(circle at 70% 65%, #ffc9ae 0 1px, #d64a4b 1.35px 3.05px, transparent 3.65px),
    radial-gradient(circle at 87% 44%, #fff2bf 0 1px, #eaae43 1.35px 2.8px, transparent 3.4px),
    radial-gradient(ellipse 7% 9% at 19% 24%, #81a66e 0 55%, transparent 100%),
    radial-gradient(ellipse 7% 9% at 39% 39%, #7ca26b 0 55%, transparent 100%),
    radial-gradient(ellipse 7% 9% at 61% 39%, #7ca26b 0 55%, transparent 100%),
    radial-gradient(ellipse 7% 9% at 81% 24%, #81a66e 0 55%, transparent 100%),
    radial-gradient(ellipse 67% 150% at 50% -60%, transparent 56%, #39734b 59% 67%, #2b6747 68% 80%, #174632 81% 87%, transparent 89%);
}

.rv-home-v2 :where(
  .rp-slide, .rp-quick-actions, .rp-club-invite, .rp-category-grid > a, .rv-featured-card,
  .rp-food-gallery-grid > a, .rp-reviews, .rp-review-cards figure, .rv-club-campaign,
  .rv-reward, .rv-club-steps li, .rv-play, .rv-home-questions details, .rv-delivery-brand,
  .rv-location-card, .rv-chat-card, .rp-footer
),
body.reyven-christmas :where(
  .loyalty-preview, .steps article, .reward-tier, .reward-tier li, .demo-notice,
  .account-box, .customer-card, .customer-reward, .closing, .footer
) {
  position: relative;
}

.rv-home-v2 :where(
  .rp-slide, .rp-quick-actions, .rp-club-invite, .rp-category-grid > a, .rv-featured-card,
  .rp-food-gallery-grid > a, .rp-reviews, .rp-review-cards figure, .rv-club-campaign,
  .rv-reward, .rv-club-steps li, .rv-play, .rv-home-questions details, .rv-delivery-brand,
  .rv-location-card, .rv-chat-card, .rp-footer
)::after,
body.reyven-christmas :where(
  .loyalty-preview, .steps article, .reward-tier, .reward-tier li, .demo-notice,
  .account-box, .customer-card, .customer-reward, .closing, .footer
)::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline-end: 8%;
  width: min(52%, 154px);
  height: clamp(14px, 1.8vw, 22px);
  background: var(--rv-pine-garland) center top / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px #16322066);
  pointer-events: none;
}

.rv-home-v2 :is(.rv-featured-card, .rp-food-gallery-grid > a)::after,
body.reyven-christmas :is(.loyalty-preview, .customer-card)::after {
  inset-inline-end: 7%;
  width: 86%;
  background-size: 50% 100%;
  background-repeat: repeat-x;
}

.rv-home-v2 :is(.rp-quick-actions, .rv-club-campaign, .rv-play, .rp-footer)::after,
body.reyven-christmas :is(.closing, .footer)::after {
  inset-inline: 0;
  margin-inline: auto;
  width: min(76%, 414px);
  background-size: 33.333% 100%;
  background-repeat: repeat-x;
}

.rv-home-v2 :is(.rv-home-questions details, .rv-club-steps li)::after,
body.reyven-christmas .reward-tier li::after {
  width: min(23%, 83px);
  height: 11px;
  inset-inline-end: 4%;
}

.rv-home-v2 :is(.rp-category-grid > a, .rv-reward, .rv-location-card, .rv-chat-card),
.rv-home-v2 .rp-review-rotation .rp-review-cards figure,
body.reyven-christmas :is(.demo-notice, .account-box, .customer-card, .customer-reward) {
  padding-block-start: 25px;
}

.rv-home-v2 .rp-quick-actions { padding-block-start: 28px; }
.rv-home-v2 .rv-club-steps li { padding-block-start: 13px; }

/* Reserve space at the end of each section heading for its wreath. */
.rv-home-v2 :where(
  .rp-section-heading, .home-section-title, .rp-review-intro, .rv-club-heading,
  .rv-play-copy, .rv-home-questions > h2, .rv-delivery-copy, .rv-contact-intro
),
body.reyven-christmas :where(
  .steps-section .section-intro, .rewards-section .section-heading, .demo-section .section-heading
) {
  position: relative;
  box-sizing: border-box;
  min-block-size: var(--rv-wreath-size);
  padding-inline-end: calc(var(--rv-wreath-size) + 14px);
}

.rv-home-v2 :where(
  .rp-section-heading, .home-section-title, .rp-review-intro, .rv-club-heading,
  .rv-play-copy, .rv-home-questions > h2, .rv-delivery-copy, .rv-contact-intro
)::before,
body.reyven-christmas :where(
  .steps-section .section-intro, .rewards-section .section-heading, .demo-section .section-heading
)::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: var(--rv-wreath-size);
  aspect-ratio: 1;
  background: var(--rv-wreath-art) center / contain no-repeat;
  pointer-events: none;
}

.rv-festive-corner {
  position: relative;
  align-self: start;
  justify-self: end;
  z-index: 3;
  margin-block-start: -8px;
  padding-inline-end: calc(var(--rv-banner-wreath-size) * .68);
  pointer-events: none;
}

.rv-festive-banner-wreath {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: 1;
  width: var(--rv-banner-wreath-size);
  aspect-ratio: 1;
  background: var(--rv-wreath-art) center / contain no-repeat;
  pointer-events: none;
}

.rv-festive-nativity {
  position: relative;
  display: block;
  width: var(--rv-banner-scene-size);
  margin-block-start: 6px;
  aspect-ratio: 1.3;
  pointer-events: none;
}

.rv-festive-nativity img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px #0a170cd0);
}

.rv-home-v2 :is(.rp-club-invite-icon, .spark-two),
body.reyven-christmas :is(.tier-icon, .preview-top > span:last-child, .closing > span:first-child),
.rv-festive-signoff > span:first-child {
  display: block;
  flex: none;
  width: var(--rv-wreath-card-size);
  height: var(--rv-wreath-card-size);
  background: var(--rv-wreath-art) center / contain no-repeat;
  font-size: 0;
}

.rv-home-v2 .rp-club-invite-icon,
body.reyven-christmas :is(.tier-icon, .preview-top > span:last-child, .closing > span:first-child),
.rv-festive-signoff > span:first-child {
  position: relative;
}

.rv-home-v2 .rp-club-invite-icon svg { display: none; }
.rv-home-v2 .spark-two { inset-block-start: 0; inset-inline-end: -7px; }
.rv-home-v2 .rp-club-invite { grid-template-columns: minmax(0, 1fr) auto auto; }
.rv-home-v2 .rp-club-invite > div:nth-child(2) { grid-area: 1 / 1; }
.rv-home-v2 .rp-club-invite-cta { grid-area: 1 / 2; }
.rv-home-v2 .rp-club-invite-icon { grid-area: 1 / 3; align-self: start; }
body.reyven-christmas .tier-heading > .tier-icon { order: 1; }
body.reyven-christmas .closing > span:first-child { margin-inline-start: auto; }
.rv-festive-signoff > span:first-child { order: 1; }
.rv-festive-signoff > span:last-child { order: -1; }

body.reyven-christmas .customer-card .card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

body.reyven-christmas .customer-card .card-top > img {
  grid-area: 1 / 1;
  max-width: 100%;
}

body.reyven-christmas .customer-card .card-top > span { grid-area: 1 / 2; padding-inline-end: 4px; }

body.reyven-christmas .customer-card .card-top::before,
body.reyven-christmas .customer-card .card-top::after {
  content: '';
  grid-area: 1 / 3;
  width: var(--rv-wreath-card-size);
  aspect-ratio: 1;
  pointer-events: none;
}

body.reyven-christmas .customer-card .card-top::before {
  background: var(--rv-wreath-art) center / contain no-repeat;
}

.rv-home-v2 :where(
  .rp-section-heading, .home-section-title, .rp-review-intro, .rv-club-heading,
  .rv-play-copy, .rv-home-questions > h2, .rv-delivery-copy, .rv-contact-intro
)::after,
body.reyven-christmas :where(
  .steps-section .section-intro, .rewards-section .section-heading, .demo-section .section-heading
)::after {
  width: var(--rv-wreath-size);
  aspect-ratio: 1;
}

.rv-home-v2 :where(
  .rp-section-heading, .home-section-title, .rp-review-intro, .rv-club-heading,
  .rv-play-copy, .rv-home-questions > h2, .rv-delivery-copy, .rv-contact-intro,
  .rp-club-invite-icon, .spark-two
)::after,
body.reyven-christmas :where(
  .steps-section .section-intro, .rewards-section .section-heading, .demo-section .section-heading,
  .tier-icon, .preview-top > span:last-child, .closing > span:first-child
)::after,
.rv-festive-banner-wreath::after,
.rv-festive-nativity::after,
.rv-festive-signoff > span:first-child::after {
  content: '';
  display: block;
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  pointer-events: none;
}

.rv-home-v2 :is(.rp-club-invite-icon, .spark-two)::after,
body.reyven-christmas :is(.tier-icon, .preview-top > span:last-child, .closing > span:first-child)::after,
.rv-festive-banner-wreath::after,
.rv-festive-nativity::after,
.rv-festive-signoff > span:first-child::after {
  inset-block-end: 0;
  inset-inline-start: 0;
}

.rv-home-v2 :where(
  .rp-section-heading, .home-section-title, .rp-review-intro, .rv-club-heading,
  .rv-play-copy, .rv-home-questions > h2, .rv-delivery-copy, .rv-contact-intro,
  .rp-club-invite-icon, .spark-two
)::after,
body.reyven-christmas :where(
  .steps-section .section-intro, .rewards-section .section-heading, .demo-section .section-heading,
  .tier-icon, .preview-top > span:last-child, .closing > span:first-child, .customer-card .card-top
)::after,
.rv-festive-banner-wreath::after,
.rv-festive-nativity::after,
.rv-festive-signoff > span:first-child::after {
  background: var(--rv-wreath-lights);
  animation: var(--rv-festive-light-effect, rv-festive-light-glow) 3.8s ease-in-out infinite;
  animation-play-state: var(--rv-festive-play-state, running);
}

.rv-festive-nativity::after {
  background:
    radial-gradient(circle at 12% 43%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px),
    radial-gradient(circle at 25% 28%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px),
    radial-gradient(circle at 36% 22%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px),
    radial-gradient(circle at 65% 22%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px),
    radial-gradient(circle at 77% 28%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px),
    radial-gradient(circle at 88% 43%, #fff1bd 0 1.25px, #ffc754 1.5px 2.8px, transparent 5px);
  animation-delay: -1.7s;
}

@keyframes rv-festive-light-glow {
  0%, 100% { opacity: .12; }
  48%, 56% { opacity: 1; }
}

@keyframes rv-festive-twinkle {
  from { opacity: .56; transform: scale(.93); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes rv-festive-fall {
  from { opacity: 0; transform: translate3d(0, -8%, 0); }
  17% { opacity: .82; }
  80% { opacity: .64; }
  to { opacity: 0; transform: translate3d(var(--drift), 107%, 0); }
}

@media (max-width: 960px) {
  .rv-home-v2 .rp-club-invite { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-home-v2 .rp-club-invite-icon { grid-area: 1 / 2; }
  .rv-home-v2 .rp-club-invite-cta { grid-area: 2 / 1 / 3 / 3; }
}

@media (max-width: 640px) {
  .rv-holiday-banner {
    --rv-banner-wreath-size: clamp(49px, 14vw, 77px);
    --rv-banner-scene-size: clamp(105px, 32vw, 176px);
    --rv-banner-top-padding: 12px;
    width: calc(100% - 24px);
    min-height: 174px;
    margin-top: 8px;
    padding-inline: 13px;
    border-radius: 12px;
    text-align: start;
  }

  .rv-festive-greeting { align-self: center; }
  .rv-festive-greeting > .rv-dot-garland { margin-inline: 0; }
  .rv-festive-title { font-size: clamp(29px, 7.6vw, 44px); text-wrap: wrap; }
  .rv-holiday-banner .rv-festive-tree-left {
    inset-inline-start: auto;
    inset-inline-end: 13px;
    inset-block-end: 39px;
    width: clamp(35px, 10vw, 57px);
  }
  .rv-festive-message { margin-top: 5px; }
  .rv-holiday-banner > .rv-festive-motion { right: 6px; bottom: 6px; }
  .rv-home-v2 .rp-section-heading { display: grid; align-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-festive-tree-star { animation: none; }
  .rv-home-v2, body.reyven-christmas { --rv-festive-light-effect: none; }
  .rv-festive-snow > span { display: none; }
}
