/**
* Contains base styling for the PMG_Popup modal. These can be overriden in your theme.
**/
body {
    --pmg-modal-width: 500px;
    --pmg-modal-cover-background: rgba(0, 0, 0, .4);
    --pmg-modal-zindex: 9999;
    --pmg-modal-content-background: #fff;
    --pmg-modal-opacity-transition: opacity .15s linear;
}

.pmg-modal-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--pmg-modal-opacity-transition);
    background: var(--pmg-modal-cover-background);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: var(--pmg-modal-zindex);
    outline: 0;
    display:none;
}

.pmg-modal-cover:not(.reveal) {
    opacity: 0.5;
}

.pmg-modal {
    max-width: var(--pmg-modal-width);
    width: auto;
    height:100%;
    z-index: calc(var(--pmg-modal-zindex) + 1);
    position: relative;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.pmg-modal .pmg-modal-content {
    border-radius: 0.5rem;
    background: var(--pmg-modal-content-background);
    transition: transform .3s ease-out;
    transform: translate(0, -50px);
    width: 100%;
    margin-left:15px;
    margin-right:15px;
}

.pmg-modal-cover.reveal .pmg-modal-content {
    transform: none;
}

.pmg-modal-body {
    padding: 1rem;
}

.pmg-modal-content {
    position: relative;
}

.pmg-modal-close {
    position: absolute;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .5em .5em;
    top: calc((1em + 0.5em) / -2);
    right: calc((1em + 0.5em) / -2);
    color: #fff;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 1rem;
    cursor: pointer;
    background-color: #fff;
}