/* Always flex; fade with opacity/visibility */
.tnb-booking-pop-overlay {
  position: fixed;
  inset: 0;
  display: flex;                 /* keep centered from the first frame */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.7);
  z-index: 9999999999;
  opacity: 0;                    /* hidden by default */
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  overflow: hidden;              /* block background scroll within overlay */
   overscroll-behavior: contain; 
}

.tnb-booking-pop-overlay.tnb-visible {
  opacity: 1;
  visibility: visible;
}

.tnb-booking-pop-container {
  position: relative;
  max-width: 1200px;
  width: 90%;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* Mobile: 70dvh, internal scroll area */
@media (max-width: 767px) {
  .tnb-booking-pop-container {
    width: 92%;
    height: 85dvh;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
  }
  .tnb-booking-pop-content {
    flex: 1;
   -webkit-overflow-scrolling: touch;      /* momentum on iOS */
  overscroll-behavior: contain;           /* keep scroll inside */
  touch-action: pan-y;    
  }
}

.tnb-booking-pop-iframe {
  width: 100%;
  height: 100%;       /* ensure iframe fills scroll area */
  display: block;
  border: 0;
}

.tnb-booking-pop-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}
.tnb-booking-pop-close:hover {
    background: #555;
}
.tnb-popup-item { background: #fff; }
        .tnb-popup-item label { font-weight: bold; }
        .tnb-booking-pop-title { margin: 0 0 15px 0; text-align: center; font-size: 1.5em; }