.chat-widget {
  font-family: "Barlow", "Barlow Fallback", Arial, sans-serif;
}

.chat-widget__button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: #640000;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.chat-widget__button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.chat-widget__panel {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100001;
  width: min(386px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .24);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.chat-widget.is-open .chat-widget__panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-widget.is-open .chat-widget__button {
  display: none;
}

.chat-widget__header {
  position: relative;
  padding: 64px 28px 30px;
  color: #fff;
  background: #5b0000;
}

.chat-widget__close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.chat-widget__close::before,
.chat-widget__close::after {
  position: absolute;
  width: 23px;
  height: 2px;
  background: currentColor;
  content: "";
}

.chat-widget__close::before {
  transform: rotate(45deg);
}

.chat-widget__close::after {
  transform: rotate(-45deg);
}

.chat-widget__title,
.chat-widget__subtitle {
  margin: 0;
  color: #fff;
  font-family: "Barlow", "Barlow Fallback", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.34;
}

.chat-widget__body {
  padding: 18px 18px 18px;
}

.chat-widget__intro {
  margin: 0 0 18px;
  color: #111;
  font-size: 20px;
  line-height: 1.32;
}

.chat-widget__field {
  display: block;
  width: 100%;
  margin: 0 0 18px;
}

.chat-widget__field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chat-widget__field input,
.chat-widget__field textarea {
  width: 100%;
  min-height: 60px;
  padding: 0 12px;
  color: #111;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  font: 400 19px/1.3 "Barlow", "Barlow Fallback", Arial, sans-serif;
  outline: none;
}

.chat-widget__field textarea {
  min-height: 105px;
  padding-top: 18px;
  resize: vertical;
}

.chat-widget__field input:focus,
.chat-widget__field textarea:focus {
  border-color: #111;
}

.chat-widget__consent {
  margin: 2px 0 20px;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.45;
}

.chat-widget__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  color: #fff;
  background: #640000;
  border: 0;
  border-radius: 26px;
  font: 700 16px/1 "Barlow", "Barlow Fallback", Arial, sans-serif;
  cursor: pointer;
}

.chat-widget__submit:hover,
.chat-widget__submit:focus-visible {
  background: #4f0000;
}

.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-colorSecondary,
body iframe[src*="chat.housecallpro.com"] {
  display: none !important;
}

@media (max-width: 520px) {
  .chat-widget__panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .chat-widget__button {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }

  .chat-widget__button svg {
    width: 25px;
    height: 25px;
  }

  .chat-widget__header {
    padding: 54px 22px 26px;
  }

  .chat-widget__title,
  .chat-widget__subtitle {
    font-size: 30px;
  }
}
