@import 'https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap';
#chat-widget {
  position: absolute;
  z-index: 10000;
}
.chat-widget-wrapper {
  font-family: Inter, sans-serif;
}
.chat-widget-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.chat-widget-wrapper.show-chat-widget #chat-widget-toggler {
  transform: rotate(90deg);
}
.chat-widget-wrapper.show-chat-widget #chat-widget-toggler svg:first-child {
  opacity: 0;
}
.chat-widget-wrapper.show-chat-widget #chat-widget-toggler svg:last-child {
  opacity: 1;
}
.chat-widget-wrapper.show-chat-widget .chat-widget {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
#chat-widget-toggler {
  position: fixed;
  bottom: 17px;
  right: 55px;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #730002;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px #00000052, 0 0 0 2px #fce690;
  transition: all 0.2s ease;
}
#chat-widget-toggler:hover {
  background: #880d0d;
}
#chat-widget-toggler svg {
  position: absolute;
  fill: #fff;
}
#chat-widget-toggler svg:last-child {
  opacity: 0;
}
.chat-widget-toggler__badge {
  position: absolute;
  top: -3px;
  right: -2px;
  background: #e68181;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  padding: 3px 6px;
  line-height: 1;
}
.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 35px;
  width: 370px;
  transform: scale(0.2);
  overflow: hidden;
  background: #730002;
  border-radius: 4px;
  transform-origin: bottom right;
  box-shadow: 0 6px 16px #00000052, 0 0 0 2px #fce690;
  transition: all 0.1s ease;
  opacity: 0;
  pointer-events: none;
}
.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 15px;
  border-bottom: 1px solid #ffffff;
}
.chat-widget__header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-widget__header-info svg {
  width: 48px;
  height: 48px;
}
.chat-widget__header .chat-widget__logo-text {
  color: #fce690;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}
.chat-widget__header-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: none;
  outline: none;
  color: #fff;
  border-radius: 50%;
  background: #fd6060;
  transition: 0.2s ease;
  cursor: pointer;
}
.chat-widget__header-btn svg {
  width: 12px;
  height: 12px;
}
.chat-widget__header-btn:hover {
  background: #880d0d;
}
@media (max-width: 600px) {
  #chat-widget-toggler {
    right: 20px;
    border-radius: 20px;
  }
  .chat-widget {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .chat-widget__header {
    padding: 18px 20px;
  }
  .chat-widget__header-info svg {
    width: 60px;
    height: 60px;
  }
  .chat-widget__header-btn {
    width: 37px;
    height: 37px;
  }
  .chat-widget__header-btn svg {
    width: 18px;
    height: 18px;
  }
  .chat-widget__logo-text {
    font-size: 22px;
  }
  .chat-widget__body {
    height: calc(90% - 33px) !important;
    padding: 25px 15px;
  }
  .chat-widget__footer {
    padding: 10px 15px 15px;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9) rotate(-3deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.03) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}
