/* Applied only when body has .hpp-fullscreen-active */

html, body { height: 100% !important; }
body { margin: 0 !important; }

/* Hide common Astra header/footer structures (safe defaults) */
body.hpp-fullscreen-active header.site-header,
body.hpp-fullscreen-active footer.site-footer,
body.hpp-fullscreen-active .ast-header-sticked,
body.hpp-fullscreen-active .ast-footer-wrap,
body.hpp-fullscreen-active .ast-small-footer,
body.hpp-fullscreen-active .site-below-footer-wrap,
body.hpp-fullscreen-active .site-above-footer-wrap,
body.hpp-fullscreen-active #ast-scroll-top {
  display: none !important;
}

/* If logged-in admin bar must be hidden for fullscreen */
body.hpp-fullscreen-active #wpadminbar { display: none !important; }
body.hpp-fullscreen-active html { margin-top: 0 !important; }

/* Expand content area */
body.hpp-fullscreen-active #page,
body.hpp-fullscreen-active #content,
body.hpp-fullscreen-active .site-content,
body.hpp-fullscreen-active .ast-container,
body.hpp-fullscreen-active #primary,
body.hpp-fullscreen-active main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure content stays above anything leftover */
body.hpp-fullscreen-active #content {
  position: relative;
  z-index: 1;
  background: #fff;
}

/* Floating back button */
.hpp-back-btn{
  position: fixed;
  top: 16px;
  left: 50%;
  right: auto;
  bottom: auto;

  transform: translateX(-50%);

  z-index: 2147483647;
  padding: 12px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: 600 14px / 1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  background-color: #FFAD01;
}

.hpp-back-btn{
  max-width: calc(100vw - 24px);
  white-space: nowrap;
}
