.kii-whatsapp {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  color: #17332b;
}
.kii-wa-launcher {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #168751;
  color: #fff;
  box-shadow: 0 8px 25px #123e3140;
  cursor: pointer;
}
.kii-wa-launcher:hover { background: #116b40; }
.kii-wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(382px, calc(100vw - 44px));
  max-height: min(480px, calc(100dvh - 110px));
  overflow: auto;
  background: #f3f7f4;
  border: 1px solid #d5e5dc;
  border-radius: 17px;
  box-shadow: 0 16px 48px #17332b38;
  text-align: left;
}
.kii-wa-panel[hidden] { display: none; }
.kii-wa-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 15px 15px 18px;
  background: #08664d;
  color: #fff;
}
.kii-wa-header h2 { font-size: 16px; margin: 0; color: inherit; letter-spacing: 0; }
.kii-wa-header p { font-size: 12px; margin: 3px 0 0; color: #e0f5ea; }
.kii-wa-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #ffffff19;
  color: #fff;
  cursor: pointer;
}
.kii-wa-close:hover { background: #ffffff35; }
.kii-wa-contacts { display: grid; gap: 10px; padding: 11px; }
.kii-wa-contact {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0eae4;
  border-radius: 11px;
}
.kii-wa-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce7df;
  border-radius: 50%;
  background: #fff;
}
.kii-wa-avatar img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.16) translateY(-4%); }
.kii-wa-details h3 { margin: 0; font-size: 14px; letter-spacing: 0; }
.kii-wa-number { display: block; margin-top: 3px; color: #08664d; font-size: 13px; font-weight: 700; }
.kii-wa-details p { margin: 5px 0 8px; font-size: 12px; line-height: 1.45; color: #4b645a; }
.kii-wa-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.kii-wa-actions a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #cae1d3;
  border-radius: 7px;
  color: #08664d;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}
.kii-wa-chat { background: #e9f7ee; }
.kii-wa-actions a:hover { background: #dcf1e4; }
.kii-whatsapp :is(a, button):focus-visible,
.kii-social a:focus-visible { outline: 2px solid #0664f6; outline-offset: 2px; }
.kii-wa-close:focus-visible { outline-color: #fff; }
.kii-social { display: grid; justify-items: start; gap: 8px; margin-top: 15px; }
.kii-social > b { font-size: 12px; color: #273e61; }
.kii-social-links { display: flex; gap: 8px; }
.footer-grid .kii-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1e8f3;
  border-radius: 50%;
  background: #fff;
  margin: 0;
}
.footer-grid .kii-social a:hover { background: #eef5ff; }
.footer-grid .kii-social a.kii-social-instagram { color: #a02d69; }
.footer-grid .kii-social a.kii-social-facebook { color: #1460bf; }
.footer-grid .kii-social a.kii-social-youtube { color: #c82828; }
@media (max-width: 520px) {
  .kii-whatsapp {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .kii-wa-launcher { width: 54px; height: 54px; }
  .kii-wa-panel { width: min(382px, calc(100vw - 24px)); max-height: calc(100dvh - 90px); }
}
