  .wmodal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
  }

  .wmodal-overlay * {
    pointer-events: auto;
  }

  .wmodal-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .wmodal {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 90%;
    width: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    outline: none;
  }

  .wmodal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: gray;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }