/* ONTEL Chat for WhatsApp & Slack - front end */
.oc-root,.oc-root *{box-sizing:border-box}
.oc-root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;color:#1d2327}
.oc-root button{font-family:inherit}
.oc-root [hidden]{display:none!important}

/* ---- Product page button (theme-proof) ---- */
button.ontel-chat-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--oc-btn-bg,#0b5cff)!important;color:var(--oc-btn-fg,#fff)!important;border:0!important;border-radius:var(--oc-btn-radius,4px)!important;padding:0 20px!important;min-height:48px;margin:0 10px 10px 0;font:inherit;font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer;box-shadow:none;transition:filter .15s ease,transform .1s ease;width:auto;float:none}
button.ontel-chat-btn:hover,button.ontel-chat-btn:focus-visible{filter:brightness(.92)}
button.ontel-chat-btn:focus-visible{outline:2px solid var(--oc-btn-bg,#0b5cff);outline-offset:2px}
button.ontel-chat-btn:active{transform:translateY(1px)}
button.ontel-chat-btn .ontel-chat-btn__icon{flex:0 0 auto;display:block}
button.ontel-chat-btn span{color:inherit!important}

/* ---- Floating WhatsApp ---- */
.oc-wa{position:fixed;z-index:99990;bottom:var(--oc-y,20px)}
.oc-wa--left{left:var(--oc-x,20px)}
.oc-wa--right{right:var(--oc-x,20px)}
.oc-wa__btn{position:relative;display:flex;align-items:center;justify-content:center;width:var(--oc-size,60px);height:var(--oc-size,60px);border-radius:50%;border:0;padding:0;background:var(--oc-wa,#25d366);color:#fff;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.28);transition:transform .15s ease,box-shadow .15s ease}
.oc-wa__btn:hover{transform:scale(1.06);box-shadow:0 5px 16px rgba(0,0,0,.32)}
.oc-wa__btn:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:0 0 0 3px var(--oc-wa,#25d366)}
.oc-wa__btn svg{width:56%;height:56%;fill:currentColor;display:block}
.oc-wa__dot{position:absolute;right:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#9aa0a6;border:2px solid #fff}
.oc-wa--online .oc-wa__dot{background:#34c759}
.oc-wa__box{position:absolute;bottom:calc(var(--oc-size,60px) + 12px);width:330px;max-width:calc(100vw - 2 * var(--oc-x,20px));background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.28)}
.oc-wa--left .oc-wa__box{left:0}
.oc-wa--right .oc-wa__box{right:0}
.oc-wa__head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--oc-wa,#25d366);color:#fff}
.oc-wa__avatar{flex:0 0 auto;width:48px;height:48px;border-radius:50%;object-fit:cover;background:#fff3;border:2px solid #fff8}
.oc-wa__who{flex:1 1 auto;min-width:0}
.oc-wa__name{font-weight:700;font-size:16px;line-height:1.2}
.oc-wa__role{font-size:13px;opacity:.9}
.oc-wa__status{font-size:12px;opacity:.9;display:flex;align-items:center;gap:5px;margin-top:2px}
.oc-wa__status i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#fff;opacity:.9}
.oc-wa--offline .oc-wa__status i{background:#d0d0d0}
.oc-x{flex:0 0 auto;background:transparent;border:0;color:inherit;font-size:26px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:6px;opacity:.9}
.oc-x:hover{opacity:1;background:#ffffff26}
.oc-wa__body{padding:16px;background:#ece5dd}
.oc-wa__bubble{position:relative;background:#fff;border-radius:0 12px 12px 12px;padding:10px 12px;font-size:14.5px;box-shadow:0 1px 1px rgba(0,0,0,.12);white-space:pre-line}
.oc-wa__foot{padding:12px 16px 14px;background:#fff}
.oc-wa__note{font-size:12.5px;color:#5f6368;margin:0 0 10px}
.oc-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 14px;border-radius:999px;border:0;font-weight:600;font-size:15px;text-decoration:none;cursor:pointer;margin:0 0 8px;line-height:1.2}
.oc-cta:last-child{margin-bottom:0}
.oc-cta--wa{background:var(--oc-wa,#25d366);color:#fff!important}
.oc-cta--wa svg{width:20px;height:20px;fill:currentColor}
.oc-cta--chat{background:#fff;color:var(--oc-accent,#0b5cff)!important;border:2px solid var(--oc-accent,#0b5cff)}
.oc-cta:hover{filter:brightness(.94)}

/* ---- Launcher (reopen chat) ---- */
.oc-launch{position:fixed;z-index:99989;bottom:20px;width:56px;height:56px;border-radius:50%;border:0;padding:0;background:var(--oc-accent,#0b5cff);color:var(--oc-accent-fg,#fff);cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center}
.oc-launch--right{right:20px}
.oc-launch--left{left:20px}
.oc-launch svg{width:26px;height:26px;fill:currentColor}
.oc-launch__badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#d63638;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;padding:0 5px}

/* ---- Chat window ---- */
.oc-win{position:fixed;z-index:99995;bottom:20px;width:370px;max-width:calc(100vw - 24px);height:min(580px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.oc-win--right{right:20px}
.oc-win--left{left:20px}
.oc-win__head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;background:var(--oc-accent,#0b5cff);color:var(--oc-accent-fg,#fff)}
.oc-win__titles{flex:1 1 auto;min-width:0}
.oc-win__title{font-weight:700;font-size:16px;line-height:1.2}
.oc-win__sub{font-size:12.5px;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oc-win__body{flex:1 1 auto;overflow-y:auto;padding:14px;background:#f4f5f7;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.oc-msg{max-width:84%;padding:8px 11px;border-radius:12px;font-size:14.5px;word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap}
.oc-msg a{color:inherit;text-decoration:underline}
.oc-msg--s{align-self:flex-start;background:#fff;border:1px solid #e3e5e8;border-bottom-left-radius:3px}
.oc-msg--c{align-self:flex-end;background:var(--oc-accent,#0b5cff);color:var(--oc-accent-fg,#fff);border-bottom-right-radius:3px}
.oc-msg--c.is-pending{opacity:.6}
.oc-msg__meta{display:block;font-size:11px;opacity:.7;margin-top:3px;white-space:normal}
.oc-msg__who{display:block;font-size:12px;font-weight:700;margin-bottom:2px;white-space:normal}
.oc-note{align-self:center;text-align:center;font-size:12.5px;color:#5f6368;max-width:92%;padding:2px 6px;white-space:normal}
.oc-win__foot{flex:0 0 auto;border-top:1px solid #e3e5e8;background:#fff;padding:10px 12px 12px}
.oc-fields{display:grid;gap:6px;margin-bottom:8px}
.oc-fields label{display:block;font-size:12px;color:#50575e;margin-bottom:2px}
.oc-fields small{display:block;font-size:11.5px;color:#6b7280;margin-top:2px}
.oc-in,.oc-ta{width:100%;border:1px solid #c3c4c7;border-radius:8px;padding:8px 10px;font:inherit;font-size:15px;background:#fff;color:#1d2327;box-shadow:none;margin:0}
.oc-in:focus,.oc-ta:focus{outline:2px solid var(--oc-accent,#0b5cff);outline-offset:0;border-color:var(--oc-accent,#0b5cff)}
.oc-compose{display:flex;gap:8px;align-items:flex-end}
.oc-ta{resize:none;min-height:40px;max-height:120px;line-height:1.35;flex:1 1 auto}
.oc-send{flex:0 0 auto;height:40px;padding:0 16px;border:0;border-radius:8px;background:var(--oc-accent,#0b5cff);color:var(--oc-accent-fg,#fff);font-weight:600;font-size:15px;cursor:pointer}
.oc-send:disabled{opacity:.55;cursor:default}
.oc-err{color:#b32d2e;font-size:13px;margin-top:6px}
.oc-privacy{font-size:11.5px;color:#6b7280;margin-top:8px}
.oc-privacy a{color:inherit;text-decoration:underline}
.oc-newconv{background:none;border:0;padding:0;margin-top:6px;font-size:12px;color:#50575e;text-decoration:underline;cursor:pointer}
.oc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.oc-fallback{text-align:left}
.oc-fallback p{margin:0 0 10px;font-size:14px}
.oc-fallback .oc-cta--mail{background:#fff;color:#1d2327!important;border:2px solid #c3c4c7}

@media (max-width:768px){.oc-hide-mobile{display:none!important}}
@media (min-width:769px){.oc-hide-desktop{display:none!important}}
@media (max-width:600px){
	.oc-win{left:0!important;right:0!important;bottom:0;width:auto;max-width:none;height:85vh;height:85dvh;border-radius:16px 16px 0 0}
	.oc-in,.oc-ta{font-size:16px}
	body.oc-chat-open .oc-wa,body.oc-chat-open .oc-launch{display:none}
}
@media (prefers-reduced-motion:reduce){.oc-wa__btn,button.ontel-chat-btn{transition:none}}
