
  body.popupOpen {
    overflow: hidden;
  }

  .popupOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .popupOverlay[hidden] {
    display: none;
  }

  .popupPanel {
    position: relative;
    width: 100%;
    max-width: 36rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    color: var(--colour-text-dark);
    background-color: var(--colour-bg-light);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.35);
  }

  .popupClose {
    flex: 0 0 auto;
    padding: 0.5rem;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
  }