.widget-start-screen {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  width: 100%;
  gap: 15px;
}
.widget-start-screen__header {
  display: flex;
  flex-direction: column;
  padding: 15px 15px 0;
  gap: 15px;
}
.widget-start-screen__header-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
  color: #fff;
}
.widget-start-screen__header-subtitle {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  color: #ffffffb2;
}
.widget-start-screen__section {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 15px 15px;
}
.widget-start-screen__section-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #040513;
}
.widget-start-screen__section-back-arrow {
  position: absolute;
  top: 4px;
  right: 16px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0;
  text-decoration: underline;
  gap: 2px;
  color: #fff;
  cursor: pointer;
}
.widget-start-screen__section-back-arrow:hover {
  color: #880d0d;
}
.widget-start-screen__section-back-arrow:hover svg {
  animation: arrow-wiggle 0.8s ease-in-out infinite;
}
.widget-start-screen__section-back-arrow svg {
  width: 18px;
  height: 18px;
  fill: #a42b2b;
}
.widget-start-screen__conversations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-start-screen__conversation {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 8px 8px 0;
}
.widget-start-screen__conversation:hover {
  background: #fafafa;
  border-radius: 8px;
}
.widget-start-screen__conversation-body {
  flex: 1;
}
.widget-start-screen__conversation-snippet {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
}
.widget-start-screen__form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  outline: 1px solid #fd6060;
  margin-top: 10px;
}
.widget-start-screen__form:focus-within {
  outline: 2px solid #fd6060;
}
.widget-start-screen__form:has(.widget-start-screen__form-input:valid)
  .widget-start-screen__form-submit {
  display: flex;
}
.widget-start-screen__form-input {
  border: none;
  outline: none;
  width: 100%;
  background: none;
  height: 34px;
  padding: 0 5px 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: #00000080;
}
.widget-start-screen__form-input::placeholder {
  color: #00000080;
  font-size: 14px;
  font-weight: 400;
}
.widget-start-screen__form-submit {
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: none;
  display: none;
  outline: none;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  margin-right: 6px;
  border-radius: 50%;
  background: #fd6060;
  transition: 0.2s ease;
  cursor: pointer;
}
.widget-start-screen__form-submit svg {
  width: 12px;
  height: 12px;
}
.widget-start-screen__form-submit:hover {
  background: #880d0d;
}
.widget-start-screen__form .otp-timer-wrapper {
  margin-right: 4px;
  font-size: 13px;
}
.widget-start-screen__form-error {
  position: absolute;
  bottom: -6px;
  color: #fff;
  font-size: 13px;
}
.widget-start-screen__footer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 15px 15px;
  border-top: 1px solid #ffffff;
  gap: 15px;
}
.widget-start-screen__footer-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
  color: #fff;
}
.widget-start-screen__contact-links {
  display: flex;
  gap: 15px;
  padding: 0 10px;
}
.widget-start-screen__contact-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 27px;
  height: 27px;
  transition: 0.2s;
  cursor: pointer;
}
.widget-start-screen__contact-link:hover svg {
  transform: scale(1.2);
}
.widget-start-screen__contact-link svg {
  width: 27px;
  height: 27px;
  transition: 0.2s cubic-bezier(0.17, 0.67, 0.5, 1.36);
}
.confirmation-form {
  display: flex;
  gap: 7px;
}
.confirmation-form input {
  text-align: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 4px;
  border: none;
  color: #00000080;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  outline: 1px solid #fd6060;
}
.confirmation-form input:focus {
  outline: 2px solid #fd6060;
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.auth-tab {
  flex: 1;
  padding: 7px 8px;
  background: #ffffff40;
  border: 1px solid rgba(255, 255, 255, 0.3764705882);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab:hover {
  background: #ffffff60;
  border-color: #ffffff80;
}
.auth-tab--active {
  background: #fd6060;
  border-color: #fd6060;
  font-weight: 500;
}
.auth-tab--active:hover {
  background: #e55555;
  border-color: #e55555;
}
.auth-warning {
  padding: 10px;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 4px;
  color: #856404;
  font-size: 12px;
  line-height: 16px;
}
.phone-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}
.phone-prefix {
  padding-left: 10px;
  padding-right: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #000c;
  flex-shrink: 0;
}
.widget-start-screen__form-input--phone {
  padding-left: 0 !important;
}
@media (max-width: 600px) {
  .widget-start-screen {
    gap: 20px;
  }
  .widget-start-screen__header {
    padding: 20px 20px 0;
    gap: 20px;
  }
  .widget-start-screen__header-title {
    font-size: 18px;
    line-height: 21px;
  }
  .widget-start-screen__header-subtitle {
    font-size: 14px;
    line-height: 21px;
  }
  .widget-start-screen__section {
    padding: 0 20px 20px;
  }
  .widget-start-screen__footer {
    padding: 30px 20px 20px;
    gap: 20px;
  }
  .widget-start-screen__footer-title {
    font-size: 18px;
    line-height: 21px;
  }
  .widget-start-screen__contact-link {
    width: 35px;
    height: 35px;
  }
  .widget-start-screen__contact-link svg {
    width: 35px;
    height: 35px;
  }
  .confirmation-form input {
    width: 40px;
    height: 40px;
  }
}
@keyframes arrow-wiggle {
  0%,
  to {
    transform: translate(0);
  }
  25% {
    transform: translate(-3px);
  }
  75% {
    transform: translate(3px);
  }
}
.spin-icon {
  animation: spin-icon 1s linear infinite;
}
@keyframes spin-icon {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.chat-widget__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 300px;
  margin-bottom: 82px;
  overflow-y: auto;
  padding: 7px;
  scrollbar-width: thin;
  scrollbar-color: #dda0a0 transparent;
}
.chat-widget__body-spinner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}
.chat-widget__body-spinner .spin-icon {
  width: 20px;
  height: 20px;
  fill: #a42b2b;
}
.chat-widget__body .day-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  left: 50%;
  transform: translate(-50%);
  border-radius: 13px;
  padding: 6px 9px;
  color: #ffffff80;
  font-size: 13px;
}
.chat-widget__body-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chat-widget__message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-widget__message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff80;
}
.chat-widget__message-text {
  position: relative;
  max-width: 75%;
  word-wrap: break-word;
  white-space: pre-line;
  min-width: 25%;
  olor: rgba(0, 0, 0, 0.9);
  background: #f5f5f573;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
}
.chat-widget__message .chat-message__time {
  position: absolute;
  top: -21px;
  left: 0;
  font-size: 12px;
  color: #ffffff80;
}
.chat-widget__message--outgoing {
  align-items: flex-start;
}
.chat-widget__message--outgoing .chat-widget__message-text {
  border-radius: 0 14px 10px;
}
.chat-widget__message--outgoing .chat-message__time {
  right: 0;
  left: auto;
}
.chat-widget__message--incoming {
  align-items: flex-end;
}
.chat-widget__message--incoming .chat-widget__message-header {
  flex-direction: row-reverse;
}
.chat-widget__message--incoming .chat-widget__message-text {
  border-radius: 14px 0 10px 14px;
}
.chat-widget__message--error {
  color: red;
}
.chat-widget__footer {
  width: 100%;
  position: absolute;
  bottom: 6px;
  padding: 0 6px;
}
.chat-widget__form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  outline: 1px solid #fd6060;
}
.chat-widget__form:focus-within {
  outline: 2px solid #fd6060;
}
.chat-widget__form-input {
  border: none;
  outline: none;
  width: 100%;
  background: none;
  height: 34px;
  padding: 0 5px 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: #00000080;
}
.chat-widget__form-input:valid ~ button {
  display: flex;
}
.chat-widget__form-input::placeholder {
  color: #00000080;
  font-size: 14px;
  font-weight: 400;
}
.chat-widget__form-submit {
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: none;
  display: none;
  outline: none;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  margin-right: 6px;
  border-radius: 50%;
  background: #fd6060;
  transition: 0.2s ease;
  cursor: pointer;
}
.chat-widget__form-submit svg {
  width: 12px;
  height: 12px;
}
.chat-widget__form-submit:hover {
  background: #880d0d;
}
.chat-widget__form .otp-timer-wrapper {
  margin-right: 4px;
  font-size: 13px;
}
.chat-message-with-time.new {
  animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.chat-widget__textarea {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  overflow: hidden;
  transition: border-color 0.2s;
}
.chat-widget__textarea:focus {
  border-color: #a42b2b;
  outline: none;
}
@media (max-width: 600px) {
  .chat-widget__message-header {
    font-size: 16px;
  }
  .chat-message__time {
    font-size: 13px;
  }
  .chat-widget__message-text {
    padding: 10px 14px;
  }
  .chat-widget__footer {
    bottom: 20px;
  }
}
