@charset "UTF-8";
.bitrix-chat-container {
  bottom: 20px;
  font-family: Arial, sans-serif;
  position: fixed;
  right: 20px;
  z-index: 1000;
}
@media (max-width: 767px) {
  .bitrix-chat-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}
.bitrix-chat-container .auth-message {
  color: #ff373a;
  padding: 20px;
  text-align: center;
}
.bitrix-chat-container .auth-message p {
  font-size: 14px;
  margin: 25% auto;
}
.bitrix-chat-container .welcome-message {
  color: #555555;
  font-style: italic;
  padding: 20px;
  text-align: center;
}
.bitrix-chat-container .welcome-message .message-content {
  background: none;
  padding: 0;
}
.bitrix-chat-container .message-time {
  color: #999;
  font-size: 0.7em;
  margin-top: 3px;
  text-align: right;
}
.bitrix-chat-container .chat-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chat-toggle {
  align-items: center;
  background-color: #ff373a;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  width: 50px;
}
.chat-toggle:hover {
  background-color: #ff0408;
}
.chat-toggle .unread-count {
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #ff373a;
  border-radius: 50%;
  color: #ff373a;
  display: flex;
  font-size: 12px;
  font-weight: bold;
  height: 20px;
  justify-content: center;
  position: absolute;
  right: -5px;
  top: -5px;
  width: 20px;
}

.chat-window {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 600px;
  width: 800px;
}
@media (max-width: 768px) {
  .chat-window {
    bottom: 0;
    height: 100%;
    left: 0;
    max-height: 100%;
    max-width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
  }
}

.tabs-header {
  background: #f5f5f5;
  border-bottom: 2px solid #ff373a;
  display: flex;
  padding: 0 14px;
  position: relative;
  align-items: flex-end;
  z-index: 10;
}
@media (max-width: 767px) {
  .tabs-header {
    padding: 0 6px;
  }
}
.tabs-header .tab-button {
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
  padding: 10px 18px;
  position: relative;
  transition: all 0.3s ease, border-color 0.2s ease;
  z-index: 1;
}
.tabs-header .tab-button:not(.active) {
  border: 2px solid transparent;
  margin: -2px 2px -2px -2px;
}
.tabs-header .tab-button:not(.active):hover {
  border: 2px solid rgba(255, 55, 58, 0.3);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.8);
}
@media (max-width: 767px) {
  .tabs-header .tab-button {
    font-size: 12px;
    padding: 8px 12px;
  }
}
.tabs-header .tab-button:hover {
  background: rgba(255, 255, 255, 0.7);
}
.tabs-header .tab-button.active {
  background: #ffffff;
  color: #333;
  z-index: 11;
  padding: 10px 18px;
  border: 2px solid #ff373a;
  border-bottom: none;
  margin: -2px 2px -2px -2px;
}
.tabs-header .tab-button.active::before {
  background: #ffffff;
  border-radius: 6px 6px 0 0;
  content: '';
  height: calc(100% + 2px);
  left: -2px;
  right: -2px;
  top: -2px;
  z-index: -1;
}
.tabs-header .tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: #ffffff;
  z-index: 3;
}
@media (max-width: 767px) {
  .tabs-header .tab-button.active {
    padding: 8px 12px;
  }
}
.tabs-header .tab-button.active:hover {
  z-index: 2;
}
.tabs-header .tab-button svg {
  height: 16px;
  width: 16px;
  transition: transform 0.2s ease;
  margin-right: 0.5rem;
  position: relative;
  z-index: 4;
}
.tabs-header .tab-button svg path {
  fill: currentColor;
  transition: fill 0.3s ease;
}
.tabs-header .tab-button:hover svg {
  transform: scale(1.1);
}
.tabs-header .tab-button.active svg path {
  fill: #ff373a;
}
.tabs-header .tab-button .tab-badge {
  background: #ff373a;
  border: 2px solid #f5f5f5;
  border-radius: 10px;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  height: 18px;
  line-height: 14px;
  min-width: 18px;
  position: absolute;
  right: 4px;
  text-align: center;
  top: 4px;
  z-index: 5;
}
@media (max-width: 767px) {
  .tabs-header .tab-button .tab-badge {
    height: 16px;
    line-height: 12px;
    min-width: 16px;
    right: 2px;
    top: 2px;
  }
}
.tabs-header .tab-button.active .tab-badge {
  border-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .tab-button {
    border-width: 1px;
    margin: -1px 1px -1px -1px;
  }
  .tab-button.active {
    border-width: 1px;
    margin: -1px 1px -1px -1px;
  }
  .tab-button.active::before {
    left: -1px;
    right: -1px;
    top: -1px;
  }
  .tab-button.active::after {
    bottom: -1px;
    left: -1px;
    right: -1px;
    height: 1px;
  }
  .tab-button:not(.active) {
    border-width: 1px;
    margin: -1px 1px -1px -1px;
  }

  .tabs-header {
    border-bottom-width: 1px;
    padding: 0 5px;
  }
}
.chat-header {
  align-items: center;
  background-color: #ff373a;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  min-height: 50px;
  height: auto;
  padding: 8px 16px;
}
.chat-header h5 {
  font-size: 16px;
  margin: 0;
}
.chat-header h5, .chat-header h6 {
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  min-height: 34px;
}
.chat-header .close-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.chat-content {
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.chat-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  z-index: 3;
}

