/* ==========================================================================
   Oilbert teaser widget — Direction C "Warm & approachable" (mobile-first)
   LM blue #004a99 / deep #003a78 · LM red #e1000f
   Full-screen chat on phones, bottom-right card on desktop. Keyboard-safe
   (widget.js sizes the open panel to visualViewport.height on mobile).
   ========================================================================== */
#oilbert-teaser-root{
  --obt-blue:#004a99; --obt-blue-dk:#003a78; --obt-red:#e1000f; --obt-red-dk:#b8000c;
  --canvas:#eef1f6; --canvas-2:#e7ebf2; --surface:#fff;
  --bubble-border:#dfe4ee; --chip-border:#c9d2e0;
  --ink:#1c232e; --ink-soft:#4a5563; --ink-faint:#6b7480;
  --pill:999px; --tap:52px;
  --shadow-soft:0 1px 2px rgba(16,32,64,.06),0 6px 18px rgba(16,32,64,.06);
  --shadow-lift:0 8px 30px rgba(16,32,64,.14);
  position:fixed; right:22px; bottom:22px; z-index:99999;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
#oilbert-teaser-root *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
#oilbert-teaser-root :focus-visible{outline:3px solid var(--obt-blue);outline-offset:2px;border-radius:8px}

/* ---- Launcher (fab) ------------------------------------------------------ */
.obt-launch{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  background:#fff;border-radius:40px;padding:7px 18px 7px 7px;
  box-shadow:0 6px 22px rgba(0,40,90,.22);border:1px solid var(--chip-border);
  transition:transform .15s ease,box-shadow .15s ease;
}
.obt-launch:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,40,90,.28)}
.obt-launch img{width:46px;height:46px;border-radius:50%;display:block;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.obt-launch .obt-launch-txt{display:flex;flex-direction:column;line-height:1.15}
.obt-launch .obt-launch-txt b{font-size:15px;color:var(--obt-blue);font-weight:800}
.obt-launch .obt-launch-txt span{font-size:11.5px;color:var(--ink-faint)}
.obt-launch .obt-dot{width:9px;height:9px;border-radius:50%;background:#21b15a;
  margin-left:2px;box-shadow:0 0 0 3px rgba(33,177,90,.18)}
@media (max-width:480px){
  .obt-launch{padding:6px}.obt-launch .obt-launch-txt,.obt-launch .obt-dot{display:none}
  .obt-launch img{width:54px;height:54px}
}

/* ---- Panel --------------------------------------------------------------- */
.obt-panel{
  position:relative; /* positioning context for the bottom-sheet wall overlay */
  display:none;flex-direction:column;width:420px;max-width:94vw;
  height:640px;max-height:86vh;background:var(--canvas);
  border-radius:24px;box-shadow:var(--shadow-lift);
  overflow:hidden;border:1px solid #b8c2d4;
}
.obt-panel.open{display:flex}

/* ---- Header -------------------------------------------------------------- */
.obt-head{
  flex:0 0 auto;display:flex;align-items:center;gap:11px;
  padding:calc(env(safe-area-inset-top,0px) + 12px) 12px 12px;
  background:linear-gradient(135deg,var(--obt-blue) 0%,var(--obt-blue-dk) 100%);
  color:#fff;box-shadow:0 2px 10px rgba(0,58,120,.28);z-index:5;
}
.obt-head img{width:44px;height:44px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 2px rgba(255,255,255,.6)}
.obt-head .obt-id{flex:1 1 auto;min-width:44px;line-height:1.15}
.obt-head .obt-id b{font-size:18px;font-weight:800;letter-spacing:.2px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.obt-head .obt-id span{font-size:12.5px;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;margin-top:2px}
.obt-quota{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.34);border-radius:var(--pill);padding:6px 11px;
  font-size:12.5px;font-weight:700;white-space:nowrap;flex:0 0 auto}
.obt-quota .obt-qdot{width:8px;height:8px;border-radius:50%;background:#7ee29a;box-shadow:0 0 0 2px rgba(126,226,154,.35);flex:0 0 auto}
.obt-quota.low .obt-qdot{background:#ffd166;box-shadow:0 0 0 2px rgba(255,209,102,.35)}
.obt-getapp{display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--obt-blue-dk);
  border-radius:var(--pill);padding:0 13px;min-height:40px;font-size:13px;font-weight:800;
  text-decoration:none;white-space:nowrap;flex:0 0 auto}
.obt-getapp:active{transform:translateY(1px)}
.obt-getapp-short{display:none} /* short label swaps in on mobile to save header width */
.obt-x{flex:0 0 auto;width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:14px;
  color:#fff;font-size:22px;line-height:1;cursor:pointer}
.obt-x:hover{background:rgba(255,255,255,.22)}

/* ---- Messages ------------------------------------------------------------ */
.obt-msgs{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:18px 14px 8px;display:flex;flex-direction:column;gap:16px;
  background:radial-gradient(1200px 240px at 50% -80px,rgba(0,74,153,.06),transparent 70%),var(--canvas)}
.obt-msgs::-webkit-scrollbar{width:7px}
.obt-msgs::-webkit-scrollbar-thumb{background:#c3ccda;border-radius:4px}

.obt-row{display:flex;gap:10px;align-items:flex-end;max-width:100%}
.obt-row.user{justify-content:flex-end}
.obt-row .obt-ava{width:40px;height:40px;border-radius:50%;flex:0 0 40px;align-self:flex-start;
  margin-top:2px;box-shadow:var(--shadow-soft)}
.obt-msg{max-width:80%;padding:14px 16px;font-size:16.5px;line-height:1.5;border-radius:22px;
  box-shadow:var(--shadow-soft);word-wrap:break-word;overflow-wrap:anywhere}
.obt-msg.bot{background:#fff;color:var(--ink);border:1px solid var(--bubble-border);border-bottom-left-radius:8px}
.obt-msg.user{background:var(--obt-blue);color:#fff;border-bottom-right-radius:8px}
.obt-msg.bot p{margin:0 0 8px}.obt-msg.bot p:last-child{margin-bottom:0}
.obt-msg.bot ul{margin:8px 0;padding-left:20px}.obt-msg.bot li{margin:4px 0}
.obt-msg.bot strong{font-weight:800}

.obt-typing{display:inline-flex;gap:5px;align-items:center;padding:2px}
.obt-typing i{width:9px;height:9px;border-radius:50%;background:#9aa6b6;display:inline-block;animation:obt-bob 1.2s infinite ease-in-out}
.obt-typing i:nth-child(2){animation-delay:.18s}.obt-typing i:nth-child(3){animation-delay:.36s}
@keyframes obt-bob{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}

/* product line + chips inside a bot bubble */
.obt-chip{display:inline-block;background:#eef4fb;border:1px solid #cfe0f3;border-radius:8px;
  padding:0 7px;font-size:14.5px;font-weight:700;color:var(--obt-blue-dk);white-space:nowrap;line-height:1.7}
.obt-sku{color:var(--obt-blue);text-decoration:none;font-weight:700}
.obt-sku:hover{text-decoration:underline}
.obt-link{color:var(--obt-blue)}
.obt-tds{display:inline-flex;align-items:center;gap:5px;background:var(--obt-red);color:#fff;
  border:1px solid var(--obt-red-dk);border-radius:var(--pill);padding:5px 11px;font-size:13px;
  font-weight:800;letter-spacing:.3px;text-decoration:none;vertical-align:middle;white-space:nowrap;min-height:32px}
.obt-tds-ico{background:#fff;color:var(--obt-red);border-radius:3px;font-size:8.5px;padding:0 3px;font-weight:800;letter-spacing:.3px}

/* ---- Welcome / empty state ---------------------------------------------- */
.obt-welcome{margin:auto;text-align:center;padding:24px 18px 8px;max-width:360px}
.obt-welcome img{width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:var(--shadow-lift);margin:0 auto 16px;display:block}
.obt-welcome h3{font-size:23px;margin:0 0 8px;color:var(--obt-blue-dk);font-weight:800;letter-spacing:.2px}
.obt-welcome p{font-size:16px;line-height:1.55;color:var(--ink-soft);margin:0 auto 20px;max-width:300px}
.obt-sugs{display:flex;flex-direction:column;gap:11px}
.obt-sug{display:inline-flex;align-items:center;gap:10px;width:100%;text-align:left;
  background:#fff;border:1.5px solid var(--chip-border);border-radius:18px;padding:15px 16px;
  min-height:var(--tap);font-size:16px;font-weight:650;color:var(--ink);cursor:pointer;
  box-shadow:var(--shadow-soft);font-family:inherit}
.obt-sug:active{transform:translateY(1px);background:#f4f7fc}

/* ---- Composer ------------------------------------------------------------ */
.obt-foot{flex:0 0 auto;display:flex;align-items:flex-end;gap:10px;background:var(--surface);
  border-top:1px solid #dbe1ec;padding:10px 12px calc(env(safe-area-inset-bottom,0px) + 10px);
  box-shadow:0 -3px 14px rgba(16,32,64,.06);z-index:5}
.obt-foot input{flex:1 1 auto;border:1.5px solid var(--chip-border);border-radius:var(--pill);
  background:var(--canvas);padding:0 16px;min-height:var(--tap);font-size:16.5px;color:var(--ink);
  outline:none;font-family:inherit}
.obt-foot input:focus{border-color:var(--obt-blue);background:#fff;box-shadow:0 0 0 3px rgba(0,74,153,.18)}
.obt-foot input::placeholder{color:var(--ink-faint)}
.obt-foot button{flex:0 0 auto;width:var(--tap);height:var(--tap);border:0;border-radius:50%;
  background:var(--obt-blue);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.obt-foot button:hover:not(:disabled){background:var(--obt-blue-dk)}
.obt-foot button:disabled{background:#a9b6c9;cursor:default}
.obt-foot button svg{width:22px;height:22px;display:block}

/* ---- App-download wall (bottom sheet) ----------------------------------- */
.obt-cta{position:absolute;inset:0;background:rgba(12,24,44,.55);display:none;
  align-items:flex-end;z-index:20}
.obt-cta.show{display:flex}
.obt-sheet{width:100%;background:var(--surface);border-radius:26px 26px 0 0;
  padding:20px 20px calc(env(safe-area-inset-bottom,0px) + 20px);box-shadow:var(--shadow-lift);
  animation:obt-rise .28s ease;max-height:92%;overflow-y:auto}
@keyframes obt-rise{from{transform:translateY(24px);opacity:.6}to{transform:translateY(0);opacity:1}}
.obt-sheet .obt-grip{width:44px;height:5px;border-radius:3px;background:#d3dae6;margin:0 auto 16px}
.obt-sheet img.obt-wall-ava{width:72px;height:72px;border-radius:50%;box-shadow:var(--shadow-lift);display:block;margin:0 auto 14px}
.obt-sheet h4{font-size:22px;text-align:center;margin:0 0 6px;color:var(--obt-blue-dk);font-weight:800}
.obt-sheet .obt-lede{font-size:15.5px;text-align:center;color:var(--ink-soft);margin:0 0 18px;line-height:1.5}
.obt-benefits{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:12px}
.obt-benefits li{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;color:var(--ink);line-height:1.4}
.obt-benefits .obt-bi{width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:rgba(0,74,153,.10);
  display:flex;align-items:center;justify-content:center;color:var(--obt-blue);font-weight:900;font-size:15px}
.obt-benefits b{font-weight:800}
.obt-getapp-big{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;
  background:var(--obt-red);color:#fff;border:none;border-radius:16px;font-size:17.5px;font-weight:800;
  letter-spacing:.2px;cursor:pointer;text-decoration:none}
.obt-getapp-big:active{transform:translateY(1px)}
.obt-dismiss{display:block;width:100%;text-align:center;background:none;border:none;color:var(--ink-faint);
  font-size:14px;font-weight:600;padding:14px 8px 2px;margin-top:6px;cursor:pointer;min-height:44px;font-family:inherit}
.obt-dismiss u{color:var(--obt-blue)}

/* ---- Mobile: full-screen + notch-safe ----------------------------------- */
@media (max-width:600px){
  #oilbert-teaser-root{right:14px;bottom:14px}
  .obt-panel{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;height:100dvh;
    max-width:none;max-height:none;border-radius:0}
  /* Header is tight on phones: give the name room by shrinking the controls.
     Drop the subtitle, compact the quota to just the dot + number, and use
     the short "Get app" label. */
  .obt-head{gap:8px}
  .obt-head .obt-id span{display:none}
  .obt-quota{padding:6px 10px}
  .obt-quota .obt-qword{display:none}
  .obt-getapp-long{display:none}
  .obt-getapp-short{display:inline}
}
html.obt-noscroll,body.obt-noscroll{overflow:hidden}
@media (min-width:601px){html.obt-noscroll,body.obt-noscroll{overflow:auto}}

@media (prefers-reduced-motion:reduce){
  #oilbert-teaser-root *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition:none !important}
}
