/* Layered contact icons inspired by mRcOol7's supplied Uiverse component. */
body a.whatsapp-float.ph-contact{--contact-accent:#5FD2E5;--contact-soft:#e9fbfe;position:fixed!important;right:28px!important;bottom:24px!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:9px;width:78px!important;min-width:78px!important;height:82px!important;padding:4px!important;border:0!important;border-radius:12px;background:transparent!important;color:#000035!important;box-shadow:none!important;text-shadow:none!important;overflow:visible;text-decoration:none;z-index:90;isolation:isolate}
body a.whatsapp-float.ph-contact-email{--contact-accent:#E89AAE;--contact-soft:#fff0f7;bottom:128px!important}
.ph-contact-layer{position:relative;display:block;width:48px;height:48px;transition:transform .35s ease;transform-origin:center}
.ph-contact-layer>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--contact-accent);border-radius:12px;background:var(--contact-soft);transition:transform .35s ease,opacity .35s ease,box-shadow .35s ease}
.ph-contact-layer>span:nth-child(1){opacity:.2;transform:translate(-4px,4px)}
.ph-contact-layer>span:nth-child(2){opacity:.35;transform:translate(-3px,3px)}
.ph-contact-layer>span:nth-child(3){opacity:.5;transform:translate(-2px,2px)}
.ph-contact-layer>span:nth-child(4){opacity:.7;transform:translate(-1px,1px)}
.ph-contact-layer>.ph-contact-face{background:var(--contact-accent);box-shadow:0 7px 18px rgb(0 0 53 / 12%)}
.ph-contact-face svg{width:26px;height:26px;display:block}
.ph-contact-label{display:block!important;font-size:12px;font-weight:700;line-height:18px;padding:0 5px;color:#000035;background:rgb(255 255 255 / 92%);border-radius:6px;white-space:nowrap}
.ph-contact-tooltip{position:absolute;right:calc(100% + 14px);bottom:10px;width:258px;opacity:0;visibility:hidden;transform:translateX(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s;pointer-events:none;color:#000035;text-align:left;cursor:pointer}
.ph-contact-tooltip::after{content:'';position:absolute;left:100%;top:0;width:24px;height:100%}
.ph-contact-profile{display:block;background:#fff;border:1px solid var(--contact-accent);border-radius:16px;padding:16px;box-shadow:0 12px 32px rgb(0 0 53 / 13%)}
.ph-contact-user{display:flex;align-items:center;gap:10px}
.ph-contact-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--contact-soft);color:#000035}
.ph-contact-avatar svg{width:22px;height:22px}
.ph-contact-details{display:flex;min-width:0;flex-direction:column;gap:4px}
.ph-contact-details strong{font-size:14px;line-height:1.2}
.ph-contact-details>span{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.ph-contact-about{display:block;margin-top:12px;padding-top:10px;border-top:1px solid #edf0f5;font-size:12px;font-weight:400;line-height:1.4}
@media(hover:hover){
.ph-contact:hover .ph-contact-layer{transform:rotate(-25deg) skew(12deg)}
.ph-contact:hover .ph-contact-layer>span:nth-child(1){transform:translate(-10px,10px)}
.ph-contact:hover .ph-contact-layer>span:nth-child(2){transform:translate(-5px,5px)}
.ph-contact:hover .ph-contact-layer>span:nth-child(3){transform:translate(0,0)}
.ph-contact:hover .ph-contact-layer>span:nth-child(4){transform:translate(5px,-5px)}
.ph-contact:hover .ph-contact-layer>.ph-contact-face{transform:translate(10px,-10px)}
.ph-contact:hover .ph-contact-tooltip{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto}
}
.ph-contact:focus-visible{outline:2px solid #000035;outline-offset:5px}
.ph-contact:focus .ph-contact-tooltip{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto}
@media(max-width:620px){
body a.whatsapp-float.ph-contact{right:12px!important;bottom:14px!important;width:62px!important;min-width:62px!important;height:72px!important;gap:5px}
body a.whatsapp-float.ph-contact-email{bottom:99px!important}
.ph-contact-layer{width:44px;height:44px}
.ph-contact-label{font-size:10px;line-height:17px}
.ph-contact-tooltip{width:min(240px,calc(100vw - 105px));right:calc(100% + 8px)}
}
@media(prefers-reduced-motion:reduce){.ph-contact-layer,.ph-contact-layer>span,.ph-contact-tooltip{transition:none!important}.ph-contact:hover .ph-contact-layer,.ph-contact:hover .ph-contact-layer>span{transform:none!important}}

/* Keep the hit area transparent even when legacy page palettes use !important. */
body a.whatsapp-float.ph-contact:is(.ph-contact-email,.ph-contact-whatsapp){background:transparent!important}
