#credass-whatsapp {
  --credass-wa-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(var(--credass-wa-bottom), var(--credass-wa-obstacle-bottom, 0px));
  z-index: 9999;
  color: #173654;
  font: 14px/1.5 Inter, system-ui, sans-serif;
  text-align: left;
  isolation: isolate;
}
#credass-whatsapp *, #credass-whatsapp *::before, #credass-whatsapp *::after { box-sizing: border-box; }
#credass-whatsapp [hidden] { display: none !important; }
#credass-whatsapp button, #credass-whatsapp textarea { font: inherit; }
#credass-whatsapp button, #credass-whatsapp a { -webkit-tap-highlight-color: transparent; }
#credass-whatsapp button { cursor: pointer; }
#credass-whatsapp svg { display: block; width: 23px; height: 23px; flex-shrink: 0; }
#credass-whatsapp .credass-wa-launcher { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin: 0 0 0 auto; padding: 12px 18px; background: #087c4a; color: #fff; border: 1px solid #ffffff80; border-radius: 30px; box-shadow: 0 6px 22px #102b4b30; font-size: 13px; font-weight: 750; line-height: 1; }
#credass-whatsapp .credass-wa-launcher:hover, #credass-whatsapp .credass-wa-start:hover { background: #06623b; }
#credass-whatsapp .credass-wa-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(356px, calc(100vw - 32px)); max-height: calc(100dvh - max(var(--credass-wa-bottom), var(--credass-wa-obstacle-bottom, 0px)) - 76px); overflow: auto; overscroll-behavior: contain; border: 1px solid #dce5e2; border-radius: 20px; background: #fff; box-shadow: 0 16px 60px #102b4b33; }
#credass-whatsapp .credass-wa-header { display: flex; align-items: center; gap: 10px; padding: 18px 14px; color: #fff; background: #173654; border-bottom: 3px solid #d9b65f; }
#credass-whatsapp .credass-wa-header img { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; background: #fff6de; border-radius: 50%; }
#credass-whatsapp .credass-wa-header p { margin: 0 0 3px; font-size: 11px; color: #efdca8; }
#credass-whatsapp h2 { margin: 0; padding: 0; font: 750 17px/1.25 Inter, system-ui, sans-serif; color: #fff; }
#credass-whatsapp .credass-wa-close { display: grid; place-items: center; width: 36px; height: 36px; margin: -9px -6px auto auto; padding: 0; flex-shrink: 0; border: 0; border-radius: 50%; background: #ffffff16; color: #fff; font-size: 26px; line-height: 1; }
#credass-whatsapp .credass-wa-close:hover { background: #ffffff30; }
#credass-whatsapp .credass-wa-body { padding: 18px; }
#credass-whatsapp .credass-wa-greeting { margin: 0 0 18px; padding: 12px 14px; border-radius: 0 14px 14px; background: #f6f8f6; color: #40566a; font-size: 14px; line-height: 1.6; }
#credass-whatsapp label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 750; color: #173654; }
#credass-whatsapp textarea { display: block; width: 100%; min-height: 80px; max-height: 180px; padding: 10px 12px; border: 1px solid #c4d2cd; border-radius: 10px; background: #fff; color: #173654; font-size: 16px; line-height: 1.5; resize: vertical; }
#credass-whatsapp textarea::placeholder { color: #718077; opacity: 1; }
#credass-whatsapp .credass-wa-start { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: #087c4a; color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; line-height: 1.3; }
#credass-whatsapp .credass-wa-start svg { width: 20px; height: 20px; }
#credass-whatsapp .credass-wa-start > span:last-child { margin-left: auto; }
#credass-whatsapp .credass-wa-note { margin: 12px 0 0; font-size: 11px; line-height: 1.55; color: #627268; }
#credass-whatsapp .credass-wa-note strong { white-space: nowrap; font-weight: 650; }
#credass-whatsapp :is(button, a, textarea):focus-visible { outline: 3px solid #c69a3c; outline-offset: 4px; }
#credass-whatsapp .credass-wa-fallback { display: block; padding: 8px; color: #087c4a; background: #fff; border-radius: 8px; }
/* Replace the recovered floating contact menu with one consistent chat. */
body:has(#credass-whatsapp) [data-loc^="client/src/components/WhatsAppButton.tsx:"].fixed { display: none !important; }
@media (max-width: 1023px) {
  html:has(script[src^="/credass-legacy.js"]) #credass-whatsapp { --credass-wa-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  html:has(script[src^="/credass-legacy.js"]) #credass-whatsapp .credass-wa-launcher { width: 44px; min-height: 44px; padding: 10px; }
  html:has(script[src^="/credass-legacy.js"]) #credass-whatsapp .credass-wa-launcher > span { display: none; }
}
@media (max-width: 639px) {
  #credass-whatsapp { --credass-wa-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  #credass-whatsapp .credass-wa-launcher { min-height: 46px; padding: 11px 14px; }
  #credass-whatsapp .credass-wa-panel { width: min(356px, calc(100vw - 32px)); }
}
