#olp-chat-root{
  --olp-navy:#0a2b57;
  --olp-navy-2:#133a72;
  --olp-orange:#ff642b;
  --olp-yellow:#ffbf1f;
  --olp-text:#13233d;
  --olp-line:#dde6ef;
  --olp-muted:#6d7c92;
  --olp-card:#ffffff;
  --olp-bg:#f7fafc;
  --olp-shadow:0 24px 60px rgba(10,43,87,.22);
  font-family:Arial,system-ui,-apple-system,"Segoe UI",sans-serif;
  position:relative;
  z-index:2147483000;
}
#olp-chat-root *{box-sizing:border-box}
.olp-shell{position:fixed;right:18px;bottom:18px;z-index:2147483000;pointer-events:none}
.olp-shell > *{pointer-events:auto}

.olp-sidekick{
  position:relative;
  display:flex;
  align-items:flex-end;
  gap:12px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  transition:transform .22s ease,opacity .22s ease;
  filter:drop-shadow(0 18px 28px rgba(8,30,61,.18));
}
.olp-sidekick:hover{transform:translateY(-3px)}
.olp-sidekick.is-hidden{opacity:0;pointer-events:none;transform:translateY(12px)}
.olp-sidekick-bubble{
  background:#fff;
  border:1px solid #e5ebf2;
  border-radius:18px;
  padding:12px 14px;
  color:var(--olp-text);
  text-align:left;
  max-width:180px;
  box-shadow:0 12px 28px rgba(8,30,61,.12);
}
.olp-sidekick-bubble strong{display:block;font-size:14px;line-height:1.2}
.olp-sidekick-bubble small{display:block;margin-top:4px;font-size:12px;color:var(--olp-muted)}
.olp-sidekick-media{
  position:relative;
  width:168px;
  border-radius:28px;
  overflow:hidden;
  background:transparent;
}
.olp-sidekick-video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:9/16;
  object-fit:cover;
  border-radius:28px;
  background:transparent;
}
.olp-sidekick-dot{
  position:absolute;
  right:10px;
  bottom:10px;
  width:16px;
  height:16px;
  background:#22c55e;
  border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 6px 14px rgba(34,197,94,.35);
}

.olp-chat{
  position:fixed;
  right:18px;
  bottom:18px;
  width:min(430px,calc(100vw - 24px));
  height:min(760px,calc(var(--olp-vh,100vh) - 28px));
  max-height:calc(var(--olp-vh,100vh) - 28px);
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto;
  background:#fff;
  border:1px solid #dfe8f1;
  border-radius:28px;
  box-shadow:var(--olp-shadow);
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateY(18px) scale(.985);
  transform-origin:bottom right;
  transition:transform .22s ease,opacity .22s ease;
}
.olp-chat.is-open{opacity:1;pointer-events:auto;transform:none}

