﻿/* Modal overlay */
.in-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

    /* Show modal when needed */
    .in-modal.show {
        display: flex;
    }

/* Modal content box */
.in-modal-content {
    background: #fff;
    margin: auto;
    border-radius: 8px;
    padding: 2rem 2.5rem 2rem 2rem;
    position: relative;
    min-width: 320px;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
}

@media(max-width: 600px){
    .in-modal-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-bottom: 80px; /* space for button */
        position: relative;
        min-width: unset;
        max-width: unset;
        width: 100%;
        height: 100%;
    }

    .in-modal-button {
        position: absolute;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 320px;
        margin: 0 auto;
    }
}
    /* Close button */
    .in-modal-content .close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        color: #888;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        background: none;
        border: none;
        line-height: 1;
        z-index: 1;
        transition: color 0.2s;
    }

        .in-modal-content .close:hover {
            color: #000;
        }


.in-modal-title {
    font-family: BasisGrotesque;
    font-size: 19px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    color: #000;
}

.in-modal-message {
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: 16px;
    font-family: BasisGrotesque-Regular, BasisGrotesque;
    font-weight: 400;
    color: #666;
    line-height: 16.5px;
    text-align: center;
}

.in-modal-button {
    color: #fff;
    background-color: #000;
    border: none;
    min-width: 150px;
    text-decoration:none;
}