html.social-modal-open,
body.social-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.social-modal {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: none;
  width: 100dvw;
  min-height: 100dvh;
  height: 100dvh;
  padding: 18px;
  box-sizing: border-box;
  place-items: center;
}

.social-modal.is-open {
  display: grid;
}

.social-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.social-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 2px solid #111111;
  border-radius: 7px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  outline: none;
}

.social-modal__header {
  padding: 0 0 15px;
  border-bottom: 1px solid #d7d7d7;
}

.social-modal__header > div {
  width: 100%;
}

.social-modal__header h2 {
  width: fit-content;
  margin: 0;
  padding: 0 8px;
  background: #f7c932;
  font-size: 23px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
}

.social-modal__header p {
  max-width: none;
  margin: 8px 0 0;
  color: #596273;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.social-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111111;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.social-modal__close:hover {
  background: #eeeeee;
  transform: translateY(-1px);
}

.social-modal__close:focus-visible,
.social-modal__link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.social-modal__close .shell-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.social-modal__list {
  display: grid;
}

.social-modal__link {
  display: grid;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #dedede;
  color: #111111;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.social-modal__link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.social-modal__link:hover {
  color: #075ed1;
  transform: translateY(-1px);
}

.social-modal__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.social-modal__icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.social-modal__copy {
  min-width: 0;
}

.social-modal__copy strong,
.social-modal__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-modal__copy strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}

.social-modal__copy small {
  margin-top: 0;
  color: #687181;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.social-modal__external {
  width: 18px;
  height: 18px;
  justify-self: end;
  stroke-width: 2;
}

@media (max-width: 500px) {
  .social-modal {
    padding: 14px;
  }

  .social-modal__dialog {
    padding: 19px;
  }

  .social-modal__header h2 {
    font-size: 21px;
  }

  .social-modal__link {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .social-modal__icon,
  .social-modal__icon img {
    width: 35px;
    height: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-modal__close,
  .social-modal__link {
    transition: none;
  }

  .social-modal__close:hover,
  .social-modal__link:hover {
    transform: none;
  }
}
