/* OurPlat Live Support chat bubble (js/ourchat.js). Self-contained: works on the old pages and the v2 pages.
   Same warm black and gold as the v2 design. */
.oc-root { --oc-bg: #17120E; --oc-raised: #221A13; --oc-line: #3A3027; --oc-text: #F6EEDD; --oc-muted: #BBB0A0;
    --oc-gold: #F5AA28; --oc-btn: #F08A1C; --oc-btn-text: #1A1206; --oc-bad: #F08A7A;
    position: fixed; right: 16px; bottom: 16px; z-index: 2147483000;
    font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--oc-text); }
.oc-root *, .oc-root *::before, .oc-root *::after { box-sizing: border-box; }
.oc-root [hidden] { display: none !important; }
.oc-btn { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 12px 18px; border: 0; border-radius: 999px;
    background: var(--oc-btn); color: var(--oc-btn-text); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.oc-btn:hover { background: #F6A040; }
.oc-btn:focus-visible, .oc-root button:focus-visible, .oc-root input:focus-visible, .oc-root textarea:focus-visible { outline: 2px solid var(--oc-gold); outline-offset: 2px; }
.oc-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    background: #D93A2B; color: #fff; font: 700 12px/22px inherit; font-family: inherit; text-align: center; }
.oc-panel { display: none; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 96px);
    margin-bottom: 12px; background: var(--oc-bg); border: 1px solid var(--oc-line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.oc-open .oc-panel { display: flex; }
.oc-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; background: #2A1E12; border-bottom: 1px solid var(--oc-line); }
.oc-head-text { flex: 1; min-width: 0; }
.oc-title { font-weight: 700; color: var(--oc-gold); }
.oc-status { font-size: 13px; color: var(--oc-muted); }
.oc-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #888; vertical-align: 1px; }
.oc-status.oc-on::before { background: #7FD88F; }
.oc-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--oc-text); font-size: 24px; line-height: 1; cursor: pointer; }
.oc-x:hover { background: rgba(255, 255, 255, .08); }
.oc-log { flex: 1; overflow-y: auto; padding: 12px 14px; }
.oc-msg { margin: 0 0 10px; max-width: 85%; }
.oc-visitor { margin-left: auto; text-align: right; }
.oc-who { font-size: 12px; color: var(--oc-muted); margin: 0 4px 2px; }
.oc-bubble { display: inline-block; padding: 8px 12px; border-radius: 12px; background: var(--oc-raised); text-align: left;
    white-space: pre-wrap; overflow-wrap: anywhere; }
.oc-visitor .oc-bubble { background: #4A3215; }
.oc-bubble a { color: var(--oc-gold); }
.oc-system { max-width: 100%; text-align: center; }
.oc-system .oc-bubble { background: transparent; color: var(--oc-muted); font-size: 13px; padding: 2px 8px; text-align: center; }
.oc-typing { padding: 0 14px 6px; font-size: 13px; color: var(--oc-muted); font-style: italic; }
.oc-form { flex: 1; overflow-y: auto; padding: 12px 14px; }
.oc-intro { margin: 0 0 10px; color: var(--oc-muted); }
.oc-field { display: block; margin: 0 0 10px; font-size: 13px; color: var(--oc-muted); }
.oc-field span { display: block; margin-bottom: 3px; }
.oc-root input, .oc-root textarea { width: 100%; padding: 9px 10px; border: 1px solid #4A3F35; border-radius: 8px; background: #0F0B08;
    color: var(--oc-text); font: 15px/1.4 inherit; font-family: inherit; resize: vertical; }
.oc-send-btn { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--oc-btn); color: var(--oc-btn-text); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.oc-send-btn:hover { background: #F6A040; }
.oc-send-btn:disabled { opacity: .6; cursor: default; }
.oc-form .oc-send-btn { width: 100%; }
.oc-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid var(--oc-line); }
.oc-box { flex: 1; resize: none !important; max-height: 120px; }
.oc-foot { display: flex; justify-content: center; padding: 0 14px 10px; }
.oc-link { border: 0; background: none; color: var(--oc-muted); font: 13px/1.4 inherit; font-family: inherit; text-decoration: underline; cursor: pointer; }
.oc-err { margin: 0 14px 8px; color: var(--oc-bad); font-size: 13px; }
.oc-form .oc-err { margin: 0 0 8px; }
/* chat.php: the chat fills the page */
.oc-full { position: static; }
.oc-full .oc-panel { display: flex; width: 100%; max-width: 640px; height: calc(100vh - 32px); max-height: none; margin: 16px auto; }
@media (max-width: 480px) {
    .oc-root { right: 12px; bottom: 12px; }
    .oc-btn-label { display: none; }
    .oc-btn { padding: 14px; }
    .oc-open:not(.oc-full) { top: 0; left: 0; right: 0; bottom: 0; }
    .oc-open:not(.oc-full) .oc-btn { display: none; }
    .oc-open:not(.oc-full) .oc-panel { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; border: 0; }
    .oc-root input, .oc-root textarea { font-size: 16px; } /* stops iPhones zooming in */
}
