/************************** MODAL **************************/

.modal {
    position: fixed;
    z-index: 199;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: grid;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.modal .modal-box {
    margin: auto;
}

.modal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fefefe;
    display: grid;
    margin: 10px;
    width: calc(100vw - 20px);
}

@media only screen and (min-width: 600px) {
    .modal .modal-content {
        width: 400px;
        margin: 40px;
    }

    .modal .modal-content.width-250 {
        width: 250px;
    }

    .modal .modal-content.width-500 {
        width: 500px;
    }
    
    .modal .modal-content.width-600 {
        width: 600px;
    }
}

.modal .modal-header {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 20px;
}

.modal .modal-header .modal-title {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 20px;
}

.modal .modal-header .modal-close {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
}

.modal .modal-header .modal-close:hover {
    opacity: 0.6;
}

.modal .modal-header .modal-close:active {
    opacity: 1;
}

.modal .modal-body {
    padding: 15px;
    line-height: 1.5;
}

@media only screen and (min-width: 600px) {
    .modal .modal-body {
        padding: 20px;
    }
}

.modal .modal-body.center {
    text-align: center;
}

.modal .modal-body .modal-error-icon {
    display: grid;
    justify-content: center;
    padding-top: 20px;
}

.modal .modal-body .modal-error-icon img {
    width: 70px;
}

.modal .modal-body .modal-error-message {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding-top: 35px;
    line-height: 25px;
}

.modal .modal-footer {
    padding: 40px 15px 15px 15px;
}

@media only screen and (min-width: 600px) {
    .modal .modal-footer {
        padding: 40px 20px 20px 20px;
    }
}

.modal .modal-footer .button {
    display: flex;
    column-gap: 10px;
}

.modal .modal-footer .button .block {
    width: 100%;
}

.modal .modal-footer .button .block button {
    width: 100%;
}

/************************** GLOBAL MODAL MESSAGE **************************/

#global-modal-message {
    z-index: 299;
}

#global-modal-message, #global-modal-message-message {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding-top: 35px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 25px;
}

/************************** GLOBAL MODAL ERROR **************************/

#global-modal-error {
    z-index: 299;
}