.hidden {
    display: none;
  }
  
  ._modal[role="dialog"] {
    box-sizing: border-box;
    padding: 15px 0px;
    border: 1px solid #000;
    background-color: #fff;
    min-height: 100vh;
  }
  
  @media screen and (min-width: 640px) {
    ._modal[role="dialog"] {
      position: absolute;
      top: 2rem;
      left: 50vw; /* move to the middle of the screen (assumes relative parent is the body/viewport) */
      transform: translateX(
        -50%
      ); /* move backwards 50% of this element's width */
  
      min-width: calc(640px - (15px * 2)); /* == breakpoint - left+right margin */
      min-height: auto;
      box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
    }
  }
  
  .dialog_label {
    text-align: center;
  }
  
  .dialog_form {
    margin: 15px;
  }
  
  .dialog_form .label_text {
    box-sizing: border-box;
    padding-right: 0.5em;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    width: 30%;
    text-align: right;
  }
  
  .dialog_form .label_info {
    box-sizing: border-box;
    padding-right: 0.5em;
    font-size: 12px;
    width: 30%;
    text-align: right;
    display: inline-block;
  }
  
  .dialog_form_item {
    margin: 10px 0;
    font-size: 0;
  }
  
  .dialog_form_item .wide_input {
    box-sizing: border-box;
    max-width: 70%;
    width: 27em;
  }
  
  .dialog_form_item .city_input {
    box-sizing: border-box;
    max-width: 70%;
    width: 17em;
  }
  
  .dialog_form_item .state_input {
    box-sizing: border-box;
    max-width: 70%;
    width: 15em;
  }
  
  .dialog_form_item .zip_input {
    box-sizing: border-box;
    max-width: 70%;
    width: 9em;
  }
  
  .dialog_form_actions {
    text-align: right;
    padding: 0 20px 20px;
  }
  
  .dialog_close_button {
    float: right;
    position: absolute;
    top: 10px;
    left: 92%;
    height: 25px;
  }
  
  .dialog_close_button img {
    border: 0;
  }
  
  .dialog_desc {
    padding: 10px 20px;
  }
  
  /* native <dialog> element uses the ::backdrop pseudo-element */
  
  /* dialog::backdrop, */
  .dialog-backdrop {
    display: none;
    position: fixed;
    overflow-y: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
  }

  .dialog-backdrop.active ._modal{
    position: fixed;
    width: 570px;
    min-height: 200px;
    background-color: white;
    border-radius: 8px;
    left: 50%;
    max-width: 95%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .dialog-backdrop.active ._modal-content ._modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 15px 15px 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    ._modal-close-btn{
      cursor: pointer;
      border: none;
      background: none;
      width: 30px;
      height: 30px;
      margin-right: 0px;
      svg{
        fill: var(--blue);
        margin-left: -3px;
      }
      &:focus-visible{
        border: 1px solid black;
      }
    }
    ._modal-title{
      h1{
        font: normal normal 400 1.125rem/1.75rem arial,sans-serif;
        font-weight: bold;
        color: black;
        margin-bottom: 0px;
      }
    }
  }

  
  @media screen and (min-width: 768px) {
    .dialog-backdrop {
      background: rgb(0 0 0 / 30%);
    }
  }
  
  .dialog-backdrop.active {
    display: block;
  }
  
  .no-scroll {
    overflow-y: auto !important;
  }
  
  /* this is added to the body when a dialog is open */
  .has-dialog {
    overflow-x: hidden;
  }
  
  @media (-webkit-min-device-pixel-ratio: 2.5), (min-resolution: 240dpi) {
    #popup-container{
      .dialog-backdrop.active ._modal  {
        max-height: 100%;
        min-height: auto;
        padding: 5px 0px;
        ._modal-content{
          max-height: 100%;
          ._modal-header{  }
          ._modal-text{
            max-height: calc(100vh - 80px);
          }
        }
      }
    }

  }

  @media (prefers-color-scheme: dark) {
    #popup-container{
      .dialog-backdrop.active ._modal{
        background-color: #121212;
        border: 1px solid var(--blue-light-5);
      }
      .dialog-backdrop.active ._modal-content ._modal-header{
        border-bottom: 1px solid var(--blue-light-5);
        ._modal-title{
          h1{
            color: white;
          }
        }
        ._modal-close-btn{
          svg{
            fill: #aaabff;
          }
        }
      }
      .dialog-backdrop.active ._modal-content ._modal-text{
        color-scheme: dark;
        color: white;
      }
    }
  }