/* FRONT END CSS*/

/* Global */
.payment_method_paypalsubscribe img {
    width: 75px;
}

.woocommerce-checkout #payment ul.payment_methods .jpw-saved-payment-methods-sources {
    padding-bottom: 0px;
}

/* pagebuilder element */
.jpw-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 3em;
}

.jpw-wrapper .package-item {
    background: #fff;
    text-align: center;
    display: block;
    padding: 30px;
    border: 1px solid #eee;
    margin: 1.5em 0;

    position: relative;
    transition: .2s;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    -webkit-flex: 1;
    flex: 1;
}

.jpw-wrapper .package-item > div:after {
    content: "";
    display: table;
    clear: both;
}


.jpw-wrapper .package-title h3 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.jpw-wrapper .package-price {
    padding: 30px 0;
}

.jpw-wrapper .package-item .package-description {
    padding-left: 12%;
    padding-right: 12%;
    text-align: left;
}

.jpw-wrapper .package-item .package-description ul {
    padding-left: 0;
    margin-left: 2.14285714em;
    list-style-type: none;
}

.jpw-wrapper .package-item .package-description li {
    position: relative;
    margin-bottom: 0.6em;
}

.jpw-wrapper .package-item .package-description li:before {
    font-family: FontAwesome;
    content: "\f00c";
    position: absolute;
    left: -2em;
    color: #46b739;
}

.jpw-wrapper .package-item .package-description li.exclude:before {
    color: inherit;
    opacity: 0.5;
    content: "\f00d";
}

.jpw-wrapper .package-price .price {
    color: #212121;
    font-size: 54px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -.04em;
    display: inline-block;
}

.jpw-wrapper .package-price .duration {
    display: block;
    color: #a0a0a0;
}

.jpw-wrapper .woocommerce-Price-currencySymbol {
    font-size: .5em;
    vertical-align: super;
    color: #a0a0a0;
    position: relative;
    margin-left: -0.04em;
    margin-right: 2px;
}

.jpw-wrapper .package-item .package-list {
    padding: 30px 20px 10px;
}

.jpw-wrapper .package-list li {
    margin: .75em 0;
}

.jpw-wrapper .package-item .package-button {
    margin-top: auto;
    padding: 30px 12% 20px;
}

.jpw-wrapper .package-button .button {
    width: 100%;
    line-height: 1.8;
    height: auto;
    font-size: 14px;
    padding: 12px 20px;
}

.jpw-wrapper .package-button .button {

}

/* featured */
.jpw-wrapper .package-item.featured {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0;
    position: relative;
    z-index: 1;
}

/** Responsive **/
@media (min-width: 992px) {
    .jpw-wrapper:hover .package-item {
        opacity: .7;
        box-shadow: none;
        z-index: 1;
    }

    .jpw-wrapper .package-item:hover {
        opacity: 1;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
        z-index: 2;
    }

    .jpw-wrapper.col_1 .package-item {
        width: 100%;
        flex: none;
        margin: 0 auto 2em;
    }

    .jpw-wrapper.col_2 .package-item {
        width: 50%;
        margin: 1em;
    }

    .jpw-wrapper.col_3 .package-item:not(:last-child),
    .jpw-wrapper.col_4 .package-item:not(:last-child),
    .jpw-wrapper.col_5 .package-item:not(:last-child) {
        border-right-width: 0;
    }

    .jpw-wrapper.col_5 .package-title h3 {
        font-size: 22px;
        margin-top: 5px;
    }

    .jpw-wrapper.col_5 .package-price {
        padding: 10px 20px 20px;
    }

    .jpw-wrapper.col_5 .package-price .price {
        font-size: 5em;
    }

    .jpw-wrapper .package-item.featured .package-price {
        padding-bottom: 48px;
    }

    .jpw-wrapper.col_5 .package-item.featured .package-price {
        padding-bottom: 30px
    }

}

