/* Sobre Rodes - mascot chat widget. Preview branch only. */
#srChatWidget{--srchat-wine:#75223f;--srchat-red:#a52f42;--srchat-gold:#e9c17b;--srchat-dark:#17131b;position:fixed;inset:0;z-index:2147000000;pointer-events:none;font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;color:#fff;line-height:1.45;}
#srChatWidget *,#srChatWidget *::before,#srChatWidget *::after{box-sizing:border-box;}
#srChatWidget button,#srChatWidget textarea{font:inherit;}
#srChatWidget .srchat-launch{position:absolute;bottom:20px;right:18px;width:135px;height:116px;border:0;background:transparent;pointer-events:auto;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:1px;padding:0;filter:drop-shadow(0 8px 9px rgba(17,7,15,.35));transition:transform .18s ease;}
#srChatWidget .srchat-launch:hover{transform:translateY(-4px) scale(1.035);}
#srChatWidget .srchat-launch:focus-visible,#srChatWidget button:focus-visible,#srChatWidget textarea:focus-visible,#srChatWidget a:focus-visible{outline:3px solid #f0c978;outline-offset:3px;}
#srChatWidget .srchat-launch img{width:133px;height:82px;object-fit:contain;object-position:bottom center;display:block;transform-origin:bottom center;}
#srChatWidget .srchat-speech{position:absolute;right:6px;top:-9px;max-width:116px;padding:5px 11px;border-radius:18px 18px 7px 18px;background:#fff;color:#641b36;font-size:11px;font-weight:900;box-shadow:0 5px 14px rgba(0,0,0,.2);white-space:nowrap;}
#srChatWidget .srchat-label{position:relative;margin-top:-5px;background:linear-gradient(110deg,#801c3a,#a53141);color:#fff;font-weight:900;font-size:12px;letter-spacing:.01em;padding:4px 13px;border-radius:20px;border:1px solid #f4cc82;box-shadow:0 2px 9px rgba(20,9,15,.26);}
#srChatWidget[data-open="true"] .srchat-launch{visibility:hidden;pointer-events:none;}
#srChatWidget .srchat-panel{position:absolute;right:24px;bottom:30px;width:min(402px,calc(100vw - 32px));height:min(625px,calc(100dvh - 58px));max-height:calc(100dvh - 30px);display:flex;flex-direction:column;background:#211a25;color:#f8f3ef;border-radius:22px;box-shadow:0 24px 80px rgba(18,6,13,.44);border:1px solid rgba(235,194,123,.34);overflow:hidden;pointer-events:none;opacity:0;transform:translateY(12px) scale(.975);visibility:hidden;transition:opacity .18s ease,transform .18s ease,visibility .18s ease;}
#srChatWidget[data-open="true"] .srchat-panel{pointer-events:auto;opacity:1;transform:translateY(0) scale(1);visibility:visible;}
#srChatWidget .srchat-header{min-height:79px;background:linear-gradient(120deg,#6f1739,#9c2941 72%,#b94e3c);display:flex;align-items:center;gap:10px;padding:12px 13px 12px 10px;border-bottom:1px solid rgba(255,255,255,.12);}
#srChatWidget .srchat-header-mascot{width:86px;height:58px;object-fit:contain;flex:none;filter:drop-shadow(0 4px 4px rgba(0,0,0,.24));}
#srChatWidget .srchat-titles{flex:1;min-width:0;}
#srChatWidget .srchat-titles strong{display:block;font-size:15px;color:white;line-height:1.2;font-weight:950;}
#srChatWidget .srchat-titles small{display:block;margin-top:4px;color:#ffe5b8;font-size:10.5px;font-weight:750;}
#srChatWidget .srchat-close{width:34px;height:34px;flex:none;border:1px solid #ffffff66;border-radius:12px;color:white;background:#ffffff19;cursor:pointer;font-size:23px;line-height:1;}
#srChatWidget .srchat-notice{background:#30242f;padding:9px 14px;font-size:11px;line-height:1.45;color:#e8d5c6;border-bottom:1px solid #ffffff16;}
#srChatWidget .srchat-messages{flex:1;min-height:90px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;display:flex;flex-direction:column;gap:12px;padding:17px 13px;scrollbar-color:#7c5361 transparent;scrollbar-width:thin;}
#srChatWidget .srchat-message{max-width:88%;border-radius:16px;font-size:13px;line-height:1.52;overflow-wrap:anywhere;white-space:pre-wrap;padding:11px 13px;border:1px solid #ffffff10;box-shadow:0 2px 8px #09030918;}
#srChatWidget .srchat-message[data-role="assistant"]{align-self:flex-start;background:#38303b;border-top-left-radius:5px;}
#srChatWidget .srchat-message[data-role="user"]{align-self:flex-end;background:#8c3345;border-top-right-radius:5px;color:white;}
#srChatWidget .srchat-examples{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;flex:none;padding:5px 12px 11px;}
#srChatWidget .srchat-examples::-webkit-scrollbar{display:none;}
#srChatWidget .srchat-examples button{border-radius:999px;padding:8px 10px;white-space:nowrap;background:#302832;border:1px solid #ddc2b170;color:#f2e6de;font-weight:700;font-size:11px;cursor:pointer;min-height:34px;}
#srChatWidget .srchat-examples button:hover{background:#4b3041;}
#srChatWidget .srchat-form{display:flex;gap:8px;align-items:flex-end;padding:11px;background:#251d28;border-top:1px solid #ffffff18;}
#srChatWidget .srchat-form textarea{background:#151017;min-height:47px;max-height:112px;resize:vertical;flex:1;min-width:0;color:#fff;border:1px solid #ffffff35;border-radius:13px;padding:11px;outline:none;line-height:1.4;font-size:13px;}
#srChatWidget .srchat-form textarea::placeholder{color:#c6b9ba;}
#srChatWidget .srchat-send{border:0;border-radius:12px;padding:0 14px;min-height:47px;background:#ebc178;color:#39172a;font-weight:950;font-size:12px;cursor:pointer;}
#srChatWidget .srchat-send:disabled{opacity:.6;cursor:wait;}
#srChatWidget .srchat-status{padding:0 14px 7px;font-size:11px;color:#f3cf98;min-height:0;}
#srChatWidget .srchat-footer{background:#1b151e;border-top:1px solid #ffffff17;padding:8px 13px 11px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10.5px;}
#srChatWidget .srchat-footer a{color:#f9d49b;text-decoration:underline;font-weight:850;}
#srChatWidget .srchat-footer .srchat-reset{margin-left:auto;color:#d8c8c8;border:0;background:none;text-decoration:underline;cursor:pointer;padding:4px;}
#srChatWidget .srchat-inline-gap{opacity:.65;}
@media(max-width:820px){#srChatWidget .srchat-launch{right:10px;bottom:80px;width:108px;height:97px;}#srChatWidget .srchat-launch img{width:108px;height:68px;}#srChatWidget .srchat-speech{top:-8px;right:0;font-size:10px;}#srChatWidget .srchat-label{font-size:11px;}#srChatWidget .srchat-panel{right:9px;bottom:79px;width:min(390px,calc(100vw - 18px));height:min(590px,calc(100dvh - 172px));min-height:260px;}}
@media(max-width:430px){#srChatWidget .srchat-panel{right:8px;width:calc(100vw - 16px);border-radius:18px;}#srChatWidget .srchat-header{min-height:70px;}#srChatWidget .srchat-header-mascot{width:72px;height:50px;}#srChatWidget .srchat-message{max-width:92%;}#srChatWidget .srchat-examples button{font-size:10.5px;}}
@media(max-height:530px){#srChatWidget .srchat-panel{bottom:8px;max-height:calc(100dvh - 16px);height:calc(100dvh - 16px);}#srChatWidget .srchat-notice{display:none;}#srChatWidget .srchat-launch{bottom:12px;}}
@media(prefers-reduced-motion:reduce){#srChatWidget .srchat-launch,#srChatWidget .srchat-panel,#srChatWidget .srchat-messages{transition:none!important;scroll-behavior:auto!important;}}


/* REVIEW 2026-10-28: mascot at the top of mobile nav, logo-sized; animated thinking dots. */
#srChatWidget .srchat-avatar {
  position:relative; width:86px; height:58px; flex:0 0 86px;
  display:flex; justify-content:center; align-items:center;
}
#srChatWidget .srchat-thinking-bubble {
  position:absolute; display:none; justify-content:center; align-items:center; gap:3px;
  width:49px; height:27px; padding:3px 6px;
  background:#fff; color:#822444;
  border:1.5px solid #9e3550; border-radius:13px 13px 13px 3px;
  box-shadow:0 3px 8px #150a1c30;
  pointer-events:none; z-index:2;
}
#srChatWidget .srchat-thinking-bubble::after {
  content:""; position:absolute; bottom:-5px; left:9px;
  width:8px; height:8px; transform:rotate(45deg);
  border-right:1.5px solid #9e3550;
  border-bottom:1.5px solid #9e3550;
  background:#fff;
}
#srChatWidget .srchat-thinking-bubble > i {
  width:5px; height:5px; border-radius:50%; display:block; background:#822444;
  animation:srchat-thinking-dots .95s ease-in-out infinite;
}
#srChatWidget .srchat-thinking-bubble > i:nth-child(2){animation-delay:.16s;}
#srChatWidget .srchat-thinking-bubble > i:nth-child(3){animation-delay:.32s;}
#srChatWidget .srchat-header-thinking{top:-10px;right:-12px;}
#srChatWidget .srchat-launch-thinking{top:-12px;right:1px;}
#srChatWidget[data-thinking="true"] .srchat-header-thinking,
#srChatWidget[data-thinking="true"] .srchat-launch-thinking{display:flex;}
#srChatWidget[data-thinking="true"] .srchat-launch .srchat-speech{display:none;}
@keyframes srchat-thinking-dots{
  0%,65%,100% { opacity:.25; transform:translateY(0); }
  30% { opacity:1; transform:translateY(-3px); }
}

