
/* HomeFlowe HF Bot — namespace only hf-bot-* */

.hf-bot-launcher{position:fixed;right:14px;top:84px;z-index:2147483000;display:flex;align-items:center;gap:10px}
.hf-bot-launcher button{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:999px;background:rgba(25,25,25,.92);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.22);backdrop-filter:saturate(180%) blur(10px);-webkit-backdrop-filter:saturate(180%) blur(10px);font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:14px;line-height:1}
.hf-bot-launcher button:hover{transform:translateY(-1px)}
.hf-bot-launcher .hf-bot-dot{width:10px;height:10px;border-radius:50%;background:#2ee59d;box-shadow:0 0 0 4px rgba(46,229,157,.18)}
.hf-bot-launcher .hf-bot-label{display:none}
@media (min-width:768px){.hf-bot-launcher .hf-bot-label{display:inline}}

.hf-bot-panel{position:fixed;right:14px;top:84px;z-index:2147483001;width:min(520px,96vw);height:min(78vh,720px);max-height:78vh;display:none;flex-direction:column;background:rgba(255,255,255,.96);color:#111;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.22);overflow:hidden;backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:14px;line-height:1.45}
.hf-bot-panel.hf-bot-open{display:flex}
@media (max-width:767px){
  .hf-bot-panel{right:2vw;width:96vw;height:70vh;max-height:70vh;border-radius:16px}
  .hf-bot-launcher{right:10px}
}

.hf-bot-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px;border-bottom:1px solid rgba(0,0,0,.08);background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74))}
.hf-bot-header-left{display:flex;align-items:center;gap:10px;min-width:0}
.hf-bot-avatar{width:34px;height:34px;border-radius:999px;object-fit:cover;flex:0 0 auto;background:#eee}
.hf-bot-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.hf-bot-name{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hf-bot-status{font-size:12px;color:rgba(0,0,0,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hf-bot-header-actions{display:flex;align-items:center;gap:6px}
.hf-bot-iconbtn{all:unset;cursor:pointer;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.06)}
.hf-bot-iconbtn:hover{background:rgba(0,0,0,.10)}
.hf-bot-icon{width:18px;height:18px;display:block}

.hf-bot-body{display:flex;flex-direction:column;flex:1;min-height:0}
.hf-bot-messages{flex:1;min-height:0;overflow-y:auto;padding:12px 12px;display:block}
.hf-bot-row{display:flex;align-items:flex-end;margin:8px 0;gap:8px}
.hf-bot-row.hf-bot-from-user{justify-content:flex-end}
.hf-bot-row.hf-bot-from-bot{justify-content:flex-start}
.hf-bot-bubble{max-width:90%;padding:10px 12px;border-radius:16px;box-shadow:0 6px 16px rgba(0,0,0,.06);word-break:break-word}
.hf-bot-from-user .hf-bot-bubble{background:rgba(25,25,25,.92);color:#fff;border-bottom-right-radius:6px}
.hf-bot-from-bot .hf-bot-bubble{background:rgba(0,0,0,.05);color:#111;border-bottom-left-radius:6px}
.hf-bot-meta{font-size:11px;color:rgba(0,0,0,.55);margin-top:4px}

.hf-bot-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hf-bot-chip{all:unset;cursor:pointer;padding:8px 10px;border-radius:999px;background:rgba(0,0,0,.06);color:#111;font-size:13px;line-height:1}
.hf-bot-chip:hover{background:rgba(0,0,0,.10)}

.hf-bot-tools{border-top:1px solid rgba(0,0,0,.08);padding:10px 12px;background:rgba(255,255,255,.86);max-height:34vh;overflow:hidden;}
.hf-bot-tools-title{font-weight:700;font-size:14px;color:rgba(0,0,0,.7);margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}
.hf-bot-tools-toggle{all:unset;cursor:pointer;font-size:13px;color:rgba(0,0,0,.65);padding:6px 8px;border-radius:10px;background:rgba(0,0,0,.06)}
.hf-bot-tools-toggle:hover{background:rgba(0,0,0,.10)}
.hf-bot-tools-grid{display:grid;grid-template-columns:1fr;gap:10px;max-height:calc(34vh - 40px);overflow:auto;padding-right:2px}
@media (min-width:768px){.hf-bot-tools-grid{grid-template-columns:1fr}}
.hf-bot-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:10px 10px;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.hf-bot-card h4{margin:0 0 8px 0;font-size:14px}
.hf-bot-card p{margin:0 0 8px 0;color:rgba(0,0,0,.75)}
.hf-bot-card .hf-bot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.hf-bot-btn{all:unset;cursor:pointer;padding:9px 11px;border-radius:12px;background:rgba(25,25,25,.92);color:#fff;font-weight:600;font-size:13px;line-height:1}
.hf-bot-btn:hover{transform:translateY(-1px)}
.hf-bot-btn.hf-bot-btn-secondary{background:rgba(0,0,0,.06);color:#111}
.hf-bot-btn.hf-bot-btn-secondary:hover{background:rgba(0,0,0,.10)}
.hf-bot-field{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0}
.hf-bot-field label{font-size:13px;color:rgba(0,0,0,.75)}
.hf-bot-stepper{display:flex;align-items:center;gap:8px}
.hf-bot-stepper button{all:unset;cursor:pointer;width:30px;height:30px;border-radius:10px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;font-weight:800}
.hf-bot-stepper span{min-width:26px;text-align:center;font-weight:700}
.hf-bot-toggle{display:flex;align-items:center;gap:8px}
.hf-bot-toggle input{width:18px;height:18px}
.hf-bot-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.hf-bot-badge{font-size:12px;padding:4px 8px;border-radius:999px;background:rgba(0,0,0,.06);color:#111}

.hf-bot-inputbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.92)}
.hf-bot-input{flex:1;min-width:0;border:1px solid rgba(0,0,0,.12);border-radius:14px;padding:10px 12px;font-size:14px;line-height:1.35;background:#fff;outline:none}
.hf-bot-send{all:unset;cursor:pointer;width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(25,25,25,.92);color:#fff}
.hf-bot-send:disabled{opacity:.5;cursor:not-allowed}
.hf-bot-send svg{width:18px;height:18px}

.hf-bot-typing{display:inline-flex;align-items:center;gap:8px}
.hf-bot-dots{display:inline-flex;gap:4px}
.hf-bot-dots i{display:block;width:6px;height:6px;border-radius:50%;background:rgba(0,0,0,.35);animation:hfBotPulse 1.1s infinite ease-in-out}
.hf-bot-dots i:nth-child(2){animation-delay:.15s}
.hf-bot-dots i:nth-child(3){animation-delay:.3s}
@keyframes hfBotPulse{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-3px);opacity:.9}}

@media (prefers-reduced-motion: reduce){
  .hf-bot-launcher button:hover,.hf-bot-btn:hover{transform:none}
  .hf-bot-dots i{animation:none}
}


@media (max-width:767px){
  .hf-bot-panel{right:2vw;top:70px;width:96vw;height:70vh;max-height:70vh}
  .hf-bot-tools{max-height:28vh}
  .hf-bot-tools-grid{max-height:calc(28vh - 40px)}
}



/* BIG DEBUG LAYOUT: split chat + tools, large fonts, visible controls */
.hf-bot-panel{width:min(1240px,98vw)!important;height:min(84vh,900px)!important;max-height:84vh!important;border-radius:24px!important}
.hf-bot-header{padding:16px 18px!important;background:linear-gradient(180deg,#fff,#f5f8fb)!important}
.hf-bot-avatar{width:44px!important;height:44px!important}
.hf-bot-name{font-size:20px!important;font-weight:800!important}
.hf-bot-status{font-size:14px!important}
.hf-bot-iconbtn{width:42px!important;height:42px!important}
.hf-bot-body{display:grid!important;grid-template-columns:minmax(480px,1.1fr) minmax(420px,.9fr)!important;gap:0!important;min-height:0!important;flex:1 1 auto!important}
.hf-bot-messages{padding:18px!important;font-size:20px!important;line-height:1.55!important;background:linear-gradient(180deg,#ffffff 0%,#fbfbfc 100%)!important;min-height:0!important}
.hf-bot-row{margin:14px 0!important}
.hf-bot-bubble{padding:16px 18px!important;border-radius:22px!important;max-width:94%!important;font-size:20px!important;line-height:1.5!important}
.hf-bot-from-user .hf-bubble,.hf-bot-from-user .hf-bot-bubble{background:linear-gradient(135deg,#222 0%,#3a2a52 100%)!important;color:#fff!important}
.hf-bot-from-bot .hf-bot-bubble{background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%)!important;border:1px solid rgba(86,112,187,.12)!important;color:#1e2430!important}
.hf-bot-chip{padding:12px 16px!important;font-size:18px!important;border:1px solid rgba(122,89,255,.16)!important;background:linear-gradient(180deg,#ffffff 0%,#f4f0ff 100%)!important}
.hf-bot-tools{display:flex!important;flex-direction:column!important;min-height:0!important;max-height:none!important;overflow:hidden!important;border-top:0!important;border-left:1px solid rgba(0,0,0,.08)!important;background:linear-gradient(180deg,#f7fbff 0%,#eef5ff 100%)!important;padding:0!important}
.hf-bot-tools-title{padding:18px 18px 12px!important;margin:0!important;font-size:18px!important;background:rgba(209,223,237,.72)!important;border-bottom:1px solid rgba(0,0,0,.06)!important;position:sticky!important;top:0;z-index:2}
.hf-bot-tools-title > div:first-child{font-size:18px!important;font-weight:800!important}
.hf-bot-tools-toggle{font-size:18px!important;padding:10px 14px!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#edf5ff)!important;border:1px solid rgba(92,125,185,.18)!important}
.hf-bot-tools-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;overflow:auto!important;max-height:none!important;min-height:0!important;padding:16px 16px 20px!important}
.hf-bot-card{border-radius:20px!important;padding:18px!important;box-shadow:0 12px 30px rgba(22,39,84,.08)!important;border:1px solid rgba(122,89,255,.10)!important;background:linear-gradient(180deg,#fff 0%,#fafcff 100%)!important}
.hf-bot-card h4{font-size:22px!important;margin:0 0 12px 0!important}
.hf-bot-card p,.hf-bot-field label,.hf-bot-badge{font-size:18px!important;line-height:1.45!important}
.hf-bot-actions{gap:10px!important}
.hf-bot-btn{padding:14px 18px!important;border-radius:16px!important;font-size:18px!important;background:linear-gradient(135deg,#5d3fd3 0%,#7b52f4 100%)!important;color:#fff!important;box-shadow:0 10px 20px rgba(93,63,211,.18)!important}
.hf-bot-btn.hf-bot-btn-secondary{background:linear-gradient(180deg,#fff 0%,#eef5ff 100%)!important;color:#1a2440!important;border:1px solid rgba(92,125,185,.15)!important;box-shadow:none!important}
.hf-bot-field{margin:12px 0!important}
.hf-bot-stepper button{width:42px!important;height:42px!important;font-size:24px!important;border-radius:14px!important;background:#eef4ff!important}
.hf-bot-stepper span{font-size:20px!important;min-width:38px!important}
.hf-bot-toggle input{width:22px!important;height:22px!important}
.hf-bot-badge{padding:8px 12px!important;background:#eef3ff!important;border:1px solid rgba(92,125,185,.15)!important}
.hf-bot-inputbar{padding:14px 16px!important;background:#fff!important}
.hf-bot-input{font-size:20px!important;padding:16px 18px!important;border-radius:18px!important}
.hf-bot-send{width:56px!important;height:56px!important;border-radius:18px!important;background:linear-gradient(135deg,#111 0%,#46306a 100%)!important}
.hf-bot-send svg{width:24px!important;height:24px!important}
.hf-bot-meta{font-size:14px!important}
.hf-bot-price-range,.hf-bot-result-price,strong.hf-bot-strong-price{color:#5d3fd3!important;font-weight:800!important}
@media (max-width:1100px){
  .hf-bot-panel{width:96vw!important;height:86vh!important;max-height:86vh!important}
  .hf-bot-body{grid-template-columns:1fr!important;grid-template-rows:minmax(280px,1fr) minmax(260px,.9fr)!important}
  .hf-bot-tools{border-left:0!important;border-top:1px solid rgba(0,0,0,.08)!important}
}
@media (max-width:767px){
  .hf-bot-panel{top:70px!important;right:2vw!important;width:96vw!important;height:82vh!important;max-height:82vh!important}
  .hf-bot-name{font-size:16px!important}
  .hf-bot-body{grid-template-columns:1fr!important;grid-template-rows:minmax(240px,1fr) minmax(240px,.95fr)!important}
  .hf-bot-messages,.hf-bot-bubble,.hf-bot-card p,.hf-bot-field label,.hf-bot-chip,.hf-bot-btn,.hf-bot-input,.hf-bot-card h4{font-size:16px!important}
}


.hf-bot-price-box{margin:16px 0;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#fff6df 0%,#ffe0a8 42%,#ffd67a 100%)!important;border:1px solid rgba(214,155,46,.22)!important;box-shadow:0 12px 28px rgba(214,155,46,.20)!important}
.hf-bot-price-caption{font-size:16px!important;font-weight:800!important;letter-spacing:.02em!important;text-transform:uppercase!important;color:#7a4d00!important;margin-bottom:6px!important}
.hf-bot-result-price{font-size:34px!important;line-height:1.1!important;font-weight:900!important;color:#5d3fd3!important;text-shadow:0 1px 0 rgba(255,255,255,.55)!important}
.hf-bot-price-sub{font-size:16px!important;color:#6a4b12!important;margin-top:6px!important}
.hf-bot-calc-breakdown{display:grid!important;gap:8px!important;margin:10px 0 14px!important}
.hf-bot-calc-line{display:flex!important;justify-content:space-between!important;gap:14px!important;padding:10px 12px!important;border-radius:14px!important;background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%)!important;border:1px solid rgba(93,63,211,.10)!important;font-size:17px!important}
.hf-bot-calc-line span{color:#5d6475!important}
.hf-bot-calc-line strong{color:#1f2740!important;font-weight:800!important}
.hf-bot-calc-summary{font-size:18px!important;line-height:1.5!important;color:#1f2740!important;margin:10px 0 16px!important}
.hf-bot-contact-input{width:100%!important;box-sizing:border-box!important;padding:14px 16px!important;font-size:18px!important;border-radius:16px!important;border:1px solid rgba(93,63,211,.18)!important;background:#fff!important;margin:0 0 10px!important;outline:none!important}
.hf-bot-contact-input:focus{border-color:#7b52f4!important;box-shadow:0 0 0 4px rgba(123,82,244,.12)!important}
.hf-bot-lead-box{padding:16px!important;border-radius:18px!important;background:linear-gradient(180deg,#f8f3ff 0%,#f1ebff 100%)!important;border:1px solid rgba(123,82,244,.14)!important;margin:8px 0 16px!important}
.hf-bot-btn.hf-bot-btn-accent{background:linear-gradient(135deg,#5d3fd3 0%,#8d61ff 100%)!important;color:#fff!important}
.hf-bot-pkg-btn.hf-bot-pkg-basic{background:linear-gradient(135deg,#5d3fd3 0%,#7b52f4 100%)!important;color:#fff!important}
.hf-bot-pkg-btn.hf-bot-pkg-medium{background:linear-gradient(135deg,#1f9cf0 0%,#5dc3ff 100%)!important;color:#fff!important}
.hf-bot-pkg-btn.hf-bot-pkg-premium{background:linear-gradient(135deg,#d18a00 0%,#ffbf47 100%)!important;color:#3e2800!important}
.hf-bot-calc-note{padding:14px 16px!important;border-radius:16px!important;background:linear-gradient(180deg,#eef4ff 0%,#f5f8ff 100%)!important;border:1px solid rgba(93,63,211,.12)!important;font-size:17px!important;color:#334!important;margin-bottom:14px!important}


.hf-bot-toast{position:fixed;right:28px;bottom:28px;z-index:999999;max-width:min(420px,92vw);padding:18px 20px;border-radius:18px;background:linear-gradient(135deg,#7b52f4 0%,#5d3fd3 100%);color:#fff;font-size:20px;font-weight:800;line-height:1.35;box-shadow:0 18px 40px rgba(65,36,148,.32);opacity:0;transform:translateY(12px) scale(.98);transition:opacity .22s ease,transform .22s ease;display:none}
.hf-bot-toast.is-visible{opacity:1;transform:translateY(0) scale(1)}
.hf-bot-toast.is-error{background:linear-gradient(135deg,#ff5f6d 0%,#ff8a5b 100%)}
.hf-bot-toast.is-success{background:linear-gradient(135deg,#19b46b 0%,#3fd38a 100%)}
.hf-bot-contact-input.is-invalid{border-color:#ff5f6d!important;background:linear-gradient(180deg,#fff5f6 0%,#fff 100%)!important;box-shadow:0 0 0 5px rgba(255,95,109,.18)!important}
.hf-bot-lead-box{position:relative}
.hf-bot-lead-box::before{content:'Нужно имя и телефон для отправки';display:block;margin:0 0 12px;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,#fff3cd 0%,#ffd7a8 100%);color:#7a3f00;font-size:16px;font-weight:700}
@media (max-width:767px){.hf-bot-toast{left:12px;right:12px;bottom:12px;font-size:18px}}


.hf-bot-price-box{background:linear-gradient(135deg,#f8f1ff 0%,#ede7ff 48%,#fff7df 100%)!important;border:2px solid rgba(123,82,244,.18)!important;box-shadow:0 18px 34px rgba(96,69,183,.12)!important}
.hf-bot-price-main{font-size:42px!important;color:#5d3fd3!important;text-shadow:0 1px 0 rgba(255,255,255,.7)!important}
.hf-bot-price-caption{font-size:16px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#7a5cf0!important}
.hf-bot-price-sub{font-size:15px!important;color:#5a4f77!important}
.hf-bot-lead-box::before{content:'Для отправки расчёта обязательно заполните имя и телефон';font-size:18px!important;padding:14px 16px!important;border-radius:16px!important;background:linear-gradient(135deg,#fff0c7 0%,#ffc7a6 100%)!important;color:#6d3100!important;box-shadow:0 10px 24px rgba(255,155,92,.18)!important}
.hf-bot-hidden-feedback-bridge,[data-feedback-form-wrapper].hf-bot-hidden-feedback-bridge{position:absolute!important;left:-99999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


.hf-bot-price-box{position:relative;overflow:hidden}
.hf-bot-price-box::after{content:'';position:absolute;inset:auto -30px -30px auto;width:140px;height:140px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.45),rgba(255,255,255,0) 68%)}
.hf-bot-result-price{background:linear-gradient(135deg,#5d3fd3 0%,#9c6cff 48%,#d18a00 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.hf-bot-calc-line:nth-child(2) strong,.hf-bot-calc-line:nth-child(4) strong{color:#5d3fd3!important}
.hf-bot-calc-note{border-left:6px solid #7b52f4!important}
.hf-bot-btn.hf-bot-btn-accent{font-size:20px!important;padding:16px 22px!important}
.hf-bot-lead-box::before{content:'Заполните имя и телефон — тогда расчёт реально уйдёт Ольге на почту';}

/* Final compact bot layout (override debug styles above) */
.hf-bot-panel{
  width:min(420px,94vw)!important;
  height:min(72vh,680px)!important;
  max-height:72vh!important;
  border-radius:16px!important;
}
.hf-bot-header{padding:10px 12px!important}
.hf-bot-avatar{width:32px!important;height:32px!important}
.hf-bot-name{font-size:14px!important}
.hf-bot-status{font-size:12px!important}
.hf-bot-iconbtn{width:32px!important;height:32px!important}
.hf-bot-body{display:flex!important;flex-direction:column!important}
.hf-bot-messages{padding:10px 12px!important;font-size:14px!important}
.hf-bot-bubble{font-size:14px!important;line-height:1.45!important;padding:10px 12px!important;border-radius:14px!important}
.hf-bot-tools{border-left:0!important;border-top:1px solid rgba(0,0,0,.08)!important;padding:8px 10px!important;max-height:30vh!important;background:rgba(255,255,255,.9)!important}
.hf-bot-tools-title{padding:0 0 8px 0!important;margin:0!important;font-size:13px!important;background:transparent!important;border-bottom:0!important}
.hf-bot-tools-grid{gap:8px!important;padding:0!important}
.hf-bot-card{border-radius:12px!important;padding:10px!important}
.hf-bot-card h4,.hf-bot-card p,.hf-bot-field label,.hf-bot-chip,.hf-bot-btn{font-size:13px!important}
.hf-bot-inputbar{padding:8px 10px!important}
.hf-bot-input{font-size:14px!important;padding:9px 11px!important;border-radius:12px!important}
.hf-bot-send{width:40px!important;height:40px!important;border-radius:12px!important}
.hf-bot-send svg{width:16px!important;height:16px!important}
@media (max-width:767px){
  .hf-bot-panel{right:2vw!important;width:96vw!important;height:70vh!important;max-height:70vh!important}
}
