#vendora-widget.vendora-widget{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 36px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  overflow: hidden;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#vendora-widget .vendora-chat-body{
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

#vendora-widget .vendora-chat-footer{
  display:flex;
  gap:8px;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
}

#vendora-widget .vendora-input{
  flex:1;
  padding:10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
}

#vendora-widget .vendora-send-btn{
  padding:10px 12px;
  border:0;
  border-radius:10px;
  cursor:pointer;
}

#vendora-widget .vendora-message{
  padding:10px 12px;
  border-radius:12px;
  margin: 8px 0;
  max-width: 85%;
  white-space: pre-wrap;
}

#vendora-widget .vendora-message-client{
  margin-left:auto;
  background: rgba(0,0,0,.08);
}

#vendora-widget .vendora-message-vendor{
  margin-right:auto;
  background: rgba(0,0,0,.04);
}

#vendora-widget .vendora-typing-indicator{
  padding: 8px 10px;
  opacity: .7;
  font-size: 13px;
}

/* ===========================
   HANDOFF
   =========================== */
.vendora-handoff-card{
  margin: 10px 0;
  text-align: center;
}

.vendora-handoff-cta{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  background:#25D366;
  color:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.vendora-handoff-cta:hover{
  opacity:.92;
}

/* ===========================
   PRODUCT CARD (premium)
   =========================== */
.vendora-product-card{
  margin: 10px 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.vendora-product-image{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  display:block;
  margin-bottom: 10px;
}

.vendora-product-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  margin: 6px 0 4px;
}

.vendora-product-price{
  font-weight: 700;
  opacity: .92;
  font-size: 13px;
  margin: 0 0 10px;
}

/* ===========================
   CTAs: Comprar dominante
   =========================== */
.vendora-product-ctas{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.vendora-product-cta-sep{
  opacity:.5;
  user-select:none;
}

/* Base CTA */
.vendora-product-cta{
  display:inline-block;
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  font-weight:700;
  font-size: 13px;
  line-height: 1;
  background: #fff;
  color: #111;
  transition: transform .08s ease, opacity .12s ease, box-shadow .12s ease;
}

.vendora-product-cta:hover{
  opacity:.95;
  transform: translateY(-1px);
}

.vendora-product-cta:active{
  transform: translateY(0px);
}

/* Comprar: “pill” sólido premium (neutro) */
.vendora-product-cta-buy{
  background: rgba(0,0,0,.92);
  color: #fff;
  border-color: rgba(0,0,0,.92);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Ver: secundario */
.vendora-product-cta-view{
  opacity:.92;
}

/* Si querés que el CTA Comprar tome ancho completo cuando hay lugar */
@media (max-width: 420px){
  .vendora-product-cta-buy{
    width: 100%;
    text-align:center;
  }
}
#vendora-widget .vendora-send-btn{
  background: rgba(0,0,0,.92);
  color:#fff;
  font-weight:800;
}
#vendora-widget .vendora-send-btn:hover{ opacity:.95; }

/* ===========================
   CTA COMPRAR – BLINDAJE TOTAL
   =========================== */
#vendora-widget .vendora-product-cta-buy{
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

/* hover consistente */
#vendora-widget .vendora-product-cta-buy:hover{
  background: #000 !important;
  color: #fff !important;
  opacity: .96;
}
/* ===========================
   CTA COMPRAR – BLINDAJE + MICRO-ANIMACIÓN
   =========================== */
#vendora-widget .vendora-product-cta-buy{
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
  animation: vendoraPulse 2.6s ease-in-out infinite;
}

/* shimmer sutil (premium) */
#vendora-widget .vendora-product-cta-buy::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  transform: rotate(18deg);
  animation: vendoraShimmer 3.8s ease-in-out infinite;
  pointer-events:none;
}

#vendora-widget .vendora-product-cta-buy:hover{
  background: #000 !important;
  color: #fff !important;
  opacity: .98;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.26);
}

#vendora-widget .vendora-product-cta-buy:active{
  transform: translateY(0px);
  box-shadow: 0 8px 18px rgba(0,0,0,.20);
}

@keyframes vendoraPulse{
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.01); }
}

@keyframes vendoraShimmer{
  0% { left:-60%; opacity: 0; }
  15% { opacity: 1; }
  35% { left: 120%; opacity: .7; }
  36% { opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* Respeto a usuarios con reduced motion */
@media (prefers-reduced-motion: reduce){
  #vendora-widget .vendora-product-cta-buy{
    animation: none;
  }
  #vendora-widget .vendora-product-cta-buy::after{
    animation: none;
    display:none;
  }
}
/* =========================================================
 * Vendora Pro - Minimize / Dock
 * ======================================================= */

