/* Solo Avto chat assistant (31 Oct 2026): floating button (was WhatsApp) and the chat panel.
   Brand: yellow #f8c84a on dark grey #343c42, Montserrat, 16px cards, 12px controls (theme.css). */
#btn-whatsapp {
  background: var(--yellow-500, #f8c84a) !important;
  animation: none !important;
  box-shadow: 0 6px 18px rgba(52, 60, 66, 0.25) !important;
}
#btn-whatsapp svg path {
  fill: var(--gray-500, #343c42) !important;
}
body.solo-chat-open #btn-whatsapp {
  display: none !important;
}

.solo-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1060;
  width: 440px;
  max-width: calc(100vw - 24px);
  height: min(720px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft, #e7e9eb);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(52, 60, 66, 0.22);
  font-family: var(--primary-font-family, "Montserrat"), sans-serif;
  color: var(--gray-500, #343c42);
  overflow: hidden;
}
.solo-chat[hidden] {
  display: none;
}
.solo-chat__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 12px 16px;
  background: var(--gray-500, #343c42);
  color: #fff;
}
.solo-chat__title {
  flex: 1 1 auto;
  min-width: 0;
}
.solo-chat__title strong {
  display: block;
  font-size: 16px;
}
.solo-chat__title span {
  font-size: 12px;
  color: var(--yellow-400, #fada76);
}
.solo-chat__icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.solo-chat__icon:hover {
  background: rgba(255, 255, 255, 0.22);
}
.solo-chat__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  background: var(--gray-300, #f8f8f8);
}
.solo-chat__empty {
  font-size: 14px;
  color: var(--gray-400, #77858d);
  line-height: 1.5;
}
.solo-chat__turn {
  margin-bottom: 12px;
}
.solo-chat__turn--user {
  text-align: right;
}
.solo-chat__bubble {
  display: inline-block;
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-soft, #e7e9eb);
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}
.solo-chat__turn--user .solo-chat__bubble {
  background: var(--yellow-500, #f8c84a);
  border-color: var(--yellow-500, #f8c84a);
}
.solo-chat__bubble a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.solo-chat__card {
  margin-top: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-soft, #e7e9eb);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}
.solo-chat__branch + .solo-chat__branch {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft, #e7e9eb);
}
.solo-chat__branch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.solo-chat__map {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500, #343c42);
}
.solo-chat__muted {
  color: var(--gray-400, #77858d);
  font-size: 12px;
}
.solo-chat__phone {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.solo-chat__phone-actions {
  display: flex;
  gap: 6px;
}
.solo-chat__btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--yellow-500, #f8c84a);
  color: var(--gray-500, #343c42) !important;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
  white-space: nowrap;
}
.solo-chat__btn--wa {
  background: #fff;
  border: 1px solid #25d366;
  color: #128c4b !important;
}
.solo-chat__product {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  color: var(--gray-500, #343c42) !important;
  text-decoration: none !important;
}
.solo-chat__product + .solo-chat__product {
  border-top: 1px solid var(--border-soft, #e7e9eb);
}
.solo-chat__product:hover .solo-chat__product-title {
  text-decoration: underline;
}
.solo-chat__price {
  font-weight: 800;
  white-space: nowrap;
}
.solo-chat__part {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}
.solo-chat__part code {
  color: var(--gray-500, #343c42);
  font-weight: 700;
  white-space: nowrap;
}
.solo-chat__typing {
  font-size: 13px;
  color: var(--gray-400, #77858d);
}
.solo-chat__form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border-soft, #e7e9eb);
  background: #fff;
}
.solo-chat__input {
  flex: 1 1 auto;
  resize: none;
  overflow: hidden;
  scrollbar-width: none;
  height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border-soft, #e7e9eb);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}
.solo-chat__input:focus {
  outline: none;
  border-color: var(--yellow-500, #f8c84a);
  box-shadow: 0 0 0 3px rgba(248, 200, 74, 0.35);
}
.solo-chat__send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-500, #343c42);
  color: var(--yellow-500, #f8c84a);
  font-size: 18px;
  cursor: pointer;
}
.solo-chat__send:disabled {
  opacity: 0.5;
}
@media (max-width: 575.98px) {
  .solo-chat {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  body.solo-chat-open {
    overflow: hidden;
  }
}

.solo-chat__stock {
  display: block;
  padding: 7px 0;
  color: var(--gray-500, #343c42) !important;
  text-decoration: none !important;
}
.solo-chat__stock + .solo-chat__stock {
  border-top: 1px solid var(--border-soft, #e7e9eb);
}
.solo-chat__stock-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
a.solo-chat__stock:hover .solo-chat__product-title {
  text-decoration: underline;
}
.solo-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.solo-chat__chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(248, 200, 74, 0.25);
  font-size: 11px;
  font-weight: 700;
}
.solo-chat__chip--muted {
  background: var(--gray-200, #f4f4f4);
  color: var(--gray-400, #77858d);
}
