.contact-widget {
  position: fixed;
  z-index: 18;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  color: #f1f4fa;
}
.contact-widget summary {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--red, #ff5a50);
  border-radius: 50%;
  background: #141c2a;
  color: inherit;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 20px #0006;
}
.contact-widget summary::-webkit-details-marker { display: none; }
.contact-widget summary svg { width: 24px; height: 24px; }
.contact-widget .contact-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-widget .contact-close,
.contact-widget[open] .contact-open { display: none; }
.contact-widget[open] .contact-close { display: block; }
.contact-widget-links {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(254px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid #465167;
  border-radius: 16px;
  background: #141c2a;
  list-style: none;
  box-shadow: 0 6px 24px #0008;
}
.contact-widget-links a {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 2px;
  border-radius: 8px;
  color: #f1f4fa;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.contact-widget-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c3548;
  color: #fff;
}
.contact-widget-icon svg { width: 21px; height: 21px; }
.contact-widget-icon.whatsapp { background: #13734c; }
.contact-widget-icon.telegram { background: #087cae; }
.contact-widget-links a:hover,
.contact-widget summary:hover { background: #243047; }
.contact-widget :focus-visible { outline: 2px solid #ff746d; outline-offset: 2px; }
