/* Keep desktop and tablet contact controls centered along the right edge. */
@media (min-width: 621px) {
  body #phinq .ph-contact-ai { display: none !important; }
  body .site-header .phai-launch { display: inline-flex !important; }
  body a.whatsapp-float.ph-contact:is(.ph-contact-email, .ph-contact-whatsapp) {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    right: 20px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }
  body a.whatsapp-float.ph-contact.ph-contact-email { top: calc(50% - 52px) !important; }
  body a.whatsapp-float.ph-contact.ph-contact-whatsapp { top: calc(50% + 52px) !important; }
}

/* Keep mobile contact controls in a reserved bottom row. */
@media (max-width: 620px) {
  body main :is(h1, h2, h3, h4) { overflow-wrap: anywhere; }
  body .site-header .phai-launch { display: none !important; }
  body .site-header .language-switcher { display: block !important; }
  body .about-company-strip .shell { grid-template-columns: minmax(0, 1fr) !important; }
  body .about-company-strip :is(small, strong) { overflow-wrap: anywhere; }
  body:has(.ph-contact-ai), body:has(a.whatsapp-float.ph-contact) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body #phinq .ph-contact-ai,
  body a.whatsapp-float.ph-contact:is(.ph-contact-email, .ph-contact-whatsapp) {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    right: auto !important;
    left: 0 !important;
    width: 33.333333% !important;
    min-width: 0 !important;
    height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 9px 4px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 4px !important;
    justify-content: center !important;
    border: 0 !important;
    border-top: 1px solid #dce6ee !important;
    border-radius: 0 !important;
    background: #F3F7FD !important;
    box-shadow: none !important;
    z-index: 90;
  }
  body a.whatsapp-float.ph-contact.ph-contact-email { left: 33.333333% !important; }
  body a.whatsapp-float.ph-contact.ph-contact-whatsapp { left: 66.666666% !important; }
  .ph-contact .ph-contact-layer { width: 34px; height: 34px; }
  .ph-contact .ph-contact-layer > span { border-radius: 9px; transform: none; }
  .ph-contact .ph-contact-layer > span:not(.ph-contact-face) { display: none; }
  .ph-contact .ph-contact-face { box-shadow: none; }
  .ph-contact .ph-contact-face svg { width: 22px; height: 22px; }
  .ph-contact .ph-contact-label { font-size: 11px; line-height: 17px; background: transparent; }
  .ph-contact .ph-contact-tooltip { display: none; }
  body .cookie-settings, body .cookie-settings-button {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body .cookie-consent { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}
