.web2gpt-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 68px;
  height: 68px;
  transition: width 0.5s ease-in-out;
  /* padding: 4px; */
  border-radius: 34px;
  display: none;
  user-select: none;
  cursor: pointer;
  box-shadow: 0px 10px 20px 0px rgba(13, 14, 94, 0.15);
  background: linear-gradient(90deg, rgba(61, 103, 249, 1) 0%, rgba(99, 61, 249, 0.2) 100%);
}

.web2gpt-container::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 66px;
  height: 66px;
  transition: width 0.5s ease-in-out;
  background: #fff;
  border-radius: 33px;
  z-index: -1;
}

.web2gpt-container:hover {
  width: 250px;
  transition: width 0.5s ease-in-out;
}

.web2gpt-container:hover .web2gpt-hide-btn {
  display: flex;
}

.web2gpt-container:hover::before,
.web2gpt-container:hover .web2gpt-widget {
  width: 248px;
  transition: width 0.5s ease-in-out;
}

.web2gpt-hide-btn {
  display: none;
  position: absolute;
  right: 0px;
  top: 0px;
  height: 24px;
  width: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ECEEF1;
}

.web2gpt-hide-btn:hover {
  border: 1px solid rgba(33, 34, 45, 0.5);
}

.web2gpt-widget {
  overflow: hidden;
  position: absolute;
  top: 1px;
  left: 1px;
  width: 66px;
  height: 66px;
  transition: all 0.5s ease-in-out;
}

.web2gpt-container:hover .web2gpt-text {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.web2gpt-text {
  position: absolute;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  font-weight: bold;
  bottom: -4px;
  z-index: 1;
  left: 0;
  color: #fff;
  font-size: 12px;
  text-align: center;
  background: linear-gradient(180deg, #3D67F9 0%, #633DF9 100%);
  border-radius: 12px;
  border: 1px solid #FFFFFF;
  width: 68px;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
}

.web2gpt-search {
  position: absolute;
  font-size: 16px;
  left: 82px;
  top: 50%;
  width: 180px;
  transform: translateY(-50%);
  color: rgba(33, 34, 45, 0.5);
}

.web2gpt-icon {
  width: 60px;
  height: 60px;
  position: relative;
  border-radius: 50%;
  top: 4px;
  left: 4px;
  cursor: grab;
  background: linear-gradient(143deg, #3D67F9 0%, #633DF9 100%);
  box-shadow: 0px 4px 8px 0px rgba(61, 64, 249, 0.3), inset -2px -3px 4px 0px rgba(255, 255, 255, 0.4);
}

.web2gpt-container:active .web2gpt-icon {
  cursor: grabbing;
}

.web2gpt-icon-panda,
.web2gpt-icon-taiji {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
}

.web2gpt-icon-panda {
  animation: web2gpt-scale 2s linear infinite;
}

.web2gpt-icon-taiji {
  animation: web2gpt-rotate 2s linear infinite;
}

@keyframes web2gpt-scale {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }

  51% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes web2gpt-rotate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(360deg);
  }

  51% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.web2gpt-modal,
.web2gpt-hide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  display: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.web2gpt-modal.active,
.web2gpt-hide-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.web2gpt-iframe-container,
.web2gpt-hide-container {
  position: relative;
  width: 1000px;
  max-width: calc(100% - 64px);
  height: calc(100vh - 140px);
  background: transparent;
  border-radius: 8px;
  box-shadow: 0px 10px 20px 0px rgba(54, 59, 76, 0.2);
}

.web2gpt-hide-container {
  background-color: #fff;
  width: 500px;
  height: 189px;
  padding: 24px;
  border-radius: 10px;
}

.web2gpt-hide-header {
  font-size: 16px;
  font-weight: bold;
  color: #21222D;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.web2gpt-hide-body {
  font-size: 14px;
  line-height: 24px;
  color: #21222D;
  margin-bottom: 16px;
}

.web2gpt-hide-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.web2gpt-hide-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
}

.web2gpt-hide-option input[type="radio"]:checked {
  background-color: #3248F2;
  border-color: #3248F2;
  box-shadow: inset 0 0 0 3px white;
}

.web2gpt-hide-body span {
  font-size: 12px;
  line-height: 24px;
  padding-left: 16px;
  color: rgba(33, 34, 45, 0.5);
}

.web2gpt-hide-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.web2gpt-hide-footer button {
  height: 36px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  border: none;
  transition: all 0.5s ease-in-out;
  outline: none;
}

.web2gpt-hide-cancel-btn {
  color: #21222D;
  background: transparent;
}

.web2gpt-hide-confirm-btn {
  color: #FFFFFF;
  background: #21222D;
}

.web2gpt-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.web2gpt-modal-close,
.web2gpt-hide-modal-icon {
  position: absolute;
  top: -18px;
  right: -18px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  background: #F8F9FA;
}

.web2gpt-hide-modal-icon {
  top: 16px;
  right: 16px;
  background: #fff;
}

.web2gpt-modal-close:hover,
.web2gpt-hide-modal-icon:hover {
  box-shadow: 0px 10px 20px 0px rgba(54, 59, 76, 0.2);
  transform: scale(1.1);
}