/* Twise Integration styles - Modal, overlay and iframe functionality */

/* Modal section positioning */
.modal-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.modal-section .modal-overlay {
  pointer-events: all;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 25px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  background-color: transparent;
  border: none;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.6s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 25px;
}

/* Modal Close Button */
.modal-close-btn {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 31px;
  height: 31px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.modal-close-btn:hover {
  transform: scale(1.1);
}

.modal-close-btn img {
  width: 31px;
  height: 31px;
}


/* Mobile responsive styles for modal */
@media (max-width: 768px) {
  .mobile-white-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .mobile-white-bg.show {
    opacity: 1;
  }

  .modal-overlay {
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-width: none;
    max-height: none;
    border-radius: 25px;
    transform: scale(0.8) translateY(0);
    opacity: 0;
    margin: 0;
    position: relative;
  }

  .modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