@media (max-width: 991px) {
    .jpw-wrapper {
        width: 100%;
        margin-bottom: 0;
        display: block;
    }

    .jpw-wrapper .package-title h3 {
        margin-top: 5px;
    }

    .jpw-wrapper .package-item .package-list {
        padding: 20px 20px 10px;
    }

    .jpw-wrapper.col_1 .package-item .package-description,
    .jpw-wrapper.col_1 .package-item .package-button {
        padding: 20px 0;
    }

    .jpw-wrapper .package-item, .jpw-wrapper .package-item.featured {
        margin: 0 auto 2em;
        flex: none;
    }

    .jpw-wrapper .package-item:not(:last-child) {
        border-right-width: 1px;
    }

    .jpw-wrapper .package-price .price {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .jpw-wrapper .package-item .package-price,
    .jpw-wrapper .package-item .package-description,
    .jpw-wrapper .package-item .package-button {
        padding: 20px 0;
    }
}

/* article content */

.jpw-truncate-btn {
    position: relative;
    text-align: center;
    margin: 60px auto;
}

.jpw-truncate-btn:before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    content: "";
    height: 200px;
    margin-top: -200px;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
}

.jpw_login span {
    display: block;
}

.jpw_btn_inner_wrapper span {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 40px;
}

.jpw-truncate-btn .jpw-truncate-header {
    margin-bottom: 40px;
}

.jpw_btn_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.jpw_btn_wrapper > div {
    flex: 0 0 50%;
    max-width: 375px;
    padding: 0 15px;
}

.jpw_btn_inner_wrapper {
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    padding: 30px;
    transition: .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jpw_btn_inner_wrapper:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.jpw_btn_wrapper h3 {
    font-size: 1.5em;
    margin: 0 0 20px;
}

.jpw-truncate-btn .btn_wrapper {
    margin-top: auto;
}

.jpw-truncate-btn .btn {
    width: 80%;
}

.jpw-truncate.jpw-no-comment div#respond {
    display: none;
}

@media only screen and (max-width: 667px) {
    .jpw_btn_wrapper {
        display: block;
    }

    .jpw_btn_wrapper > div {
        max-width: none;
        margin-bottom: 20px;
    }
}


/* front end account */

.jpw-frontend-status th,
.jpw-frontend-status td {
    border: 1px solid #e0e0e0;
    height: 40px;
}

.jpw-frontend-status th {
    background-color: #eee;
    font-weight: bold;
    vertical-align: middle;
}

.jpw-frontend-status td {
    padding: 10px;
    vertical-align: bottom;
}

.jpw_manage_status h3 {
    margin-bottom: 0;
}

.jpw_boxed {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.jpw_boxed > div {
    display: inline-block;
}

.jpw_boxed .jpw_leftbox {
    width: 55%;
}

.jpw_boxed .jpw_rightbox {
    width: 44%;
    text-align: right;
}

.jpw_boxed span {
    display: block;
    padding: 5px 0;
}

.jpw_boxed .jpw_rightbox > a {
    background: #e74c3c;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin: 2px;
    padding: 0 20px;
}

.jpw_boxed .jpw_rightbox > a:hover {
    background: #e7152d;
}


/* popup */

#jeg_paywall_popup .mfp-close,
#jpw_cancel_subs_popup .mfp-close {
    top: 0;
}

.jpw_popup {
    text-align: center;
}

.jpw_popup button.btn {
    display: inline-block;
    margin: 20px 20px 0;
    width: 75px;
}

.jpw_popup span {
    display: block;
}


/* Dark Mode */
.jnews-dark-mode .jpw-wrapper .package-item {
    background-color: var(--j-bg-color);
    border-color: var(--j-border-color);
}

.jnews-dark-mode .jpw-wrapper .package-price .price {
    color: var(--j-link-txt-color);
}

.jnews-dark-mode .jpw_btn_inner_wrapper {
    color: var(--j-txt-color);
    border-color: var(--j-border-color);
}

.jnews-dark-mode .jpw-item {
    border: 1px solid #cacaca;
}

.jnews-dark-mode .jpw-item:hover {
    background-color: #000;
    box-shadow: 0 0 15px rgba(250, 250, 250, 1);
}

.jnews-dark-mode.jpw-truncate .jpw-truncate-btn:before {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0), rgba(26, 26, 26, 1));
}

.jnews-dark-mode #jeg_paywall_popup,
.jnews-dark-mode .jpw-frontend-status th {
    background: #282828;
}