.site-modal {
  width: min(72rem, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 1.35rem;
  background: transparent;
  box-shadow: none;
}

.site-modal[open] {
  display: grid;
  place-items: center;
}

.site-modal::backdrop {
  background: rgba(17, 24, 39, 0.68);
}

.site-modal__surface {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(13, 107, 99, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 231, 0.97));
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.34);
}

.site-modal__surface:focus {
  outline: none;
}

.site-modal__close {
  position: sticky;
  top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: right;
  min-width: 2.6rem;
  min-height: 2.6rem;
  margin-left: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(31, 38, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 38, 48, 0.8);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease,
    box-shadow 140ms ease;
}

.site-modal__close:hover,
.site-modal__close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(127, 29, 29, 0.28);
  background: rgba(254, 226, 226, 0.98);
  color: #7f1d1d;
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.12);
  outline: none;
}

.site-modal--awaiting-pointer .site-modal__close:hover {
  transform: none;
  border-color: rgba(31, 38, 48, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 38, 48, 0.8);
  box-shadow: none;
}

.site-modal--awaiting-pointer .site-modal__close:focus,
.site-modal--awaiting-pointer .site-modal__close:focus-visible,
.site-modal--awaiting-pointer .site-modal__close:active {
  transform: none;
  border-color: rgba(31, 38, 48, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 38, 48, 0.8);
  box-shadow: none;
  outline: none;
}

.site-modal--awaiting-pointer .site-modal__close {
  pointer-events: none;
  cursor: default;
  transition: none;
}

.site-modal__body {
  clear: both;
}

body.has-open-modal {
  overflow: hidden;
}
