.custom-modal__backdrop {
    display: block;
    position: fixed;
    z-index: 1040;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--canopy-grey);
}

.custom-modal {
    background: var(--truly-white);
    width: 580px;
    margin: 3% auto;
    display: block;
    border-radius: 10px;
    animation-name: popup;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-duration: 0.2s;
    position: relative;
}

@media (max-width: 560px) {
    .custom-modal {
        width: calc(100% - 50px);
    }
}

.custom-modal__close {
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: var(--umbra-grey);

    position: absolute;
    top: -1px;
    right: 13px;
    z-index: 1;
}

.custom-modal__close:hover {
    color: var(--deep-grey);
}

.custom-modal__content {
    padding: 1.5rem;
    text-align: center;
}

.custom-modal__content__title {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
}

.custom-modal__content__body {
    margin-top: 20px;
    font-weight: 300;
}

.custom-modal__content__footer {
    margin-top: 20px;
}

/* Hack to reach the transcluded DOM inner element and set its width to 100%
(in the case the buttons we are adding to the modal-footer-buttons are inside a div) */
.custom-modal__content__footer__buttons > * {
    width: 100%;
}

.custom-modal__content__footer__buttons .btn {
    margin-bottom: 10px;
    width: 75%;
}

@keyframes popup {
    from {
        transform: translateY(0px) scale(0);
    }
    to {
        transform: translateY(70px) scale(1);
    }
}

/* Hides the non transcluded elements and therefore the classes on the transclusions slots won't be applied when not necessary */
[ng-transclude]:empty {
    display: none;
}

.password-container {
    position: relative;
}
.password-container input[type='password'] .password-container input[type='text'] {
    width: 100%;
    box-sizing: border-box;
}

.eye__icon {
    position: absolute;
    top: 8px;
    right: 4%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.modal-text-left {
    text-align: left;
}
