/* The gift card banner at the very top of the home page (index.html, the
   block right after <body>): "Geef FamilyPost cadeau" + "Bestel je
   cadeaukaart", with a little falling snow. Shown only when <html> carries
   data-gift-banner, which the block's own script sets before the first paint
   and js/giftbanner.js keeps right afterwards (Dutch page, until 25 Dec 2026,
   orders not switched off). A visitor who came with a promo code (data-promo)
   gets the code offer and not this banner.
   When you change this file, bump its ?v= in index.html. */
.gift-banner { display: none; }
html[data-gift-banner] .gift-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .7rem;
  min-height: 2.75rem; padding: .45rem .9rem;
  background: #5F6E5B; color: #fff; text-decoration: none; text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .875rem; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
html[data-promo] .gift-banner { display: none; }
.gift-banner-text { font-weight: 700; white-space: nowrap; }
.gift-banner-cta {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px;
  background: #FCC029; color: #3A3A38; font-size: .8125rem; font-weight: 800; white-space: nowrap;
  transition: transform .15s ease;
}
.gift-banner-cta svg { flex: none; width: .9rem; height: .9rem; }
.gift-banner:hover .gift-banner-cta { transform: translateX(2px); }
.gift-banner:focus-visible { outline: 3px solid #FCC029; outline-offset: -3px; }

/* The snow: two sheets of small flakes, each one tile higher than the banner,
   sliding down by exactly one tile and starting over. Only transform moves,
   so the browser never repaints the page for it. */
.gift-banner::before, .gift-banner::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; will-change: transform;
}
.gift-banner::before {
  top: -120px; height: calc(100% + 120px); opacity: .75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='120'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='14' cy='18' r='1.6' opacity='.8'/%3E%3Ccircle cx='72' cy='52' r='1.2' opacity='.6'/%3E%3Ccircle cx='128' cy='12' r='1.9' opacity='.7'/%3E%3Ccircle cx='171' cy='74' r='1.3' opacity='.6'/%3E%3Ccircle cx='44' cy='96' r='1.7' opacity='.7'/%3E%3Ccircle cx='104' cy='88' r='1.1' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 190px 120px;
  animation: gift-snow-a 11s linear infinite;
}
.gift-banner::after {
  top: -84px; height: calc(100% + 84px); opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='84'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='10' r='.9'/%3E%3Ccircle cx='88' cy='34' r='1'/%3E%3Ccircle cx='52' cy='62' r='.8'/%3E%3Ccircle cx='116' cy='72' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 84px;
  animation: gift-snow-b 17s linear infinite;
}
@keyframes gift-snow-a { to { transform: translate3d(0, 120px, 0); } }
@keyframes gift-snow-b { to { transform: translate3d(0, 84px, 0); } }
/* Narrow phones: one line still, without the arrow. */
@media (max-width: 379px) {
  html[data-gift-banner] .gift-banner { gap: .2rem .5rem; padding-left: .6rem; padding-right: .6rem; font-size: .8125rem; }
  .gift-banner-cta { padding: .3rem .65rem; font-size: .75rem; }
  .gift-banner-cta svg { display: none; }
}
@media (min-width: 640px) {
  html[data-gift-banner] .gift-banner { gap: .2rem 1rem; font-size: .9375rem; }
  .gift-banner-cta { font-size: .875rem; }
}
/* No falling snow for who asked for less motion: the flakes stand still. */
@media (prefers-reduced-motion: reduce) {
  .gift-banner::before, .gift-banner::after { animation: none; }
  .gift-banner-cta { transition: none; }
}
