/* All visual changes are scoped to the global mobile Request Launcher and its chat panel. */
.tse-request-bar--premium[hidden],.tse-safari-chat[hidden]{display:none!important}
@media(max-width:767px){
 /* Keep a smaller bottom gap while respecting mobile system safe-area controls. */
 body:has(> .tse-request-bar--premium){
  --tse-request-bar-float-bottom:max(12px, calc(4px + env(safe-area-inset-bottom,0px)));
  padding-bottom:calc(74px + var(--tse-request-bar-float-bottom));
 }
 body.tse-request-bar-enabled{--tse-request-bar-height:calc(74px + var(--tse-request-bar-float-bottom,36px));}
 body>.tse-request-bar.tse-request-bar--premium{
  position:fixed!important;left:10px!important;right:10px!important;bottom:var(--tse-request-bar-float-bottom,36px)!important;
  width:calc(100% - 20px)!important;max-width:550px!important;height:62px!important;min-height:62px!important;
  margin:0 auto!important;padding:4px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  background:#191a19!important;border:1px solid rgba(255,255,255,.12);border-radius:23px!important;
  box-shadow:0 6px 24px rgba(0,0,0,.14);overflow:hidden;z-index:10040!important;isolation:isolate;
 }
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action,
 body>.tse-request-bar.tse-request-bar--premium a.tse-request-bar__action{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:52px!important;min-height:52px!important;gap:3px!important;padding:5px 2px!important;
  background:transparent!important;border:0!important;border-radius:18px!important;color:#fff!important;
  font:600 10px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:.055em!important;text-decoration:none!important;text-transform:uppercase;box-shadow:none!important;opacity:1!important;
  -webkit-appearance:none;appearance:none;cursor:pointer;filter:none!important;touch-action:manipulation;
 }
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action--plan,
 body>.tse-request-bar.tse-request-bar--premium a.tse-request-bar__action--plan{background:#68A522!important;color:#fff!important}
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action.is-current:not(.tse-request-bar__action--plan){background:#30382b!important;color:#fff!important}
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action--plan span{text-shadow:0 1px 1px rgba(20,40,8,.85)}
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action--plan:hover{filter:brightness(1.05)!important}
 @media(prefers-contrast:more){body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action--plan{color:#182b08!important}}

 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action svg{display:block;width:19px;height:19px;flex:none;color:inherit}
 body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action:focus-visible{outline:2px solid #fff!important;outline-offset:-4px}
 body.tse-request-bar-enabled #scroll-top{bottom:calc(78px + var(--tse-request-bar-float-bottom,36px))!important}
}
/* Apply frosted glass only to the existing mobile Request Launcher; solid dark is the fallback. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 @media(max-width:767px){
  body>.tse-request-bar.tse-request-bar--premium{
   background:rgba(22,25,23,.72)!important;
   -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  }
 }
}
@media(min-width:768px){.tse-safari-chat[hidden]{display:none!important}}
.tse-safari-chat{box-sizing:border-box;position:fixed;z-index:10050;right:12px;left:12px;bottom:calc(102px + env(safe-area-inset-bottom,0px));
 width:min(420px,calc(100vw - 24px));max-height:min(720px,calc(100dvh - 124px));margin-left:auto;display:flex;flex-direction:column;
 background:#fff;color:#202725;border:1px solid #e9e9e7;border-radius:24px;box-shadow:0 16px 55px rgba(0,0,0,.25);overflow:hidden;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.45}
.tse-safari-chat *{box-sizing:border-box}
.tse-safari-chat__header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:21px 20px 17px;background:#fff;border-bottom:1px solid #eee}
.tse-safari-chat__title strong{display:block;font-size:20px;line-height:1.2;color:#161916}
.tse-safari-chat__title p{font-size:13px;color:#404744;margin:7px 0 0;line-height:1.45}
.tse-safari-chat__online{display:inline-block;background:#e4f3ec;color:#126a51;font-size:11px;font-weight:700;border-radius:40px;padding:4px 10px;margin-top:8px}
.tse-safari-chat__minimize{padding:7px!important;border:0!important;border-radius:10px!important;color:#313937!important;background:transparent!important;line-height:1;cursor:pointer}
.tse-safari-chat__messages{min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px 20px 0;max-height:190px;scrollbar-width:thin}
.tse-safari-chat__bubble{max-width:92%;padding:10px 13px;border-radius:15px;background:#f2f4f0;color:#252b26;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.tse-safari-chat__bubble--visitor{align-self:flex-end;background:#e7f1d9}
.tse-safari-chat__form{padding:12px 20px 12px;display:grid;gap:12px;min-height:0}
.tse-safari-chat__form>p{font-size:14px;line-height:1.45;margin:0 0 2px;color:#2a302c}
.tse-safari-chat__form input[name="name"],.tse-safari-chat__form textarea{
 display:block;width:100%;border:1px solid #e8ebe7!important;background:#fff!important;border-radius:18px!important;
 box-shadow:0 4px 16px rgba(0,0,0,.07)!important;padding:12px 15px!important;font:inherit!important;font-size:15px!important;color:#26312a!important;outline:0;resize:vertical}
.tse-safari-chat__form input[name="name"]{min-height:49px}
.tse-safari-chat__form textarea{min-height:90px;max-height:160px;padding-right:57px!important}
.tse-safari-chat__form :is(input[name="name"],textarea):focus-visible{border-color:#68a522!important;box-shadow:0 0 0 2px rgba(104,165,34,.15)!important}
.tse-safari-chat__composer{position:relative;min-height:93px}
.tse-safari-chat__composer button[type="submit"]{position:absolute;right:10px;bottom:12px;display:grid;place-items:center;width:45px;height:45px;min-width:45px;border:0;border-radius:14px;background:#68a522;color:#fff;cursor:pointer;padding:0}
.tse-safari-chat__composer button[type="submit"]:disabled{opacity:.6;cursor:wait}
.tse-safari-chat__composer button[type="submit"] svg{width:22px;height:22px}
.tse-safari-chat__feedback{font-size:12px;color:#57695a;min-height:0}
.tse-safari-chat__footer{display:flex;align-items:center;justify-content:space-around;gap:8px;padding:12px 15px;background:#fbfcfa;border-top:1px solid #eef0ec}
.tse-safari-chat__footer a,.tse-safari-chat__footer button{background:none!important;border:0!important;color:#45534a!important;text-decoration:none!important;cursor:pointer;font:600 12px/1.3 inherit;padding:6px!important}
.tse-safari-chat__footer :is(a,button):focus-visible,.tse-safari-chat__minimize:focus-visible{outline:2px solid #68a522;outline-offset:2px}

/* Safari Chat footer contacts only: compact 44px touch targets, no global button changes. */
.tse-safari-chat__footer{justify-content:center;gap:12px}
.tse-safari-chat__footer .tse-safari-chat__contact{display:inline-flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0!important;border-radius:12px!important}
.tse-safari-chat__footer .tse-safari-chat__contact-icon{display:inline-flex;align-items:center;justify-content:center}
.tse-safari-chat__footer .tse-safari-chat__contact svg{display:block;width:20px;height:20px}
.tse-safari-chat__footer .tse-safari-chat__contact:hover{background:#eef2eb!important}
/* Escalation link appears inside chat messages only, never the mobile CTA. */
.tse-safari-chat__specialist-link{display:inline-flex;align-self:flex-start;justify-content:center;align-items:center;min-height:44px;max-width:100%;padding:10px 14px;margin:2px 0 10px;border-radius:12px;background:#68A522;color:#fff!important;text-decoration:none!important;font:700 12px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tse-safari-chat__specialist-link:focus-visible{outline:2px solid #315c08;outline-offset:3px}

.tse-safari-chat__visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tse-safari-chat__honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@media(max-width:360px){body>.tse-request-bar.tse-request-bar--premium .tse-request-bar__action{font-size:10px!important;letter-spacing:.025em!important}.tse-safari-chat__header{padding:16px}.tse-safari-chat__form{padding:10px 16px}}
/* Mobile-only fullscreen chat: the header, composer and footer stay in place;
   only the message log scrolls. VisualViewport values are provided by the chat UI
   controller only while the panel is open (for iOS/Android keyboard resizing). */
@media(max-width:767px){
 html:has(body.tse-safari-chat-open){overflow:hidden!important;overscroll-behavior:none}
 body.tse-safari-chat-open{overflow:hidden!important;overscroll-behavior:none}
 .tse-safari-chat{
  position:fixed!important;top:var(--tse-chat-visible-top,0px)!important;right:0!important;bottom:auto!important;left:0!important;
  width:100%!important;max-width:none!important;height:100vh;height:100dvh;
  height:var(--tse-chat-visible-height,100dvh)!important;max-height:none!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;z-index:10050!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:contain
 }
 .tse-safari-chat[hidden]{display:none!important}
 .tse-safari-chat__header{flex:none;position:relative;z-index:1;padding:calc(13px + env(safe-area-inset-top,0px)) 17px 12px}
 .tse-safari-chat__title{min-width:0}
 .tse-safari-chat__title strong{font-size:18px}
 .tse-safari-chat__minimize{
  display:flex!important;flex:none;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:44px;
  padding:6px 8px!important;white-space:nowrap;font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important
 }
 .tse-safari-chat__minimize::after{content:"Close";color:#313937}
 .tse-safari-chat__messages{
  flex:1 1 auto;min-height:0!important;max-height:none!important;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:12px 17px 10px
 }
 .tse-safari-chat__form{flex:0 0 auto;padding:10px 17px;gap:8px;max-height:none}
 .tse-safari-chat__form>p{margin:0}
 .tse-safari-chat__form textarea{min-height:69px;max-height:110px;resize:none}
 .tse-safari-chat__composer{min-height:72px}
 .tse-safari-chat__footer{
  flex:0 0 auto;padding:8px 14px calc(9px + env(safe-area-inset-bottom,0px));
  min-height:48px
 }
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__header{padding:7px 13px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__title strong{font-size:15px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__title :is(.tse-safari-chat__online,p){display:none}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form{gap:5px;padding:6px 13px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form>p{display:none}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form input[name="name"]{min-height:42px;padding-top:8px!important;padding-bottom:8px!important}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form textarea{min-height:53px;max-height:65px;padding-top:8px!important;padding-bottom:8px!important}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer{min-height:55px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer button[type="submit"]{bottom:5px;width:44px;height:44px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__footer{display:none}
}
@media(prefers-reduced-motion:reduce){.tse-safari-chat,.tse-request-bar--premium{scroll-behavior:auto!important;transition:none!important}}

/* Scoped AI recommendation cards inside existing chat log only. */
.tse-safari-chat__results{width:100%;display:grid;gap:9px;margin:5px 0 10px}
.tse-safari-chat__result{width:100%;display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid #e2e8dd;border-radius:14px;background:#fff;color:#202725!important;text-decoration:none!important;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.tse-safari-chat__result img{flex:none;width:76px;height:76px;object-fit:cover;border-radius:10px}
.tse-safari-chat__result-info{min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.tse-safari-chat__result-info strong{font-size:13px;line-height:1.35}
.tse-safari-chat__result-info small{font-size:11px;color:#5e6a60}
.tse-safari-chat__result-description{font-size:11px;color:#3e4a41;line-height:1.45}
.tse-safari-chat__result-info em{font-size:11px;font-style:normal;font-weight:700;color:#548b18}
.tse-safari-chat__result:focus-visible{outline:2px solid #68A522;outline-offset:2px}
.tse-safari-chat__quote-link{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;margin:2px 0 9px;padding:10px 14px;border-radius:12px;background:#68A522;color:#fff!important;font:700 12px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none!important}
.tse-safari-chat__quote-link:focus-visible{outline:2px solid #315c08;outline-offset:3px}

/* v3.9.574: registration-first and conversation presentation, chat component only. */
.tse-safari-chat :is(.tse-safari-chat__welcome,.tse-safari-chat__messages,.tse-safari-chat__quick-replies,.tse-safari-chat__form)[hidden]{display:none!important}
.tse-safari-chat__welcome{display:flex;flex-direction:column;gap:9px;padding:22px 20px;overflow-y:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain}
.tse-safari-chat__welcome h2{margin:0;font-size:18px;font-weight:700;line-height:1.3;color:#1c2720}
.tse-safari-chat__welcome p{margin:0 0 9px;font-size:13px;line-height:1.5;color:#47564a}
.tse-safari-chat__welcome label{font-size:13px;font-weight:650;color:#2c3a30}
.tse-safari-chat__welcome input:not([name="website"]){width:100%;min-height:48px;border:1px solid #cbd5ca!important;border-radius:12px!important;background:#fff!important;padding:11px 13px!important;font-size:15px!important;color:#202a24!important;box-shadow:none!important}
.tse-safari-chat__welcome input:focus-visible{outline:2px solid #68A522;outline-offset:2px}
.tse-safari-chat__welcome button[type="submit"]{min-height:46px;border:0;border-radius:12px;background:#68A522;color:#fff;font-weight:700;font-size:14px;cursor:pointer;margin-top:5px}
.tse-safari-chat__welcome button:disabled{opacity:.6;cursor:wait}
.tse-safari-chat__welcome .tse-safari-chat__privacy{font-size:11px;line-height:1.5;color:#56675a;margin:5px 0}
.tse-safari-chat__welcome .tse-safari-chat__privacy a{color:#3b6b18;text-decoration:underline}
.tse-safari-chat__field-error{font-size:12px;color:#a42323;min-height:0}
.tse-safari-chat__welcome .tse-safari-chat__feedback{color:#4e5d53}
.tse-safari-chat__messages{flex:1 1 auto;max-height:none!important;min-height:110px;gap:10px;padding:15px 14px;background:#f5f7f3}
.tse-safari-chat__message{display:flex;gap:7px;max-width:95%;align-items:flex-end;flex:none}
.tse-safari-chat__message{animation:tse-chat-appear .18s ease-out both}
@keyframes tse-chat-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.tse-safari-chat__message--visitor{align-self:flex-end;flex-direction:row-reverse}
.tse-safari-chat__advisor-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;background:#e5eddf;color:#386a11;border-radius:50%;font-size:10px;font-weight:800;margin-bottom:3px}
.tse-safari-chat__bubble{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.52;max-width:100%;padding:10px 12px;border-radius:16px 16px 16px 5px;white-space:pre-wrap;overflow-wrap:anywhere}
.tse-safari-chat__bubble--assistant{background:#fff;color:#26322a;border:1px solid #e6ece3}
.tse-safari-chat__bubble--visitor{background:#e4f0d4;color:#1e3317;border-radius:16px 16px 5px 16px}
.tse-safari-chat__time{align-self:flex-end;font-size:10px;line-height:1.1;color:#6b766d;white-space:nowrap}
.tse-safari-chat__quick-replies{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding:7px 14px 3px;background:#fff;scrollbar-width:thin}
.tse-safari-chat__quick-replies button{flex:0 0 auto;min-height:36px;border-radius:20px;padding:7px 12px;border:1px solid #d3dfcc;background:#f8fbf5;color:#315b18;font-size:12px;line-height:1.2;cursor:pointer}
.tse-safari-chat__quick-replies button:focus-visible{outline:2px solid #68A522;outline-offset:2px}
.tse-safari-chat__quick-replies button:disabled{opacity:.6}
.tse-safari-chat__typing{align-self:flex-start;display:flex;gap:4px;padding:13px;background:#fff;border-radius:14px;border:1px solid #e7ece3}
.tse-safari-chat__typing i{width:6px;height:6px;border-radius:50%;background:#77945f;animation:tse-chat-pulse 1.1s infinite ease-in-out}
.tse-safari-chat__typing i:nth-child(2){animation-delay:.15s}.tse-safari-chat__typing i:nth-child(3){animation-delay:.3s}
@keyframes tse-chat-pulse{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.tse-safari-chat__form{flex:0 0 auto;padding:9px 14px;background:#fff;gap:3px}
.tse-safari-chat__form textarea{min-height:54px;max-height:100px!important;resize:none}
.tse-safari-chat__composer{min-height:57px}
.tse-safari-chat__composer button[type="submit"]{bottom:7px}
@media(max-width:767px){
 .tse-safari-chat__welcome{padding:18px 16px;flex:1 1 auto}
 .tse-safari-chat__messages{flex:1 1 auto;min-height:0!important;padding:13px 14px}
 .tse-safari-chat__quick-replies{padding:6px 13px 3px}
 .tse-safari-chat__form{padding:7px 13px}
 .tse-safari-chat__form textarea{min-height:53px!important}
 .tse-safari-chat__composer{min-height:57px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__welcome{padding:8px 13px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__welcome h2{font-size:15px}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__quick-replies{display:none}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form textarea{min-height:50px!important}
}
@media(prefers-reduced-motion:reduce){.tse-safari-chat__typing i,.tse-safari-chat__message{animation:none}}

/* v3.9.575: scoped send-icon alignment and internal WhatsApp contact view. */
.tse-safari-chat .tse-safari-chat__composer button[data-tse-chat-send]{display:flex!important;align-items:center!important;justify-content:flex-start!important;line-height:1!important;padding:0 0 0 11px!important}
.tse-safari-chat .tse-safari-chat__composer button[data-tse-chat-send] svg{display:block;flex:none}
.tse-safari-chat__whatsapp-view[hidden]{display:none!important}
.tse-safari-chat__whatsapp-view{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:19px;padding:18px 15px;background:#f5f7f3}
.tse-safari-chat__whatsapp-view .tse-safari-chat__message{max-width:100%;align-self:flex-start}
.tse-safari-chat__whatsapp-view .tse-safari-chat__bubble{white-space:pre-line}
.tse-safari-chat__whatsapp-back{align-self:flex-start;min-height:44px;padding:8px 11px;border:1px solid #dce8d5;background:#fff;color:#25452a;border-radius:10px;cursor:pointer;font-size:13px}
.tse-safari-chat__whatsapp-action{display:inline-flex;align-self:center;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 16px;border-radius:13px;background:#25D366;color:#12301d!important;text-decoration:none!important;font-size:14px;font-weight:750}
.tse-safari-chat__whatsapp-action svg{width:20px;height:20px;flex:none}
.tse-safari-chat__whatsapp-back:focus-visible,.tse-safari-chat__whatsapp-action:focus-visible{outline:2px solid #68A522;outline-offset:2px}

 
/* v3.9.576: Chat-only viewport, compact cards, feedback and desktop launcher. */
.tse-safari-chat__desktop-trigger,.tse-safari-chat__desktop-launcher{display:none}
.tse-safari-chat__footer [hidden],.tse-safari-chat__whatsapp-view[hidden]{display:none!important}
.tse-safari-chat__messages{background:#f5f7f3!important;min-height:0;overflow-x:hidden;overscroll-behavior:contain}
.tse-safari-chat__rating-feedback{display:flex;justify-content:flex-start;gap:5px;margin:4px 0 0 35px}
.tse-safari-chat__rating-button{display:grid!important;place-items:center!important;min-width:34px;min-height:34px;padding:5px!important;border:1px solid transparent!important;border-radius:10px!important;color:#59675b!important;background:transparent!important;cursor:pointer}
.tse-safari-chat__rating-button[aria-pressed="true"]{color:#397018!important;background:#e4efdc!important;border-color:#c7dbba!important}
.tse-safari-chat__rating-button:focus-visible{outline:2px solid #68A522;outline-offset:2px}
.tse-safari-chat__rating-button svg{display:block;pointer-events:none}
.tse-safari-chat__result{gap:8px;padding:7px;border-radius:11px;box-shadow:none}
.tse-safari-chat__result img{width:52px;height:52px;border-radius:8px}
.tse-safari-chat__result-info{gap:2px}
.tse-safari-chat__result-info strong{font-size:12px;line-height:1.25}
.tse-safari-chat__result-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:11px;line-height:1.35}
.tse-safari-chat__result-info em{font-size:11px}
.tse-safari-chat__results{gap:6px}
.tse-safari-chat__whatsapp-action{color:#fff!important}
.tse-safari-chat__whatsapp-action svg{color:#fff!important;stroke:#fff!important;fill:none}
.tse-safari-chat__composer{display:flex;align-items:center}
.tse-safari-chat__composer textarea{flex:1 1 auto;min-width:0;padding-right:63px!important;font-size:16px!important}
.tse-safari-chat .tse-safari-chat__composer button[data-tse-chat-send]{top:50%!important;bottom:auto!important;right:9px!important;transform:translateY(-50%);display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important}
.tse-safari-chat .tse-safari-chat__composer button[data-tse-chat-send] svg{display:block;line-height:1;flex-shrink:0}
@media(max-width:767px){
 .tse-safari-chat:not([hidden]){position:fixed!important;inset:auto 0 auto 0!important;top:var(--tse-chat-visible-top,0px)!important;height:var(--tse-chat-visible-height,100dvh)!important;max-height:var(--tse-chat-visible-height,100dvh)!important;min-height:0!important;width:100%!important;max-width:none!important;border:0!important;border-radius:0!important;background:#f5f7f3!important;overflow:hidden!important;z-index:2147483000!important}
 .tse-safari-chat__header{flex:0 0 auto;background:#fff}
 .tse-safari-chat__messages{flex:1 1 auto;min-height:0!important;overflow-y:auto!important;background:#f5f7f3!important}
 .tse-safari-chat__form{flex:0 0 auto;min-height:0;background:#fff;padding-bottom:calc(7px + env(safe-area-inset-bottom,0px))}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__form{padding-bottom:6px}
 .tse-safari-chat__footer{flex:0 0 auto;background:#fff}
 .tse-safari-chat__form textarea,.tse-safari-chat__welcome input:not([name="website"]){font-size:16px!important}
}
@media(min-width:768px){
 .tse-safari-chat:not([hidden]){display:flex!important;position:fixed!important;top:auto!important;bottom:90px!important;right:18px!important;left:auto!important;width:min(410px,calc(100vw - 28px))!important;height:min(625px,calc(100dvh - 108px))!important;max-height:calc(100dvh - 108px)!important;border-radius:18px!important;z-index:10050!important}
 .tse-safari-chat__desktop-launcher{display:flex;position:fixed;right:18px;bottom:16px;z-index:10049;align-items:center;justify-content:flex-end;gap:12px;max-width:calc(100vw - 36px);padding:0;border:0;background:transparent;box-shadow:none;filter:none}
 .tse-safari-chat__desktop-launcher > button{box-sizing:border-box;appearance:none;-webkit-appearance:none;cursor:pointer;border:0!important;color:#fff!important;background:#68A522!important;box-shadow:0 4px 14px rgba(0,0,0,.14)!important;transition:background-color .15s ease}
 .tse-safari-chat__desktop-launcher > button:hover{background:#5e991e!important}
 .tse-safari-chat__desktop-launcher > button:focus-visible{outline:2px solid #285c12!important;outline-offset:3px}
 .tse-safari-chat__desktop-launcher .tse-safari-chat__desktop-prompt{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;margin:0;padding:10px 15px!important;border-radius:999px!important;font:700 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:nowrap}
 .tse-safari-chat__desktop-prompt i{display:block;flex:none;background:#fff;width:8px;height:8px;border-radius:50%}
 .tse-safari-chat__desktop-launcher .tse-safari-chat__desktop-circle{display:grid;place-items:center;flex:none;width:54px;height:54px;min-width:54px;min-height:54px;margin:0;padding:0!important;border-radius:50%!important}
 .tse-safari-chat__desktop-circle svg{display:block;pointer-events:none}
 .tse-safari-chat__messages{flex:1 1 auto;max-height:none!important}
}
/* v3.9.577: independent Chat, WhatsApp and Email footer targets. */
.tse-safari-chat__footer .tse-safari-chat__contact{background:#f6f8f5!important;border:1px solid #e3e9df!important;border-radius:12px!important}
.tse-safari-chat__footer .tse-safari-chat__contact.is-active{background:#e9f2e4!important;border-color:#b7d6a5!important;color:#326b16!important}
.tse-safari-chat__footer .tse-safari-chat__contact:hover{background:#edf4e8!important}
.tse-safari-chat__footer .tse-safari-chat__contact:focus-visible{outline:2px solid #68A522!important;outline-offset:2px}

/* v3.9.578: keep the existing desktop Chat launcher hidden until >100px scrolling. */
@media(min-width:768px){
 .tse-safari-chat__desktop-launcher:not(.tse-safari-chat__desktop-launcher--visible){opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px)}
 .tse-safari-chat__desktop-launcher.tse-safari-chat__desktop-launcher--visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
 .tse-safari-chat__desktop-launcher{transition:opacity 180ms ease,transform 180ms ease,visibility 180ms ease}
}
@media(prefers-reduced-motion:reduce){.tse-safari-chat__desktop-launcher{transition:none!important}}
/* Disable only the floating OceanWP / Essential Addons Back-to-Top controls. */
body #scroll-top,body>.eael-ext-scroll-to-top-wrap{display:none!important}
/* Compact one-line chat textarea. Its inline height grows up to five lines; send remains centred. */
.tse-safari-chat .tse-safari-chat__composer{min-height:46px!important}
.tse-safari-chat .tse-safari-chat__composer textarea{
 min-height:46px!important;max-height:128px!important;height:46px;
 padding:10px 63px 10px 14px!important;line-height:24px!important;
 resize:none!important;overflow-y:hidden;box-sizing:border-box;
}
.tse-safari-chat .tse-safari-chat__composer button[data-tse-chat-send]{top:50%!important;bottom:auto!important;transform:translateY(-50%);line-height:1!important}
@media(max-width:767px){
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer{min-height:46px!important}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer textarea{min-height:46px!important;max-height:128px!important}
}

/* v3.9.579: chatbot-only mobile trigger on Activity and quote pages.
   The existing activity sticky quote CTA remains the only mobile conversion bar. */
@media(max-width:767px){
 .tse-safari-chat__desktop-launcher--mobile-only{
  display:flex!important;position:fixed!important;right:16px!important;bottom:calc(105px + env(safe-area-inset-bottom,0px))!important;
  left:auto!important;z-index:10049!important;align-items:center;justify-content:center;gap:0;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  transition:opacity 180ms ease,transform 180ms ease,visibility 180ms ease;
 }
 .tse-safari-chat__desktop-launcher--mobile-only.tse-safari-chat__desktop-launcher--quote{bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
 .tse-safari-chat__desktop-launcher--mobile-only .tse-safari-chat__desktop-prompt{display:none!important}
 .tse-safari-chat__desktop-launcher--mobile-only .tse-safari-chat__desktop-trigger{
  display:grid!important;place-items:center!important;width:52px!important;height:52px!important;
  min-width:52px!important;min-height:52px!important;padding:0!important;margin:0!important;
  background:#68A522!important;color:#fff!important;border:0!important;border-radius:50%!important;
  box-shadow:0 4px 14px rgba(0,0,0,.18)!important;cursor:pointer;
 }
 .tse-safari-chat__desktop-launcher--mobile-only:not(.tse-safari-chat__desktop-launcher--visible){opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px)}
 .tse-safari-chat__desktop-launcher--mobile-only.tse-safari-chat__desktop-launcher--visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
}

/* v3.9.580: four distinct footer contacts and in-panel Telegram handoff. */
.tse-safari-chat__footer{gap:6px;padding-left:8px;padding-right:8px}
.tse-safari-chat__footer .tse-safari-chat__contact{flex:0 0 44px}
.tse-safari-chat__telegram-view{min-width:0;overflow-y:auto}
.tse-safari-chat__telegram-action{display:inline-flex;align-self:center;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 14px;border:0;border-radius:13px;background:#229ED9!important;color:#fff!important;text-decoration:none!important;font:700 13px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:normal;text-align:center}
.tse-safari-chat__telegram-action svg{display:block;flex:none;width:20px;height:20px;fill:#fff!important;color:#fff!important}
.tse-safari-chat__telegram-action:hover{background:#1789c0!important;color:#fff!important}
.tse-safari-chat__telegram-action:focus-visible{outline:2px solid #146286;outline-offset:3px}
@media(max-width:360px){.tse-safari-chat__footer{gap:4px;padding-left:6px;padding-right:6px}}
/* Exactly +4px to the resting textarea/composer height; automatic growth still caps at 128px. */
.tse-safari-chat .tse-safari-chat__composer{min-height:50px!important}
.tse-safari-chat .tse-safari-chat__composer textarea{min-height:50px!important;height:50px;padding-top:12px!important;padding-bottom:12px!important}
@media(max-width:767px){
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer{min-height:50px!important}
 .tse-safari-chat[data-tse-keyboard="1"] .tse-safari-chat__composer textarea{min-height:50px!important}
}

/* v3.9.581: Chat launchers wait for an authoritative session decision. */
.tse-safari-chat__desktop-launcher[data-tse-chat-session-pending]{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
body>.tse-request-bar.tse-request-bar--premium [data-tse-chat-session-pending]{visibility:hidden!important;pointer-events:none!important}
.tse-safari-chat__session-status[hidden]{display:none!important}
.tse-safari-chat__session-status{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 20px;text-align:center;background:#fff;color:#26312a;font:500 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tse-safari-chat__session-status p{margin:0;max-width:32ch}
.tse-safari-chat__session-status button{min-height:44px;padding:10px 18px;border:0;border-radius:12px;background:#68A522;color:#fff;cursor:pointer;font-weight:600;font-size:14px;line-height:1.2;font-family:inherit}
.tse-safari-chat__session-status button[hidden]{display:none!important}
.tse-safari-chat__session-status button:focus-visible{outline:2px solid #326617;outline-offset:3px}


/* v3.9.582: presentation-only Safari Chat finishing touches. */
/* Four contacts have evenly distributed space. */
.tse-safari-chat .tse-safari-chat__footer{
 justify-content:space-between;gap:clamp(5px,1.5vw,12px);
 padding-left:clamp(6px,3vw,16px);padding-right:clamp(6px,3vw,16px);
}
.tse-safari-chat .tse-safari-chat__footer .tse-safari-chat__contact{flex:0 0 44px}
@media(max-width:360px){
 .tse-safari-chat .tse-safari-chat__footer{gap:5px;padding-left:6px;padding-right:6px}
}
/* Keep current minimize control dimensions, icon, and focus ring. */
.tse-safari-chat .tse-safari-chat__minimize{
 transition:background-color 180ms ease,border-radius 180ms ease!important;
}
.tse-safari-chat .tse-safari-chat__minimize:hover,
.tse-safari-chat .tse-safari-chat__minimize:active{
 border-radius:12px!important;background-color:rgba(0,0,0,.06)!important;
}
/* Advisor photo sits over the pre-existing TSE initials fallback. */
.tse-safari-chat .tse-safari-chat__advisor-avatar{position:relative;overflow:hidden;isolation:isolate}
.tse-safari-chat .tse-safari-chat__advisor-avatar img{
 position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;
 border-radius:50%;animation:tse-chat-advisor-appear 200ms ease-out both;
}
.tse-safari-chat .tse-safari-chat__advisor-avatar img[hidden]{display:none!important}
.tse-safari-chat .tse-safari-chat__advisor-avatar--header{
 flex:0 0 38px;width:38px;height:38px;margin:0;
}
/* Subtle contact-state and panel-view transitions; existing layout unchanged. */
.tse-safari-chat .tse-safari-chat__footer .tse-safari-chat__contact{
 transition:background-color 200ms ease,border-color 200ms ease,color 200ms ease,transform 200ms ease;
}
@media(hover:hover){
 .tse-safari-chat .tse-safari-chat__footer .tse-safari-chat__contact:hover{transform:translateY(-1px)}
}
.tse-safari-chat .tse-safari-chat__whatsapp-view:not([hidden]),
.tse-safari-chat .tse-safari-chat__telegram-view:not([hidden]){
 animation:tse-chat-view-appear 200ms ease-out both;
}
@keyframes tse-chat-view-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes tse-chat-advisor-appear{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
 .tse-safari-chat .tse-safari-chat__minimize,
 .tse-safari-chat .tse-safari-chat__footer .tse-safari-chat__contact{transition:none!important}
 .tse-safari-chat .tse-safari-chat__advisor-avatar img,
 .tse-safari-chat .tse-safari-chat__whatsapp-view:not([hidden]),
 .tse-safari-chat .tse-safari-chat__telegram-view:not([hidden]){animation:none!important}
}
