/* SenangWebs Modals CSS */

@keyframes swmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes swmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  
  .swm-modal-overlay {
    --swm-bg-color: rgba(0, 0, 0, 0.5);
    --swm-bg-blur: 0px;
    --swm-z-index: 1000;
  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--swm-bg-color);
    backdrop-filter: blur(var(--swm-bg-blur));
    z-index: var(--swm-z-index);
    animation: swmFadeIn 0.3s ease-out;
  
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .swm-modal {
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    animation: swmFadeIn 0.3s ease-out;
  }
  
  .swm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    margin-bottom: 8px;
  }
  
  .swm-modal-title {
    margin: 0;
    font-size: 1.25em;
  }
  
  .swm-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .swm-modal-body {
    overflow-y: auto;
  }
  
  .swm-modal-footer {
    margin-top: 8px;
    text-align: right;
  }
  
  [data-swm-body] {
    display: none;
  }
  
  .swm-modal-overlay.swm-closing {
    animation: swmFadeOut 0.3s ease-in forwards;
  }
  
  .swm-modal.swm-closing {
    animation: swmFadeOut 0.3s ease-in forwards;
  }
