/* 划词反馈提示弹窗 */
.wh-feedback-overlay {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

.wh-feedback-popup {
  position: relative;
  max-width: 363px;
  width: 363px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 7px 13px 0px rgba(48, 60, 66, 0.05);
  border: 1px solid #d5dfe9;
  padding: 23px 23px 27px 24px;
}

.wh-feedback-close {
  cursor: pointer;
  position: absolute;
  top: 23px;
  right: 23px;
  width: 15px;
  height: 15px;
}

.wh-feedback-title {
  margin-top: 0;
  line-height: 36px;
  font-weight: bold;
  font-size: 16px;
  color: #006ee1;
}

.wh-feedback-desc {
  margin: 8px 0;
  line-height: 23px;
  font-size: 14px;
  color: #303c42;
}

.wh-feedback-img {
  width: 100%;
}

/* 划词反馈按钮 */
.feedback-popup {
  cursor: pointer;
}

.feedback-bubble {
  white-space: nowrap;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 7px 17px 0px rgba(48, 60, 66, 0.1);
}

.feedback-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}

.feedback-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  border: 1px solid #d5dfe9;
  box-shadow: 0px 7px 17px 0px rgba(48, 60, 66, 0.1);
  background-color: #ffffff;
  background-image: url(https://help.yeastar.com/resources/images/feedback-icon.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.feedback-popup:hover .feedback-icon {
  box-shadow: 0px 3px 7px 0px rgba(16, 31, 58, 0.1);
  border: none;
  background-color: #006ee1;
  background-image: url(https://help.yeastar.com/resources/images/feedback-icon-white.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 23px;
}

.feedback-popup:hover .feedback-bubble {
  opacity: 1;
  pointer-events: auto;
}

/* 反馈内容填写弹窗 */
#feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.feedback-content {
  box-sizing: border-box;
  position: relative;
  background: #ffffff;
  padding: 46px 40px 40px 41px;
  border-radius: 20px;
  width: 700px;
  max-width: 700px;
  box-shadow: 0px 13px 20px 0px rgba(48, 60, 66, 0.05);
}

.feedback-modal-close {
  cursor: pointer;
  position: absolute;
  top: 33px;
  right: 30px;
  width: 15px;
  height: 15px;
}

.feedback-content h2 {
  margin-top: 0;
  margin-bottom: 1.5vw;
  font-size: 22px;
  font-weight: 600;
  color: #101f3a;
}

.feedback-content label {
  white-space: nowrap; 
  font-weight: 500;
  font-size: 16px;
  color: #101f3a;
}

#feedback-text {
  resize: none;
  padding: 19px 15px;
  width: 100%;
  height: 90px;
  display: block;
  border: 1px solid #d5dfe9;
  background: #f7f9fa;
  border-radius: 5px;
}

#feedback-email {
  padding: 0 15px;
  width: 100%;
  height: 48px;
  border: 1px solid #d5dfe9;
  background: #f7f9fa;
  border-radius: 5px;
}

textarea::placeholder,
input::placeholder {
  color: #838c9a;
  font-size: 16px;
  font-family: "Roboto", sans-serif !important;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: #d5dfe9;
  box-shadow: none;
}

.feedback-actions {
  text-align: center;
}

.feedback-actions button {
  cursor: pointer;
  width: 180px;
  height: 50px;
  font-size: 18px;
  border-radius: 5px;
}

#cancel-feedback {
  margin-right: 40px;
  border: 1px solid #006ee1;
  color: #006ee1;
  background: #ffffff;
}

#submit-feedback {
  border: none;
  color: #ffffff;
  background: #006ee1;
}

/* 提交后弹窗 */
.feedback-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.feedback-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  width: 460px;
  height: 160px;
  padding: 40px 20px;
  box-shadow: 0px 13px 20px 0px rgba(48, 60, 66, 0.05);
  border-radius: 20px;
  background: #ffffff;
}

.feedback-message-close {
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 14px;
  height: 14px;
}

.feedback-message-state {
  width: 40px;
  height: 40px;
}

.feedback-message p {
  margin-top: 17px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
  color: #101f3a;
}
