/* fastwork-landing-support-bot-v15.3.9 */
.fw-lsb1539 { position: relative; z-index: 2147483001; color-scheme: light; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fw-lsb1539 *, .fw-lsb1539 *::before, .fw-lsb1539 *::after { box-sizing: border-box; }
.fw-lsb1539 [hidden] { display: none !important; }
.fw-lsb1539 [data-screen] { display: none !important; }
.fw-lsb1539 [data-screen].is-active { display: flex !important; }
.fw-lsb1539 .fw-lsb1539-chat.is-active { display: grid !important; }

.fw-lsb1539-panel {
  position: fixed; right: 24px; bottom: 166px; z-index: 2147483002;
  width: min(404px, calc(100vw - 32px)); height: min(716px, calc(100dvh - 190px));
  min-width: 0; overflow: hidden; border: 1px solid rgba(0,0,0,.08); border-radius: 24px;
  background: #f4f6f5; box-shadow: 0 32px 84px rgba(5,24,12,.32); animation: fwLsb1539Open .18s ease-out;
}
.fw-lsb1539-header {
  position: relative; height: 126px; padding: 13px 22px 15px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; color: #fff; text-align: center;
  background: linear-gradient(180deg, #02b33f 0%, #008c32 100%);
}
.fw-lsb1539-avatars { display: flex; gap: 7px; margin-bottom: 8px; }
.fw-lsb1539-avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.64); box-shadow: 0 7px 16px rgba(0,0,0,.16); }
.fw-lsb1539-header h2 { margin: 0; color: #fff; font-size: 23px; line-height: 1.08; font-weight: 850; }
.fw-lsb1539-header p { margin: 5px 0 0; color: rgba(255,255,255,.96); font-size: 13.5px; line-height: 1.2; font-weight: 650; }
.fw-lsb1539-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.19); cursor: pointer; display: grid; place-items: center; padding: 0; }
.fw-lsb1539-close:hover { background: rgba(255,255,255,.30); }
.fw-lsb1539-chevron-svg { width: 18px; height: 18px; display: block; }

