/* RICI · Sôsô, assistente virtual do site (bolha + chat). Prefixo so- para não colidir com o resto do site. */
.so-raiz { --so-azul:#123A5A; --so-txt:#4A5B68; --so-teal:#2E8C99; --so-teal-esc:#2E6E79; --so-laranja:#E8791E; --so-laranja-esc:#B4571A; --so-creme:#FAF9F5; font-family: 'Inter', system-ui, sans-serif; }
.so-raiz [hidden] { display: none !important; }
.so-raiz *, .so-raiz *::before, .so-raiz *::after { box-sizing: border-box; }

.so-bolha { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: 0 14px 40px rgba(18,58,90,.22); cursor: pointer; font-family: inherit; }
.so-bolha img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.so-bolha .so-rot { text-align: left; font-size: 13px; line-height: 1.3; color: var(--so-txt); }
.so-bolha .so-rot b { display: block; color: var(--so-azul); font-size: 14.5px; }
.so-bolha .so-ponto { position: absolute; left: 46px; top: 8px; width: 12px; height: 12px; background: #3BB273; border: 2px solid #fff; border-radius: 50%; }
.so-dica { position: fixed; right: 22px; bottom: 92px; z-index: 45; width: 270px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 34px 12px 14px; font-size: 14px; line-height: 1.45; color: var(--so-azul); box-shadow: 0 10px 30px rgba(18,58,90,.18); cursor: pointer; }
.so-dica button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; color: #8A97A0; cursor: pointer; padding: 4px; line-height: 1; }
@media (max-width: 560px) { .so-bolha .so-rot { display: none; } .so-bolha { padding: 6px; right: 14px; bottom: 14px; } .so-dica { right: 14px; bottom: 84px; width: 230px; } }

.so-chat { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 390px; height: min(620px, calc(100vh - 44px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(18,58,90,.3); display: flex; flex-direction: column; overflow: hidden; color: var(--so-azul); }
@media (max-width: 560px) { .so-chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: 100vh; border-radius: 0; } }
.so-cab { background: var(--so-azul); color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.so-cab img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.so-cab .so-nome { font-weight: 600; font-size: 15.5px; }
.so-cab .so-nome small { color: #F6B37A; font-weight: 600; font-size: 13px; }
.so-cab .so-sub { font-size: 12px; color: #BFD0DE; display: flex; align-items: center; gap: 6px; }
.so-cab .so-sub i { width: 7px; height: 7px; border-radius: 50%; background: #3BB273; display: inline-block; }
.so-cab .so-fechar { margin-left: auto; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 20px; line-height: 1; }
.so-corpo { flex: 1; overflow-y: auto; padding: 16px 14px; background: #F7F5EF; display: flex; flex-direction: column; gap: 10px; }
.so-aviso { font-size: 12px; line-height: 1.45; color: #6B7A86; background: #fff; border: 1px solid #ECE7DC; border-radius: 12px; padding: 10px 12px; }
.so-aviso a { color: var(--so-teal-esc); text-decoration: underline; }
.so-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.so-msg p { margin: 0; } .so-msg p + p, .so-msg p + ul, .so-msg ul + p { margin-top: 8px; }
.so-msg ul { margin: 6px 0 0; padding-left: 18px; } .so-msg li + li { margin-top: 4px; }
.so-msg.s { background: #fff; border: 1px solid #ECE7DC; border-bottom-left-radius: 4px; align-self: flex-start; }
.so-msg.u { background: var(--so-teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-line; }
.so-msg.sis { align-self: center; max-width: 92%; background: #E7F4EC; color: #1F6B43; font-size: 12.5px; border-radius: 999px; padding: 6px 12px; text-align: center; }
.so-msg.sis.cinza { background: #ECEFF2; color: #5F6E78; border-radius: 12px; }
.so-dig { align-self: flex-start; background: #fff; border: 1px solid #ECE7DC; border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.so-dig i { width: 7px; height: 7px; border-radius: 50%; background: #B8C2C9; animation: so-pulo 1s infinite ease-in-out; }
.so-dig i:nth-child(2) { animation-delay: .15s; } .so-dig i:nth-child(3) { animation-delay: .3s; }
@keyframes so-pulo { 0%,60%,100% { transform: none; opacity: .6; } 30% { transform: translateY(-4px); opacity: 1; } }
.so-form { align-self: stretch; background: #fff; border: 1px solid #ECE7DC; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.so-form b { font-size: 14.5px; }
.so-form p { margin: 0; font-size: 13px; color: #6B7A86; line-height: 1.45; }
.so-form input, .so-form textarea { font: 15px 'Inter', system-ui, sans-serif; padding: 10px 12px; border: 1px solid #DCE3E7; border-radius: 10px; background: var(--so-creme); width: 100%; color: var(--so-azul); }
.so-form textarea { min-height: 70px; resize: vertical; }
.so-form .so-erro { color: #B3261E; font-size: 13px; }
.so-btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; padding: 11px 16px; font: 600 14.5px 'Inter', system-ui, sans-serif; cursor: pointer; background: var(--so-laranja); color: #fff; }
.so-btn[disabled] { opacity: .6; cursor: default; }
.so-pe { border-top: 1px solid #ECE7DC; padding: 10px 12px 12px; background: #fff; flex-shrink: 0; }
.so-pe form { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.so-pe textarea { flex: 1; resize: none; font: 15px 'Inter', system-ui, sans-serif; border: 1px solid #DCE3E7; border-radius: 14px; padding: 10px 12px; background: var(--so-creme); height: 44px; max-height: 120px; color: var(--so-azul); }
.so-pe textarea:disabled { opacity: .6; }
.so-env { border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--so-laranja); color: #fff; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.so-env:disabled { opacity: .5; cursor: default; }
.so-info { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 11.5px; color: #8A97A0; }
.so-info .so-baixo { color: var(--so-laranja-esc); font-weight: 600; }
.so-humano { border: 0; background: none; color: var(--so-teal-esc); font: 600 11.5px 'Inter', system-ui, sans-serif; cursor: pointer; padding: 0; }
.so-ts { display: flex; justify-content: center; }
.so-ts:empty { display: none; }
body.s-aberto .so-bolha, body.s-aberto .so-dica { display: none !important; }
