.team-contact {
  position: fixed;
  z-index: 3;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  font-size: .98rem;
  line-height: 1.4;
}

.team-contact-launch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .5rem;
  padding: .5rem .92rem;
  border: 1px solid #cbd3d9;
  border-radius: 2rem;
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 10px #23262917;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.team-contact-launch svg { color: var(--red); }
.team-contact-launch:hover { color: var(--red); border-color: var(--red); }
.team-contact [hidden] { display: none; }
.team-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .55rem);
  width: min(21rem, calc(100vw - 2rem));
  max-height: min(73vh, 30rem);
  overflow-y: auto;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: white;
  color: var(--ink);
  box-shadow: 0 5px 26px #17212726;
}
.team-contact-panel p { font-size: .98rem; }
.team-contact-panel a { color: var(--red); }
body:has(#enquiry-receipt:not([hidden])) .team-contact { display: none; }
.site-footer { padding-bottom: 3rem; }
@media (max-width: 700px) {
  .team-contact { right: max(.7rem, env(safe-area-inset-right)); bottom: max(.7rem, env(safe-area-inset-bottom)); }
  .team-contact-launch { font-size: .9rem; padding: .45rem .8rem; }
}
/* Leave room for the private preview’s editing controls. */
.private-preview .team-contact { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
@media print { .team-contact { display: none; } }
