/* ── BAO Chatbot ── */

.baobot, .baobot * { box-sizing: border-box; }
.baobot {
  font-family: inherit;
  --bao-accent: #1a1a1a;
  --bao-bot-bg: #f1f1f3;
  --bao-user-bg: #1a1a1a;
}

/* ── Panel ── */
.baobot-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.baobot-inline .baobot-panel {
  width: 100%;
  max-width: 460px;
  height: 560px;
  margin: 0 auto;
}
 .baobot-chip:hover{ background: #E99541 !important;}
/* ── Head ── */
.baobot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #E99541;
  color: #fff;
}
.baobot-head-info { display: flex; align-items: center; gap: 10px; }
.baobot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.baobot-avatar .dashicons { color: #fff; font-size: 20px; width: 20px; height: 20px; }
.baobot-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.baobot-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; color: #fff; }
.baobot-status { font-size: 11.5px; opacity: .8; display: flex; align-items: center; gap: 5px; }
.baobot-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
.baobot-close {
  background: none; border: none; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; opacity: .85;
  padding: 0 4px;
}
.baobot-close:hover { opacity: 1; }

/* ── Body ── */
.baobot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.baobot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-line;
}
.baobot-bot {
  align-self: flex-start;
  background: var(--bao-bot-bg);
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}
.baobot-user {
  align-self: flex-end;
  background: var(--bao-user-bg);
  color: #fff;
  border-bottom-right-radius: 4px;
  white-space: normal;
}

/* Typing indicator */
.baobot-typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.baobot-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b9b9c0; display: inline-block;
  animation: baobot-blink 1.2s infinite both;
}
.baobot-typing span:nth-child(2) { animation-delay: .2s; }
.baobot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes baobot-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.baobot-saving { font-style: italic; color: #777; }

/* ── Carrusel de recomendaciones ── */
.baobot-carousel {
  align-self: stretch;
  position: relative;
  margin: 2px 0;
}
.baobot-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}
.baobot-track::-webkit-scrollbar { display: none; }
.baobot-track .baobot-card {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
}
.baobot-carousel-single .baobot-card { flex-basis: 100%; width: 100%; }

.baobot-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.baobot-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}
.baobot-card-img-empty { display: flex; align-items: center; justify-content: center; }
.baobot-card-img-empty .dashicons { font-size: 34px; color: #ccc; }

/* Mini-galería dentro de la tarjeta (hasta 2 imágenes, autoplay, dots) */
.baobot-gallery {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #e9e9e9;
}
.baobot-gallery-track {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}
.baobot-gslide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.baobot-gslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  max-width: none;
}
.baobot-gslide-empty { display: flex; align-items: center; justify-content: center; background: #e9e9e9; }
.baobot-gslide-empty .dashicons { font-size: 38px; color: #c4c4c4; width: 38px; height: 38px; }

/* Dots (incluye el de WhatsApp). Reseteos para evitar estilos del tema. */
.baobot-gdots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 7px; z-index: 2;
}
.baobot-gdot {
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
  width: 8px; height: 8px; min-width: 0; min-height: 0;
  padding: 0; margin: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  cursor: pointer; line-height: 0; text-decoration: none;
  transition: background .2s, width .2s;
}
.baobot-gdot.active { background: #fff; width: 18px; border-radius: 5px; }
.baobot-gdot-wsp {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #25d366; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.baobot-gdot-wsp svg { width: 12px; height: 12px; fill: #fff; }
.baobot-gdot-wsp:hover { background: #1ebe5d; }
.baobot-card-b { padding: 10px 12px; }
.baobot-card-type {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: #777; background: #f1f1f1; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px;
}
.baobot-card-name { display: block; font-size: 15px; color: #1a1a1a; }
.baobot-card-meta { font-size: 12.5px; color: #888; margin-top: 3px; }
.baobot-card-price { font-size: 13px; color: #555; margin-top: 6px; }
.baobot-card-price strong { color: #1a1a1a; }

/* Flechas del carrusel */
.baobot-car-btn {
  position: absolute;
  top: 60px;
  z-index: 2;
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.baobot-car-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.baobot-car-prev { left: -6px; }
.baobot-car-next { right: -6px; }
.baobot-car-btn.hidden { opacity: 0; pointer-events: none; }

/* ── Input bar ── */
.baobot-input {
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}
.baobot-input:empty { display: none; }

.baobot-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.baobot-chip {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.baobot-chip:hover { border-color: #1a1a1a; }
.baobot-chip.active { background: var(--bao-accent); border-color: var(--bao-accent); color: #fff; }

.baobot-textrow { display: flex; gap: 8px; }
.baobot-text {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
}
.baobot-text:focus { outline: none; border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26,26,26,.07); }

.baobot-send-btn {
  height: 42px;
  min-width: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--bao-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  margin-top: 8px;
}
.baobot-textrow .baobot-send-btn { margin-top: 0; }
.baobot-send-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }
.baobot-send-btn:hover { opacity: .9; }

/* Botón WhatsApp final */
.baobot-wsp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px;
  background: #25d366;
  color: #fff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s;
}
.baobot-wsp:hover { background: #1ebe5d; }

/* ── Widget flotante ── */
.baobot-floating { position: fixed; right: 20px; bottom: 20px; z-index: 9 !important; }
.baobot-launch-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Burbuja de mensaje */
.baobot-bubble {
  position: relative;
  max-width: 230px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #ececec;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 11px 30px 11px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 6px 22px rgba(0,0,0,.14);
  animation: baobot-pop .25s ease-out;
}
.baobot-bubble-x {
  position: absolute;
  top: 4px; right: 6px;
  background: none; border: none;
  font-size: 17px; line-height: 1;
  color: #aaa; cursor: pointer; padding: 2px;
}
.baobot-bubble-x:hover { color: #555; }
.baobot-bubble-text a { color: #1a1a1a; text-decoration: underline; }
.baobot-bubble-text p { margin: 0 0 6px; }
.baobot-bubble-text p:last-child { margin-bottom: 0; }
@keyframes baobot-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.baobot-launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: var(--bao-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  font-family: inherit;
}
.baobot-launcher .dashicons { font-size: 22px; width: 22px; height: 22px; }

/* Launcher con imagen (reemplaza el botón) */
.baobot-launcher-img {

  padding: 0;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
}

#baobot-launcher:hover{
    background:transparent !important;
}

.baobot-launcher-img img { width: 100%; height: 100%; object-fit: cover; height: 120px;width:120px; display: block; }

.page-id-16 .baobot-launcher-img img { width: 100%; height: 100%; object-fit: cover; height: 150px !important;width:150px !important; display: block; }



.baobot-floating .baobot-panel {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 100px);
}
.baobot-floating .baobot-panel.open { display: flex; }

@media (max-width: 480px) {
  .baobot-floating .baobot-panel {
    right: 10px; bottom: 10px; left: 10px;
    width: auto; height: 78vh;
  }
  .baobot-launcher-text { display: none; }
  .baobot-launcher:not(.baobot-launcher-img) { padding: 14px; }
}
