/* Persistent WhatsApp entry point, matching the neutral site palette. */
.representative-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 36px);
  min-height: 64px;
  padding: 13px 18px;
  border: 1px solid #686868;
  border-radius: 999px;
  background: #303030;
  color: #fff;
  box-shadow: 0 8px 26px #0003;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
}
.representative-float span { max-width: 210px; }
.representative-float svg { flex: none; width: 30px; height: 30px; }
.representative-float:hover { background: #191919; box-shadow: 0 10px 30px #0004; }
.representative-float:focus-visible { outline: 3px solid #777; outline-offset: 4px; }
footer { padding-bottom: 100px; }

/* Dialogs use the native top layer. Keep their contact link in the dialog. */
body:has(dialog[open]) .representative-float { visibility: hidden; pointer-events: none; }
.representative-dialog-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0 24px 24px;
  padding: 12px 16px;
  border: 1px solid #bcbcbc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.representative-dialog-link:hover { background: #f2f2f2; border-color: #777; }
.representative-dialog-link svg { flex: none; width: 24px; height: 24px; }
.quote-dialog .representative-dialog-link { margin: 22px 0 0; }
@media (max-width: 580px) {
  .representative-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 12px));
    max-width: calc(100vw - 28px);
    min-height: 62px;
    padding: 12px 15px;
    gap: 10px;
  }
  .representative-float span { max-width: 190px; }
  .representative-dialog-link { margin: 0 18px 20px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .representative-float { transition: none; }
}
