/*
Theme Name: Twenty Twenty-Three Child
Template: twentytwentythree
Version: 1.0
*/
@import url("../twentytwentythree/style.css");


.wp-site-blocks {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===============================
   POPUP BASE
================================ */
#popup-30s {
  	position: fixed;
  	inset: 0;
  	z-index: 9999;
  	display: none;
	margin:0;
	padding:0;
}

/* ===============================
   OVERLAY
================================ */
#popup-30s .popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* ===============================
   CONTENT CONTAINER
================================ */
#popup-30s .popup-content {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: popup-slide-up 0.4s ease;
}

/* ===============================
   CLOSE BUTTON
================================ */
#popup-30s .popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ===============================
   TEXT
================================ */
#popup-30s h2 {
  margin: 0;
  font-size: 1.4rem;
}

#popup-30s p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* ===============================
   SCROLL LOCK
================================ */
body.popup-open {
  overflow: hidden;
  touch-action: none;
}

/* ===============================
   ANIMATION
================================ */
@keyframes popup-slide-up {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

/* ===============================
   TABLET & DESKTOP
================================ */
@media (min-width: 768px) {
  #popup-30s .popup-content {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    max-height: 80vh;
    animation: popup-fade-scale 0.3s ease;
  }

  @keyframes popup-fade-scale {
    from {
      opacity: 0;
      transform: translate(-50%, -45%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* ===============================
   VERY SMALL PHONES
================================ */
@media (max-width: 360px) {
  #popup-30s .popup-content {
    padding: 1.25rem 1.25rem 1.75rem;
    border-radius: 16px 16px 0 0;
  }

  #popup-30s h2 {
    font-size: 1.25rem;
  }

  #popup-30s p {
    font-size: 0.95rem;
  }
}
