.fg-contact {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  background: #15583d;
  color: #fff;
  box-shadow: 0 4px 16px #202d2540;
  font: 600 14px/1 var(--sans);
  white-space: nowrap;
}

.fg-contact:hover { background: #10472f; }
.fg-contact svg { width: 22px; height: 22px; flex: none; }
body:has(.gallery-entrance) .fg-contact,
body:has(dialog[open]) .fg-contact { visibility: hidden; pointer-events: none; }

@media (max-width: 600px) {
  .fg-contact {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding-inline: 14px;
  }
}
