/* The Oilscope assistant (assets/assistant.js): a chat button at the bottom right of every page, the map included. */
.oa { --oa-ink: #16100B; --oa-amber: #E3A445; --oa-dark: #0E1013; position: fixed; right: 20px; bottom: 20px; z-index: 1200; font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
.oa.on-map { bottom: 34px; }
.oa .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #3a2a1c 0%, var(--oa-dark) 70%); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 3px rgba(227, 164, 69, .55);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; animation: oa-in .6s cubic-bezier(.3, 1.5, .5, 1) 1.2s both; }
.oa-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6), 0 0 0 4px rgba(227, 164, 69, .8); }
.oa-btn svg { width: 30px; height: 30px; }
.oa-dot { position: absolute; right: 3px; bottom: 5px; width: 13px; height: 13px; border-radius: 50%; background: #2fb36a; border: 2.5px solid #fff; }
.oa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(227, 164, 69, .55); animation: oa-ring 2.6s ease-out 2s infinite; }
.oa.open .oa-btn::after { animation: none; }
@keyframes oa-ring { 0% { box-shadow: 0 0 0 0 rgba(227, 164, 69, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(227, 164, 69, 0); } }
@keyframes oa-in { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.oa-bubble { position: absolute; right: 74px; bottom: 6px; width: max-content; max-width: 240px; padding: 12px 34px 12px 16px; border-radius: 16px 16px 4px 16px; cursor: pointer;
  background: #fff; color: var(--oa-ink); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35); animation: oa-pop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.oa-bubble b { display: block; font-size: 15px; }
.oa-bubble span { display: block; margin-top: 2px; font-size: 13px; color: #6b5d4e; }
.oa-bx { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f1ebe3; color: #6b5d4e; cursor: pointer; line-height: 1; }
@keyframes oa-pop { from { transform: translateY(8px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.oa-panel { position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; color: var(--oa-ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  transform-origin: 100% 100%; animation: oa-open .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes oa-open { from { transform: translateY(14px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.oa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, #2a1d12 0%, #0e1013 100%); }
.oa-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(227, 164, 69, .7); }
.oa-av svg { width: 22px; height: 22px; }
.oa-head b { display: block; font-size: 15px; }
.oa-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.oa-head small i { width: 7px; height: 7px; border-radius: 50%; background: #2fb36a; }
.oa-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer; }
.oa-log { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 10px; background: #faf7f2; overscroll-behavior: contain; }
.oa-m { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: oa-msg .3s ease both; }
.oa-m.bot { align-self: flex-start; background: #fff; border: 1px solid #eee5d9; border-bottom-left-radius: 4px; }
.oa-m.me { align-self: flex-end; background: #1b130d; color: #fff; border-bottom-right-radius: 4px; }
.oa-m a { color: #9a5a12; font-weight: 600; }
.oa-m b { font-weight: 700; }
@keyframes oa-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.oa-typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.oa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9a77a; animation: oa-dot 1s infinite; }
.oa-typing i:nth-child(2) { animation-delay: .15s; } .oa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes oa-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.oa-hand { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.oa-hand input { flex: 1 1 140px; min-width: 0; padding: 8px 10px; border: 1px solid #e3d6c4; border-radius: 10px; font: inherit; font-size: 13px; }
.oa-hand button { padding: 8px 12px; border: 0; border-radius: 10px; background: #1b130d; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.oa-ok { margin: 6px 0 0; color: #1d6b3c; font-weight: 600; }
.oa-chips { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; background: #faf7f2; scrollbar-width: none; }
.oa-chips button { flex: none; padding: 7px 12px; border: 1px solid #e3d6c4; border-radius: 999px; background: #fff; color: var(--oa-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.oa-chips button:hover { border-color: #9a5a12; background: #fff7ec; }
.oa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee5d9; background: #fff; }
.oa-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #e3d6c4; border-radius: 999px; font: inherit; font-size: 14px; background: #faf7f2; color: var(--oa-ink); }
.oa-form input:focus { outline: none; border-color: var(--oa-amber); box-shadow: 0 0 0 4px rgba(227, 164, 69, .2); background: #fff; }
.oa-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, #e3a445, #c46a1b); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.oa-fine { margin: 0; padding: 0 14px 10px; font-size: 11px; color: #8a7a68; background: #fff; }
@media (max-width: 520px) { .oa { right: 14px; bottom: 14px; } .oa-btn { width: 54px; height: 54px; } .oa-panel { bottom: 66px; height: min(560px, calc(100svh - 100px)); } .oa-bubble { max-width: 200px; } }
@media (prefers-reduced-motion: reduce) { .oa-btn, .oa-btn::after, .oa-panel, .oa-bubble, .oa-m { animation: none; } }
@media print { .oa { display: none !important; } }
.oa-panel[hidden], .oa-bubble[hidden] { display: none !important; }
.dl-open .oa, .intro .oa { display: none; }
/* live chat with a person */
.oa-n { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e4572e; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; display: none; }
.oa.has-new .oa-n { display: block; }
.oa-m.agent { align-self: flex-start; background: #fff7ec; border: 1px solid #f0c98e; border-bottom-left-radius: 4px; }
.oa-who { display: block; font-size: 11px; font-weight: 700; color: #9a5a12; margin-bottom: 2px; }
.oa-m.sys { align-self: center; max-width: 95%; background: transparent; padding: 2px 6px; }
.oa-sys { display: inline-block; font-size: 12px; color: #8a7a68; text-align: center; }
.oa-live { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #9a5a12; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
