.profile-badge-share {
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.profile-badge-share h2 {
  margin: .25rem 0 .75rem;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
}

.profile-badge-share > p:not(.profile-badge-share__eyebrow) {
  max-width: 42rem;
  color: color-mix(in srgb, var(--navy) 72%, transparent);
  line-height: 1.6;
}

.profile-badge-share__eyebrow {
  color: var(--mint);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-badge-share__button {
  margin-top: 1rem;
  padding: .75rem 1rem;
  cursor: pointer;
  color: #fff;
  font: 600 .9rem/1.2 "Poppins", sans-serif;
  background: var(--mint);
  border: 0;
  border-radius: .75rem;
}

.profile-badge-share__button:hover {
  filter: brightness(.92);
}

.profile-badge-share__button:focus-visible,
.profile-badge-popover__close:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.profile-badge-popover {
  width: min(94vw, 760px);
  max-height: 90vh;
  padding: 1.5rem;
  overflow: auto;
  color: var(--body-text);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent);
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.profile-badge-popover::backdrop {
  background: rgba(15, 23, 42, .66);
  backdrop-filter: blur(3px);
}

.profile-badge-popover__close {
  float: right;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  background: color-mix(in srgb, var(--navy) 6%, #fff);
  border: 0;
  border-radius: 999px;
}

.profile-badge-preview {
  display: grid;
  margin: 1.25rem 0;
  padding: 1rem;
  place-items: center;
  background: color-mix(in srgb, var(--cream) 86%, #fff);
  border-radius: 1rem;
}

.profile-badge-code {
  display: grid;
  gap: .5rem;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
}

.profile-badge-code textarea {
  width: 100%;
  min-height: 13rem;
  padding: 1rem;
  resize: vertical;
  color: #d7e4eb;
  font: 500 .75rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #102a43;
  border: 0;
  border-radius: .875rem;
}

.profile-badge-popover__note {
  margin-top: .75rem;
  color: color-mix(in srgb, var(--navy) 62%, transparent);
  font-size: .8rem;
}

@media (max-width: 540px) {
  .profile-badge-popover { padding: 1rem; }
  .profile-badge-preview { padding: .5rem; }
}
