.dayon-lead {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 2147483000;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #222;
}

.dayon-lead * {
  box-sizing: border-box;
}

.dayon-lead__bubble {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #9E0303;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
}

.dayon-lead__panel {
  width: 380px;
  background: #fff;
  border: 1px solid rgba(158, 3, 3, .18);
  border-radius: 6px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.dayon-lead__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #9E0303;
  color: #fff;
}

.dayon-lead__title {
  font-size: 16px;
  font-weight: 700;
}

.dayon-lead__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dayon-lead__body {
  padding: 16px;
}

.dayon-lead__intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.dayon-lead__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dayon-lead__quick button {
  border: 1px solid #e4d1d1;
  background: #fff;
  color: #7a1111;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  cursor: pointer;
}

.dayon-lead__quick button:hover,
.dayon-lead__quick button.is-active {
  background: #9E0303;
  color: #fff;
  border-color: #9E0303;
}

.dayon-lead__textarea,
.dayon-lead__input,
.dayon-lead__select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
}

.dayon-lead__textarea {
  height: 62px;
  resize: none;
  margin-bottom: 10px;
}

.dayon-lead__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.dayon-lead__notice {
  margin: 4px 0 10px;
  color: #777;
  font-size: 12px;
  line-height: 1.6;
}

.dayon-lead__submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #9E0303;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dayon-lead__submit[disabled] {
  background: #c9c9c9;
  cursor: not-allowed;
}

.dayon-lead__status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #9E0303;
}

.dayon-lead.is-collapsed .dayon-lead__panel {
  display: none;
}

.dayon-lead:not(.is-collapsed) .dayon-lead__bubble {
  display: none;
}

@media screen and (max-width: 980px) {
  .dayon-lead {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .dayon-lead__bubble {
    position: fixed;
    right: 14px;
    bottom: 82px;
  }

  .dayon-lead__panel {
    width: 100%;
    max-height: 70vh;
    border-radius: 6px 6px 0 0;
    border-left: 0;
    border-right: 0;
  }

  .dayon-lead__body {
    max-height: calc(70vh - 50px);
    overflow-y: auto;
    padding: 14px;
  }

  .dayon-lead__intro {
    margin-bottom: 10px;
    line-height: 1.55;
  }

  .dayon-lead__quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dayon-lead__quick button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dayon-lead__textarea {
    height: 54px;
  }

  .dayon-lead__row {
    grid-template-columns: 1fr;
  }

  .dayon-lead__submit {
    height: 44px;
  }
}
