.chat-form-group-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  transform: scale(0.9);
}
.chat-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chat-form-group label {
  color: #6f6b7d;
  font-size: 13px;
  font-weight: 400;
}
.chat-form-group input {
  width: 100%;
  padding: 7px 14px;
  border: 1px solid #dbdade;
  background-color: #fff;
  border-radius: 6px;
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.2s;
  color: #000;
  font-size: 15px;
}
.chat-form-group input:focus {
  box-shadow: 0 0 0 2px #3a4858;
}
.chat-form-group input.input-error {
  border-color: #e53935;
  box-shadow: 0 0 0 2px #e5393533;
}
.chat-pending-message-textarea {
  width: 100%;
  padding: 7px 14px;
  border: 1px solid #dbdade;
  background-color: #fff;
  border-radius: 6px;
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.2s;
  color: #000;
  font-size: 15px;
  resize: none;
  font-family: inherit;
}
.chat-pending-message-textarea:focus {
  box-shadow: 0 0 0 2px #3a4858;
}
.chat-btn {
  padding: 0.75rem;
  background-color: #3a4858;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  width: 100%;
}
.chat-survey-feedback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0000004d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: surveyFadeIn 0.3s ease-out;
  border-radius: 8px;
}
@keyframes surveyFadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.survey-feedback-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 330px;
  width: 85%;
  box-shadow: 0 8px 24px #00000026;
  animation: surveySlideUp 0.3s ease-out;
  position: relative;
}
@keyframes surveySlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.survey-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.survey-close-btn:hover {
  color: #4b465c;
}
.survey-title {
  font-size: 16px;
  color: #3a4858;
  margin: 0 0 20px;
  text-align: center;
}
.survey-rating-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.survey-star {
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.survey-star svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}
.survey-star:hover svg {
  transform: scale(1.15);
}
.survey-star.active {
  color: #ffc107;
}
.survey-star.active svg {
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}
.survey-comment {
  width: 100%;
  max-height: 3.75rem;
  max-width: 21rem;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family:
    San Francisco,
    sans-serif;
  font-size: 15px;
  color: #333;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.survey-comment:focus {
  outline: none;
  border-color: #4b465c;
  box-shadow: 0 0 0 2px #4b465c1a;
}
.survey-comment::placeholder {
  color: #999;
}
.survey-char-count {
  font-size: 11px;
  color: #999;
  text-align: right;
  margin-bottom: 12px;
}
.survey-error-message {
  background-color: #fee;
  border: 1px solid #f5a;
  border-radius: 4px;
  color: #c33;
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-container {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.custom-btn {
  padding: 10px 20px;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.custom-btn:active {
  transform: scale(0.98);
}
.survey-submit-btn {
  background-color: #3a4858;
}
.survey-submit-btn:hover {
  background-color: #262f39;
  box-shadow: 0 4px 12px #3a48584d;
}
.secondary-btn {
  background-color: #9d9ba1;
}
.secondary-btn:hover {
  background-color: #838188;
  box-shadow: 0 4px 12px #9d9ba14d;
}
.success-btn {
  background-color: #209f59;
}
.success-btn:hover {
  background-color: #177541;
  box-shadow: 0 4px 12px #209f594d;
}
.survey-success {
  text-align: center;
}
.survey-success svg {
  margin-bottom: 16px;
  animation: surveyScaleIn 0.4s ease-out;
}
.survey-success h3 {
  margin-bottom: 1.5rem;
}
.survey-success p {
  font-size: 12px;
  color: #666;
  margin: 0;
}
@keyframes surveyScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@font-face {
  font-family: San Francisco;
  src: url(/web-fonts/San-Francisco-Regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
}
body {
  margin: 0;
  padding: 0;
  font-family:
    San Francisco,
    sans-serif;
}
* {
  box-sizing: border-box;
  letter-spacing: 0.5px;
}
.chat-page {
  position: fixed;
  z-index: 999999;
  font-family:
    San Francisco,
    sans-serif;
}
.chat-page input,
.chat-page button,
.chat-page textarea,
.chat-page select {
  font-family: inherit;
}
.chat-page .chat-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  zoom: var(--chat-scale, 1);
}
.chat-page .chat-button svg {
  width: 65px;
  height: 65px;
}
@media screen and (max-width: 768px) {
  .chat-page {
    width: 100%;
    height: 100%;
  }
  .chat-page .chat-button.chat-desktop-hidden {
    display: none;
  }
  .chat-page .chat-button svg {
    width: 60px;
    height: 60px;
  }
  .chat-page .chat-button {
    zoom: 1;
  }
}
.chat-page .chat-login {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  background-color: #fff;
  box-shadow: 0 10px 20px #a5a3ae66;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 336px;
  height: 516px;
}
.chat-page .chat-login .chat-close-button {
  cursor: pointer;
  background-color: transparent;
  border: 0;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0;
}
.chat-page .chat-login .chat-close-button svg {
  width: 32px;
}
.chat-page .chat-login .chat-login-header h2 {
  font-size: 20px;
  font-weight: 500;
  font-family: Roboto, sans-serif;
  color: #6f6b7d;
  margin-block: 0;
  text-align: center;
  margin-bottom: 32px;
}
.chat-page .chat-login input {
  width: 100%;
  padding: 11px;
}
.chat-page .chat-login .chat-btn {
  margin-top: 28px;
  background-color: #3a4858;
}
@media screen and (max-width: 768px) {
  .chat-page .chat-login {
    position: static !important;
    width: 100%;
    height: 100%;
  }
  .chat-page .chat-login input {
    width: 100%;
  }
}
.chat-page .chat {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  background-color: #fff;
  box-shadow: 0 10px 20px #a5a3ae66;
  border-radius: 6px;
  width: 336px;
  height: 516px;
  zoom: var(--chat-scale, 1);
  display: flex;
  flex-direction: column;
}
.chat-page .chat .chat-start-new-chat {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.chat-page .chat .chat-start-new-chat .chat-start-new-chat-btn {
  padding: 0.75rem 1.5rem;
  background-color: #3a4858;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s;
}
.chat-page .chat .chat-start-new-chat .chat-start-new-chat-btn:hover {
  background-color: #262f39;
}
.chat-page .chat .chat-flex-end {
  display: flex;
  justify-content: flex-end;
}
.chat-page .chat .chat-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a4858 #e5e7eb;
}
.chat-page .chat .chat-body > h6 {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #6f6b7d;
  margin: 0;
}
.chat-page .chat .chat-body .chat-welcome-message {
  font-size: 14px;
  color: #43404b;
  line-height: 1.5;
  border-radius: 6px;
  text-align: center;
}
.chat-page .chat .chat-body .chat-welcome-message a {
  color: #06c;
  text-decoration: none;
}
.chat-page .chat .chat-body .chat-welcome-message a:hover {
  text-decoration: underline;
}
.chat-page .chat .chat-body .chat-message {
  position: relative;
  align-self: flex-end;
  justify-content: flex-end;
  margin-bottom: 1rem;
  max-width: 75%;
}
.chat-page .chat .chat-body .chat-message .chat-message-body {
  display: flex;
  gap: 5px;
}
.chat-page .chat .chat-body .chat-message .chat-message-text {
  padding: 10px 16px;
  border-radius: 6px 0 6px 6px;
  background-color: #3a4858;
  color: #fff;
  font-family:
    San Francisco,
    sans-serif;
  overflow-wrap: break-word;
}
.chat-page .chat .chat-body .chat-message .chat-message-text span {
  color: #3b82f6;
  font-weight: 500;
}
.chat-page .chat .chat-body .chat-message .chat-message-time {
  right: 0;
  position: absolute;
  text-align: right;
  margin: 4px 0 0;
  color: #4b465c;
  font-size: 12px;
}
.chat-page .chat .chat-body .chat-message .chat-failed-message {
  color: red;
  width: 15px;
  height: 15px;
  font-size: 12px;
  border-radius: 50%;
  border: 1px solid red;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.chat-page .chat .chat-body .chat-agent-message {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.chat-page .chat .chat-body .chat-agent-message span {
  align-self: flex-end;
  font-size: 14px;
}
.chat-page .chat .chat-body .chat-agent-message span .chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6f6b7d;
  border: 1.5px solid #6f6b7d;
  font-size: 13px;
  padding: 1px;
}
.chat-page .chat .chat-body .chat-agent-message span .chat-avatar img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}
.chat-page .chat .chat-body .chat-agent-message .chat-agent-message-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  max-width: 75%;
  color: #43404b;
}
.chat-page .chat .chat-body .chat-agent-message .chat-agent-message-text span {
  color: #43404b;
  width: 100%;
}
.chat-page
  .chat
  .chat-body
  .chat-agent-message
  .chat-agent-message-text
  .chat-message-text {
  padding: 10px 16px;
  border-radius: 6px 0;
  align-self: flex-start;
  background-color: #fff;
  color: #43404b;
  font-family:
    San Francisco,
    sans-serif;
  box-shadow: 0 2px 4px #a5a3ae4d;
  overflow-wrap: break-word;
  word-break: break-word;
}
.chat-page
  .chat
  .chat-body
  .chat-agent-message
  .chat-agent-message-text
  .chat-message-time {
  left: 0;
  bottom: -23px;
  position: absolute;
  margin: 4px 0 0;
  color: #4b465c;
  font-size: 12px;
}
.chat-page .chat .chat-message-chat-input-container {
  padding: 10px 24px;
  border-top: 1px solid #dbdade;
}
.chat-page .chat .chat-message-chat-input-container .chat-input-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  input {
  width: 100%;
  padding: 12px 80px 12px 18px;
  border: 1px solid #dbdade;
  border-radius: 30px;
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: all 0.2s;
  color: #000;
  font-size: 14px;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  input::placeholder {
  color: #43404b;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  input:focus {
  border-color: #9e9e9e;
  box-shadow: 0 0 0 2px #0000000d;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-input-actions {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-attachment-button {
  margin: 0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  border: none;
  transition: background-color 0.2s;
  flex-shrink: 0;
  transform: rotate(-45deg);
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-attachment-button
  svg {
  width: 20px;
  height: 20px;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-send-button {
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-send-button:hover {
  background-color: #f5f5f5;
}
.chat-page
  .chat
  .chat-message-chat-input-container
  .chat-input-container
  .chat-send-button
  svg {
  width: 20px;
  height: 20px;
}
.chat-page .chat .chat-footer {
  text-align: center;
  padding: 12px;
  border-radius: 0 0 6px 6px;
  font-size: 13px;
  color: #43404b;
  border-top: 1px solid #e9ecef;
}
.chat-page .chat .chat-footer span {
  font-weight: 400;
}
@media screen and (max-width: 768px) {
  .chat-page .chat {
    zoom: 1;
    height: 100dvh;
    width: 100%;
    border-radius: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .chat-page .chat .chat-header {
    border-radius: 0;
    min-height: 100px;
    width: 100%;
    position: relative;
    flex-shrink: 0;
  }
  .chat-page .chat .chat-body {
    width: 100% !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    position: relative !important;
    top: auto !important;
    overflow-y: auto;
  }
  .chat-page .chat .chat-start-new-chat {
    flex-shrink: 0;
  }
  .chat-page .chat .chat-attachments-container {
    flex-shrink: 0;
    max-height: 35vh;
    overflow-y: auto;
  }
  .chat-page .chat .chat-message-chat-input-container {
    width: 100%;
    position: relative;
    bottom: auto;
    flex-shrink: 0;
    min-height: 70px;
  }
}
.chat-page .chat .chat-attachments-container {
  padding: 10px;
  border-top: 1px solid #e0e0e0;
}
.chat-page .chat .chat-image-message {
  position: relative;
  display: inline-block;
  max-width: 176px;
  max-height: 133px;
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecef;
}
.chat-page .chat .chat-message-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 12px;
}
.chat-page .chat .chat-attachment-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #3a4858;
  border-radius: 4px;
  margin-bottom: 8px;
  gap: 12px;
  position: relative;
}
.chat-page .chat .chat-attachment-preview {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-page .chat .chat-attachment-preview:hover {
  transform: scale(1.05);
}
.chat-page .chat .chat-attachment-preview:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.chat-page .chat .chat-attachment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.chat-page .chat .chat-attachment-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-page .chat .chat-attachment-icon-wrapper svg {
  width: 100%;
  height: 100%;
}
.chat-page .chat .chat-attachment-info {
  flex: 1;
  min-width: 0;
}
.chat-page .chat .chat-attachment-name {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.chat-page .chat .chat-attachment-size {
  font-size: 13px;
  color: #ccc;
}
.chat-page .chat .chat-attachment-delete-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  color: #fff9;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.chat-page .chat .chat-attachment-delete-btn:hover {
  color: #fff;
}
.chat-page .chat .chat-error-message,
.chat-page .chat .chat-success-message {
  padding: 12px 15px;
  background-color: #fee;
  border: 1px solid #f5a;
  border-radius: 4px;
  color: #c33;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: chatErrorSlideIn 0.3s ease-out;
}
.chat-page .chat .chat-success-message {
  border: 1px solid rgb(85, 255, 127);
  background-color: #f2ffee;
  color: #2b851f;
}
.chat-page .chat .chat-error-message-close-btn,
.chat-page .chat .chat-success-message-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0 5px;
  margin-left: 10px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.chat-page .chat .chat-error-message-close-btn:hover {
  color: #c33;
}
.chat-page .chat .chat-success-message-close-btn:hover {
  color: #2b851f;
}
.chat-page .chat .attachment-loading div {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes chatErrorSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chatErrorSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.chat-page .chat .chat-error-message.closing,
.chat-page .chat .chat-success-message.closing {
  animation: chatErrorSlideOut 0.3s ease-out;
}
.chat-page .chat-header {
  background: linear-gradient(90deg, #5c636b, #3a4858);
  color: #fff;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 60px;
}
.chat-page .chat-header .chat-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.chat-page .chat-header .chat-header-logo svg {
  width: 32px;
  height: 32px;
}
.chat-page .chat-header .chat-header-title {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}
.chat-page .chat-header .chat-lang-select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-transform: uppercase;
  transition: all 0.2s;
}
.chat-page .chat-header .chat-lang-select option {
  background: #3a4858;
  color: #fff;
}
.chat-page .chat-header .chat-lang-select:hover {
  border-color: #ffffff80;
}
.chat-page .chat-header .chat-lang-select:focus {
  border-color: #ffffffb3;
}
.chat-page .chat-header .chat-close-button {
  cursor: pointer;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-page .chat-header .chat-close-button svg {
  width: 100%;
  height: 100%;
  color: #fff;
}
.chat-page .chat-header .chat-close-button:hover {
  opacity: 0.8;
}
@media screen and (min-width: 769px) {
  .chat-page .chat-header .chat-close-button {
    position: absolute;
    left: -35px;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(90deg, #5c636b, #3a4858);
    border-radius: 50%;
    padding: 3px;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
