.modal--isOpen {
    overflow: hidden;
}

.modal--isOpen .overlay {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    margin-top: 1.25em;
    margin-left: -225px;
    width: 450px;
    height: initial;
    background: #ffffff;
    padding-bottom: .75em;
    border-radius: 2px;
    z-index: 399999;
    -moz-box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
    box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 500px) {
    .modal {
        margin-left: -45%;
        width: 90%;
    }
}

.modal--fixed {
    left: 0;
    margin: 1.25em;
    width: calc(100% - 2.5em);
    height: calc(100% - 2.5em);
}

@media screen and (min-width: 500px) {
    .modal--fixed {
        margin-left: 1.25em;
        width: calc(100% - 2.5em);
    }
}

.modal__confirm {
    position: relative;
    top: 5px;
    height: initial;
    opacity: 0;
    transform: translateX(-50%, 0);
    transition: top .5s;
}

.modal__confirm--open {
    opacity: 1;
    top: 25px;
}

.modal__header {
    position: relative;
    margin-bottom: .75em;
    height: 50px;
    line-height: 50px;
    padding: 0 25px;
    border-bottom: 1px solid rgba(238,238,238,0.6);
    z-index: 400000;
}

.modal__headerTitle {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 0;
    padding-right: 25px;
    line-height: 50px;
    font-weight: 400;
    font-size: var(--text-xl, 1.5em);
}

.modal__closeButton {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    border-left: 1px solid rgba(238,238,238,0.6);
    opacity: 0.8;
    text-align: center;
    cursor: pointer;

    & .button {
        color: var(--color-secondary-dark);
    }

    & .button:hover {
        color: var(--color-dark);
    }
}

.modal__content {
    padding: 12px 25px;
    height: 100%;
    max-height: calc(100% - 62px - .75em);
}

.modal--fixed .modal__content {
    overflow-x: hidden;
    overflow-y: auto;
}

.modalConfirm__content {
    margin-bottom: 1em;
}


