/* Bottom-left leave message widget (Baidu 爱番番 style) */
.yf-leave-msg {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #c5c5c5;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
  z-index: 10001;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  color: #333;
}

.yf-leave-msg.is-collapsed .yf-leave-msg__body,
.yf-leave-msg.is-collapsed .yf-leave-msg__form {
  display: none;
}

.yf-leave-msg__head {
  height: 34px;
  line-height: 34px;
  padding: 0 10px;
  background: #6aa9e8;
  color: #fff;
  font-size: 14px;
  border-radius: 2px 2px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yf-leave-msg__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yf-leave-msg__min,
.yf-leave-msg__close {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.yf-leave-msg__min:hover,
.yf-leave-msg__close:hover {
  opacity: 1;
}

.yf-leave-msg__body {
  padding: 10px 12px 6px;
  line-height: 1.65;
  color: #666;
  font-size: 12px;
}

.yf-leave-msg__form {
  padding: 0 12px 12px;
}

.yf-leave-msg__textarea {
  width: 100%;
  height: 70px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 8px 10px;
  resize: none;
  box-sizing: border-box;
  font-size: 12px;
  color: #333;
  outline: none;
  margin-bottom: 8px;
}

.yf-leave-msg__textarea:focus,
.yf-leave-msg__input:focus {
  border-color: #6aa9e8;
}

.yf-leave-msg__field {
  position: relative;
  margin-bottom: 8px;
}

.yf-leave-msg__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.4;
  pointer-events: none;
}

.yf-leave-msg__input {
  width: 100%;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 10px 0 32px;
  box-sizing: border-box;
  font-size: 12px;
  color: #333;
  outline: none;
}

.yf-leave-msg__submit {
  display: block;
  width: 68px;
  height: 28px;
  margin: 2px 0 0 auto;
  border: none;
  border-radius: 2px;
  background: #6aa9e8;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.yf-leave-msg__submit:hover {
  background: #5b9bdd;
}

.yf-leave-msg__tab {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 110px;
  background: #6aa9e8;
  color: #fff;
  border: none;
  border-radius: 0 3px 0 0;
  cursor: pointer;
  z-index: 10000;
  font-size: 13px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
}

.yf-leave-msg__tab:hover {
  background: #5b9bdd;
}

.yf-leave-msg.is-hidden {
  display: none;
}

.yf-leave-msg__tab.is-hidden {
  display: none;
}

/* Hide Baidu injected duplicate if fcagl also loads */
.wpa-container,
#aff-im-root,
.aff-im-root {
  display: none !important;
}