.olp-chat-head{
  min-height:78px;
  background:linear-gradient(135deg,var(--olp-navy),var(--olp-navy-2));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
}
.olp-head-id{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.olp-head-avatar{width:50px;height:50px;border-radius:16px;overflow:hidden;background:#fff;flex:0 0 auto;border:2px solid rgba(255,255,255,.45)}
.olp-head-avatar img{width:100%;height:100%;object-fit:cover;transform:scale(1.1)}
.olp-head-text{min-width:0}
.olp-head-text strong{display:block;font-size:15px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.olp-head-text span{display:block;font-size:12px;color:#e4eef9;margin-top:4px}
.olp-head-text i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2ce57a;margin-right:6px;vertical-align:middle}
.olp-head-actions{display:flex;gap:8px}
.olp-icon-btn{width:40px;height:40px;border:0;border-radius:13px;background:rgba(255,255,255,.12);color:#fff;font-size:22px;cursor:pointer}
.olp-icon-btn:hover{background:rgba(255,255,255,.18)}

.olp-welcome-media{padding:10px 12px 2px;background:#fff}
.olp-welcome-media[hidden]{display:none}
.olp-welcome-media.is-done{opacity:0;transform:translateY(-8px);transition:.24s ease}
.olp-welcome-stage{position:relative;border-radius:22px;overflow:hidden;background:#0e2341;border:1px solid #d8e2ef}
.olp-welcome-video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#0e2341}
.olp-video-sound,.olp-video-skip{
  position:absolute;
  bottom:12px;
  border:0;
  background:rgba(15,35,65,.82);
  color:#fff;
  border-radius:999px;
  padding:9px 14px;
  font-size:12px;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.olp-video-sound{left:12px}
.olp-video-skip{right:12px}

.olp-messages{
  min-height:0;
  overflow:auto;
  padding:12px 14px 10px;
  background:linear-gradient(180deg,#f9fbfd 0%,#ffffff 100%);
  scrollbar-width:thin;
}
.olp-msg{display:flex;gap:8px;align-items:flex-end;margin:0 0 12px}
.olp-msg.user{justify-content:flex-end}
.olp-mini{width:32px;height:32px;border-radius:11px;overflow:hidden;background:#fff3e7;flex:0 0 auto;border:1px solid #ffd8c3}
.olp-mini img{width:100%;height:100%;object-fit:cover;transform:scale(1.12)}
.olp-bubble{max-width:84%;padding:12px 14px;border-radius:18px 18px 18px 8px;background:#edf3f8;color:var(--olp-text);font-size:14px;line-height:1.5}
.olp-msg.user .olp-bubble{background:var(--olp-navy);color:#fff;border-radius:18px 18px 8px 18px}
.olp-typing{display:flex;gap:5px;padding:4px}
.olp-typing i{width:7px;height:7px;border-radius:50%;background:#90a0b4;animation:olpDot 1s infinite}
.olp-typing i:nth-child(2){animation-delay:.15s}
.olp-typing i:nth-child(3){animation-delay:.3s}
@keyframes olpDot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}

.olp-product-list{display:grid;gap:10px}
.olp-product{display:grid;grid-template-columns:72px 1fr;gap:10px;background:#fff;border:1px solid #e1e7ef;border-radius:16px;padding:10px}
.olp-product > img{width:72px;height:72px;object-fit:contain;background:#f8fafc;border-radius:12px}
.olp-product > div{min-width:0}
.olp-product span{display:block;font-size:10px;color:#718097;text-transform:uppercase;font-weight:800;letter-spacing:.04em}
.olp-product strong{display:block;font-size:13px;color:#112640;margin-top:3px}
.olp-product small{display:block;font-size:10px;color:#64748b;line-height:1.35;margin-top:4px}
.olp-product b{display:block;font-size:18px;color:var(--olp-navy);margin:6px 0}
.olp-product-actions{display:flex;gap:6px;flex-wrap:wrap}
.olp-product-actions a,.olp-product-actions button{border:0;border-radius:9px;padding:7px 9px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}
.olp-product-actions a{background:var(--olp-navy);color:#fff}
.olp-product-actions button{background:#fff;border:1px solid #d7e0ea;color:var(--olp-navy)}

.olp-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 12px 12px;
  border-top:1px solid #eef2f6;
  background:#fff;
}
.olp-quick button{
  flex:0 0 auto;
  min-height:42px;
  padding:10px 14px;
  border:1px solid #d8e2ec;
  border-radius:999px;
  background:#fff;
  color:var(--olp-navy);
  font-size:12px;
  font-weight:800;
  line-height:1.1;
  cursor:pointer;
}
.olp-quick button:hover{border-color:#ff8b5d;background:#fff7f2}

.olp-compose{display:grid;grid-template-columns:44px minmax(0,1fr) 46px;gap:8px;align-items:end;padding:10px 12px;background:#fff;border-top:1px solid #eef2f6}
.olp-loc,.olp-send{height:44px;border:0;border-radius:14px;cursor:pointer;display:grid;place-items:center}
.olp-loc{background:#edf4fb;color:var(--olp-navy);font-size:20px}
.olp-loc.busy{animation:olpPulse .9s infinite alternate}
.olp-send{background:var(--olp-orange);color:#fff;font-size:20px;font-weight:800}
.olp-send:disabled{opacity:.5}
@keyframes olpPulse{to{transform:scale(.94);opacity:.65}}
.olp-compose textarea{width:100%;resize:none;min-height:44px;max-height:104px;border:1px solid #d8e0ea;border-radius:16px;padding:12px 14px;font:inherit;font-size:14px;line-height:1.35;outline:none}
.olp-compose textarea:focus{border-color:#ff8b5d;box-shadow:0 0 0 3px rgba(255,100,43,.12)}
.olp-foot{text-align:center;font-size:10px;color:#8391a4;padding:0 12px 10px;background:#fff}

.olp-lead-form{background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:14px;width:min(330px,82vw);box-shadow:0 10px 28px rgba(8,30,61,.10)}
.olp-lead-form h3{margin:0;color:var(--olp-navy);font-size:16px}
.olp-lead-form p{font-size:11px;color:#69778d;margin:6px 0 12px;line-height:1.35}
.olp-lead-form label{display:block;font-size:11px;font-weight:800;color:#31415a;margin:8px 0}
.olp-lead-form label span{font-weight:500;color:#798698}
.olp-lead-form input,.olp-lead-form select,.olp-lead-form textarea{display:block;width:100%;margin-top:5px;border:1px solid #d8e1eb;border-radius:11px;padding:10px;font:inherit;font-size:12px;background:#fff;color:#17243a}
.olp-consent{display:flex !important;gap:7px;align-items:flex-start;font-weight:500 !important}
.olp-consent input{width:auto !important;margin:3px 0 0 !important}
.olp-hp{position:absolute !important;left:-9999px !important;opacity:0 !important}
.olp-lead-submit{width:100%;border:0;background:var(--olp-orange);color:#fff;border-radius:12px;padding:11px;font-weight:800;cursor:pointer}
.olp-lead-result{font-size:11px;line-height:1.4;margin-top:8px;color:#b42318}
.olp-lead-result.ok{color:#157347}
.olp-lead-result a{color:#0b5fc1;font-weight:800}

@media (max-width:860px){
  .olp-sidekick-media{width:144px}
}
@media (max-width:640px){
  .olp-shell{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
  .olp-sidekick{gap:8px;align-items:flex-end}
  .olp-sidekick-bubble{max-width:145px;padding:10px 12px;border-radius:16px}
  .olp-sidekick-bubble strong{font-size:12px}
  .olp-sidekick-bubble small{font-size:11px}
  .olp-sidekick-media{width:104px;border-radius:22px}
  .olp-sidekick-video{border-radius:22px}
  .olp-chat{top:0;left:0;right:0;bottom:0;width:100vw;height:var(--olp-vh,100vh);max-height:var(--olp-vh,100vh);border-radius:0;border:0;transform:translateY(20px)}
  .olp-chat-head{padding-top:calc(12px + env(safe-area-inset-top));min-height:76px}
  .olp-welcome-media{padding:8px 10px 2px}
  .olp-welcome-video{aspect-ratio:16/9;max-height:220px}
  .olp-video-sound,.olp-video-skip{padding:8px 12px;font-size:11px;bottom:10px}
  .olp-messages{padding:10px 10px 8px}
  .olp-bubble{max-width:88%;font-size:13px;padding:11px 12px}
  .olp-quick{padding:10px;gap:7px}
  .olp-quick button{min-height:40px;padding:9px 12px;font-size:12px}
  .olp-compose{padding:10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));grid-template-columns:42px minmax(0,1fr) 44px}
  .olp-compose textarea{font-size:13px;padding:11px 12px}
  .olp-foot{padding-bottom:calc(6px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
  .olp-sidekick,.olp-chat,.olp-welcome-media,.olp-typing i{transition:none !important;animation:none !important}
}
/* Ofertas Locas AI v1.2 — responsive navigation and voice controls */
#olp-chat-root .olp-shell { right:clamp(8px,1.3vw,22px); bottom:clamp(8px,1.3vw,22px); }
#olp-chat-root .olp-sidekick-media{width:clamp(148px,12vw,205px)}
#olp-chat-root .olp-sidekick-video{aspect-ratio:9/16;object-fit:cover}
#olp-chat-root .olp-sidekick-audio{
  position:absolute;bottom:14px;right:14px;z-index:5;
  padding:8px 12px;border-radius:999px;border:1px solid #fff9;
  background:#091f3cdc;color:#fff;font-size:11px;font-weight:750;
  box-shadow:0 5px 18px #0b254434;cursor:pointer;max-width:180px;
}
#olp-chat-root .olp-sidekick-audio.is-hidden{opacity:0;pointer-events:none}
#olp-chat-root .olp-chat{right:clamp(8px,1.3vw,22px);bottom:clamp(8px,1.3vw,22px);grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
#olp-chat-root .olp-chat-head{gap:8px}
#olp-chat-root .olp-head-actions{flex-shrink:0;gap:6px}
#olp-chat-root .olp-icon-btn{flex-shrink:0}
#olp-chat-root .olp-content{position:relative;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}
#olp-chat-root .olp-messages{flex:1;min-width:0;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}
#olp-chat-root .olp-messages[hidden]{display:none!important}
#olp-chat-root .olp-browser{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;background:#f9fbfe}
#olp-chat-root .olp-browser[hidden]{display:none!important}
#olp-chat-root .olp-browser-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px;background:#fff;border-bottom:1px solid #e5edf5}
#olp-chat-root .olp-browser-toolbar strong{font-size:13px;color:#112d54;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#olp-chat-root .olp-browser-toolbar button{border:1px solid #dce6f2;border-radius:12px;padding:9px 10px;background:#fff;color:#133963;font-size:11px;font-weight:700;cursor:pointer}
#olp-chat-root .olp-browser-intro{font-size:11px;color:#68798f;padding:8px 13px 2px;margin:0}
#olp-chat-root .olp-browser-categories{display:flex;gap:7px;overflow-x:auto;flex-shrink:0;padding:9px 12px 10px;scrollbar-width:thin}
#olp-chat-root .olp-browser-categories button{white-space:nowrap;flex:0 0 auto;border-radius:999px;border:1px solid #d5e1ee;color:#16385f;background:#fff;padding:8px 11px;font-size:11px;font-weight:750;cursor:pointer}
#olp-chat-root .olp-browser-categories button.active{background:#112f58;border-color:#112f58;color:#fff}
#olp-chat-root .olp-browser-results{flex:1;min-height:0;overflow-y:auto;padding:0 12px 12px;overscroll-behavior:contain}
#olp-chat-root .olp-browser-count{font-size:11px;color:#718398;padding:3px 0 9px}
#olp-chat-root .olp-browser-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#olp-chat-root .olp-browser-grid .olp-product{width:100%;grid-template-columns:88px minmax(0,1fr);padding:10px;border-radius:15px}
#olp-chat-root .olp-browser-grid .olp-product>img{width:88px;height:88px}
#olp-chat-root .olp-browser-grid .olp-product-actions a,#olp-chat-root .olp-browser-grid .olp-product-actions button{min-height:31px;font-size:11px}
#olp-chat-root .olp-msg:has(.olp-product-list) .olp-bubble{max-width:calc(100% - 40px);width:100%}
#olp-chat-root .olp-quick{display:flex;flex-flow:row wrap;align-items:center;align-content:start;gap:7px;padding:10px 12px;max-height:112px;min-height:0;overflow-y:auto;overscroll-behavior:contain;flex-shrink:0}
#olp-chat-root .olp-quick[hidden]{display:none!important}
#olp-chat-root .olp-quick button{flex:0 1 auto;max-width:100%;height:auto;min-height:38px;padding:9px 12px;white-space:normal;text-align:center;line-height:1.25;border-radius:12px;font-size:11px;overflow-wrap:anywhere;align-self:center}
#olp-chat-root .olp-compose{flex-shrink:0;align-items:center}
#olp-chat-root .olp-compose textarea{min-height:44px;max-height:104px;overflow:auto}
#olp-chat-root .olp-video-sound,#olp-chat-root .olp-video-skip{min-height:33px}
@media (max-width:640px){
  #olp-chat-root .olp-shell{right:8px;bottom:calc(8px + env(safe-area-inset-bottom))}
  #olp-chat-root .olp-sidekick-media{width:clamp(95px,29vw,128px)}
  #olp-chat-root .olp-sidekick-bubble{max-width:130px}
  #olp-chat-root .olp-sidekick-audio{right:6px;bottom:8px;font-size:10px;padding:6px 8px}
  #olp-chat-root .olp-chat{top:var(--olp-vtop,0px);left:0;right:0;bottom:auto;width:100%;height:var(--olp-vh,100dvh);max-height:var(--olp-vh,100dvh);border:0;border-radius:0}
  #olp-chat-root .olp-head-text strong{font-size:13px}
  #olp-chat-root .olp-head-avatar{width:43px;height:43px}
  #olp-chat-root .olp-icon-btn{width:32px;height:36px;font-size:18px}
  #olp-chat-root .olp-quick{max-height:118px;gap:6px}
  #olp-chat-root .olp-quick button{flex:1 1 calc(50% - 8px);font-size:11px;max-width:calc(50% - 3px)}
  #olp-chat-root .olp-welcome-video{max-height:min(30vh,220px)}
  #olp-chat-root .olp-browser-results{padding:0 9px 9px}
  #olp-chat-root .olp-browser-grid .olp-product{grid-template-columns:75px minmax(0,1fr)}
  #olp-chat-root .olp-browser-grid .olp-product>img{width:75px;height:75px}
}
@media (max-height:560px){
  #olp-chat-root .olp-chat-head{min-height:55px;padding-top:7px;padding-bottom:7px}
  #olp-chat-root .olp-welcome-video{max-height:110px}
  #olp-chat-root .olp-quick{max-height:72px}
  #olp-chat-root .olp-messages{padding-top:7px}
}
@media(max-width:640px){
  #olp-chat-root .olp-quick{max-height:166px}
}

#olp-chat-root .olp-sidekick-audio[hidden]{display:none!important}
#olp-chat-root .olp-sidekick-video{object-fit:cover;animation:none!important}