.chat-content .tab-content {
  animation: fadeIn 0.3s ease;
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.chat-content .tab-content.active {
  display: flex;
}
.chat-content .tab-content::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  z-index: 2;
}

.private-chats,
.group-chats,
.notifications {
  border: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.chat-layout .chat-list-container {
  transition: all 0.3s ease;
}
.chat-layout .chat-list-container .mobile-back-button {
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .chat-layout .chat-list-container {
    flex: 0 0 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
  }
  .chat-layout .chat-list-container .chat-list {
    height: 100%;
    overflow-y: auto;
    width: 100%;
  }
}
.chat-layout .message-area .message-content {
  line-height: 1.4;
}
.chat-layout .message-area .message-content strong {
  font-weight: bold;
}
.chat-layout .message-area .message-content em {
  font-style: italic;
}
.chat-layout .message-area .message-content u {
  text-decoration: underline;
}
.chat-layout .message-area .message-content s {
  text-decoration: line-through;
}
.chat-layout .message-area .message-content blockquote {
  border-left: 2px solid #ccc;
  color: #666;
  margin: 5px 0;
  padding-left: 10px;
}
.chat-layout .message-area .message-content pre {
  background: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
  padding: 8px;
}
.chat-layout .message-area .message-content ul {
  margin: 5px 0;
  padding-left: 20px;
}
.chat-layout .message-area .message-content li {
  list-style-type: disc;
}
.chat-layout .message-area .message-content a {
  color: #0066cc;
  text-decoration: underline;
}
.chat-layout .message-area .message-content a:hover {
  text-decoration: none;
}
.chat-layout .message-area .message-content img {
  border-radius: 4px;
  height: auto;
  margin: 5px 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .chat-layout .message-area {
    display: none;
    flex: 1;
    height: 100%;
  }
  .chat-layout .message-area .message-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .chat-layout .message-area .message-container .messages {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
  }
}
@media (max-width: 768px) {
  .chat-layout {
    display: flex;
    flex-grow: 1;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
  }
  .chat-layout.has-selected-chat .chat-list-container {
    flex: 0 0 60px;
    width: 60px;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-list {
    width: 60px;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-item {
    height: 44px;
    padding: 8px;
    position: relative;
    width: 44px;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-item .avatar {
    height: 100%;
    margin: 0 auto;
    width: 100%;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-item .avatar .chat-avatar {
    height: 100%;
    width: 100%;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-item .chat-info,
  .chat-layout.has-selected-chat .chat-list-container .chat-item .chat-meta .time {
    display: none;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-item .unread {
    font-size: 10px;
    height: 18px;
    min-width: 18px;
    padding: 2px;
    position: absolute;
    right: 2px;
    top: 2px;
  }
  .chat-layout.has-selected-chat .message-area {
    display: flex !important;
    flex: 1;
    flex-direction: column;
  }
}

.mobile-back-button {
  display: none;
}
@media (max-width: 768px) {
  .mobile-back-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    height: 30px;
    left: 70px;
    padding: 0;
    position: absolute;
    top: 10px;
    width: 30px;
    z-index: 100;
  }
  .mobile-back-button svg {
    height: 20px;
    width: 20px;
  }
}

.chat-list-container {
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 300px;
}
@media (max-width: 767px) {
  .chat-list-container {
    border-bottom: 1px solid #e0e0e0;
    border-right: none;
    max-height: 40vh;
    width: 100%;
  }
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #ff373a #f5f5f5;
  scrollbar-width: thin;
}

.chat-item {
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  display: flex;
  padding: 12px;
  transition: all 0.3s ease;
}
.chat-item:hover {
  background-color: rgba(255, 55, 58, 0.05);
}
.chat-item.active {
  background-color: rgba(255, 55, 58, 0.1);
  border-right: 3px solid #ff373a;
}
.chat-item .avatar {
  border-radius: 50%;
  flex-shrink: 0;
  height: 40px;
  margin-right: 12px;
  overflow: hidden;
  width: 40px;
}
.chat-item .avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.chat-item .chat-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.chat-item .chat-info .name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item .chat-info .last-message {
  color: #555555;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item .chat-meta {
  flex-shrink: 0;
  margin-left: 8px;
  text-align: right;
}
.chat-item .chat-meta .time {
  color: #555555;
  font-size: 11px;
  margin-bottom: 4px;
}
.chat-item .chat-meta .unread {
  align-items: center;
  background-color: #ff373a;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-weight: bold;
  height: 18px;
  justify-content: center;
  width: 18px;
}
.chat-item .new-chat {
  animation: highlight 1.5s ease;
}

@keyframes titleTransition {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.message-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.message-area .empty-state.select-chat {
  align-items: center;
  background: #ffffff;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.message-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.message-container .message-header {
  flex-shrink: 0;
  min-height: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
}
.message-container .message-header h6 {
  font-size: 15px;
  margin: 0;
  line-height: 1.2;
  min-height: 26px;
  display: flex;
  align-items: center;
}
.message-container .messages {
  background-color: #ffffff;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
  scroll-behavior: smooth;
  transition: scroll-top 0.3s ease;
}
.message-container .messages::-webkit-scrollbar {
  width: 6px;
}
.message-container .messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.message-container .messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
.message-container .messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
.message-container .messages .message {
  margin-bottom: 16px;
  max-width: 80%;
}
.message-container .messages .message.outgoing {
  margin-left: auto;
  text-align: right;
}
.message-container .messages .message-content {
  background-color: #f5f5f5;
  border-radius: 18px;
  display: inline-block;
  line-height: 1.4;
  padding: 10px 14px;
  word-break: break-word;
}
.outgoing .message-container .messages .message-content {
  background-color: #ff373a;
  color: #ffffff;
}
.message-container .messages .message-time {
  color: #555555;
  font-size: 11px;
  margin-top: 4px;
}
.message-container .messages .new-messages-notification {
  bottom: 10px;
}
.message-container .message-input {
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-shrink: 0;
  padding: 12px;
}
.message-container .message-input input {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  flex: 1;
  font-size: 14px;
  outline: none;
  padding: 8px 12px;
}
.message-container .message-input input:focus {
  border-color: #ff373a;
}
.message-container .message-input button {
  background-color: #ff373a;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
  padding: 8px 16px;
  transition: background-color 0.2s;
}
.message-container .message-input button:hover {
  background-color: #ff0408;
}

.reply-preview {
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid #007bff;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.reply-preview:hover {
  background: rgba(0, 0, 0, 0.08);
}
.reply-preview .reply-header {
  margin-bottom: 4px;
}
.reply-preview .reply-header .reply-author {
  font-size: 12px;
  font-weight: 600;
  color: #007bff;
}
.reply-preview .reply-text {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-indicator {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #007bff;
  border-radius: 4px;
  padding: 10px 15px;
  margin-bottom: 10px;
  position: relative;
}
.reply-indicator .reply-indicator-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reply-indicator .reply-indicator-content span {
  font-weight: 600;
  color: #007bff;
  font-size: 13px;
}
.reply-indicator .reply-indicator-content .reply-preview-text {
  font-size: 12px;
  color: #666;
  margin: 0 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-indicator .reply-indicator-content .cancel-reply {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.reply-indicator .reply-indicator-content .cancel-reply:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

.reply-btn {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-left: 8px;
}
.reply-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}
.reply-btn svg {
  display: block;
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
}
.notifications-list .notification-item {
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  padding: 12px 16px;
}
.notifications-list .notification-item.unread {
  font-weight: bold;
}
.notifications-list .notification-item .notification-icon-wrapper {
  padding-right: 1rem;
}
.notifications-list .notification-item .notification-icon-wrapper .notification-icon {
  background-color: currentColor;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 20px;
  /* Добавляем маску для цветного заполнения */
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 20px;
}
.notifications-list .notification-item .notification-icon-wrapper .notification-icon.system {
  color: #ff373a;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z'/%3E%3C/svg%3E");
}
.notifications-list .notification-item .notification-icon-wrapper .notification-icon.personal {
  color: #007bff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z'/%3E%3C/svg%3E");
}
.notifications-list .notification-item .notification-icon-wrapper .notification-icon.confirm {
  color: #28a745;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
}
.notifications-list .notification-item .notification-icon-wrapper .notification-icon.default {
  color: #fd7e14;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z'/%3E%3C/svg%3E");
}
.notifications-list .notification-item .notification-content {
  flex: 1;
  min-width: 0;
}
.notifications-list .notification-item .notification-content .notification-text {
  font-size: 14px;
  margin-bottom: 4px;
}
.notifications-list .notification-item .notification-content .notification-time {
  color: #555555;
  font-size: 11px;
}
.notifications-list .notification-item .notification-actions {
  flex-shrink: 0;
  margin-left: 8px;
}
.notifications-list .notification-item .notification-actions button {
  background: none;
  border: none;
  color: #ff373a;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
}
.notifications-list .notification-item .notification-actions button:hover {
  text-decoration: underline;
}
.notifications-list .notification-item .notification-actions button + button {
  margin-left: 4px;
}
@media (max-width: 768px) {
  .notifications-list .notification-item {
    flex-direction: column;
    padding: 12px;
  }
  .notifications-list .notification-item .notification-content {
    width: 100%;
  }
  .notifications-list .notification-item .notification-actions {
    justify-content: flex-end;
    margin-top: 8px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .chat-layout.has-selected-chat .chat-list-container {
    padding-top: 40px;
    position: relative;
  }
  .chat-layout.has-selected-chat .chat-list-container .mobile-back-button {
    cursor: pointer;
    display: block;
    height: 40px;
    left: 20%;
    line-height: 40px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    z-index: 10;
  }
  .chat-layout.has-selected-chat .chat-list-container .mobile-back-button svg {
    height: 20px;
    vertical-align: middle;
    width: 20px;
  }
  .chat-layout.has-selected-chat .chat-list-container .mobile-back-button:hover {
    background: #eee;
  }
  .chat-layout.has-selected-chat .chat-list-container .chat-list {
    margin-top: 10px;
  }

  .reply-preview {
    padding: 6px 10px;
  }
  .reply-preview .reply-text {
    font-size: 11px;
  }

  .reply-indicator {
    padding: 8px 12px;
  }
  .reply-indicator .reply-indicator-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .reply-indicator .reply-indicator-content .reply-preview-text {
    margin: 0;
    width: 100%;
  }
}
.empty-state {
  align-items: center;
  color: #555555;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.empty-state p {
  font-size: 14px;
  margin: 0;
}

.chat-avatar {
  align-items: center;
  background-color: #f0f0f0;
  background-size: cover;
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  object-fit: cover;
  width: 40px;
}
.chat-avatar.default-private {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23777'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}
.chat-avatar.default-group {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512' fill='%23777'%3E%3Cpath d='M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}

@media (max-width: 400px) {
  .chat-layout.has-selected-chat .chat-list-container {
    width: 50px;
  }
  .chat-layout.has-selected-chat .chat-list-container .mobile-back-button span {
    display: none;
  }
}
.dzen-chat-loader {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}
.dzen-chat-loader__content {
  text-align: center;
}
.dzen-chat-loader__spinner {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.dzen-chat-loader__bounce1, .dzen-chat-loader__bounce2, .dzen-chat-loader__bounce3 {
  animation: bounce 1.4s infinite ease-in-out both;
  background-color: #ff373a;
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}
.dzen-chat-loader__bounce1 {
  animation-delay: -0.32s;
}
.dzen-chat-loader__bounce2 {
  animation-delay: -0.16s;
}
.dzen-chat-loader__text {
  color: #555555;
  font-size: 14px;
}

.message-wrapper {
  margin-bottom: 15px;
}
.message-wrapper .message {
  border-radius: 12px;
  margin-bottom: 5px;
  max-width: 70%;
  padding: 10px 15px;
  position: relative;
  word-wrap: break-word;
}
.message-wrapper .message.outgoing {
  background-color: #e3f2fd;
  margin-left: auto;
}
.message-wrapper .message:not(.outgoing) {
  background-color: #f1f1f1;
  margin-right: auto;
}
.message-wrapper .message.system-message {
  background-color: #f0f0f0;
  color: #666;
  margin: 10px auto;
  max-width: 80%;
  padding: 8px 12px;
  text-align: center;
}
.message-wrapper .message.system-message .message-content {
  background: inherit;
  border-radius: 0;
  font-size: 0.75rem;
  font-style: italic;
  padding: 0;
}
.message-wrapper .message.system-message .message-time {
  display: none;
  /* Скрываем время для системных сообщений */
}
.message-wrapper .message .message-sender {
  align-items: center;
  display: flex;
  margin-bottom: 5px;
}
.message-wrapper .message .sender-avatar {
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  height: 24px;
  margin-right: 8px;
  width: 24px;
}
.message-wrapper .message .default-avatar {
  background-color: #ccc;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}
.message-wrapper .message .sender-name {
  color: #555;
  font-size: 0.8em;
  font-weight: bold;
}
.message-wrapper .message .message-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
}
.message-wrapper .message:hover .message-actions {
  display: block;
}
.message-wrapper.unread {
  background-color: rgba(0, 123, 255, 0.05);
  border-left: 3px solid #007bff;
}
.message-wrapper.unread .message-content {
  font-weight: 500;
}
.message-wrapper.read {
  opacity: 0.8;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
@keyframes highlight {
  0% {
    background-color: rgba(255, 255, 0, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
.group-chat-theme--red {
  background-color: #ffeeee;
}
.group-chat-theme--blue {
  background-color: #eef5ff;
}
.group-chat-theme--green {
  background-color: #f0ffee;
}
.group-chat-theme--yellow {
  background-color: #fffdee;
}
@media (max-width: 767px) {
  .group-chat-theme {
    background-color: #ffffff !important;
  }
}

.new-messages-notification {
  position: sticky;
  bottom: 20px;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.new-messages-notification .notification-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInUp 0.3s ease;
}
.new-messages-notification .notification-content .scroll-to-bottom-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.new-messages-notification .notification-content .scroll-to-bottom-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.new-messages-notification .notification-content .scroll-to-bottom-btn svg {
  width: 16px;
  height: 16px;
}

.message-temp {
  opacity: 0.7;
}
.message-temp .message-time {
  font-style: italic;
  color: #999;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.messages {
  position: relative;
}
.messages .new-messages-notification {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.chat-item.auto-opened {
  background-color: rgba(0, 123, 255, 0.1);
  border-left: 3px solid #007bff;
}

/* Анимация для плавного открытия */
.message-area {
  transition: opacity 0.3s ease;
}

.message-area.loading {
  opacity: 0.6;
}

.group-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.group-header-info h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.group-header-info .group-link {
  font-size: 12px;
  color: #ff373a;
  text-decoration: none;
}
.group-header-info .group-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .group-header-info h6 {
    font-size: 14px;
  }
  .group-header-info .group-link {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .tabs-header {
    border-bottom-width: 1px;
  }

  .tab-button.active::before {
    height: calc(100% + 1px);
  }

  .chat-content::before,
  .chat-content .tab-content::after {
    height: 1px;
    top: -1px;
  }
}
.tabs-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-content {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.message-content.truncated {
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
}
.message-content.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.2em;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
}

.outgoing .message-content.truncated::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 55, 58, 0.1));
}

.message-expand {
  margin-top: 8px;
  text-align: center;
}
.message-expand .expand-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  color: #555555;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 8px;
  transition: all 0.2s ease;
}
.message-expand .expand-btn:hover {
  background-color: #f5f5f5;
  border-color: #ff373a;
  color: #ff373a;
}

@media (max-width: 767px) {
  .message-content.truncated {
    max-height: 3.6em;
  }

  .message-expand .expand-btn {
    font-size: 10px;
    padding: 1px 6px;
  }
}
.group-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-top: 2px;
}
.group-link:hover {
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.group-link svg {
  flex-shrink: 0;
}

.chat-item {
  transition: all 0.2s ease;
}
.chat-item.active {
  position: relative;
}
.chat-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
}

.message-header .group-header-info h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .group-link {
    font-size: 10px;
    padding: 1px 4px;
  }
  .group-link svg {
    width: 10px;
    height: 10px;
    margin-right: 3px;
  }
}
.chat-item .name {
  font-weight: 600 !important;
}
.chat-item .last-message {
  opacity: 0.8 !important;
}

.high-contrast-text {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.high-contrast-border {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.unread-highlight {
  animation: highlightUnread 2s ease-in-out;
}
.unread-highlight::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #ff373a;
  border-radius: 50%;
  animation: pulseUnread 2s infinite;
}

@keyframes highlightUnread {
  0% {
    background-color: rgba(255, 55, 58, 0.1);
  }
  70% {
    background-color: rgba(255, 55, 58, 0.05);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes pulseUnread {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.2);
  }
}
.new-messages-indicator {
  position: sticky;
  top: 10px;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.indicator-content {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInDown 0.3s ease;
}
.indicator-content:hover {
  background: #0056b3;
}

.scroll-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.scroll-btn svg {
  width: 14px;
  height: 14px;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
  50% {
    transform: translateY(5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Основные стили для VerificationManager в чате */
.verification-fullscreen {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
@media (max-width: 768px) {
  .verification-fullscreen {
    padding: 1rem;
    min-height: 300px;
  }
}

.verification-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.verification-wrapper.compact-mode {
  max-width: 400px;
}
.verification-wrapper.compact-mode .verification-header {
  margin-bottom: 1rem;
}
.verification-wrapper.compact-mode .verification-main-block {
  padding: 1rem;
}

.verification-main-block {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .verification-main-block {
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Стили для шагов верификации */
.verification-step.contact-step, .verification-step.code-step, .verification-step.verified-step {
  animation: fadeIn 0.3s ease;
}
.verification-step.contact-step .name-fields-row,
.verification-step.contact-step .name-fields-row.name-fields-row--single {
  gap: 0;
  grid-template-columns: 1fr;
  margin-bottom: 0;
  width: 100%;
}
.verification-step.contact-step .name-fields-row .form-group {
  margin-bottom: 15px;
  max-width: 100%;
  width: 100%;
}
.verification-step.contact-step .contact-field {
  margin-bottom: 20px;
  margin-top: 0;
}
.verification-step.contact-step .contact-field .input-row {
  align-items: stretch;
  flex-direction: column;
}
.verification-step.contact-step .contact-field .input-row .input-col,
.verification-step.contact-step .contact-field .input-row .button-col {
  flex: none;
  width: 100%;
}
.verification-step.contact-step .contact-field .input-row .send-code-button {
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Стили для полей формы */
.name-fields-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.name-fields-row.name-fields-row--single {
  grid-template-columns: 1fr;
}
@media (max-width: 480px) {
  .name-fields-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.form-group {
  margin-bottom: 20px;
}
.form-group.contact-field {
  margin-bottom: 25px;
}
.form-group.bg-grey {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
}

.input-label {
  color: #868686;
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}
.input-label::after {
  content: '*';
  color: #FF373A;
  margin-left: 2px;
}
.input-label.optional::after {
  content: '';
}

/* Стили для полей ввода */
input, textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  transition: all 0.3s;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: #FF373A;
  box-shadow: 0 0 0 2px rgba(255, 55, 58, 0.1);
  outline: none;
}
input.has-error, textarea.has-error {
  border-color: #FF373A;
}
input.has-error:focus, textarea.has-error:focus {
  box-shadow: 0 0 0 2px rgba(255, 55, 58, 0.2);
}
input:disabled, textarea:disabled {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

input {
  height: 40px;
}

/*Что бы не сбивались стили на странице создания активногсти*/
.direction-list input, textarea {
  width: auto !important;
  height: auto !important;
}
/*Что бы не сбивались стили на странице создания активногсти*/

input[type="tel"]::placeholder, input[type="email"]::placeholder, input[type="text"]::placeholder {
  color: #adb5bd;
  font-size: 13px;
}

textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}
textarea::placeholder {
  color: #adb5bd;
  font-size: 13px;
}

/* Стили для строки с кнопкой */
.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
@media (max-width: 480px) {
  .input-row {
    flex-direction: column;
    gap: 10px;
  }
}
.input-row .input-col {
  flex: 1;
}
@media (max-width: 480px) {
  .input-row .input-col {
    width: 100%;
  }
}
.input-row .button-col {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .input-row .button-col {
    width: 100%;
  }
  .input-row .button-col button {
    width: 100%;
  }
}

/* Стили для кнопок */
.send-code-button,
.verify-code-button,
.submit-question-button,
.logout-button,
.button-outline {
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  padding: 0 20px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.send-code-button:hover:not(:disabled),
.verify-code-button:hover:not(:disabled),
.submit-question-button:hover:not(:disabled),
.logout-button:hover:not(:disabled),
.button-outline:hover:not(:disabled) {
  transform: translateY(-1px);
}
.send-code-button:active:not(:disabled),
.verify-code-button:active:not(:disabled),
.submit-question-button:active:not(:disabled),
.logout-button:active:not(:disabled),
.button-outline:active:not(:disabled) {
  transform: translateY(0);
}
.send-code-button:disabled,
.verify-code-button:disabled,
.submit-question-button:disabled,
.logout-button:disabled,
.button-outline:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.send-code-button.loading,
.verify-code-button.loading,
.submit-question-button.loading,
.logout-button.loading,
.button-outline.loading {
  position: relative;
  color: transparent;
}
.send-code-button.loading::after,
.verify-code-button.loading::after,
.submit-question-button.loading::after,
.logout-button.loading::after,
.button-outline.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.send-code-button {
  background-color: #fd7e14;
}
.send-code-button:hover:not(:disabled) {
  background-color: #dc6502;
}

.verify-code-button {
  background-color: #FF373A;
}
.verify-code-button:hover:not(:disabled) {
  background-color: #ff6a6c;
}

.submit-question-button {
  background-color: #FF373A;
  padding: 12px 24px;
  height: auto;
  min-height: 44px;
  width: 100%;
  max-width: 250px;
  margin: 20px auto 0;
  display: block;
}
.submit-question-button:hover:not(:disabled) {
  background-color: #ff6a6c;
}

.logout-button {
  background-color: transparent;
  border: 2px solid #FF373A;
  color: #FF373A;
  margin-top: 20px;
}
.logout-button:hover:not(:disabled) {
  background-color: #FF373A;
  color: #fff;
}

.button-outline {
  background: none;
  border: 2px solid #FF373A;
  color: #FF373A;
}
.button-outline:hover:not(:disabled) {
  background-color: #FF373A;
  color: #fff;
}

/* Сообщения об ошибках */
.error-message {
  color: #FF373A;
  display: block;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}

.loading-message {
  color: #666;
  font-size: 13px;
  font-style: italic;
  margin-top: 5px;
}

/* Стили для таймера */
.timer-section {
  margin-top: 10px;
}
.timer-section .countdown {
  color: #666;
  font-size: 13px;
  margin-bottom: 5px;
}

.resend-link {
  color: #FF373A;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.resend-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Информация о контакте */
.contact-info {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-top: 20px;
  padding: 15px;
}
.contact-info p {
  color: #666;
  font-size: 13px;
  margin: 0 0 5px;
}
.contact-info p:first-child {
  margin-bottom: 8px;
}
.contact-info .contact-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}
.contact-info .change-contact-link {
  color: #FF373A;
  cursor: pointer;
  font-size: 13px;
  margin-top: 10px;
  display: inline-block;
}
.contact-info .change-contact-link:hover {
  text-decoration: underline;
}

/* Блок соглашений */
.consents-block {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 20px 0;
  padding: 15px;
}
.consents-block .error-message {
  background-color: rgba(255, 55, 58, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 8px 12px;
}

.consent-item {
  margin-bottom: 10px;
}
.consent-item:last-child {
  margin-bottom: 0;
}

.consent-label {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-right: 8px;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.consent-label input[type="checkbox"]:checked {
  accent-color: #FF373A;
}

.consent-text {
  flex: 1;
  color: #666;
}
.consent-text a {
  color: #FF373A;
  text-decoration: underline;
}
.consent-text a:hover {
  text-decoration: none;
}
.consent-text .requirement {
  color: #FF373A;
  margin-left: 2px;
}

/* Переключатель режима авторизации */
.auth-switch-mode {
  margin-top: 20px;
  width: 100%;
}
.auth-switch-mode .switch-method {
  border: 1px solid #FF373A;
  border-radius: 4px;
  box-sizing: border-box;
  color: #FF373A;
  cursor: pointer;
  display: block;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  width: 100%;
}
.auth-switch-mode .switch-method:hover {
  background-color: #FF373A;
  color: #fff;
}

/* Успешная верификация */
.verification-success {
  text-align: center;
  padding: 20px 0;
}
.verification-success .success-icon {
  width: 80px;
  height: 80px;
  background-color: #4caf50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto 2rem;
}
@media (max-width: 768px) {
  .verification-success .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}
.verification-success h6 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}
@media (max-width: 768px) {
  .verification-success h6 {
    font-size: 1.5rem;
  }
}
.verification-success p {
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .verification-success p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.user-info {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 0 auto 2rem;
  text-align: left;
  max-width: 300px;
}
.user-info .info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}
.user-info .info-item:last-child {
  border-bottom: none;
}
.user-info .label {
  font-weight: 500;
  color: #868686;
  font-size: 13px;
}
.user-info .value {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.logout-section {
  margin-top: 20px;
}

.question-field {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}
.question-field textarea {
  min-height: 80px;
}

/* Анимации */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Стили для индикаторов состояния */
.verification-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}
.verification-status.success {
  color: #4caf50;
}
.verification-status.error {
  color: #FF373A;
}
.verification-status.loading {
  color: #666;
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
  .verification-fullscreen {
    align-items: flex-start;
    padding-top: 20px;
  }

  .verification-main-block {
    border-radius: 8px 8px 0 0;
  }

  .name-fields-row {
    grid-template-columns: 1fr;
  }

  .input-row {
    flex-direction: column;
  }
  .input-row .button-col {
    width: 100%;
  }
  .input-row .button-col button {
    width: 100%;
  }

  .contact-info {
    padding: 12px;
  }

  .consents-block {
    padding: 12px;
  }
}
/* Планшетная оптимизация */
@media (min-width: 769px) and (max-width: 1024px) {
  .verification-wrapper {
    max-width: 450px;
  }
}

/*# sourceMappingURL=styles.bundle.css.map */
