#myModal {
  display: none;
  position: fixed;
  z-index: 1000;
  width: auto;
  height: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#myModal.show {
  transform: translateX(0);
}

#myModal.closing {
  transform: translateX(100%);
}

#modalContent {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #000000;
  max-width: 200px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

#closeBtn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  color: #333;
}

#closeBtn:hover {
  color: #ff0000;
}

@media only screen and (max-width: 768px) {
  .myIframe {
    overflow: hidden;
    height: 100dvh;
    /* Use 100% of the viewport height */
    width: 100dvw;
    /* Use 100% of the viewport width */
    max-width: 100%;
    max-height: 100%;
  }

  .toggleBtn {
    background: transparent;
    padding: 0;
    border: none;
    bottom: 0px;
    /* KAD added */
    right: 0px;
    /* KAD added */
  }
}

@media only screen and (min-width: 769px) {
  .myIframe {
    height: 600px;
    /* Example desktop height */
    width: 400px;
    /* Example desktop width */
    border: 1px solid #ccc;
    /* Optional styling */
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
  }

  .toggleBtn {
    background: transparent;
    padding: 0;
    border: none;
    bottom: 24px;
    /* KAD added */
    right: 24px;
    /* KAD added */
  }
}

.chatCloseBtn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  transition: transform 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.chatCloseBtn:hover {
  color: #ff0000;
  transform: scale(1.2);
}

#iframeContainer.show .chatCloseBtn {
  display: flex !important;
}

#iframeContainer {
  z-index: 500;
  position: fixed;
  display: none;
}

#toggleBtn {
  z-index: 100;
  position: fixed;
  transition: transform 0.3s ease;
}

#toggleBtn:hover {
  transform: scale(1.2);
}

.arrow-down {
  display: block;
  width: 35px;
  height: 35px;
}

.arrow-down.iphone-arrow {
  width: 39px;
  height: 39px;
}
