.modal{
    z-index: 9999 - 1; // lower than cookie consent
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba($grey--dark, 0.5);
}

.modal__content{
    position: absolute;
    top: 50%;
    padding: 1.5rem;
    text-align: center;
    color: $grey--dark;
    background: white;
    @include box-shadow--extra;

    @include mobile{
        left: 1.5rem;
        right: 1.5rem;
        transform: translateY(-50%);
    }
    @include desktop{
        left: 50%;
        width: 36rem;
        transform: translate(-50%, -50%);
    }
}

.modal__title{
    margin-top: 0;
    padding: 0 2.25rem;
}

.modal__description{

}

.modal__url{
    margin-top: 1.5rem;
}

.modal__close{
    // reset button styles
    @include block-selection;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    appearance: none;
    border-radius: 0;

    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 3rem;
    background-image: url('../icons/icon-close.svg');
    background-size: 1.5rem 1.5rem;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: $grey--light;

    @include desktop{
        @include transition(background);

        &:hover{
            background-color: darken($grey--light, 10%);
        }
    }
}
