.sassy-chat-mascot { position: fixed; right: 22px; bottom: 24px; z-index: 995; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.sassy-chat-mascot__bubble { max-width: 205px; margin-bottom: 2px; padding: 10px 14px; border: 1px solid #e0d1f3; border-radius: 17px 17px 3px 17px; background: #fff; color: #17151c; box-shadow: 0 5px 20px #17151c15; font: 600 12px/1.4 var(--body-font); }
.sassy-chat-mascot__button { display: block; width: 104px; height: 104px; border-radius: 18px; pointer-events: auto; transform-origin: center bottom; animation: sassy-mascot-hop 7s ease-in-out infinite; transition: transform .25s ease; filter: drop-shadow(0 6px 16px rgba(111, 57, 176, 0.25)); }
.sassy-chat-mascot__button:hover { transform: scale(1.08) translateY(-4px); }
.sassy-chat-mascot__button:focus-visible { outline: 3px solid #a970ff; outline-offset: 3px; }
.sassy-chat-mascot[data-chat-open="true"] { display: none; }
/* Branding replacement authorized directly by the site owner. */
body:has(.sassy-chat-mascot) iframe[title="Visit tawk.to"] { clip-path: inset(50%) !important; }
/* Hide auxiliary launcher/attention frames from their first paint. The conversation uses srcdoc. */
body:has(.sassy-chat-mascot) iframe[title="Chat widget"][src="about:blank"] { clip-path: inset(50%) !important; pointer-events: none !important; }
.sassy-chat-mascot__sprite { 
    display: block; 
    width: 100%; 
    height: 100%; 
    background-image: url('../images/sassy-square/chat/purple-robot-tv-spin.webp'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center bottom; 
    image-rendering: pixelated; 
}
.sassy-chat-mascot[data-state="typing"] .sassy-chat-mascot__button { animation: none; }
.sassy-chat-mascot[data-state="idle"] .sassy-chat-mascot__sprite { animation: none; }
.sassy-chat-mascot[data-state="typing"] .sassy-chat-mascot__sprite { animation: sassy-mascot-pulse 1s ease-in-out infinite; }
@keyframes sassy-mascot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06) translateY(-2px); } }
@keyframes sassy-mascot-hop { 0%,40%,50%,100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(2px) scale(1.04,.96); } 45% { transform: translateY(-10px) rotate(-4deg); } 48% { transform: translateY(0) rotate(2deg); } }
body:has(.sassy-consent__banner:not([hidden])) .sassy-chat-mascot,
body:has(.sassy-consent__preferences:not([hidden])) .sassy-chat-mascot,
body:has(.sassy-consultation-modal:not([hidden])) .sassy-chat-mascot { visibility: hidden; }
@media(max-width:767px) { .sassy-chat-mascot { right: 10px; bottom: calc(80px + env(safe-area-inset-bottom,0px)); } .sassy-chat-mascot__button { width: 86px; height: 86px; } .sassy-chat-mascot__bubble { max-width: 150px; font-size: 10px; padding: 7px 10px; } }
@media(prefers-reduced-motion:reduce) {
    .sassy-chat-mascot__sprite { animation-duration: 10s !important; animation-iteration-count: infinite !important; }
    .sassy-chat-mascot__button { animation: none; }
}

body:has(.sassy-chat-mascot[data-chat-open="true"]) .home-website-offer { visibility: hidden; }

/* Hide the mobile bottom menu while the chat is open so it never covers the message box. */
@media(max-width:767px) { html.sassy-chat-open .sassy-mobile-dock, html.sassy-chat-open .sassy-mobile-explore { display: none !important; } }