/* Only mobile: align the car near the hamburger, approximately the size of the logo.
   The original header's logo measures 62x62px in this breakpoint. */
@media(max-width:820px){
  .nav{gap:8px;}
  #srChatWidget .srchat-launch{
    top:7px;bottom:auto;right:73px;
    width:62px;height:62px;
    gap:0;padding:0;
  }
  #srChatWidget .srchat-launch img{
    width:62px;height:42px;flex:none;object-fit:contain;
  }
  #srChatWidget .srchat-launch .srchat-speech{display:none;}
  #srChatWidget .srchat-label{
    margin-top:-4px;
    padding:2px 4px;
    width:62px;min-height:18px;display:flex;
    justify-content:center;align-items:center;
    font-size:9px;line-height:1.05;white-space:nowrap;
  }
  #srChatWidget .srchat-launch-thinking{top:-8px;right:-3px;transform:scale(.78);transform-origin:top right;}
  #srChatWidget .srchat-panel{
    top:84px;bottom:calc(68px + env(safe-area-inset-bottom, 0px));
    height:auto;min-height:0;max-height:none;
    right:9px;width:min(390px,calc(100vw - 18px));
  }
  #srChatWidget .srchat-avatar{width:72px;height:50px;flex-basis:72px;}
  #srChatWidget .srchat-header-thinking{right:-3px;top:-10px;}
}
@media(max-width:560px){
  #srChatWidget .srchat-launch{right:69px;}
  #srChatWidget .srchat-panel{right:8px;width:calc(100vw - 16px);}
}
@media(max-width:360px){
  .nav{gap:5px;}
  .nav .lang button{padding:6px 5px;font-size:.62rem;}
  #srChatWidget .srchat-launch{width:52px;height:62px;right:64px;}
  #srChatWidget .srchat-launch img{width:52px;height:42px;}
  #srChatWidget .srchat-label{width:56px;font-size:8.5px;transform:translateX(2px);}
}
@media(max-width:820px) and (max-height:530px){
  #srChatWidget .srchat-launch{top:7px;bottom:auto;}
  #srChatWidget .srchat-panel{
    top:6px;bottom:6px;height:auto;max-height:none;min-height:0;
  }
}
@media(prefers-reduced-motion:reduce){
  #srChatWidget .srchat-thinking-bubble > i{animation:none;}
}


