/* A compact WhatsApp launcher with the HIPOS identity inside the form. */
.wa-widget {
  position:fixed; right:26px; bottom:max(24px,env(safe-area-inset-bottom));
  z-index:85; width:326px; max-width:calc(100vw - 32px); color:var(--ink);
  font-family:inherit;
}
.wa-launcher {
  position:relative; isolation:isolate; display:flex; align-items:center; gap:12px;
  width:100%; padding:12px 17px 12px 12px; min-height:70px; border:1px solid #ffffff60;
  border-radius:999px; background:linear-gradient(110deg,#087b48,#078345);
  color:#fff; cursor:pointer; list-style:none;
  box-shadow:0 7px 24px #074c352d;
  transition:transform .2s,box-shadow .2s,background .2s;
}
.wa-launcher::-webkit-details-marker { display:none; }
.wa-launcher::marker { content:""; }
.wa-launcher::before,.wa-launcher::after {
  content:""; position:absolute; inset:-2px; z-index:-1; pointer-events:none;
  border:2px solid #25d36690; border-radius:inherit; background:#25d36620;
  opacity:0; transform-origin:center;
  animation:wa-pulse 2.6s cubic-bezier(.2,.6,.4,1) infinite;
}
.wa-launcher::after { animation-delay:-1.3s; }
.wa-launcher:hover { transform:translateY(-3px); background:#076e3f; box-shadow:0 11px 30px #074c3540; }
.wa-launcher:focus-visible { outline:3px solid var(--primary); outline-offset:8px; }
.wa-launcher-icon { flex:0 0 46px; width:46px; height:46px; display:grid; place-items:center; border:1px solid #ffffff50; border-radius:50%; background:#ffffff24; }
.wa-launcher-copy { display:flex; flex-direction:column; gap:3px; text-align:left; }
.wa-launcher-copy strong { font-size:14px; line-height:1.3; font-weight:800; letter-spacing:-.2px; }
.wa-launcher-copy>span { font-size:12px; line-height:1.4; font-weight:600; }
.wa-badge { position:absolute; top:-7px; right:12px; width:29px; height:29px; display:grid; place-items:center; border:3px solid #fff; border-radius:50%; background:var(--accent); color:var(--primary-deep); font-size:14px; font-weight:800; box-shadow:0 3px 9px #08236c22; }
.wa-prompt { position:absolute; right:0; bottom:calc(100% + 16px); padding:10px 17px; border:1px solid #e4e9f5; border-radius:999px; background:#fff; color:var(--ink); box-shadow:0 4px 18px #08236c12; font-size:12px; font-weight:800; line-height:1.4; white-space:nowrap; pointer-events:none; animation:wa-entrance .45s ease-out; }
.wa-prompt::after { content:""; position:absolute; right:30px; bottom:-5px; width:9px; height:9px; background:#fff; border-right:1px solid #e4e9f5; border-bottom:1px solid #e4e9f5; transform:rotate(45deg); }
.wa-widget[open] .wa-prompt { display:none; }
.wa-widget[open] .wa-launcher::before,.wa-widget[open] .wa-launcher::after { animation:none; opacity:0; }
.wa-panel {
  position:absolute; right:0; bottom:calc(100% + 18px); width:360px; max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 130px - env(safe-area-inset-bottom)); overflow:auto; overscroll-behavior:contain;
  background:#fff; border:1px solid #e1e7f2; border-radius:15px;
  box-shadow:0 18px 65px #08236c30,0 3px 10px #08236c10;
}
.wa-widget[open] .wa-panel { animation:wa-entrance .22s ease-out; }
.wa-panel-header { position:relative; padding:20px 52px 20px 20px; color:#fff; background:linear-gradient(120deg,var(--primary),#10348f); }
.wa-panel-header::after { content:""; position:absolute; left:20px; bottom:0; height:3px; width:38px; background:var(--accent); border-radius:3px 3px 0 0; }
.wa-brand { display:block; margin-bottom:8px; font-size:12px; font-weight:600; color:#d4e0ff; }
.wa-panel h2 { margin:0 0 6px; color:#fff; font-size:18px; line-height:1.35; letter-spacing:-.35px; font-weight:800; }
.wa-number { font-size:14px; color:#e0e9ff; font-weight:650; }
.wa-close { position:absolute; top:15px; right:12px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff35; border-radius:9px; color:#fff; background:#ffffff10; cursor:pointer; transition:background .2s; }
.wa-close:hover { background:#ffffff28; }
.wa-close:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.wa-panel-body { padding:20px; }
.wa-intro { margin:0 0 20px; color:#62708a; font-size:15px; line-height:1.6; }
.wa-form { display:flex; flex-direction:column; gap:17px; }
.wa-form[hidden] { display:none; }
.wa-field { display:flex; flex-direction:column; gap:7px; }
.wa-field label { font-size:14px; line-height:1.4; font-weight:800; }
.wa-field input,.wa-field select { box-sizing:border-box; width:100%; min-width:0; min-height:47px; padding:12px; border:1px solid #dce3f3; border-radius:9px; background:#f5f7ff; font:inherit; font-size:16px; color:var(--ink); transition:border-color .2s,box-shadow .2s; }
.wa-field input::placeholder { color:#77839a; }
.wa-field input:focus,.wa-field select:focus { outline:none; border-color:var(--primary); background:#fff; box-shadow:0 0 0 4px #163eaf12; }
.wa-field input:user-invalid,.wa-field select:user-invalid { border-color:#b83e34; }
.wa-field-hint { font-size:12px; line-height:1.4; color:#63718a; }
.wa-submit { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:47px; padding:13px 16px; border:0; border-radius:9px; background:var(--accent); color:var(--primary-deep); font:inherit; font-size:14px; font-weight:800; cursor:pointer; text-decoration:none; transition:background .2s,transform .2s; }
.wa-submit:hover { background:#ff9b33; transform:translateY(-1px); }
.wa-note { margin:-5px 0 0; font-size:12px; line-height:1.5; color:#63718a; text-align:center; }
@keyframes wa-pulse {
  0% { transform:scale(1); opacity:.8; }
  65% { opacity:.25; }
  100% { transform:scale(1.09,1.5); opacity:0; }
}
@keyframes wa-entrance { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@media(max-width:600px) {
  .wa-widget { right:16px; bottom:max(18px,env(safe-area-inset-bottom)); width:310px; }
  .wa-launcher { min-height:65px; gap:10px; padding:10px 15px 10px 10px; }
  .wa-launcher-icon { flex-basis:43px; width:43px; height:43px; }
  .wa-panel { bottom:calc(100% + 13px); max-height:calc(100dvh - 114px - env(safe-area-inset-bottom)); }
  .wa-panel-header { padding:18px 50px 18px 18px; }
  .wa-panel-body { padding:18px; }
}
@media(max-width:350px) { .wa-launcher-copy strong { font-size:13px; } .wa-launcher-copy>span { font-size:12px; } .wa-launcher { gap:8px; } }
@media(prefers-reduced-motion:reduce) {
  .wa-launcher::before,.wa-launcher::after,.wa-prompt,.wa-widget[open] .wa-panel { animation:none; }
  .wa-launcher,.wa-close,.wa-field input,.wa-field select,.wa-submit { transition:none; }
}
@media print { .wa-widget { display:none; } }
