#click {
  display: none;
}

label.label-chat {
  position: fixed;
  right: 30px;
  bottom: 20px;
  height: 55px;
  width: 55px;
  background: -webkit-linear-gradient(left, #273c75, #00a8ff);
  text-align: center;
  line-height: 55px;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 5001;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}

label svg {
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

label:hover {
  cursor: pointer;
  /* Ensure pointer cursor on hover */
}

.i1 {
  opacity: 1;
  pointer-events: auto;
}

.i2 {
  opacity: 0;
  pointer-events: none;
}

#click:not(:checked) ~ label .i1 {
  opacity: 1;
  pointer-events: auto;
}

#click:not(:checked) ~ label .i2 {
  opacity: 0;
  pointer-events: none;
}

#click:checked ~ label .i2 {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: rotate(180deg) !important;
}

#click:checked ~ label .i1 {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: rotate(180deg) !important;
}

/* .wrapper {
  position: fixed;
  right: 30px;
  bottom: 0px;
  max-width: 30%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 5000;
} */

#click:checked ~ .wrapper {
  opacity: 1;
  bottom: 85px;
  pointer-events: auto;
}

.wrapper .head-text {
  line-height: 60px;
  color: #fff;
  border-radius: 15px 15px 0 0;
  padding: 0 20px;
  font-weight: 500;
  font-size: 20px;
  background: -webkit-linear-gradient(left, #273c75, #00a8ff);
}

.wrapper .chat-box {
  padding: 5px;
  width: 100%;
  min-height: auto;
}

.chat-box .desc-text {
  color: #515365;
  text-align: center;
  line-height: 25px;
  font-size: 17px;
  font-weight: 500;
}

.chat-box .widget {
  padding: 0px;
  margin: 0px;
  border-radius: 25px;
}

.widget {
  width: 100%;
  height: 500px; /* or 100vh / 100% / auto depending on layout */
  position: relative;
}

.widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
  overflow-x: hidden !important;
}

/* Optional: Ensure iframe fills the available space */
.wrapper {
  display: flex;
  flex-direction: column;
  height: 500px;
}

@media (max-width: 768px) {
  .wrapper {
    max-width: 80%;
  }
}

#div_iframeChat {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#div_iframeChat.active {
  max-height: 500px; /* adjust this based on your content */
}
