/**
 * Copyright (c) 2021. Deparadox LLC
 * Stylesheet for popup shortcode
 */

.popup-checkbox {
    visibility: hidden;
}

.popup-trigger {
    cursor: pointer;
}

.popup-overlay {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.popup-closer {
    opacity: .33;
    top: 0;
    right: 0;
    position: fixed;
    text-align: center;
    font-weight: normal;
    line-height: 50px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    color: #fff;
    transition: opacity .3s;
}
.popup-closer:before {
    content: '\00D7';
    font-size: 60px;
}

.popup-box-title {
    color: #eee;
    background-color: #6d207e;
    font-size: 1.15em;
    line-height: 1.5;
    font-weight: bold;
    padding: 15px 25px;
}

.popup-box-content {
    color: #333;
    background-color: #fff;
    overflow: auto;
    height: 100%;
    padding: 40px;
    max-height: 90vh;
}

.popup-container {
    top: 50%;
    left: 50%;
    width: auto;
    transform: translate(-50%, -50%);
}

.popup-checkbox:checked ~ .popup-trigger,
.popup-overlay,
.popup-container {
    display: none;
}

.popup-checkbox:checked ~ .popup-overlay,
.popup-checkbox:checked ~ .popup-container {
    display: block;
    position: fixed;
    z-index: 100002;
}