/* Public release: clearer facial details, headlights and well-separated thinking bubble. */
#srChatWidget .srchat-car-figure{
  width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;
  pointer-events:none;isolation:isolate;
}
#srChatWidget .srchat-car-figure img{
  width:100%;height:100%;object-fit:contain;display:block;
  filter:contrast(1.18) saturate(1.07) brightness(1.03);
  transition:filter .22s ease;image-rendering:auto;
}
#srChatWidget .srchat-headlight{
  position:absolute;z-index:3;pointer-events:none;opacity:0;
  width:8%;height:8%;min-width:3px;min-height:2px;
  border-radius:50%;transform:rotate(-13deg);
  background:#e8f8ff;box-shadow:0 0 5px 3px #b1eeff,0 0 15px 6px #9de9ffb0;
  transition:opacity .18s ease;
}
#srChatWidget .srchat-headlight-left{left:55%;top:53%;}
#srChatWidget .srchat-headlight-right{left:89%;top:54%;width:6%;}
@media(hover:hover) and (pointer:fine) {
  #srChatWidget .srchat-launch:hover .srchat-headlight,
  #srChatWidget .srchat-launch:focus-visible .srchat-headlight{opacity:1;}
  #srChatWidget .srchat-launch:hover .srchat-car-figure img,
  #srChatWidget .srchat-launch:focus-visible .srchat-car-figure img{
    filter:contrast(1.22) saturate(1.11) brightness(1.16) drop-shadow(0 0 8px #ddf6ff90);
  }
}
#srChatWidget[data-flash="true"] .srchat-headlight,
#srChatWidget[data-thinking="true"] .srchat-avatar .srchat-headlight{opacity:1;}
#srChatWidget[data-flash="true"] .srchat-car-figure img,
#srChatWidget[data-thinking="true"] .srchat-avatar img{
  filter:contrast(1.2) saturate(1.1) brightness(1.14) drop-shadow(0 0 6px #bde9ff80);
}
#srChatWidget .srchat-header{
  position:relative;top:auto;z-index:auto;backdrop-filter:none;
  min-height:104px;padding-top:25px;overflow:visible;
}
#srChatWidget .srchat-avatar{position:relative;overflow:visible;}
#srChatWidget .srchat-header-thinking{
  top:-22px;right:-10px;left:auto;
  transform:none;z-index:8;
}
/* Put bubble fully above the car rather than over its eyes. */
#srChatWidget .srchat-thinking-bubble{box-shadow:0 3px 8px #150a1c55;}
#srChatWidget .srchat-launch > .srchat-car-figure{flex:0 0 auto;height:82px;}
#srChatWidget .srchat-avatar > .srchat-car-figure{width:86px;height:58px;}
@media(max-width:820px){
  #srChatWidget .srchat-launch > .srchat-car-figure{width:62px;height:42px;}
  #srChatWidget .srchat-avatar > .srchat-car-figure{width:72px;height:50px;}
  #srChatWidget .srchat-header{min-height:97px;padding-top:23px;}
  #srChatWidget .srchat-header-thinking{top:-20px;right:-8px;}
  #srChatWidget .srchat-headlight{box-shadow:0 0 4px 2px #b1eeff,0 0 9px 4px #9de9ffb0;}
}
@media(max-width:360px){
  #srChatWidget .srchat-launch > .srchat-car-figure{width:52px;height:42px;}
}
