
:root{
  --oc-gold:#e0b900;
  --oc-gold-dark:#b99000;
  --oc-black:#111;
  --oc-border:#e8e5dc;
  --oc-ivory:#fffdf8;
  --oc-green:#287748;
}
.orilom-chat{position:fixed;right:22px;bottom:86px;z-index:99992;font-family:Arial,Helvetica,sans-serif}
.orilom-chat__launcher{
  display:flex;align-items:center;gap:9px;height:46px;padding:0 14px;border:1px solid #d7b100;
  border-radius:999px;background:linear-gradient(180deg,#edc914,#dbb000);color:#111;
  box-shadow:0 12px 28px rgba(17,17,17,.16);cursor:pointer;font-size:11px;font-weight:900;letter-spacing:.02em;
  transition:transform .18s ease,box-shadow .18s ease
}
.orilom-chat__launcher:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(17,17,17,.2)}
.orilom-chat__launcher-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#111;color:#e0b900;font-size:12px}
.orilom-chat__panel{
  position:absolute;right:0;bottom:58px;width:min(382px,calc(100vw - 24px));height:560px;max-height:calc(100vh - 130px);
  display:grid;grid-template-rows:auto 1fr auto auto auto;overflow:hidden;border:1px solid #dedbd2;border-radius:16px;
  background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);
  transform-origin:bottom right;transition:opacity .2s ease,transform .2s ease,visibility .2s
}
.orilom-chat.is-open .orilom-chat__panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.orilom-chat__header{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;border-bottom:1px solid var(--oc-border);background:#111;color:#fff}
.orilom-chat__brand{display:flex;align-items:center;gap:10px}
.orilom-chat__mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d7b100;border-radius:50%;font:700 17px Georgia,serif;color:#e0b900}
.orilom-chat__brand strong{display:block;font-size:12px;letter-spacing:.02em}
.orilom-chat__brand small{display:flex;align-items:center;gap:5px;margin-top:3px;color:#c9c9c9;font-size:8px;font-weight:600}
.orilom-chat__brand small i{width:6px;height:6px;border-radius:50%;background:#52b777;box-shadow:0 0 0 3px rgba(82,183,119,.12)}
.orilom-chat__close{border:0;background:transparent;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.orilom-chat__messages{overflow:auto;padding:15px;background:linear-gradient(180deg,#fff,#fcfbf8);scroll-behavior:smooth}
.orilom-chat__msg{display:flex;margin:0 0 10px}
.orilom-chat__msg--user{justify-content:flex-end}
.orilom-chat__bubble{max-width:84%;padding:10px 11px;border-radius:12px;font-size:10px;line-height:1.5}
.orilom-chat__msg--bot .orilom-chat__bubble{background:#f5f4f0;color:#222;border-bottom-left-radius:4px}
.orilom-chat__msg--user .orilom-chat__bubble{background:#111;color:#fff;border-bottom-right-radius:4px}
.orilom-chat__products{display:grid;gap:7px;margin-top:8px}
.orilom-chat__product{display:grid;grid-template-columns:48px 1fr auto;gap:8px;align-items:center;padding:7px;border:1px solid #e6e3da;border-radius:9px;background:#fff;text-decoration:none;color:#111}
.orilom-chat__product img{width:48px;height:48px;object-fit:contain;background:#fafafa}
.orilom-chat__product strong{display:block;font-size:9px;line-height:1.25}
.orilom-chat__product small{display:block;margin-top:3px;color:#777;font-size:8px}
.orilom-chat__product b{font-size:13px;color:#b99000}
.orilom-chat__actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.orilom-chat__actions a,.orilom-chat__actions button{
  min-height:29px;padding:0 9px;border-radius:6px;border:1px solid #111;background:#fff;color:#111;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;font-size:7.5px;font-weight:850;cursor:pointer
}
.orilom-chat__actions .is-primary{background:#e0b900;border-color:#c8a500}
.orilom-chat__quick{display:flex;gap:6px;overflow-x:auto;padding:9px 12px;border-top:1px solid #ece9e0;background:#fff;scrollbar-width:none}
.orilom-chat__quick::-webkit-scrollbar{display:none}
.orilom-chat__quick button{flex:0 0 auto;min-height:28px;padding:0 9px;border:1px solid #e5e1d5;border-radius:999px;background:#fff;color:#333;font-size:7.5px;font-weight:800;cursor:pointer}
.orilom-chat__quick button:hover{border-color:#d6b300;background:#fffaf0}
.orilom-chat__composer{display:grid;grid-template-columns:1fr 42px;gap:7px;padding:10px 12px;border-top:1px solid #ece9e0;background:#fff}
.orilom-chat__composer input{height:39px;padding:0 12px;border:1px solid #ddd9cf;border-radius:8px;outline:0;font-size:10px}
.orilom-chat__composer input:focus{border-color:#b99000;box-shadow:0 0 0 3px rgba(224,185,0,.08)}
.orilom-chat__composer button{height:39px;border:0;border-radius:8px;background:#111;color:#e0b900;font-size:18px;font-weight:700;cursor:pointer}
.orilom-chat__footer{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;border-top:1px solid #eeeae1;background:#faf9f6;color:#777;font-size:7px}
.orilom-chat__footer a{color:#287748;font-weight:800;text-decoration:none}
@media(max-width:640px){
  .orilom-chat{right:12px;bottom:76px}
  .orilom-chat__launcher-text{display:none}
  .orilom-chat__launcher{width:46px;padding:0;justify-content:center}
  .orilom-chat__panel{position:fixed;left:10px;right:10px;bottom:72px;width:auto;height:min(620px,calc(100vh - 90px));max-height:none}
}
@media(prefers-reduced-motion:reduce){
  .orilom-chat__launcher,.orilom-chat__panel{transition:none!important}
}


/* ORILOM Smart Chatbot V2 */
.orilom-chat__bubble ul{margin:7px 0 0;padding-left:16px}
.orilom-chat__bubble li{margin:3px 0}
.orilom-chat__actions button{
  min-height:29px;padding:0 9px;border-radius:6px;border:1px solid #d9d5ca;background:#fff;color:#111;
  display:inline-flex;align-items:center;justify-content:center;font-size:7.5px;font-weight:850;cursor:pointer
}
.orilom-chat__actions button:hover{border-color:#d6b300;background:#fffaf0}
.orilom-chat__bubble > small{font-size:7px;line-height:1.35}


/* =========================================================
   ORILOM Smart Chatbot V3 — Product cards / overflow fix
   ========================================================= */

.orilom-chat__messages,
.orilom-chat__bubble{
  min-width:0;
  max-width:100%;
}

.orilom-chat__bubble{
  overflow-wrap:anywhere;
}

.orilom-chat__products{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin-top:9px;
}

.orilom-chat__product{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;

  display:grid;
  grid-template-columns:54px minmax(0,1fr) 18px;
  gap:9px;
  align-items:center;

  padding:8px;
  overflow:hidden;

  border:1px solid #e5e1d7;
  border-radius:10px;
  background:#fff;

  text-decoration:none;
  color:#111;
}

.orilom-chat__product img{
  display:block;
  width:54px;
  height:54px;
  max-width:54px;
  object-fit:contain;
  background:#fafafa;
  border-radius:6px;
}

.orilom-chat__product-copy{
  display:block;
  min-width:0;
  overflow:hidden;
}

.orilom-chat__product-copy strong{
  display:-webkit-box;
  min-width:0;
  overflow:hidden;

  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  font-size:9.5px;
  line-height:1.25;
  font-weight:850;
  color:#161616;
}

.orilom-chat__product-copy small.orilom-chat__price{
  display:block;
  margin-top:4px;

  white-space:normal;
  overflow-wrap:anywhere;

  color:#9a7600;
  font-size:8.5px;
  line-height:1.25;
  font-weight:800;
}

.orilom-chat__product-copy em{
  display:block;
  margin-top:3px;

  color:#777;
  font-size:7px;
  line-height:1.25;
  font-style:normal;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.orilom-chat__product > b{
  align-self:center;
  justify-self:end;
  color:#b99000;
  font-size:14px;
}

.orilom-chat__note{
  display:block;
  margin-top:8px;
  color:#7e7e7e;
  font-size:7px;
  line-height:1.4;
}

.orilom-chat__compare{
  display:grid;
  gap:6px;
  margin:8px 0 0!important;
  padding:0!important;
  list-style:none;
}

.orilom-chat__compare li{
  padding:7px 8px;
  border:1px solid #e7e3d9;
  border-radius:7px;
  background:#fff;
}

.orilom-chat__compare small{
  color:#9a7600;
  font-size:7.5px;
  font-weight:700;
}

.orilom-chat__panel{
  overflow:hidden;
}

.orilom-chat__messages{
  overflow-x:hidden!important;
}

@media(max-width:640px){
  .orilom-chat__product{
    grid-template-columns:48px minmax(0,1fr) 16px;
    gap:7px;
  }

  .orilom-chat__product img{
    width:48px;
    height:48px;
    max-width:48px;
  }
}


/* =========================================================
   ORILOM AI Chatbot V4 — conversational polish
   ========================================================= */
.orilom-chat__typing{display:inline-flex;align-items:center;gap:4px;min-width:34px}
.orilom-chat__typing i{display:block;width:5px;height:5px;border-radius:50%;background:#888;animation:orilomTyping 1s ease-in-out infinite}
.orilom-chat__typing i:nth-child(2){animation-delay:.14s}
.orilom-chat__typing i:nth-child(3){animation-delay:.28s}
@keyframes orilomTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
.orilom-chat__composer input:disabled{opacity:.65;cursor:wait}
