@import "../../theme/variables";
@import "../../theme/mixins";

.modalOverlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.modalContent {
    position: absolute;
    padding: 15px;
    outline: 0;
    background-color: $color-white;

    @include mobile {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
    }

    @include desktop {
        @include horizontal-vertical-center();

        bottom: auto;
        right: auto;
        max-height: 80vh;
        border-radius: 15px;
        border: $border-large;
    }
}

.closeButton {
    position: absolute;
    padding: 0;
    z-index: 10;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 0;
    line-height: 20px;
    color: $color-grey-dark;
    text-align: center;
    background: none;
    cursor: pointer;
}
