/*** Lead Gear Popup Styling ***/

/* Main Styles */
div.site-popup {
    position: fixed;
    z-index: 9999;
    right: 20px;
    bottom: 5vh;
    transition: opacity 300ms, right 1s;
}

div.site-popup {
    display: block;
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 5vh;
    box-sizing: border-box;
    transition: top 1s, right 1s, left 1s, bottom 1s;
}

div.site-popup .pop-wrapper .close-popup {
    color: var(--primary);
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    z-index: 2;
}

div.site-popup .pop-wrapper .close-popup:hover {
    color: var(--primaryalt);
}

div.site-popup .pop-wrapper .close-popup svg {
    width: auto;
    height: 1em;
}

div.site-popup .pop-wrapper h2 {
    font-size: 28px;
    text-align: center;
}

div.site-popup p {
    text-align: center;
}

div.site-popup p:last-of-type {
	margin: 0;
}

div.site-popup .pop-wrapper .gform_wrapper.gravity-theme .gform_footer {
    padding-bottom: 0;
}

.gform_wrapper.gravity-theme .gform_footer input {
    margin: 0;
    width: 100%;
}

div.site-popup.style-slide.position-br .pop-inner, div.site-popup.style-slide.position-mr .pop-inner {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

div.site-popup.style-slide.position-bl .pop-inner, div.site-popup.style-slide.position-ml .pop-inner {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.site-popup .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    margin: 0;
    font-weight: 500;
    color: #5a5a5a;
    cursor: pointer;
    user-select: none;
	z-index: 9999;
}

div.site-popup.position-c {
    bottom: auto;
    right: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

div#center-blur {
    position: fixed;
    top: -100%;
    left: -200%;
    width: 200vw;
    height: 200vw;
    background: rgba(0,0,0,0.5);
    z-index: 9;
}

.site-popup .pop-inner a.primary-btn {
    text-align: center;
    line-height: 1.2;
    padding: 16px 0;
    width: 100%;
}

/* Position Styles */
.site-popup.position-mr {
    bottom: 50%;
    transform: translateY(50%);
}

.site-popup.position-ml {
    bottom: 50%;
    transform: translateY(50%);
    left: 0;
}

.site-popup.position-bl {
    left: 0;
	right: unset;
}

/* Slide Styles */
.site-popup .pop-toggle {
    position: absolute;
    top: 220px;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    padding: 10px 40px;
    background: var(--primaryalt);
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    width: 220px;
    text-align: center;
}

div.site-popup.style-slide.position-bl .pop-toggle, div.site-popup.style-slide.position-ml .pop-toggle {
    transform-origin: bottom right;
    transform: rotate(90deg);
    position: relative;
    right: -180px;
    top: 240px;
}

.site-popup .pop-toggle p {
    margin: 0;
}

.site-popup .pop-inner {
    padding: 40px;
    background: #efefef;
    width: 400px;
    box-shadow: rgba(0,0,0,0.2) 0 0 10px;
    position: relative;
    z-index: 9;
}

.site-popup h2 {
    font-size: 24px;
    text-align: center;
}

.site-popup .pop-toggle p:after {
    content: '';
    width: 10px;
    height: 10px;
    display: inline-block;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    position: relative;
    left: 8px;
    bottom: 2;
    transform: rotate(-45deg);
    transition: all 1s;
}

.site-popup.closed .pop-toggle p:after {
    transform: rotate(135deg);
    bottom: -3px;
}

/* Image Styles */
div.site-popup.type-image .pop-inner {
    padding: 0;
    width: auto;
	max-width: 400px;
}

/* Banner Styles */
.site-popup.type-banner .pop-inner {
    width: 100vw;
    padding: 20px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.site-popup.type-banner .pop-inner * {
    margin: 0;
}

div.site-popup.type-banner {
    bottom: 0;
}

div.site-popup.type-banner.position-t {
    bottom: auto;
    top: 0;
}

@media only screen and (max-width: 959px) {
	div.site-popup.type-image .pop-inner {
		max-width: 350px;
	}
}

@media only screen and (max-width: 900px) {
	.site-popup.type-banner .pop-inner {
		padding: 20px;
	}
}

@media only screen and (max-width: 400px) {
	div.site-popup {
		/* display: none; */
	}
}

@media only screen and (max-height: 680px) {
	div.site-popup {
		bottom: 0 !important;
		transform: none !important;
		height: 500px;
		max-height: 100vh;
		overflow: scroll;
		box-sizing: content-box;
	}

	div.site-popup .pop-inner {
		/* height: 100%; */
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

@media only screen and (max-height: 680px) and (max-width: 680px) {
    div.site-popup {
        bottom: 0 !important;
        transform: none !important;
        height: 100%;
        overflow: scroll;
        width: 100%;
        box-sizing: border-box;
    }

	.site-popup .pop-inner {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

div#popcorn-popup .pop-inner {
    background: url(https://www.nurselovefoundation.org/wp-content/uploads/popcorn-background.png) #efefef;
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

div#popcorn-popup .pop-inner::before {
    content: '';
    display: block;
    width: 100%;
    height: 60%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3 !important;
    background: linear-gradient(180deg, rgba(239,239,239,1) 40%, rgba(239,239,239,0) 100%);
}

div#popcorn-popup .pop-inner h2, div#popcorn-popup .pop-inner p, div#popcorn-popup .pop-inner a {
    z-index: 4;
    position: relative;
}

/* Newsletter Popup */
#gform_wrapper_8 .gform_required_legend,
div#gform_8_validation_container{
    display: none;
}

div#newsletter-popup p:last-of-type {
	margin-bottom: 12px;
}