/* XpertRanker CRM — chat widget.
   Every rule is scoped to #xrcrm-chat and the key properties are !important, so the site theme / Elementor
   (which styles every <button>, <input> and <svg>) cannot change how the chat looks. */
#xrcrm-chat{--xr-brand:#0b1a3a;--xr-accent:#f43f5e;--xr-on-accent:#fff;position:fixed!important;right:20px;bottom:20px;z-index:2147483000!important;font-family:inherit;font-size:15px!important;line-height:1.45!important;color:#1d2433!important;text-align:left!important;letter-spacing:normal!important;text-transform:none!important}
#xrcrm-chat *,#xrcrm-chat *::before,#xrcrm-chat *::after{box-sizing:border-box!important}
/* reset whatever the theme puts on buttons, inputs and icons */
#xrcrm-chat button{all:unset;box-sizing:border-box!important;cursor:pointer!important;font-family:inherit!important;line-height:1.3!important;text-transform:none!important;letter-spacing:normal!important;text-decoration:none!important;box-shadow:none;min-height:0!important;min-width:0!important;width:auto;height:auto;margin:0!important;outline:none}
#xrcrm-chat input{all:unset;box-sizing:border-box!important;font-family:inherit!important}
#xrcrm-chat svg{display:block!important;fill:currentColor!important;stroke:none!important;width:auto;height:auto;max-width:none!important}
#xrcrm-chat svg path{fill:currentColor!important}
#xrcrm-chat a{color:inherit!important;text-decoration:underline!important}
#xrcrm-chat p,#xrcrm-chat b,#xrcrm-chat span,#xrcrm-chat small{font-family:inherit;letter-spacing:normal!important;text-transform:none!important}

/* launcher */
#xrcrm-chat .xrcrm-launch{width:60px!important;height:60px!important;border-radius:50%!important;background:var(--xr-brand)!important;color:#fff!important;border:2px solid var(--xr-accent)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;box-shadow:0 8px 24px rgba(2,32,51,.35)!important;position:relative!important;transition:transform .15s}
#xrcrm-chat .xrcrm-launch svg{width:26px!important;height:26px!important;color:#fff!important}
#xrcrm-chat .xrcrm-launch:hover{transform:scale(1.05)}
#xrcrm-chat .xrcrm-launch:focus-visible{outline:3px solid var(--xr-accent)!important;outline-offset:3px}
#xrcrm-chat .xrcrm-badge{position:absolute!important;top:-2px;right:-2px;background:var(--xr-accent)!important;color:var(--xr-on-accent,#fff)!important;font-size:12px!important;font-weight:700!important;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1!important}
#xrcrm-chat [hidden]{display:none!important}

/* teaser bubble */
#xrcrm-chat .xrcrm-teaser{position:absolute;right:4px;bottom:72px;background:#fff!important;border-radius:14px;padding:12px 30px 12px 14px;box-shadow:0 8px 30px rgba(16,24,40,.18);width:220px;cursor:pointer;animation:xrcrm-up .3s ease}
#xrcrm-chat .xrcrm-teaser b{display:block;color:var(--xr-brand)!important;font-size:15px!important;font-weight:700!important}
#xrcrm-chat .xrcrm-teaser span{display:block;color:#475467!important;font-size:14px!important}
#xrcrm-chat .xrcrm-teaser__x{position:absolute!important;top:4px!important;right:8px!important;background:none!important;border:0!important;padding:2px!important;font-size:18px!important;color:#98a2b3!important;line-height:1!important}

