/* V22 consistent login, account recovery, WhatsApp-like chat, and profile image controls */
.wf-public .wf-auth-login{min-height:100dvh;height:100dvh;overflow:hidden}
.wf-public .wf-login-photo::after{inset:12% 0 0;background:linear-gradient(180deg,transparent 0%,#ffedf5 95%)}
.wf-public .wf-login-card{top:auto;bottom:max(22px,env(safe-area-inset-bottom));padding:24px 23px 26px;max-height:calc(100dvh - 90px);width:min(92%,475px);border-radius:28px;overflow-y:auto;background:linear-gradient(160deg,#fffefee9,#fff5fbd9);box-shadow:0 26px 70px #50003330}
.wf-login-card .wf-login-logo img{height:96px;width:145px}
.wf-login-card h1{font-size:clamp(24px,4.8vw,31px);margin:10px 0 8px}
.wf-login-card>p{font-size:14px;line-height:1.5;margin:0 0 22px}
.wf-login-card .wf-form{gap:15px}
.wf-login-card .wf-login-form>label{min-height:58px;border-radius:16px;padding:9px 15px;background:#fff;border:1px solid #efdae6}
.wf-login-card .wf-login-form>label input{font-size:15px;min-height:38px}
.wf-login-card .wf-primary{min-height:56px;border-radius:16px;font-size:16px}
.wf-login-card .wf-login-options{margin:0 0 3px;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center}
.wf-login-card .wf-auth-switch{font-size:14px;margin:18px 0 0}
.wf-recovery-help{font-size:13px;line-height:1.55;color:#584c59;text-align:left;margin:0 0 7px}
@media(max-height:610px){.wf-public .wf-login-card{max-height:86dvh;padding:15px 18px}.wf-login-card .wf-login-logo img{height:58px}.wf-login-card h1{font-size:21px;margin:4px}.wf-login-card>p{font-size:12px;margin:0 0 10px}.wf-login-card .wf-login-form>label{min-height:48px}.wf-login-card .wf-primary{min-height:46px}}
@media(min-width:700px){.wf-public .wf-login-card{width:min(480px,90vw);padding:32px;bottom:6%;}.wf-public .wf-login-photo img{object-position:center 20%}}
.am-chat-visit{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;background:#fff0f7;color:#ac0057;font-weight:750;font-size:12px;text-decoration:none;padding:9px 12px;margin-top:7px}
.wf-visit{flex-wrap:wrap}.wf-visit .am-chat-visit{width:100%;margin-left:70px}
.am-chat-intro h2{font-size:21px;margin:8px 0 4px}.am-chat-intro p{font-size:12px;color:#7b6874;margin:0 0 12px}
.am-chat-contacts{display:flex!important;gap:8px;overflow-x:auto;padding:4px 1px 11px;scrollbar-width:thin}
.am-chat-contacts a{display:flex;gap:7px;align-items:center;flex:0 0 auto;padding:7px 11px;border-radius:16px;border:1px solid #f5e3eb;min-width:130px;text-decoration:none;color:#513548;background:#fff}
.am-chat-contacts a.selected{background:#fff0f7;border-color:#ff9cc7;color:#98004e}
.am-chat-contact-avatar{height:33px;width:33px;object-fit:cover;border-radius:50%}
.am-whatsapp-chat{display:flex;flex-direction:column;min-height:360px;max-height:calc(100dvh - 255px);overflow:hidden;border-radius:20px;background:#f7f4f2}
.am-conversation-header{padding:11px 13px;background:#fff;display:flex;gap:10px;align-items:center;border-bottom:1px solid #eee0e7}
.am-conversation-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover}.am-conversation-header strong{display:block;font-size:14px}.am-conversation-header small{font-size:11px;color:#746a72}
.am-whatsapp-chat [data-live-chat]{flex:1;min-height:155px;overflow-y:auto;background:repeating-linear-gradient(135deg,#f9f5f5,#f9f5f5 25px,#f8f1f5 25px,#f8f1f5 50px);padding:14px}
.am-whatsapp-chat .bubble{width:fit-content;max-width:85%;padding:9px 12px;border-radius:15px;margin:7px 0;overflow-wrap:anywhere;line-height:1.5;background:#fff;color:#362232;box-shadow:0 1px 5px #40132913}
.am-whatsapp-chat .bubble.mine{background:#ffe0ee;margin-left:auto;border-bottom-right-radius:3px}
.am-whatsapp-chat .bubble.theirs{margin-right:auto;border-bottom-left-radius:3px}
.am-whatsapp-chat .bubble small{display:block;text-align:right;color:#826e79;font-size:10px}
.am-whatsapp-chat .wf-chat-compose{display:flex;align-items:center;gap:8px;padding:10px;background:#fff;border-top:1px solid #f2e0e9;margin:0}
.am-whatsapp-chat .wf-chat-compose input[name=body]{flex:1;min-width:0;min-height:43px;background:#faf7f9;border:1px solid #eedde7;border-radius:24px;padding:9px 13px;font-size:14px}
.am-whatsapp-chat .wf-chat-compose button{flex-shrink:0;min-width:43px;min-height:43px;border-radius:50%;background:#ff0077;color:#fff;border:0}
.am-whatsapp-chat .wf-chat-compose label{cursor:pointer;font-size:24px}
.am-profile-photo-wrap img{width:110px;height:110px;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 5px 18px #50003320}
.am-avatar-form{display:flex;align-items:center;flex-direction:column;gap:9px;margin:8px auto 16px}
.am-avatar-form input[type=file]{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
.am-upload-button{display:flex;align-items:center;gap:8px;border-radius:25px;background:#ff0077;color:#fff;padding:11px 16px;cursor:pointer;font-weight:750;font-size:13px}
.am-avatar-hint{font-size:11px;color:#766a76;text-align:center}.am-avatar-submit{max-width:230px}

.am-whatsapp-chat .bubble.mine,.am-whatsapp-chat .bubble.mine div{color:#352134!important}
.am-whatsapp-chat .bubble.theirs,.am-whatsapp-chat .bubble.theirs div{color:#352134!important}
.am-whatsapp-chat .wf-chat-compose button svg{color:#fff;stroke:#fff}
