body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #1451f2;
  min-height: 100vh;
}

.background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('./assets/images/light/img_page-background.png') center center/cover no-repeat;
  z-index: 0;
}

.chat-widget {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 370px;
  min-height: 600px;
  background: #1451f2;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 28px 0 0 28px;
}

.chat-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 5px;
  object-fit: contain;
}

.chat-greeting {
  padding: 18px 28px 0 28px;
}
.greeting-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
}
.wave {
  margin-left: 6px;
}
.greeting-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-top: -8px;
}

.chat-message-block {
  background: #fff;
  margin: 22px 18px 0 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 14px 16px 14px 18px;
  display: flex;
  align-items: center;
  position: relative;
}
.message-block-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.message-title {
  font-weight: 700;
  color: #222;
  font-size: 1rem;
  margin-bottom: 2px;
}
.message-desc {
  color: #888;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}
.message-arrow {
  color: #0a2a53;
  font-size: 1.1rem;
  margin-left: 12px;
}

.chat-faq-block {
  background: #fff;
  margin: 16px 18px 0 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 10px 0 0 0;
}
.faq-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  padding: 0 18px 8px 18px;
}
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 0;
}
.faq-list li {
  padding: 10px 18px;
  color: #222;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
}
.faq-list li:last-child {
  border-bottom: none;
}
.faq-list li:hover {
  background: #f7faff;
}

.chat-status-block {
  background: #fff;
  margin: 16px 18px 18px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.status-icon {
  color: #2ecc40;
  font-size: 1.3rem;
  margin-right: 10px;
}
.status-text {
  font-weight: 700;
  color: #222;
}
.status-time {
  color: #888;
  font-size: 0.92rem;
  margin-left: auto;
}

.clickable { cursor: pointer; }

.chat-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(10, 21, 50, 0.98);
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}
.loader-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: #fff;
  padding: 5px;
  object-fit: contain;
}
.loader-bg {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.loader-text {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 170px;
  text-align: center;
  position: relative;
}

.chat-window {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 370px;
  min-height: 600px;
  background: #f6f8fa;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  z-index: 11;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-window-header {
  background: #1451f2;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  padding: 16px 0 14px 0;
  letter-spacing: 0.5px;
}
.chat-window-body {
  flex: 1;
  padding: 14px 8px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f6f8fa;
  overflow-y: auto;
}
.chat-message {
  display: flex;
  align-items: flex-start;
  margin: 0 0 10px 0;
  padding-left: 2px;
  padding-right: 2px;
}
.chat-message.bot {
  margin-top: 0;
}
.chat-message.user {
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 0 10px 10px 0;
  padding-right: 2px;
}
.chat-message.bot .chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}
.chat-bubble {
  background: #f0f2f5;
  color: #222;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 1rem;
  max-width: 240px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.chat-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-end;
  position: absolute;
  bottom: 18px;
  right: 18px;
  left: auto;
  margin: 0;
  padding: 0;
}
.lang-btn {
  background: #1451f2;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 7px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.lang-btn:hover {
  background: #174a8c;
}
.user-bubble {
  background: #1451f2;
  color: #fff;
  border-radius: 16px;
  padding: 7px 12px;
  font-size: 0.95rem;
  max-width: 180px;
  margin-left: 10px;
  margin-right: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-input-bar {
  width: 100%;
  background: #f6f8fa;
  padding: 12px 12px 12px 12px;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-sizing: border-box;
  border-top: 1px solid #e0e6ed;
  position: relative;
}
.chat-input {
  flex: 1;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  margin-right: 10px;
  transition: border 0.15s;
}
.chat-input:focus {
  border: 1.5px solid #1451f2;
}
.chat-send-btn {
  background: #aee0ff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1451f2;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-send-btn:hover {
  background: #7fcfff;
}

/* Стили для FAQ окна */
.faq-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 370px;
  min-height: 600px;
  background: #f6f8fa;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  z-index: 11;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-window-header {
  background: #1451f2;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  padding: 16px 0 14px 0;
  letter-spacing: 0.5px;
}

.faq-window-body {
  flex: 1;
  padding: 30px;
  background: #f6f8fa;
  overflow-y: auto;
}

.faq-window-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.faq-window-content {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 5px;
}

.back-btn {
  background: #1451f2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  margin: 20px auto;
  width: 90%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn i {
  margin-right: 8px;
}

.back-btn:hover {
  background: #0f3ec5;
} 