.fw-lsb1539-tabs { height: 90px; padding: 10px 24px 9px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; border-bottom: 1px solid #edf0ee; background: #fff; }
.fw-lsb1539-tabs button { min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: #555c61; cursor: pointer; }
.fw-lsb1539-tabs button b { font-size: 13.5px; line-height: 1.1; font-weight: 750; }
.fw-lsb1539-tab-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: #777f85; background: #eff1f0; font-size: 20px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease; }
.fw-lsb1539-tab-icon .fw-lsb1539-svg { width: 23px; height: 23px; }
.fw-lsb1539-tabs button.is-active .fw-lsb1539-tab-icon.is-write { color: #fff; background: #00ad3d; }
.fw-lsb1539-tabs button.is-active .fw-lsb1539-tab-icon.is-vk, .fw-lsb1539-tabs button:hover .fw-lsb1539-tab-icon.is-vk { color: #fff; background: #2787f5; }
.fw-lsb1539-tabs button.is-active .fw-lsb1539-tab-icon.is-telegram, .fw-lsb1539-tabs button:hover .fw-lsb1539-tab-icon.is-telegram { color: #fff; background: #27a7e7; }
.fw-lsb1539-tabs button:hover .fw-lsb1539-tab-icon.is-write { color: #fff; background: #00ad3d; }
.fw-lsb1539-tabs button.is-active b { color: #00a83a; }
.fw-lsb1539-tabs button:hover .fw-lsb1539-tab-icon { transform: translateY(-1px); }
.fw-lsb1539-svg { display: block; width: 27px; height: 27px; }

.fw-lsb1539-content { width: 100%; min-width: 0; max-width: 100%; height: calc(100% - 216px); overflow: hidden; background: #f4f6f5; }
.fw-lsb1539-chat { width: 100%; min-width: 0; max-width: 100%; height: 100%; overflow: hidden; grid-template-rows: 52px minmax(90px,1fr) auto 44px 58px; }
.fw-lsb1539-chat > * { min-width: 0; max-width: 100%; }
.fw-lsb1539-chatbar { padding: 7px 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) 34px; align-items: center; gap: 9px; border-bottom: 1px solid #e6eae7; background: #fff; }
.fw-lsb1539-bot-avatar, .fw-lsb1539-message-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; background: #00ad3d; font-weight: 800; }
.fw-lsb1539-bot-avatar { width: 38px; height: 38px; }
.fw-lsb1539-message-avatar { width: 28px; height: 28px; flex: 0 0 28px; }
.fw-lsb1539-robot-svg { width: 21px; height: 21px; display: block; }
.fw-lsb1539-message-avatar .fw-lsb1539-robot-svg { width: 16px; height: 16px; }
.fw-lsb1539-chatbar strong { display: block; overflow: hidden; color: #2e3337; font-size: 13.5px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.fw-lsb1539-chatbar span { display: block; margin-top: 2px; overflow: hidden; color: #00a83a; font-size: 11.5px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.fw-lsb1539-reset { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #667068; background: #eef1ef; cursor: pointer; font-size: 18px; }
.fw-lsb1539-reset:hover { color: #00a83a; background: #e3f7e9; }

.fw-lsb1539-messages { width: 100%; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 11px 12px 7px; scroll-behavior: smooth; }
.fw-lsb1539-message-row { width: 100%; min-width: 0; margin-bottom: 9px; display: flex; align-items: flex-end; gap: 7px; }
.fw-lsb1539-message-row.is-user { justify-content: flex-end; }
.fw-lsb1539-message-wrap { min-width: 0; max-width: calc(100% - 36px); display: flex; flex-direction: column; align-items: flex-start; }
.fw-lsb1539-message-row.is-user .fw-lsb1539-message-wrap { max-width: 88%; align-items: flex-end; }
.fw-lsb1539-message { min-width: 0; max-width: 100%; padding: 9px 11px; border-radius: 14px 14px 14px 4px; color: #343a3e; background: #fff; box-shadow: 0 2px 8px rgba(20,43,28,.06); font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.fw-lsb1539-message-row.is-user .fw-lsb1539-message { border-radius: 14px 14px 4px 14px; color: #fff; background: #00ad3d; }
.fw-lsb1539-message-wrap small { margin-top: 3px; color: #939a95; font-size: 9.5px; }
.fw-lsb1539-typing { min-width: 50px; height: 32px; padding: 0 11px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 14px 14px 14px 4px; background: #fff; }
.fw-lsb1539-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e9690; animation: fwLsb1539Typing 1.05s infinite ease-in-out; }
.fw-lsb1539-typing i:nth-child(2) { animation-delay: .15s; }
.fw-lsb1539-typing i:nth-child(3) { animation-delay: .3s; }

.fw-lsb1539-quick-wrap { width: 100%; min-width: 0; max-width: 100%; padding: 0 11px 7px; overflow: hidden; }
.fw-lsb1539-quick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding: 0 2px; color: #7a857b; font-size: 11.5px; line-height: 1.2; font-weight: 750; }
.fw-lsb1539-quick-hint { flex: 0 0 auto; color: #00a83a; white-space: nowrap; }
.fw-lsb1539-quick { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 6px; overflow: hidden; }
.fw-lsb1539-quick button { width: 100%; min-width: 0; min-height: 29px; padding: 5px 8px; border: 1px solid #cfe8d6; border-radius: 10px; color: #087d31; background: #fff; cursor: pointer; font-size: 10.5px; line-height: 1.15; font-weight: 750; white-space: normal; overflow-wrap: anywhere; }
.fw-lsb1539-quick button:hover { border-color: #00ad3d; background: #effaf2; }

.fw-lsb1539-operator-button { width: calc(100% - 22px); min-width: 0; min-height: 40px; margin: 0 11px 4px; padding: 0 12px; display: flex !important; align-items: center; justify-content: center; border: 1px solid #00ad3d; border-radius: 13px; color: #fff !important; -webkit-text-fill-color: #fff !important; background: #00ad3d; cursor: pointer; font-size: 13.5px; line-height: 1.2; font-weight: 850; text-align: center; white-space: normal; }
.fw-lsb1539-operator-button:hover { background: #009d37; border-color: #009d37; }
.fw-lsb1539-form { width: 100%; min-width: 0; min-height: 58px; padding: 8px 9px; display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: end; gap: 7px; border-top: 1px solid #e4e8e5; background: #fff; }
.fw-lsb1539-form textarea { width: 100%; min-width: 0; min-height: 40px; max-height: 82px; padding: 10px 12px; resize: none; overflow-y: auto; border: 1px solid #dce2de; border-radius: 14px; outline: none; color: #30353a; background: #f7f9f8; font: inherit; font-size: 13px; line-height: 1.35; }
.fw-lsb1539-form textarea:focus { border-color: #00ad3d; box-shadow: 0 0 0 3px rgba(0,173,61,.10); }
.fw-lsb1539-form button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; -webkit-text-fill-color: #fff; background: #00ad3d; cursor: pointer; font-size: 18px; }
.fw-lsb1539-form button:hover { background: #009d37; }

.fw-lsb1539-channel { width: 100%; min-width: 0; max-width: 100%; height: 100%; padding: 20px 18px 18px; overflow-y: auto; text-align: center; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; }
.fw-lsb1539-channel h3 { margin: 0; color: #30353a; font-size: 23px; line-height: 1.18; font-weight: 800; }
.fw-lsb1539-channel-action { min-height: 50px; width: 100%; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; color: #fff !important; -webkit-text-fill-color: #fff !important; text-decoration: none; font-size: 16px; line-height: 1.2; font-weight: 800; flex: 0 0 auto; }
.fw-lsb1539-channel-action.is-vk { background: #2787f5; }
.fw-lsb1539-channel-action.is-telegram { background: #27a7e7; }
.fw-lsb1539-channel-action .fw-lsb1539-svg { width: 25px; height: 25px; }
.fw-lsb1539-qr-card { width: 100%; min-width: 0; padding: 17px 14px 15px; border-radius: 18px; border: 1px solid #e4e8e5; background: #f7f9f8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 0 0 auto; }
.fw-lsb1539-qr-card p { max-width: 320px; margin: 0; color: #51606a; font-size: 13px; line-height: 1.45; }
.fw-lsb1539-qr-card img { width: min(174px, 100%); max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 14px; }

.fw-lsb1539-launcher { position: fixed; right: 24px; bottom: 84px; z-index: 2147483002; height: 74px; padding: 0; display: inline-flex; align-items: center; gap: 11px; border: 0; color: #fff; background: transparent; cursor: pointer; }
.fw-lsb1539-launcher-circle { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; border-radius: 50%; background: #00af3d; box-shadow: 0 8px 22px rgba(0,122,43,.38); transition: transform .18s ease, background .18s ease; }
.fw-lsb1539-launcher:hover .fw-lsb1539-launcher-circle { transform: translateY(-2px); background: #009f37; }
.fw-lsb1539-face { position: relative; width: 46px; height: 38px; border-radius: 13px; background: #fff; }
.fw-lsb1539-face::after { content: ""; position: absolute; left: 8px; bottom: -7px; width: 15px; height: 15px; background: #fff; clip-path: polygon(0 0,100% 0,0 100%); }
.fw-lsb1539-dots, .fw-lsb1539-smile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fw-lsb1539-dots { gap: 4px; animation: fwLsb1539Dots 4.2s infinite; }
.fw-lsb1539-dots i { width: 6px; height: 6px; border-radius: 50%; background: #00ad3d; }
.fw-lsb1539-smile { opacity: 0; animation: fwLsb1539Smile 4.2s infinite; }
.fw-lsb1539-smile i { position: absolute; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #00ad3d; }
.fw-lsb1539-smile i:first-child { left: 12px; }
.fw-lsb1539-smile i:nth-child(2) { right: 12px; }
.fw-lsb1539-smile b { position: absolute; left: 14px; bottom: 8px; width: 18px; height: 9px; border-bottom: 3px solid #00ad3d; border-radius: 0 0 18px 18px; }
.fw-lsb1539-launcher-label { min-width: 158px; min-height: 56px; padding: 0 18px; display: flex; align-items: center; border-radius: 18px; color: #fff; background: #00af3d; box-shadow: 0 8px 22px rgba(0,122,43,.28); }
.fw-lsb1539-launcher-label strong { font-size: 16px; line-height: 1.15; font-weight: 800; }
.fw-lsb1539-launcher.is-open .fw-lsb1539-launcher-label { display: none; }
.fw-lsb1539-launcher:hover .fw-lsb1539-launcher-label { background: #009f37; }

@keyframes fwLsb1539Open { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fwLsb1539Typing { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes fwLsb1539Dots { 0%,44% { opacity: 1; } 50%,94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fwLsb1539Smile { 0%,44% { opacity: 0; } 50%,94% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 640px) {
  .fw-lsb1539-panel { left: 8px; right: 8px; bottom: 100px; width: auto; max-width: none; height: min(732px, calc(100dvh - 112px)); border-radius: 20px; }
  .fw-lsb1539-header { height: 116px; padding: 11px 18px 13px; }
  .fw-lsb1539-header h2 { font-size: 21px; }
  .fw-lsb1539-avatars { margin-bottom: 6px; }
  .fw-lsb1539-avatars img { width: 37px; height: 37px; }
  .fw-lsb1539-tabs { height: 84px; padding: 8px 14px 7px; gap: 7px; }
  .fw-lsb1539-tabs button b { font-size: 12.5px; }
  .fw-lsb1539-tab-icon { width: 40px; height: 40px; }
  .fw-lsb1539-content { height: calc(100% - 200px); }
  .fw-lsb1539-chat { grid-template-rows: 50px minmax(76px,1fr) auto 43px 56px; }
  .fw-lsb1539-message-row.is-user .fw-lsb1539-message-wrap { max-width: 90%; }
  .fw-lsb1539-quick-wrap { padding-left: 9px; padding-right: 9px; }
  .fw-lsb1539-quick { gap: 4px 5px; }
  .fw-lsb1539-quick button { min-height: 28px; padding: 4px 6px; font-size: 10px; }
  .fw-lsb1539-operator-button { width: calc(100% - 18px); margin-left: 9px; margin-right: 9px; }
  .fw-lsb1539-channel { padding: 18px 14px 16px; gap: 15px; }
  .fw-lsb1539-channel h3 { font-size: 21px; }
  .fw-lsb1539-channel-action { min-height: 48px; font-size: 15px; }
  .fw-lsb1539-qr-card { padding: 15px 12px 14px; gap: 12px; }
  .fw-lsb1539-qr-card p { font-size: 12.5px; }
  .fw-lsb1539-qr-card img { width: min(160px, 100%); }
  .fw-lsb1539-launcher { right: 12px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px)); height: 66px; }
  .fw-lsb1539-launcher-circle { width: 66px; height: 66px; flex-basis: 66px; }
  .fw-lsb1539-launcher-label { display: none; }
}

@media (max-height: 700px) {
  .fw-lsb1539-panel { bottom: 82px; height: calc(100dvh - 94px); }
  .fw-lsb1539-header { height: 104px; }
  .fw-lsb1539-tabs { height: 76px; }
  .fw-lsb1539-content { height: calc(100% - 180px); }
  .fw-lsb1539-chat { grid-template-rows: 48px minmax(54px,1fr) auto 42px 54px; }
  .fw-lsb1539-quick button:nth-child(n+9) { display: none; }
  .fw-lsb1539-channel { padding-top: 14px; gap: 11px; }
  .fw-lsb1539-qr-card img { width: min(138px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .fw-lsb1539-panel, .fw-lsb1539-dots, .fw-lsb1539-smile, .fw-lsb1539-typing i { animation: none !important; }
  .fw-lsb1539-smile { display: none; }
}
