/* Developed by Science & Marketing | AlejandroCobo.com | WhatsApp CTA | V0.17.18-alpha.28 | 2026-11-13 */
.ac-wa-launch,.ac-wa-dialog,.ac-wa-dialog *{box-sizing:border-box}
.ac-wa-launch{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:9970;display:inline-flex;align-items:center;gap:9px;border:1px solid #12864d;border-radius:999px;background:#147b49;color:#fff;padding:12px 17px;min-height:52px;box-shadow:0 10px 26px rgba(7,31,56,.24);font:700 .94rem/1.2 Inter,system-ui,sans-serif;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.ac-wa-launch svg{width:25px;height:25px;flex:none}
.ac-wa-launch:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(7,31,56,.3)}
.ac-wa-launch:focus-visible,.ac-wa-dialog button:focus-visible,.ac-wa-dialog input:focus-visible{outline:3px solid #edbb5b;outline-offset:3px}
.ac-wa-dialog{position:fixed;inset:0;width:min(460px,calc(100% - 28px));max-height:min(640px,calc(100dvh - 36px));overflow:auto;padding:0;border:1px solid #d3e0eb;border-radius:22px;background:#fff;color:#122b3e;box-shadow:0 28px 85px rgba(7,31,56,.28);font:400 1rem/1.5 Inter,system-ui,sans-serif}
.ac-wa-dialog::backdrop{background:rgba(2,20,39,.65);backdrop-filter:blur(3px)}
.ac-wa-dialog:not([open]){display:none}
.ac-wa-form{display:grid;gap:13px;padding:clamp(21px,5vw,30px)}
.ac-wa-form h2{margin:0;color:#071f38;font-size:clamp(1.3rem,3.5vw,1.7rem);line-height:1.2}
.ac-wa-description{margin:0;color:#475e71}
.ac-wa-form label{font-weight:750;color:#16324c}
.ac-wa-input{width:100%;min-height:50px;padding:11px 14px;font:inherit;border:1px solid #95a9bd;border-radius:12px;background:#fff;color:#0c253b}
.ac-wa-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef5f9;border:1px solid #d6e5ef;padding:14px;border-radius:12px;margin:0;font-size:.92rem}
.ac-wa-notice{font-size:.79rem;line-height:1.5;color:#506579;margin:0}
.ac-wa-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}
.ac-wa-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ac-wa-cancel{border:0;background:transparent;color:#263d50;border-radius:8px;font:400 1.65rem/1 Inter,system-ui,sans-serif;min-width:42px;min-height:42px;cursor:pointer;margin:-8px -8px 0 0}

body:has(.ac-cookies-banner:not([hidden])) .ac-wa-launch{visibility:hidden;pointer-events:none}
@media(max-width:480px){.ac-wa-launch{padding:11px;left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));min-width:50px;justify-content:center}.ac-wa-launch__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)} .ac-wa-form{padding:22px}}
@media(prefers-reduced-motion:reduce){.ac-wa-launch{transition:none}}

/* Single primary action; no copy / WhatsApp Web decision screen. */
.ac-wa-actions .ac-wa-submit{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #147b49;border-radius:11px;background:#147b49;color:#fff;text-decoration:none;text-align:center;padding:10px;font:700 .88rem/1.3 Inter,system-ui,sans-serif;cursor:pointer}
.ac-wa-actions .ac-wa-submit:focus-visible{outline:3px solid #edbb5b;outline-offset:3px}

/* Conditional contact fields: balanced desktop grid; one column on small screens. */
.ac-wa-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0}
.ac-wa-field{display:grid;align-content:start;gap:7px;min-width:0}
.ac-wa-field--wide{grid-column:1/-1}
.ac-wa-field label{overflow-wrap:normal;word-break:normal}
.ac-wa-dialog .ac-wa-input{min-width:0}
.ac-wa-dialog .ac-wa-input:focus-visible{outline:3px solid #edbb5b;outline-offset:2px}
@media(max-width:520px){.ac-wa-fields{grid-template-columns:minmax(0,1fr)}}

/* Suggested geolocation: responsive dropdown + searchable city input, no forced choice. */
.ac-wa-dialog select.ac-wa-input{appearance:auto;cursor:pointer}
.ac-wa-field__help{display:block;color:#526779;font-size:.78rem;line-height:1.45}
.ac-wa-geostatus{margin:0;color:#376287;font-size:.78rem;min-height:0}
.ac-wa-geostatus:empty{display:none}
.ac-wa-location-privacy{margin:0;font-size:.75rem;line-height:1.45;color:#586a78}
.ac-wa-dialog .ac-wa-input option{color:#102c44;background:#fff}

/* Keep the only permitted action visible while long mobile forms scroll. */
@media(max-width:520px){.ac-wa-dialog .ac-wa-actions{position:sticky;bottom:0;z-index:2;padding:8px 0 2px;background:#fff;box-shadow:0 -8px 18px rgba(255,255,255,.96)}}
