/* Oleo 2 widget - v3.3. Self-contained: declares its own colours and fonts
   so a dark or exotic theme can never make the chat unreadable. */
.oleo2-launch,.oleo2-panel,.oleo2-panel button,.oleo2-panel input{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.oleo2-panel[hidden]{display:none}

.oleo2-launch{position:fixed;right:18px;bottom:18px;z-index:99998;border:0;cursor:pointer;background:var(--oleo2-launch,#25d366);color:#fff;border-radius:999px;padding:14px 20px;font-weight:800;font-size:15px;box-shadow:0 16px 36px rgba(7,19,38,.28);display:inline-flex;align-items:center;gap:8px;max-width:min(70vw,260px)}
.oleo2-launch .tx{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oleo2-panel{position:fixed;right:18px;bottom:84px;z-index:99999;width:min(392px,calc(100vw - 24px));height:min(600px,calc(100vh - 120px));background:#fff;color:var(--oleo2-ink,#0d1b2a);border-radius:18px;box-shadow:0 24px 60px rgba(7,19,38,.28);display:flex;flex-direction:column;overflow:hidden}
.oleo2-head{background:var(--oleo2-header,#075e54);color:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.oleo2-head b{font-size:15px}.oleo2-head small{display:block;color:#ffffffcc;font-size:11px}
.oleo2-headbtns{display:flex;align-items:center;gap:4px}
.oleo2-restart{background:none;border:1px solid #ffffff55;color:#fff;font-size:11px;border-radius:999px;padding:4px 10px;cursor:pointer}
.oleo2-head [data-x]{background:none;border:0;color:#fff;font-size:22px;cursor:pointer;width:44px;height:44px;line-height:1;display:grid;place-items:center}
.oleo2-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px;background:#efeae2;background-image:radial-gradient(rgba(0,0,0,.05) 1px,transparent 1px);background-size:14px 14px}
.oleo2-msg{max-width:85%;padding:9px 12px;border-radius:14px 14px 14px 4px;background:#fff;color:var(--oleo2-ink,#0d1b2a);box-shadow:0 1px 1px rgba(15,23,42,.1);margin-bottom:8px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.oleo2-msg.u{margin-left:auto;background:#dcf8c6;border-radius:14px 14px 4px 14px}
.oleo2-typing{display:inline-flex;gap:4px;padding:11px 14px;background:#fff;border-radius:14px;margin-bottom:8px}
.oleo2-typing i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:o2t 1.1s infinite}
.oleo2-typing i:nth-child(2){animation-delay:.15s}.oleo2-typing i:nth-child(3){animation-delay:.3s}
@keyframes o2t{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.oleo2-cards{display:flex;gap:8px;overflow-x:auto;margin:2px 0 10px}
.oleo2-card{min-width:180px;text-align:left;background:#fff;color:var(--oleo2-ink,#0d1b2a);border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;font-size:12.5px;cursor:pointer;transition:transform .1s,box-shadow .1s}
.oleo2-card:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(7,19,38,.12)}
.oleo2-card b{display:block;font-size:14px;font-weight:600;margin-bottom:2px}
.oleo2-card .p{color:var(--oleo2-accent,#ff4f17);font-weight:800;margin-top:3px}
.oleo2-card .s{color:#5a6b7f}
.oleo2-job{background:#eafaf0;border:1.5px solid #1faf5a;border-radius:14px;padding:12px;font-size:12.5px;color:var(--oleo2-ink,#0d1b2a);margin:2px 0 10px;white-space:pre-wrap}
.oleo2-job a{display:inline-block;margin-top:8px;background:var(--oleo2-launch,#25d366);color:#fff;text-decoration:none;font-weight:800;padding:9px 14px;border-radius:999px;font-size:13px}
.oleo2-wa{background:#fff;border:1.5px dashed #cbd5e1;border-radius:14px;padding:12px;font-size:12.5px;color:var(--oleo2-ink,#0d1b2a);margin:2px 0 10px}
.oleo2-wa span{display:block;color:#5a6b7f;margin-bottom:8px}
.oleo2-wa a{display:inline-block;background:var(--oleo2-launch,#25d366);color:#fff;text-decoration:none;font-weight:800;padding:9px 14px;border-radius:999px;font-size:13px}
.oleo2-form{display:flex;gap:8px;padding:10px;background:#f0f2f5;border-top:1px solid #e2e8f0}
.oleo2-form input{flex:1;border:0;border-radius:999px;padding:12px 15px;font-size:16px;color:var(--oleo2-ink,#0d1b2a);background:#fff}
.oleo2-form .oleo2-form-btn{border:0;border-radius:999px;padding:0 18px;font-weight:800;cursor:pointer;background:var(--oleo2-launch,#25d366);color:#fff;font-size:16px}
.oleo2-form .oleo2-form-btn.oleo2-clip{background:#fff;color:#54656f;border:1px solid #e2e8f0;padding:0 13px}
.oleo2-launch:focus-visible,.oleo2-panel button:focus-visible,.oleo2-panel input:focus-visible,.oleo2-card:focus-visible,.oleo2-demo-chip:focus-visible{outline:2px solid var(--oleo2-accent,#ff4f17);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.oleo2-typing i{animation:none}.oleo2-card,.oleo2-demo-chip{transition:none}}

/* ===== W9: on a phone the chat becomes the app, not a floating card ===== */
@media(max-width:600px){
  .oleo2-launch .tx{display:none}
  .oleo2-launch{padding:14px 16px}
  .oleo2-panel{
    inset:0;right:0;bottom:0;width:100%;
    height:100vh;height:100dvh;border-radius:0;
    padding-top:env(safe-area-inset-top,0px)
  }
  .oleo2-form{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}

/* ===== v3.3 demo / selling section ([oleo2_demo]) ===== */
.oleo2-demo{max-width:1020px;margin:0 auto;padding:8px 0 32px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:inherit}
.oleo2-demo-hero{text-align:center;padding:18px 12px 6px}
.oleo2-demo-hero h2{font-size:clamp(26px,4.2vw,38px);margin:0 0 10px;color:inherit;line-height:1.15}
.oleo2-demo-hero p{font-size:17px;color:inherit;opacity:.72;max-width:620px;margin:0 auto;line-height:1.55}
.oleo2-demo-try{color:var(--oleo2-ink,#0d1b2a);background:#f0fdf4;border:1.5px solid #bbf7d0;border-radius:18px;padding:22px;margin:22px 8px;text-align:center}
.oleo2-demo-try h3{margin:0 0 16px;font-size:18px;color:inherit}
.oleo2-demo-note{margin:14px 0 0;color:#64748b;font-size:13.5px}
.oleo2-demo-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.oleo2-demo-chip{border:0;cursor:pointer;background:#fff;color:var(--oleo2-ink,#0d1b2a);text-align:left;padding:14px 16px;border-radius:14px;border:1px solid #d7e9dc;box-shadow:0 4px 12px rgba(7,19,38,.06);transition:transform .12s,box-shadow .12s;font-family:inherit}
.oleo2-demo-chip:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(7,19,38,.1)}
.oleo2-demo-chip:disabled{opacity:.55;cursor:wait}
.oleo2-demo-chip.is-asking{border-color:var(--oleo2-launch,#25d366);box-shadow:0 0 0 2px var(--oleo2-launch,#25d366)}
.oleo2-demo-chip .q{display:block;font-weight:700;font-size:15px;margin-bottom:5px;color:var(--oleo2-header,#075e54)}
.oleo2-demo-chip small{display:block;font-size:12.5px;color:#5a6b7f;line-height:1.45}
.oleo2-demo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;padding:6px 8px}
.oleo2-demo-card{color:var(--oleo2-ink,#0d1b2a);background:#fff;border:1px solid #e2e8f0;border-left:4px solid var(--oleo2-accent,#ff4f17);border-radius:14px;padding:16px 18px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.oleo2-demo-card b{display:block;margin-bottom:6px;color:var(--oleo2-ink,#0d1b2a);font-size:15px}
.oleo2-demo-card p{margin:0;color:#5a6b7f;font-size:13.5px;line-height:1.5}
.oleo2-demo-cta{text-align:center;margin:26px 8px 4px;padding:26px 18px;background:var(--oleo2-header,#075e54);border-radius:18px}
.oleo2-demo-cta h3{margin:0 0 14px;color:#fff;font-size:20px}
.oleo2-demo-cta-btn{display:inline-block;background:var(--oleo2-launch,#25d366);color:#fff;text-decoration:none;font-weight:800;font-size:16px;padding:13px 26px;border-radius:999px;box-shadow:0 10px 26px rgba(0,0,0,.25)}
