/* AI-консультант «Алексей» — изолированные стили виджета */
.gd-chat,.gd-chat *{box-sizing:border-box}
.gd-chat{--gd-navy:#16233f;--gd-blue:#33b1f0;--gd-orange:#f07b1d;--gd-soft:#f4f7fb;--gd-line:#e2e7ef;font-family:Manrope,"Segoe UI",Arial,sans-serif;color:#172033;position:fixed;z-index:180;right:18px;bottom:18px}
.gd-chat__launcher{position:absolute;right:66px;bottom:0;width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(145deg,#1f3360,#16233f);color:#fff;box-shadow:0 12px 30px rgba(15,28,56,.28);cursor:pointer;display:grid;place-items:center;transition:transform .2s,box-shadow .2s}
.gd-chat__launcher:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(15,28,56,.34)}
.gd-chat__launcher svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gd-chat__badge{position:absolute;right:-2px;top:-2px;min-width:19px;height:19px;border-radius:12px;background:#e54c4c;color:#fff;border:2px solid #fff;font:700 11px/15px Arial;text-align:center;padding:0 3px;display:none}
.gd-chat.has-unread .gd-chat__badge{display:block}
.gd-chat__teaser{position:absolute;right:66px;bottom:70px;width:270px;padding:13px 35px 13px 14px;border:1px solid var(--gd-line);border-radius:14px 14px 3px 14px;background:#fff;box-shadow:0 12px 35px rgba(22,35,63,.18);font-size:13px;line-height:1.42;opacity:0;visibility:hidden;transform:translateY(8px);transition:.25s;cursor:pointer}
.gd-chat.show-teaser .gd-chat__teaser{opacity:1;visibility:visible;transform:none}
.gd-chat__teaser b{display:block;color:var(--gd-navy);font-size:13.5px;margin-bottom:2px}
.gd-chat__teaser-x{position:absolute;right:7px;top:6px;border:0;background:none;color:#7c8799;font-size:18px;cursor:pointer;padding:2px 5px}
.gd-chat__panel{position:absolute;right:0;bottom:72px;width:380px;height:min(610px,calc(100vh - 110px));margin:0;padding:0;border:1px solid rgba(22,35,63,.12);border-radius:20px;background:#fff;box-shadow:0 22px 64px rgba(12,25,50,.26);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:.22s}
.gd-chat.open .gd-chat__panel{opacity:1;visibility:visible;transform:none}
.gd-chat.open .gd-chat__launcher{transform:scale(.93)}
.gd-chat__head{flex:none;display:flex;align-items:center;gap:11px;margin:0;padding:12px 14px;position:relative;top:auto;z-index:1;border:0;border-radius:0;backdrop-filter:none;background:linear-gradient(135deg,#172641,#213862);color:#fff;box-shadow:none}
.gd-chat__avatar{position:relative;width:43px;height:43px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#62c7f4,#2298d4);color:#fff;font-size:20px;font-weight:800;border:2px solid rgba(255,255,255,.75)}
.gd-chat__avatar img,.gd-chat__mini img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.gd-chat__online{position:absolute;right:-1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#34c759;border:2px solid #1d3155}
.gd-chat__who{min-width:0;flex:1}
.gd-chat__who b{display:block;font-size:15px;line-height:1.25}
.gd-chat__who span{display:block;color:#c9d7e9;font-size:11.5px;margin-top:2px}
.gd-chat__close{border:0;background:rgba(255,255,255,.1);color:#fff;width:32px;height:32px;border-radius:50%;font-size:23px;line-height:28px;cursor:pointer}
.gd-chat__close:hover{background:rgba(255,255,255,.18)}
.gd-chat__messages{flex:1;overflow-y:auto;padding:16px 13px 8px;background:linear-gradient(180deg,#f7f9fc,#fff);scroll-behavior:smooth}
.gd-chat__day{text-align:center;color:#8992a2;font-size:10.5px;margin:0 0 13px}
.gd-chat__row{display:flex;align-items:flex-end;gap:7px;margin:9px 0;animation:gd-chat-in .22s ease-out}
.gd-chat__row.user{justify-content:flex-end}
.gd-chat__mini{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#2b9fd6;color:#fff;font-size:11px;font-weight:800;flex:none}
.gd-chat__bubble{max-width:81%;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid var(--gd-line);box-shadow:0 2px 8px rgba(22,35,63,.05);font-size:13.5px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.gd-chat__row.user .gd-chat__bubble{border:0;border-radius:14px 14px 4px 14px;background:#1f5f9f;color:#fff;box-shadow:none}
.gd-chat__typing{display:flex;gap:4px;align-items:center;height:17px;min-width:42px}
.gd-chat__typing i{width:6px;height:6px;border-radius:50%;background:#8c98aa;animation:gd-dot 1.1s infinite}
.gd-chat__typing i:nth-child(2){animation-delay:.16s}.gd-chat__typing i:nth-child(3){animation-delay:.32s}
.gd-chat__quick{flex:none;display:flex;gap:7px;overflow-x:auto;padding:7px 12px 9px;background:#fff;scrollbar-width:none}
.gd-chat__quick::-webkit-scrollbar{display:none}
.gd-chat__quick button{white-space:nowrap;border:1px solid #b9d7ec;border-radius:18px;background:#f5fbff;color:#1c5b86;padding:7px 11px;font:600 11.5px/1.2 inherit;cursor:pointer}
.gd-chat__quick button:hover{background:#e9f7ff;border-color:#7fc1e5}
.gd-chat__compose{flex:none;border-top:1px solid var(--gd-line);background:#fff;padding:10px 11px 9px}
.gd-chat__form{display:flex;align-items:flex-end;gap:7px}
.gd-chat__input{flex:1;min-height:42px;max-height:92px;resize:none;border:1.5px solid #d8dfe9;border-radius:13px;padding:10px 11px;font:13.5px/1.4 inherit;color:#172033;outline:none;overflow-y:auto}
.gd-chat__input:focus{border-color:#6bbce7;box-shadow:0 0 0 3px rgba(51,177,240,.12)}
.gd-chat__send{width:42px;height:42px;flex:none;border:0;border-radius:12px;background:var(--gd-orange);color:#fff;display:grid;place-items:center;cursor:pointer}
.gd-chat__send:disabled{background:#b9c1ce;cursor:default}
.gd-chat__send svg{width:20px;height:20px;fill:currentColor}
.gd-chat__consent{font-size:9.5px;line-height:1.35;color:#8a93a2;margin:6px 3px 0}
.gd-chat__consent a{color:inherit;text-decoration:underline}
.gd-chat__saved{margin:8px 13px 3px;padding:8px 10px;border-radius:9px;background:#e9f8ee;color:#22713c;font-size:11.5px;font-weight:650}
@keyframes gd-chat-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes gd-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:560px){
  .gd-chat{right:12px;bottom:12px}
  .gd-chat__launcher{right:58px;width:50px;height:50px}
  .gd-chat__launcher svg{width:24px;height:24px}
  .gd-chat__teaser{right:58px;bottom:61px;width:min(270px,calc(100vw - 80px))}
  .gd-chat__panel{position:fixed;right:8px;bottom:70px;width:calc(100vw - 16px);height:min(590px,calc(100dvh - 82px));margin:0;padding:0;border-radius:18px}
  .gd-chat__bubble{max-width:86%}
  .gd-chat__messages{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){.gd-chat__panel,.gd-chat__teaser,.gd-chat__launcher{transition:none}.gd-chat__row{animation:none}.gd-chat__typing i{animation:none}}