/* panel */
#xrcrm-chat .xrcrm-panel{position:absolute;right:0;bottom:78px;width:390px;max-width:calc(100vw - 32px);height:640px;max-height:calc(100vh - 120px);background:#fff!important;border-radius:20px!important;border:1px solid rgba(16,24,40,.08)!important;box-shadow:0 24px 60px rgba(2,32,51,.28),0 2px 8px rgba(2,32,51,.08)!important;display:flex;flex-direction:column;overflow:hidden!important;animation:xrcrm-up .22s ease;transform-origin:bottom right}
@keyframes xrcrm-up{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
#xrcrm-chat .xrcrm-head{flex:none;background:var(--xr-brand)!important;color:#fff!important;display:flex;align-items:center;gap:12px;padding:16px 14px 16px 18px;border-bottom:3px solid var(--xr-accent)!important}
#xrcrm-chat .xrcrm-av{position:relative;width:42px;height:42px;border-radius:50%;background:var(--xr-accent);color:var(--xr-on-accent,#fff);font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.18)}
#xrcrm-chat .xrcrm-av img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important;max-width:none!important;border-radius:50%!important}
#xrcrm-chat .xrcrm-dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid var(--xr-brand)}
#xrcrm-chat .xrcrm-hn{flex:1;min-width:0}
#xrcrm-chat .xrcrm-hn b{display:block;font-size:16px!important;color:#fff!important;font-weight:700!important;line-height:1.25!important}
#xrcrm-chat .xrcrm-hn span{display:block;font-size:12.5px!important;color:rgba(255,255,255,.75)!important;line-height:1.3!important;margin-top:1px}
#xrcrm-chat .xrcrm-x{width:34px!important;height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.08)!important;border:0!important;color:#fff!important;font-size:22px!important;line-height:1!important;padding:0 0 2px!important;border-radius:50%!important;transition:background .15s}
#xrcrm-chat .xrcrm-x:hover{background:rgba(255,255,255,.18)!important}

/* one scroll area: messages + buttons */
#xrcrm-chat .xrcrm-log{flex:1;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 16px 10px;background:#f4f6f9!important;scrollbar-width:thin;scrollbar-color:#c7ced8 transparent;overscroll-behavior:contain}
#xrcrm-chat .xrcrm-log::-webkit-scrollbar{width:6px!important}
#xrcrm-chat .xrcrm-log::-webkit-scrollbar-button{display:none!important;height:0!important}
#xrcrm-chat .xrcrm-log::-webkit-scrollbar-track{background:transparent!important}
#xrcrm-chat .xrcrm-log::-webkit-scrollbar-thumb{background:#c7ced8!important;border-radius:6px!important}
#xrcrm-chat .xrcrm-msgs{display:flex;flex-direction:column;gap:8px}
#xrcrm-chat .xrcrm-msg{max-width:86%;padding:10px 14px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal;font-size:14.5px!important;line-height:1.5!important}
#xrcrm-chat .xrcrm-msg--bot,#xrcrm-chat .xrcrm-msg--agent{background:#fff!important;color:#1d2433!important;align-self:flex-start;border-bottom-left-radius:6px;box-shadow:0 1px 2px rgba(16,24,40,.06),0 0 0 1px rgba(16,24,40,.04)}
#xrcrm-chat .xrcrm-msg--agent{box-shadow:inset 3px 0 0 var(--xr-accent),0 1px 2px rgba(16,24,40,.06)}
#xrcrm-chat .xrcrm-msg--me{background:var(--xr-brand)!important;color:#fff!important;align-self:flex-end;border-bottom-right-radius:6px}
#xrcrm-chat .xrcrm-msg--me a{color:#fff!important}
#xrcrm-chat .xrcrm-typing{display:flex;gap:4px;padding:13px 15px}
#xrcrm-chat .xrcrm-typing i{width:7px;height:7px;border-radius:50%;background:#98a2b3;animation:xrcrm-dot 1s infinite}
#xrcrm-chat .xrcrm-typing i:nth-child(2){animation-delay:.15s}#xrcrm-chat .xrcrm-typing i:nth-child(3){animation-delay:.3s}
@keyframes xrcrm-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}

/* buttons under the last message */
#xrcrm-chat .xrcrm-ctl{padding-top:10px}
#xrcrm-chat .xrcrm-ctl:empty{display:none}
#xrcrm-chat .xrcrm-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;padding:2px 0 6px;width:100%}
#xrcrm-chat .xrcrm-chips--menu{justify-content:flex-start}
#xrcrm-chat .xrcrm-chip{display:inline-block!important;max-width:100%!important;white-space:normal!important;border:1.5px solid var(--xr-brand)!important;background:#fff!important;color:var(--xr-brand)!important;border-radius:999px!important;padding:7px 14px!important;font-size:13.5px!important;font-weight:600!important;text-align:left!important;transition:background .12s,color .12s}
#xrcrm-chat .xrcrm-chip:hover,#xrcrm-chat .xrcrm-chip:focus-visible{background:var(--xr-brand)!important;color:#fff!important}
#xrcrm-chat .xrcrm-chip--ghost{border-style:dashed!important;border-color:#98a2b3!important;color:#475467!important}

