#modal {
    position: absolute;
    z-index: var(--index-modal);
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    display: none;
    cursor: default;
}

#modal:not([side='true']) > #modal-main {
    margin-top: 10px;
}

#modal.show {
    display: flex;
    -webkit-animation: scale-in-center 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: scale-in-center 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#modal > #modal-main {
    overflow-y: hidden;
    background-color: var(--white);
    width: fit-content;
    width: 100%;
    border-radius: 15px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
  
#modal > #modal-main > #modal-header {
    border-radius: 14px 14px 0px 0px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
}
  
#modal > #modal-main > #modal-header > #modal-title {
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    padding-right: 20px;
}
  
#modal > #modal-main > #modal-header #modal-close-btn {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--white);
}
  
#modal > #modal-main > #modal-body {
    padding: 0px 30px;
    margin: 25px 0px;
    overflow-x: visible;
    height: fit-content;
}
  
#modal > #modal-main > #modal-body > iframe {
    width: 100%;
}
  
#modal > #modal-main > #modal-body > .content-body > .fit-height {
    overflow-y: auto;
    max-height: calc(100dvh - 280px);
    padding-right: 10px;
}

#modal[side='true'] {
    left: unset;
    right: 0px;
    top: 0px;
    width: 0px;
    margin-top: unset;
    overflow-x: unset;
    display: flex;
}
  
#modal[side='true'].show {
    -webkit-animation: slide-from-right 0.3s forwards !important;
    -webkit-animation-delay: 0.2s !important;
    animation: slide-from-right 0.3s forwards !important;
    animation-delay: 0.2s !important;
}
  
#modal[side='true'] > #modal-main {
    height: 100dvh;
    border-radius: unset;
}
  
#modal[side='true'] > #modal-main > #modal-header {
    border-radius: unset;
    height: 50px;
    padding: 0px 30px;
}
  
#modal[side='true'] > #modal-main > #modal-body {
    overflow-y: overlay;
    height: calc(100dvh - 50px);
    padding-bottom: 50px;
}



@media only screen and (min-width: 1601px) {
    #modal{
        margin-top: 40px;
    }

    #modal[size='lg'] {
        margin-left: 10%;
        margin-right: 10%;
        width: 80%;
    }
    #modal[size='md'] {
        margin-left: 25%;
        margin-right: 25%;
        width: 50%;
        min-width: 810px !important;
      }
      
    #modal[size='sm'] {
        margin-left: 35%;
        margin-right: 35%;
        width: 30%;
        min-width: 585px !important;
    }
}

@media only screen and (min-width: 1081px) and (max-width: 1600px) {
    #modal {
        margin-top: 40px;
      }
      
    #modal[size='lg'] {
        margin-left: 10%;
        margin-right: 10%;
        width: 80%;
    }
      
    #modal[size='md'] {
        margin-left: 15%;
        margin-right: 15%;
        width: 70%;
        min-width: 810px !important;
    }
      
    #modal[size='sm'] {
        margin-left: 30%;
        margin-right: 30%;
        width: 40%;
        min-width: 585px !important;
    }
}

@media only screen and (max-width: 1080px) {
    #modal {
        left: 10px;
        right: 10px;
    }
      
    #modal[side='true'] {
        left: unset;
        right: 0px;
        top: 0px;
        --modal-side-width: 100vw;
    }
      
    #modal > #modal-main > #modal-header {
        padding: 15px;
    }
      
    #modal > #modal-main > #modal-header > #modal-title {
        font-size: 1rem;
    }
      
    #modal > #modal-main > #modal-body {
        padding: 0px 15px;
        margin: 6px 0px;
        overflow-x: visible;
        height: fit-content;
    }
      
    #modal > #modal-main > #modal-body iframe {
        /* suprime o ajuste feito no js */
        height: 85dvh !important;
    }
}


#modal[fulfill='true'] {
    left: 0px;
    right: 0px;
}

#modal[fulfill='true'] > #modal-main > #modal-body {
    padding: 0px;
    margin: 0px;
}