.e-chat{position:relative;z-index:60;color:var(--ink);font-family:Geologica,Arial,sans-serif;font-weight:350;line-height:1.5}
.e-chat button,.e-chat textarea,.e-chat a{font:inherit}
.e-chat svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.e-chat-launcher{position:fixed;right:28px;bottom:24px;display:flex;align-items:center;gap:12px;min-height:59px;padding:16px 21px;border:1px solid #e4a386;border-radius:4px;background:var(--orange);color:var(--graphite);box-shadow:0 8px 30px #0003;font-size:15px!important;font-weight:450!important;transition:background .2s,transform .2s}
.e-chat-launcher:hover{background:#ee956f;transform:translateY(-2px)}
.e-chat-launcher.is-open{background:var(--paper);border-color:var(--paper)}
.e-chat-panel{position:fixed;right:28px;bottom:99px;display:flex;flex-direction:column;width:430px;height:min(670px,calc(100dvh - 124px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 124px);min-height:0;background:var(--paper);border:1px solid #4a4f45;border-radius:10px;box-shadow:0 20px 70px #0006;overflow:hidden;color:var(--ink);color-scheme:light}
.e-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 19px 21px 23px;background:var(--graphite);color:var(--paper);flex-shrink:0}
.e-chat-identity{min-width:0}
.e-chat-eyebrow{display:block;color:#ef9d77;font-size:11px;font-weight:420;letter-spacing:.06em;margin-bottom:6px}
.e-chat-header h2{font-size:21px;font-weight:450;line-height:1.13;letter-spacing:-.035em;text-wrap:initial}
.e-chat-controls{display:flex;gap:3px;flex-shrink:0}
.e-chat-icon-button{display:flex;align-items:center;justify-content:center;width:34px;height:36px;border:0;border-radius:3px;background:transparent;color:var(--paper)}
.e-chat-icon-button:hover{background:#ffffff12;color:#ef9d77}
.e-chat-icon-button svg{width:20px;height:20px}
.e-chat-transcript{display:flex;flex-direction:column;gap:18px;flex:1;min-height:70px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aaa99e transparent;padding:23px 21px 20px;outline-offset:-4px!important}
.e-chat-message{max-width:94%;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.e-chat-message-assistant{align-self:flex-start;padding-right:8px}
.e-chat-message-user{align-self:flex-end;background:#e7b69a;padding:12px 15px;border-radius:9px 9px 2px 9px}
.e-chat-author{display:block;font-size:10px;font-weight:480;letter-spacing:.02em;color:#63675d;margin-bottom:5px}
.e-chat-message-user .e-chat-author{color:#5f473a}
.e-chat-text{white-space:pre-wrap;text-wrap:initial}
.e-chat-message[data-failed=true]::after{content:'Ответ не получен';display:block;color:#7f3b23;font-size:10px;margin-top:7px}
.e-chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:0 21px 14px;flex-shrink:0}
.e-chat-suggestion{padding:7px 10px;border:1px solid #b9b9ad;border-radius:3px;background:transparent;color:#44483f;font-size:11px!important;line-height:1.4!important}
.e-chat-suggestion:hover{background:#e9e6dc;border-color:#797e70}
.e-chat button:disabled{cursor:default;opacity:.5}
.e-chat-status{padding:0 22px;font-size:12px;line-height:1.6;color:#575d51;flex-shrink:0}
.e-chat-status:not(:empty){padding-bottom:12px}
.e-chat-error{margin:0 21px 14px;padding:12px 13px;background:#e9ddd1;border-left:2px solid #b84e28;font-size:12px;line-height:1.6;flex-shrink:0}
.e-chat-error p{text-wrap:initial}
.e-chat-retry{padding:5px 0 0;border:0;background:transparent;color:#883d24;text-decoration:underline;text-underline-offset:3px;font-size:12px!important;font-weight:450!important}
.e-chat-form{padding:16px 21px 18px;border-top:1px solid #c1c1b6;flex-shrink:0}
.e-chat-input-label{display:block;font-size:11px;color:#4c5346;margin-bottom:7px}
.e-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:end}
.e-chat-composer textarea{min-width:0;width:100%;min-height:64px;max-height:100px;resize:vertical;padding:10px 11px;border:1px solid #a8ad9f;border-radius:3px;background:#faf9f4;color:var(--ink);font-size:14px;line-height:1.5;box-shadow:none}
.e-chat-composer textarea:focus{border-color:#99522f;box-shadow:0 0 0 1px #99522f;outline:none}
.e-chat-composer textarea:disabled{background:#e9e7df;color:#73766c;cursor:default}
.e-chat-composer textarea:read-only{background:#eeece3}
.e-chat-composer textarea::placeholder{color:#75796d;opacity:1}
.e-chat-send{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid transparent;border-radius:3px;background:var(--orange);color:var(--graphite);margin-bottom:1px}
.e-chat-send:hover{background:#ed956d}
.e-chat-send svg{width:22px;height:22px}
.e-chat-privacy{margin-top:11px;color:#5d6357;font-size:10px;line-height:1.6;text-wrap:initial}
.e-chat-contact{display:inline-flex;align-items:center;gap:7px;margin-top:11px;font-size:12px!important;font-weight:430!important;color:#242b20;text-underline-offset:4px}
.e-chat-contact:hover{text-decoration:underline}
.e-chat-contact svg{width:13px;height:13px}
@media(max-width:600px){
  .e-chat-launcher{right:15px;bottom:max(15px,env(safe-area-inset-bottom));min-height:52px;padding:13px 17px;gap:10px;font-size:13px!important}
  .e-chat-launcher svg{width:21px;height:21px}
  .e-chat-panel{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:none;height:min(650px,calc(100dvh - 100px - env(safe-area-inset-bottom)));max-height:calc(100dvh - 100px - env(safe-area-inset-bottom));border-radius:8px}
  .e-chat-header{padding:17px 14px 18px 18px;gap:8px}
  .e-chat-header h2{font-size:20px}
  .e-chat-eyebrow{font-size:10px}
  .e-chat-controls{gap:0}
  .e-chat-icon-button{width:30px;height:34px}
  .e-chat-transcript{padding:19px 17px;gap:15px}
  .e-chat-message{font-size:14px;max-width:97%}
  .e-chat-suggestions{padding-inline:17px;gap:6px}
  .e-chat-status{padding-inline:18px}
  .e-chat-error{margin-inline:17px;padding:10px 11px}
  .e-chat-form{padding:13px 17px 16px}
  .e-chat-composer{gap:8px;grid-template-columns:minmax(0,1fr) 40px}
  .e-chat-composer textarea{font-size:16px;min-height:60px;padding:8px 10px}
  .e-chat-send{width:40px;height:42px}
}
@media(max-height:600px){
  .e-chat-panel{bottom:12px;max-height:calc(100dvh - 24px);height:calc(100dvh - 24px)}
  .e-chat-launcher.is-open{visibility:hidden}
  .e-chat-header{padding-block:12px}
  .e-chat-header h2{font-size:18px}
  .e-chat-suggestions{display:none}
  .e-chat-form{padding-block:10px}
  .e-chat-privacy{margin-top:7px}
  .e-chat-contact{margin-top:6px}
  .e-chat-transcript{padding-block:14px}
}
@media(prefers-reduced-motion:reduce){.e-chat-launcher{transition:none}}
@media(max-height:520px){
  .e-chat-panel{display:block;overflow-y:auto;overscroll-behavior:contain}
  .e-chat-header{position:sticky;top:0;z-index:1}
  .e-chat-transcript{max-height:33dvh;min-height:80px}
}
.e-chat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border-radius:50%;background:var(--graphite);color:var(--paper);font-size:10px;font-weight:500}.e-chat-notice{align-self:center;max-width:100%;padding:7px 10px;border-top:1px solid #c1c1b6;border-bottom:1px solid #c1c1b6;color:#62685b;font-size:11px;line-height:1.5;text-align:center}.e-chat-message-user[data-delivery=pending]::after{content:'Отправляем';display:block;font-size:10px;color:#6b5141;margin-top:6px}.e-chat-message-user[data-delivery=delivered]::after{content:'Доставлено в «Мой чат»';display:block;font-size:10px;color:#6b5141;margin-top:6px}
.e-chat-start{justify-content:space-between;width:100%;margin-top:9px;padding:11px 13px;border:1px solid #c1714b;border-radius:3px;background:var(--orange);text-decoration:none!important}.e-chat-finish{border:0;border-bottom:1px solid #8c6b56;padding:0 0 2px;background:transparent;text-align:left}.e-chat-summary{max-width:100%;padding:13px 14px;border:1px solid #c7b29f;border-radius:5px;background:#ede5d9;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.e-chat-summary .e-chat-author{margin-bottom:7px;color:#73513e}.e-chat-completion{padding:12px 14px;margin:0 21px 13px;border:1px solid #b6c0ab;border-radius:4px;background:#e4e8dd;font-size:12px;line-height:1.6;flex-shrink:0}.e-chat-completion p{text-wrap:initial}.e-chat-urgent{display:inline-block;margin-top:6px;font-size:12px!important;color:#34432a;text-decoration:underline;text-underline-offset:3px}.e-chat-message-user[data-failed=true]::after{content:'Подтверждение не получено'}
@media(max-width:600px){.e-chat-completion{margin-inline:17px;padding:10px 12px}}