/* product list: one card, rows with dividers */
#xrcrm-chat .xrcrm-buy{background:#fff!important;border-radius:14px!important;box-shadow:0 1px 2px rgba(16,24,40,.06),0 0 0 1px rgba(16,24,40,.06)!important;overflow:hidden;margin:2px 0 10px}
#xrcrm-chat a.xrcrm-buy__i{display:flex!important;align-items:center!important;gap:10px;background:#fff!important;border:0!important;border-bottom:1px solid #eef1f4!important;border-radius:0!important;padding:9px 12px 9px 14px!important;color:#1d2433!important;text-decoration:none!important;font-size:14px!important;line-height:1.3!important;transition:background .12s}
#xrcrm-chat a.xrcrm-buy__i:hover{background:#f8fafc!important}
#xrcrm-chat .xrcrm-buy__n{flex:1;min-width:0;font-weight:600!important;color:#1d2433!important;font-size:14px!important}
#xrcrm-chat .xrcrm-buy__p{flex:none;font-weight:700!important;color:var(--xr-brand)!important;white-space:nowrap;font-size:14px!important}
#xrcrm-chat .xrcrm-buy__c{flex:none;min-width:66px;text-align:center;border:1.5px solid var(--xr-brand)!important;background:#fff!important;color:var(--xr-brand)!important;border-radius:999px;padding:4px 10px;font-size:12.5px!important;font-weight:700!important;white-space:nowrap;transition:background .12s,color .12s}
#xrcrm-chat a.xrcrm-buy__i:hover .xrcrm-buy__c{background:var(--xr-brand)!important;color:#fff!important}
#xrcrm-chat a.xrcrm-buy__i.is-added .xrcrm-buy__c{background:var(--xr-accent)!important;border-color:var(--xr-accent)!important;color:var(--xr-on-accent,#fff)!important}
#xrcrm-chat a.xrcrm-buy__i.is-busy{opacity:.6;pointer-events:none}
#xrcrm-chat a.xrcrm-buy__all{display:block;text-align:center;color:var(--xr-brand)!important;font-size:13px!important;font-weight:600!important;padding:10px 12px!important;text-decoration:none!important;background:#fafbfc!important}
#xrcrm-chat a.xrcrm-buy__all:hover{text-decoration:underline!important}

/* cart bar (shows once something is in the cart) */
#xrcrm-chat a.xrcrm-cartbar{flex:none;display:flex!important;align-items:center;gap:10px;background:var(--xr-brand)!important;color:#fff!important;text-decoration:none!important;padding:11px 16px!important;font-size:14px!important;font-weight:600!important;border-top:1px solid rgba(255,255,255,.08)}
#xrcrm-chat a.xrcrm-cartbar[hidden]{display:none!important}
#xrcrm-chat .xrcrm-cartbar__n{width:24px;height:24px;border-radius:50%;background:var(--xr-accent)!important;color:var(--xr-on-accent,#fff)!important;font-size:13px!important;font-weight:700!important;display:inline-flex;align-items:center;justify-content:center;flex:none}
#xrcrm-chat a.xrcrm-cartbar span{color:#fff!important}
#xrcrm-chat a.xrcrm-cartbar b{margin-left:auto;color:var(--xr-accent)!important;font-weight:700!important}
#xrcrm-chat a.xrcrm-cartbar:hover{filter:brightness(1.15)}

#xrcrm-chat .xrcrm-slots{padding:2px 0 6px}
#xrcrm-chat .xrcrm-slotday{margin-bottom:8px}
#xrcrm-chat .xrcrm-slotday__d{display:block;font-size:13px!important;font-weight:700!important;color:#344054!important;margin-bottom:5px}
#xrcrm-chat .xrcrm-slotday__t{display:flex;flex-wrap:wrap;gap:6px}
#xrcrm-chat .xrcrm-tz{display:block;color:#667085!important;font-size:12px!important;margin-top:2px}

/* input row */
#xrcrm-chat .xrcrm-in{flex:none;display:flex;align-items:center;gap:8px;padding:12px 12px 12px 14px;border-top:1px solid #eef1f4;background:#fff!important;margin:0!important}
#xrcrm-chat .xrcrm-in input{flex:1;min-width:0;height:44px!important;border:1.5px solid transparent!important;border-radius:22px!important;padding:0 16px!important;font-size:14.5px!important;color:#1d2433!important;background:#f4f6f9!important;cursor:text;transition:border-color .15s,background .15s}
#xrcrm-chat .xrcrm-in input::placeholder{color:#98a2b3!important;opacity:1}
#xrcrm-chat .xrcrm-in input:focus{border-color:var(--xr-brand)!important;background:#fff!important}
#xrcrm-chat .xrcrm-in button{width:44px!important;height:44px!important;flex:none;border-radius:50%!important;border:0!important;background:var(--xr-brand)!important;color:var(--xr-accent)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;transition:transform .12s}
#xrcrm-chat .xrcrm-in button svg{width:20px!important;height:20px!important;color:var(--xr-accent)!important}
#xrcrm-chat .xrcrm-in button:hover{transform:scale(1.05)}

@media (max-width:480px){
	#xrcrm-chat{right:14px;bottom:14px}
	#xrcrm-chat.is-open{right:0;bottom:0;left:0;top:0}
	#xrcrm-chat.is-open .xrcrm-launch,#xrcrm-chat.is-open .xrcrm-teaser{display:none!important}
	#xrcrm-chat.is-open .xrcrm-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
	#xrcrm-chat .xrcrm-in input{font-size:16px!important}
}
