/* =======================================
   Snow overlay – FULL PAGE
   ======================================= */

#wpcfm-snow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999998; /* above content, below Santa */
}

#wpcfm-snow-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* =======================================
   Santa – bottom, simple LEFT -> RIGHT
   ======================================= */

.wpcfm-santa {
  position: fixed;
  bottom: -85px;
  top: auto !important;
  left: -220px;             /* start off-screen on the left */
  right: auto !important;
  width: 350px;
  height: 250px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 999999;          /* above snow */
  pointer-events: none;
  animation: wpcfm-santa-bottom-ltr 14s linear infinite;
}

@keyframes wpcfm-santa-bottom-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 420px)); /* run fully across screen */
  }
}

/* =======================================
   Avada Builder – hide effects in builder UI
   ======================================= */

.fusion-builder-admin #wpcfm-snow-wrapper,
.fusion-builder-live #wpcfm-snow-wrapper,
.fusion-builder-admin .wpcfm-santa,
.fusion-builder-live .wpcfm-santa {
  display: none !important;
}


/* =======================================
   Footer Background Override (Christmas)
   (image URL injected from PHP inline CSS)
   ======================================= */

.fusion-tb-footer,
.fusion-tb-footer .fusion-footer,
.fusion-tb-footer .fusion-footer-widget-area,
.fusion-tb-footer .fusion-footer-copyright-area {
  background-color: rgba(4, 30, 20, 0.96) !important;
}

.fusion-tb-footer .fusion-footer-widget-area,
.fusion-tb-footer .fusion-footer-widget-area p,
.fusion-tb-footer .fusion-footer-widget-area a,
.fusion-tb-footer .fusion-footer-widget-area li,
.fusion-tb-footer .fusion-footer-widget-area .copyrights,
.fusion-tb-footer .footer-copymenu a {
  color: #f9fafb !important;
}

.fusion-tb-footer .fusion-footer-widget-area a:hover,
.fusion-tb-footer .footer-copymenu a:hover {
  color: #fee2e2 !important;
}

/* =======================================
   Sticky Christmas Tree – left bottom
   ======================================= */

/* Sticky Christmas Tree – bottom left */
.wpcfm-tree {
  position: fixed;
  bottom: 5px!important;
  left: 0px !important;          /* force left */
  right: auto !important;         /* cancel any right positioning */
  width: 160px;
  height: 220px;
  background-image: url('../img/christmas-tree.png'); /* your local tree image */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
  z-index: 999999;
  pointer-events: none;
}

/* Hide tree inside Avada Builder */
.fusion-builder-admin .wpcfm-tree,
.fusion-builder-live .wpcfm-tree {
  display: none !important;
}

/* Mobile: hide tree */
@media (max-width: 767px) {
  .wpcfm-tree {
    display: none !important;
  }
}

@media (max-width: 767px) {

  /* Hide Christmas tree on mobile */
  .wpcfm-tree {
    display: none !important;
  }

  /* Smaller Santa on mobile */
  .wpcfm-santa {
    width: 250px;
    height: 150px;
    bottom:-20px;
  }
}