#vendora-widget.vendora-widget{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 36px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  overflow: hidden;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header (nuevo) */
#vendora-widget .vendora-chat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background:#fff;
}

#vendora-widget .vendora-chat-title{
  font-weight:700;
  font-size:14px;
  opacity:.9;
}

#vendora-widget .vendora-chat-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

#vendora-widget .vendora-icon-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:16px;
}

#vendora-widget .vendora-icon-btn:hover{
  opacity:.9;
}

/* Dock (burbuja) */
#vendora-widget .vendora-dock{
  display:none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  background:#111;
  color:#fff;
  z-index: 1000000;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  user-select:none;
}

#vendora-widget .vendora-dock-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:11px;
  display:none;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

/* Modo minimizado */
#vendora-widget.vendora-minimized{
  display:none;
}

/* Mobile: cuando está abierto, que no tape checkout */
@media (max-width: 560px){
  #vendora-widget.vendora-widget{
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: min(82vh, 640px);
    max-width: calc(100vw - 20px);
    border-radius: 16px;
  }

  #vendora-widget .vendora-dock{
    right: 10px;
    bottom: 10px;
  }
}
/* ===========================
   FIX BURBUJA (dock) - vive en <body>, no dentro del widget
   =========================== */

.vendora-dock{
  display:flex;                 /* se mostrará cuando el JS la active */
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  background:#111;
  color:#fff;
  z-index: 1000000;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.vendora-dock-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:11px;
  display:none;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

@media (max-width: 560px){
  .vendora-dock{
    right: 10px;
    bottom: 10px;
  }
}

/* =========================================================
 * Vendora - FIX botones header (X / —) visibles SIEMPRE
 * ======================================================= */
#vendora-widget .vendora-chat-header{
  position: relative;
  z-index: 2;
}

#vendora-widget .vendora-icon-btn{
  background: #fff !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.16) !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-tap-highlight-color: transparent;
}

#vendora-widget .vendora-icon-btn:hover{
  background: rgba(0,0,0,.04) !important;
}

#vendora-widget .vendora-btn-close{
  color: #111 !important; /* X */
}

#vendora-widget .vendora-btn-min{
  color: #111 !important; /* — */
}

/* En mobile agrandamos el target táctil un toque */
@media (max-width: 560px){
  #vendora-widget .vendora-icon-btn{
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
  }
}
@media (max-width: 560px){
  #vendora-widget.vendora-widget{
    display:none;
  }
  .vendora-dock{
    display:flex;
  }
}
/* =========================================================
 * Vendora - Mobile: arrancar MINIMIZADO (Opción A)
 * ======================================================= */
@media (max-width: 560px){
  /* el panel grande arranca oculto */
  #vendora-widget.vendora-widget{
    display: none !important;
  }

  /* la burbuja (dock) arranca visible */
  #vendora-widget .vendora-dock{
    display: flex !important;
  }
}
/* Dock minimizado como “caja” */
.vendora-dock{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  cursor: pointer;
}

.vendora-dock-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
  max-width: 320px;
}

.vendora-dock-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
}

.vendora-dock-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vendora-dock-ph{
  font-weight: 700;
  color: #111827;
}

.vendora-dock-text{
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vendora-dock-title{
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.1;
}

.vendora-dock-name{
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendora-dock-region{
  font-size: 12px;
  color: rgba(17,24,39,.65);
  white-space: nowrap;
}

.vendora-dock-teaser{
  font-size: 13px;
  color: rgba(17,24,39,.85);
  margin-top: 2px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile: un poco más angosto */
@media (max-width: 480px){
  .vendora-dock-card{ max-width: 360px; }
}

/* FIX: el dock ya NO es círculo, es tarjeta */
.vendora-dock{
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* Si tu CSS viejo le daba sombra/borde al dock directo, lo anulamos */
.vendora-dock:before,
.vendora-dock:after{
  content: none !important;
}
/* ===========================
   BLINDAJE LAYOUT CHAT
   =========================== */
#vendora-widget.vendora-widget{
  display:flex;
  flex-direction:column;
}

#vendora-widget .vendora-chat-body{
  flex: 1 1 auto;
  min-height: 0;          /* CLAVE: permite que el overflow funcione en flex */
  overflow-y: auto;
  overflow-x: hidden;
}

#vendora-widget .vendora-chat-footer{
  flex: 0 0 auto;
  background:#fff;
}
