.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}
.modal-open {
    overflow: hidden;
}
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: scroll;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 16px;
    max-width: 100%;
}
.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (16px * 2));
}
.modal-dialog-centered:before {
    display: block;
    height: calc(100vh - (16px * 2));
    content: "";
}
.modal-dialog-scrollable {
    height: calc(100% - 32px);
}
.modal-dialog-scrollable .modal-scrollbar {
    flex: 1 1 auto;
}
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    background-clip: padding-box;
    outline: 0;
    height: 100%;
    background: var(--color-white);
    padding: 40px 20px 20px;
    overflow: hidden;
    border-radius: var(--radius);
}
.modal-title {
    font-weight: 500;
    font-size: 36px;
    line-height: 1;
    margin: 0 0 30px;
}
.modal-text {
    color: var(--color-black);
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: var(--color-overlay);
    display: none;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: none;
    border: none;
    color: var(--color-dark);
    z-index: 200;
    cursor: pointer;
    transition: opacity var(--animate);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.modal-close:before {
    content: "\e904";
    font-family: var(--icons);
    font-size: 20px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
}
.modal-close:hover {
    opacity: 1;
}
.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

dialog {
    display: flex;
    flex-direction: column;
    padding: 40px 20px 20px;
    border: none;
    background: var(--color-white);
    gap: 20px;
    text-align: center;
    border-radius: var(--radius);
}
dialog::backdrop {
    background-color: var(--color-overlay);
}

@media screen and (min-width: 768px) {
    .modal .modal-dialog {
        max-width: 415px;
        margin: 16px auto;
    }
    dialog {
        width: 415px;
    }
    .modal-title {
        font-size: 36px;
        margin: 0 0 20px;
    }
}