dialog.pcsb-popup {
  --pcsb-background: #faf8f5;
  --pcsb-text: #242424;
  --pcsb-accent: #c91d35;
  --pcsb-note-background: #f6e8e8;

  box-sizing: border-box;
  position: fixed;
  inset: 0;
  inline-size: min(var(--pcsb-width, 480px), calc(100vw - 2rem));
  max-inline-size: calc(100vw - 2rem);
  max-block-size: calc(100vh - 2rem);
  max-block-size: calc(100dvh - 2rem);
  margin: auto;
  padding: min(var(--pcsb-padding, 32px), 6vw);
  border-radius: var(--pcsb-radius, 8px);
  font-size: var(--pcsb-body-size, 16px);
  border: 0;
  background: var(--pcsb-background);
  color: var(--pcsb-text);
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 20%);
  font-family: Arial, sans-serif;
  font-style: normal;
  line-height: 1.6;
  text-align: start;
  overflow: auto;
  overscroll-behavior: contain;
}

.pcsb-popup,
.pcsb-popup * {
  box-sizing: border-box;
}

.pcsb-popup::backdrop {
  background: rgb(20 16 14 / 48%);
}

dialog.pcsb-popup--attendee-note {
  border-block-start: 0.3rem solid var(--pcsb-accent);
}

.pcsb-popup .pcsb-popup__close {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin: -0.75rem -0.75rem 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pcsb-background);
  color: var(--pcsb-text);
  font: 400 1.75rem / 1 Arial, sans-serif;
  cursor: pointer;
}

.pcsb-popup .pcsb-popup__close:hover {
  background: var(--pcsb-note-background);
}

.pcsb-popup .pcsb-popup__close:focus-visible,
.pcsb-popup a:focus-visible {
  outline: 2px solid var(--pcsb-accent);
  outline-offset: 3px;
}

.pcsb-popup__content {
  display: grid;
  gap: 1rem;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.pcsb-popup .pcsb-popup__icon {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  color: var(--pcsb-accent);
}

.pcsb-popup .pcsb-popup__eyebrow {
  margin: 0;
  color: var(--pcsb-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pcsb-popup .pcsb-popup__heading {
  margin: 0;
  color: var(--pcsb-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: min(var(--pcsb-heading-size, 44px), 8vw);
  font-style: normal;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-transform: none;
}

.pcsb-popup .pcsb-popup__subheading {
  margin: 0;
  color: inherit;
  font-size: 1.125em;
  font-weight: 600;
  white-space: pre-line;
}

.pcsb-popup__message > :first-child {
  margin-block-start: 0;
}

.pcsb-popup__message > :last-child {
  margin-block-end: 0;
}

.pcsb-popup__message img {
  max-inline-size: 100%;
  block-size: auto;
}

.pcsb-popup .pcsb-popup__note {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: 0.4rem;
  background: var(--pcsb-note-background);
}

.pcsb-popup__note > svg {
  flex: 0 0 1.75rem;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  color: var(--pcsb-accent);
}

.pcsb-popup .pcsb-popup__note > p {
  margin: 0;
  color: inherit;
  white-space: pre-line;
}

html.pcsb-popup-open {
  overflow: hidden;
}

dialog.pcsb-popup[data-position="top-center"] {
  margin: 1rem auto auto;
}

dialog.pcsb-popup[data-position="bottom-center"] {
  margin: auto auto 1rem;
}

dialog.pcsb-popup[data-position="top-left"] {
  margin: 1rem auto auto 1rem;
}

dialog.pcsb-popup[data-position="top-right"] {
  margin: 1rem 1rem auto auto;
}

dialog.pcsb-popup[data-position="bottom-left"] {
  margin: auto auto 1rem 1rem;
}

dialog.pcsb-popup[data-position="bottom-right"] {
  margin: auto 1rem 1rem auto;
}

dialog.pcsb-popup[data-body-font="sans"] {
  font-family: Arial, Helvetica, sans-serif;
}

dialog.pcsb-popup[data-body-font="serif"] {
  font-family: Georgia, "Times New Roman", serif;
}

dialog.pcsb-popup[data-body-font="website"] {
  font-family: inherit;
}

.pcsb-popup[data-heading-font="serif"] .pcsb-popup__heading {
  font-family: Georgia, "Times New Roman", serif;
}

.pcsb-popup[data-heading-font="sans"] .pcsb-popup__heading {
  font-family: Arial, Helvetica, sans-serif;
}

.pcsb-popup[data-heading-font="body"] .pcsb-popup__heading {
  font-family: inherit;
}

.pcsb-popup[data-alignment="start"] .pcsb-popup__content {
  text-align: start;
}

.pcsb-popup[data-alignment="center"] .pcsb-popup__content {
  text-align: center;
}

.pcsb-popup[data-alignment="end"] .pcsb-popup__content {
  text-align: end;
}

.pcsb-popup[data-alignment="center"] .pcsb-popup__icon {
  justify-self: center;
}

.pcsb-popup[data-alignment="end"] .pcsb-popup__icon {
  justify-self: end;
}

.pcsb-popup[data-alignment="center"] .pcsb-popup__note {
  justify-content: center;
}

.pcsb-popup[data-alignment="end"] .pcsb-popup__note {
  justify-content: flex-end;
}
.pcsb-popup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.pcsb-popup .pcsb-popup__primary-link,
.pcsb-popup .pcsb-popup__rsvp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-block-size: 2.75rem;
  max-inline-size: 100%;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.pcsb-popup .pcsb-popup__primary-link {
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--pcsb-text);
  border-radius: 0.25rem;
  background: var(--pcsb-text);
  color: var(--pcsb-background);
  text-decoration: none;
}

.pcsb-popup .pcsb-popup__primary-link:hover {
  background: var(--pcsb-background);
  color: var(--pcsb-text);
}

.pcsb-popup .pcsb-popup__rsvp-link {
  padding-block: 0.5rem;
  color: var(--pcsb-text);
  text-decoration: underline;
  text-decoration-color: var(--pcsb-accent);
  text-underline-offset: 0.25em;
}

.pcsb-popup .pcsb-popup__rsvp-link:hover {
  text-decoration-thickness: 2px;
}

.pcsb-popup[data-alignment="center"] .pcsb-popup__actions {
  justify-content: center;
}

.pcsb-popup[data-alignment="end"] .pcsb-popup__actions {
  justify-content: flex-end;
}

@media (max-width: 35rem) {
  .pcsb-popup .pcsb-popup__primary-link {
    inline-size: 100%;
  }
}