/* AUTO BV – chat asistent widget */
.cbot-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 1300;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #e30000; color: #fff; font-size: 26px;
  box-shadow: 0 14px 30px -10px rgba(227,0,0,.6); transition: transform .2s, background .2s;
  display: flex; align-items: center; justify-content: center;
}
.cbot-btn:hover { transform: scale(1.06); background: #c20000; }
.cbot-btn-x { display: none; font-size: 30px; line-height: 1; }
.cbot-btn.is-open .cbot-btn-ic { display: none; }
.cbot-btn.is-open .cbot-btn-x { display: block; }
.cbot-badge {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: #1c2931; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 22px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
  font-family: 'Open Sans', Arial, sans-serif;
}
.cbot-badge:after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: #1c2931; }

.cbot-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 1300;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(16,24,29,.5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
  transition: .26s cubic-bezier(.22,.61,.36,1); font-family: 'Open Sans', Arial, sans-serif;
}
.cbot-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.cbot-head { background: linear-gradient(135deg, #243640, #16222a); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.cbot-head-av { width: 42px; height: 42px; border-radius: 50%; background: #e30000; display: flex; align-items: center; justify-content: center; font-family: 'Fjalla One', sans-serif; font-size: 16px; flex: none; }
.cbot-head strong { display: block; font-size: 16px; }
.cbot-head span { font-size: 12px; color: rgba(255,255,255,.7); }

.cbot-body { flex: 1; overflow-y: auto; padding: 18px; background: #f5f7f9; }
.cbot-msg { margin-bottom: 14px; display: flex; }
.cbot-msg--user { justify-content: flex-end; }
.cbot-bubble { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.cbot-msg--bot .cbot-bubble { background: #fff; color: #1c2931; border-bottom-left-radius: 5px; box-shadow: 0 4px 14px -8px rgba(16,24,29,.2); }
.cbot-msg--user .cbot-bubble { background: #e30000; color: #fff; border-bottom-right-radius: 5px; }

.cbot-qr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 90%; }
.cbot-chip { background: #fff; border: 1px solid #d6e0e5; color: #1c2931; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 20px; cursor: pointer; transition: .15s; font-family: inherit; }
.cbot-chip:hover { background: #1c2931; color: #fff; border-color: #1c2931; }
.cbot-chip--go { background: #e30000; color: #fff; border-color: #e30000; text-decoration: none; display: inline-block; }
.cbot-chip--go:hover { background: #c20000; color: #fff; }

.cbot-cars { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.cbot-car { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #e7ecef; border-radius: 12px; padding: 8px; text-decoration: none; transition: .15s; }
.cbot-car:hover { box-shadow: 0 8px 20px -10px rgba(16,24,29,.3); transform: translateY(-1px); }
.cbot-car-img { width: 84px; height: 60px; border-radius: 8px; background: #16222a center/cover no-repeat; flex: none; }
.cbot-car-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cbot-car-title { font-size: 13px; font-weight: 700; color: #1c2931; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cbot-car-meta { font-size: 11px; color: #6b7c86; margin: 2px 0; }
.cbot-car-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 5px; }
.cbot-tag { font-size: 10px; font-weight: 600; color: #1e9e50; background: rgba(54,196,106,.12); padding: 2px 7px; border-radius: 10px; line-height: 1.4; }
.cbot-car-pricerow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cbot-car-price { font-size: 15px; font-weight: 700; color: #e30000; font-family: 'Fjalla One', sans-serif; }
.cbot-car-monthly { font-size: 11px; color: #6b7c86; }

.cbot-typing .cbot-bubble { display: inline-flex; gap: 4px; }
.cbot-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b6c2c9; animation: cbotblink 1.2s infinite both; }
.cbot-typing span:nth-child(2) { animation-delay: .2s; }
.cbot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cbotblink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

.cbot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e7ecef; background: #fff; }
.cbot-input input { flex: 1; border: 1px solid #d6e0e5; border-radius: 22px; padding: 11px 16px; font-size: 14px; font-family: inherit; outline: none; }
.cbot-input input:focus { border-color: #e30000; }
.cbot-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e30000; color: #fff; font-size: 16px; cursor: pointer; flex: none; transition: background .2s; }
.cbot-input button:hover { background: #c20000; }

@media (max-width: 480px) {
  .cbot-panel { right: 10px; left: 10px; width: auto; bottom: 84px; height: calc(100vh - 110px); }
  .cbot-btn { right: 16px; bottom: 16px; }
  .cbot-badge { display: none !important; }
}
