﻿:root {
    --easm-secondary: #111b21;
    --easm-panel: #202c33;
    --easm-text: #e9edef;
    --easm-user: #d9fdd3;
  }
  .chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 18px 35px rgba(18, 140, 126, 0.35);
    font-size: 24px;
  }
  .chat-shell {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: min(380px, calc(100vw - 24px));
    height: min(680px, calc(100vh - 132px));
    border-radius: 24px;
    overflow: hidden;
    background: #efeae2;
    box-shadow: 0 30px 60px rgba(11, 20, 26, 0.28);
    z-index: 1080;
    display: none;
    flex-direction: column;
  }
  .chat-shell.is-open { display: flex; }
  .chat-header {
    background: linear-gradient(135deg, var(--easm-secondary), var(--easm-panel));
    color: var(--easm-text);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #34b7f1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .chat-status {
    margin: 0;
    color: #9be7c1;
    font-size: 13px;
  }
  .chat-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #d1d7db;
    font-size: 20px;
  }
  .chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px 14px;
    background:
      radial-gradient(circle at 25px 25px, rgba(255,255,255,0.3) 2px, transparent 0),
      radial-gradient(circle at 75px 75px, rgba(255,255,255,0.2) 2px, transparent 0),
      linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
    background-size: 100px 100px, 130px 130px, auto;
  }
  .chat-row {
    display: flex;
    margin-bottom: 12px;
  }
  .chat-row.user { justify-content: flex-end; }
  .chat-bubble {
    max-width: 84%;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.45;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(11, 20, 26, 0.08);
    white-space: pre-line;
  }
  .chat-row.bot .chat-bubble {
    background: #fff;
    color: #1f2c34;
    border-top-left-radius: 6px;
  }
  .chat-row.user .chat-bubble {
    background: var(--easm-user);
    color: #111b21;
    border-top-right-radius: 6px;
  }
  .chat-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #667781;
    text-align: right;
  }
  .chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px;
  }
  .chat-option {
    border: 1px solid rgba(18, 140, 126, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: #128c7e;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
  }
  .chat-footer {
    background: #f0f2f5;
    padding: 12px;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
  }
  .chat-compose {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(17, 27, 33, 0.06);
  }
  .chat-input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 14px;
    background: transparent;
  }
  .chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    flex-shrink: 0;
  }
  .chat-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #667781;
    text-align: center;
  }
  @media (max-width: 768px) {
    .chat-shell {
      right: 12px;
      left: 12px;
      bottom: 88px;
      width: auto;
      height: calc(100vh - 112px);
      border-radius: 22px;
    }
    .chat-launcher {
      right: 16px;
      top: 18px;
      bottom: auto;
      width: 56px;
      height: 56px;
    }
  }

