/*
Theme Name: Publisher
Theme URI: https://ypmleads.com/
Author: YPM
Author URI: https://ypmleads.com/
Description: A simple custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: publisher-ypm
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    box-sizing: border-box;
}
body{
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-family: "Roboto", sans-serif;
}
:root{
    --white: #fff;
    --black: #000;
    --primary: #2A2441;
    --secondary: #A084B9;
    --light-blue: #f0f8ff;
}
h1,h2,h3,h4,h5,h6{
    margin: 0 0 20px;
    font-weight: 600;
    line-height: 1;
}
h1{
    font-size: 40px;
    color: var(--primary);
}
h2{
    font-size: 32px;
    color: var(--primary);
}
h2 strong,
h3 strong{
    color: var(--secondary);
}
h3{
    font-size: 24px;
    line-height: 1.3;
    color: var(--primary);
}
h4{
    font-size: 20px;
}
p{
    margin-bottom: 20px;
}
ul,ol{
    padding: 0 0 0 20px;
    margin: 0 0 20px;
}
li{
    margin-bottom: 10px;
}
a{
    color: var(--secondary);
    text-decoration: none;
}
a:hover{
    color: var(--primary);
}
.theme-btn{
    padding: 12px 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    color: var(--light-blue);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}
.theme-btn.small{
    font-size: 14px;
    padding: 5px 15px;
}
.theme-btn.primary-btn{
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}
.theme-btn:hover{
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}
.theme-btn.primary-btn:hover{
    color: var(--white);
    background: var(--secondary);
    border-color: var(--secondary);
}
.gform-footer .gform_button.button{
    color: var(--white) !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 20px !important;
    border: 1px solid var(--primary) !important;
    background: var(--primary) !important;
}
.gform-footer .gform_button.button:hover{
    border-color: var(--secondary) !important;
    background: var(--secondary) !important;
}
.container{
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1170px;
}
.row{
    display: flex;
    margin: 0 -15px;
    flex-wrap: wrap;
}
.col{
    width: 100%;
    padding: 0 15px;
    max-width: 100%;
}
.col2 .col{
    max-width: 50%;
}
.col4 .col{
    max-width: 25%;
}
.col-3{
    max-width: 33.33%;
}
.col-5{
    max-width: 40%;
}
.col-7{
    max-width: 60%;
}
.col-9{
    max-width: 66.66%;
}
.shadow-box{
    padding: 20px;
    position: relative;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 0 10px 1px #eee;
}
.notice{
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.notice.success{
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.notice.error{
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
img{
    height: auto;
    display: block;
    max-width: 100%;
}
/* Header Section
==========================================*/
header{
    padding: 20px 0;
    text-align: center;
    background: var(--primary);
}
header a{
    width: 120px;
    display: inline-block;
}
/* Main Section
==========================================*/
.welcome-sec .user-meta{
    text-align: right;
}
main{
    position: relative;
    padding: 40px 40px 90px 290px;

}
.page-template-template-dashboard header{
    display: none;
}
.dashboard-sidebar{
    background: var(--primary);
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 5;
    padding: 30px;
}
.admin-bar .dashboard-sidebar{
    padding-top: 50px;
}
.dashboard-sidebar h2{
    color: var(--white);
}
.sidebar-logo{
    margin-bottom: 20px;
}
.sidebar-logo .md-logo{
    display: block;
}
.sidebar-logo .sm-logo{
    display: none;
}
.sidebar-logo a img{
    width: 120px;
    display: block;
}
.dashboard-sidebar ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.dashboard-sidebar li{
    margin-bottom: 10px;
}
.dashboard-sidebar li a{
    color: var(--white);
    display: block;
}
.dashboard-sidebar li a:hover,
.dashboard-sidebar li.current-menu-item a{
    color: var(--secondary);
}
.dashboard-sidebar li a i{
    margin-right: 5px;
    font-size: 20px;
    display: inline-block;
}
.user-profile{
    position: absolute;
    bottom: 50px;
    left: 30px;
    right: 30px;
}
.dashboard-sec .col{
    margin-bottom: 30px;
}
.dashboard-sec .shadow-box{
    height: 100%;
}
.dashboard-sec .icon-box-sec .shadow-box{
    padding-left: 28%;
}
.dashboard-sec .icon-box-sec .shadow-box ul{
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
}
.dashboard-sec .icon-box-sec .shadow-box li{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dashboard-sec .icon-box-sec .shadow-box h3{
    margin-bottom: 10px;
}
.dashboard-sec .icon-box-sec .shadow-box h3.counter-num{
    position: absolute;
    top: 12px;
    right: 30px;
}
.dashboard-sec .shadow-box h3.counter-num{
    font-size: 36px;
    margin-bottom: 0;
}
.dashboard-sec .icon-box-sec .shadow-box .icon-box{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 10px 0 0 10px;
    width: 25%;
    display: flex;
    color: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 50px;
}
.dashboard-sec .icon-box-sec .col:first-child .shadow-box .icon-box{
    background: var(--primary);
}
.dashboard-sec .icon-box-sec .col:nth-child(2) .shadow-box .icon-box{
    background: var(--black);
}
.dashboard-sec .icon-box-sec .col:nth-child(3) .shadow-box .icon-box{
    background: #c5c5c5;
}
.dashboard-sec .icon-box-sec .col:last-child .shadow-box .icon-box{
    background: var(--secondary);
}
.dashboard-sec .shadow-box::after{
    content: '';
    display: block;
    width: 0;
    height: 0;
    clear: both;
}
.dashboard-sec .shadow-box h2{
    font-size: 24px;
}
.dashboard-sec .icon-box-sec .shadow-box p strong{
    display: block;
    font-size: 24px;
}
.welcome-sec{
    margin-bottom: 10px;
}
.monthly-entry-stats{
    display: grid;
    grid-gap: 20px;
    grid-template-columns: auto auto auto auto;
}
.monthly-entry-stats .entry-count{
    padding: 20px;
    border-radius: 10px;
    background: var(--light-blue);
    border: 2px solid var(--secondary);
}
.monthly-entry-stats .entry-count h4{
    color: var(--secondary);
}
.monthly-entry-stats .entry-count ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.monthly-entry-stats .entry-count ul li{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.monthly-entry-stats .entry-count ul li strong{
    color: var(--secondary);
}
/* Offer Page
==========================================*/
.offer-sec{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.offers-list{
    width: 100%;
    max-width: 75%;
    padding: 0 15px;
}
.offer-filter{
    width: 100%;
    max-width: 25%;
    padding: 0 15px;
}
.offers-row{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.offer-col{
    width: 100%;
    max-width: 33.33%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.offer-box .featured-img{
    position: relative;
    overflow: hidden;
    padding-bottom: 40%;
    border-radius: 10px 10px 0 0;
}
.offer-box .featured-img img{
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}
.offer-box .info-box{
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    position: relative;
    height: 100%;
    box-shadow: 0 0 10px 1px #eee;
}
.offer-box .info-box ul{
    padding: 0 10px 0 0;
    height: 340px;
    overflow: auto;
    margin-bottom: 20px;
    list-style-type: none;
}
.offer-box{
    height: 100%;
}
.offer-box .info-box ul li{
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}
.offer-box .info-box ul li span{
    display: block;
    max-width: 270px;
    text-align: right;
}
.offer-box .info-box ul li:last-child{
    border-bottom: 0;
}
.offer-box .info-box .offer-status{
    background: var(--primary);
    padding: 10px 15px;
    margin: -15px -15px 0;
    border-radius: 10px 10px 0 0;
    text-align: center;
}
.offer-box .info-box .offer-status p{
    color: var(--white);
    margin-bottom: 0;
}
.offer-filter-sidebar{
    padding: 30px 20px;
    background: #E7E9EB;
}
.offer-filter-sidebar h2{
    font-size: 24px;
}
.offer-filter-sidebar h3{
    font-size: 20px;
    margin-bottom: 10px;
}
.offer-filter-sidebar .filter-box{
    margin-bottom: 30px;
}
/* Register/Login/Lost Password Section
==========================================*/
body.user-registration-page {
    position: relative;
    background: var(--light-blue);
}
body.page-id-87::after,
body.page-id-88::after,
body.page-id-53::after,
body.page-id-54::after{
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2A2441;
    clip-path: polygon(25% 0, 100% 0%, 100% 100%, 60% 100%);
}
.login-form {
    width: 100% !important;
    float: none;
    margin-left: 0;
    background: #fff;
    padding: 30px !important;
    z-index: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 500px;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.login-form .logo-sec {
    text-align: center;
    margin-bottom: 30px;
}
.login-form .logo-sec a{
    width: 100px;
    display: inline-block;
}
body.page-id-53 header,
body.page-id-54 header,
body.page-id-53 footer,
body.page-id-54 footer,
body.page-id-87 header,
body.page-id-88 header,
body.page-id-87 footer,
body.page-id-88 footer{
    display: none;
}
body.page-template-page-registration .ur-frontend-form,
body.user-registration-page .ur-frontend-form.login{
    padding: 0 !important;
    box-shadow: none !important;
}
body.user-registration-page .user-registration-form__label{
    display: flex;
}
body.user-registration-page #rememberme{
    width: 20px;
}
body.user-registration-page .user-registration-register a,
body.user-registration-page .user-registration-LostPassword a{
    color: var(--secondary) !important;
}
body.user-registration-page .user-registration-Button {
    background: var(--primary) !important;
}
body.user-registration-page .user-registration-Button:hover{
    background: var(--secondary) !important;
}
body.user-registration-page .ur-reset-password-btn{
    margin-top: 20px;
    font: none !important;
}
body.user-registration-page .ur-lost-password-title{
    font-size: 28px !important;
}
body.user-registration-page .ur-lost-password-message{
    border-left: 4px solid var(--secondary);
    padding: 12px;
    margin-left: 0;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    word-wrap: break-word;
}
body.page-template-page-registration::after{
    display: none;
}
body.page-template-tpl-questionnaire main,
body.page-template-page-registration main,
body.page-template-page-advertiser main,
body.page-template-tpl-questionnaire footer,
body.page-template-page-advertiser footer,
body.page-template-page-registration footer{
    padding-left: 0;
    padding-right: 0;
}
.advertiser-row{
    display: flex;
    flex-wrap: wrap;
}
.advertiser-col{
    width: 100%;
    max-width: 50%;
    padding: 0 20px;
}
.register-info{
    padding-top: 35px;
}
.register-info ul,
.register-info p{
    margin-bottom: 30px;
}
.register-info h1{
    font-size: 24px;
    color: var(--primary);
}
.register-info h2{
    font-size: 22px;
}
.form-sec,
.register-form{
    float: right;
    padding: 30px;
    border-radius: 10px;
    margin: 0 0 30px 30px;
    background: var(--white);
    box-shadow: 0px 0px 10px 0px #d1d1d1;
}
.register-form{
    float: none;
    margin: 0;
}
.sign-up-page .row{
    flex-direction: row-reverse;
}
body.page-template-page-registration .ur-frontend-form input,
body.page-template-page-registration .ur-frontend-form select{
    width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #c3c4c7 !important;
}
body.page-template-page-registration .ur-label{
    display: none !important;
}
body.page-template-page-registration .field-checkbox ul{
    padding-left: 0;
}
body.page-template-page-registration .ur-frontend-form .ur-checkbox-list input{
    width: auto;
}
body.page-template-page-registration .ur-frontend-form .ur-form-row{
    margin: 0 -10px 24px;
}
body.page-template-page-registration .ur-frontend-form .ur-button-container{
    margin: -10px 0 15px !important;
    width: 100% !important;
    padding: 0 !important;
}
body.page-template-page-registration .user-registration-Button, .ur-submit-button{
    width: 100% !important;
    border-color: transparent !important;
    background: var(--primary) !important;
}
body.page-template-page-registration .user-registration-Button, .ur-submit-button:hover{
    background: var(--secondary) !important;
}
#user-registration header{
    background: none;
    padding: 0;
    text-align: left;
}
.register-info-row{
    clear: both;
    display: flex;
    flex-wrap: wrap;
    margin: 50px -15px 0;
}
.register-info-col{
    width: 100%;
    padding: 0 15px;
    max-width: 50%;
    margin-bottom: 30px;
}
.register-info-box{
    border-radius: 10px;
    padding: 25px 25px 1px;
    background: var(--white);
    box-shadow: 0px 0px 10px 0px #d1d1d1;
}
.form-sec .gform_fields{
    row-gap: 15px !important;
}
.form-sec .gform_fields textarea{
    resize: none;
    min-height: 150px !important;
}
.gform_required_legend{
    display: none;
}
.advertiser-info ul{
    margin-bottom: 30px;
}
body.page-template-tpl-questionnaire .form-sec{
    float: none;
    margin-left: 0;
}
.form-alert{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    padding: 25px;
    background: var(--white);
    box-shadow: 0px 0px 10px 0px #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.form-alert p{
    margin-bottom: 0;
}
/* All Campaigns
==========================================*/
body.page-id-60{
    background: var(--light-blue);
}
.ypm-all-campaigns .campaign-row{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.ypm-all-campaigns .campaign-col{
    width: 100%;
    padding: 0 15px;
    max-width: 33.33%;
    margin-bottom: 30px;
}
.ypm-all-campaigns .campaign-info{
    padding: 30px;
    height: 100%;
    position: relative;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 0 10px 1px #eee;
}
.button-box a{
    margin-right: 10px;
}
body.single-campaign{
    background: #f0f0f1;
}
#api-response{
    width: 100%;
    table-layout: fixed;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: none;
}
#api-response th,
#api-response td{
    font-size: 13px;
    word-break: break-all;
    width: 100% !important;
    max-width: 10% !important;
}
#api-response th{
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
#api-response td{
    vertical-align:top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
#api-response .even{
    background-color: #fff;
}
#api-response .odd{
    background-color: #f6f7f7;
}
.dataTables_length,
#api-response_filter{
    margin-bottom: 20px;
}
.campaign-status{
    position: absolute;
    top: 0;
    right: 0;
    background: #28a745;
    padding: 5px 15px;
    color: #fff;
    border-radius: 0 10px 0px 0;
}
/* Apply to Offer
==========================================*/
body.page-template-template-apply-to-offer{
    background: var(--light-blue);
}
.apply-offer-sec{
    padding: 30px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 0 10px 1px #eee;
}
.offer-application-table form button{
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
}
.offer-application-table form button:hover{
    opacity: 0.8;
}
.offer-application-table form .btn-approve{
    background: #28a745;
}
.offer-application-table form .btn-reject{
    background: #dc3545;
}
body.single-offer{
    background: var(--white);
}
body.single-offer .info-box ul{
    margin-bottom: 40px;
}
body.single-offer .info-box li{
    font-size: 18px;
}
body.single-offer .info-box li strong{
    margin-right: 10px;
}
.support-modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}
.support-modal-overlay .support-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: var(--light-blue);
    border-radius: 10px;
    transform: translate(-50%,-50%);
}
.support-modal-overlay .support-modal h2{
    color: var(--primary);
}
.support-modal-overlay .support-modal textarea{
    width: 100%;
    height: 45px;
    font-size: 16px;
    color: var(--primary);
    padding: 15px;
    border-radius: 0;
    border: none;
    height: 150px;
    resize: none;
    outline: none;
    box-shadow: none;
    background: var(--white);
}
.support-modal-close{
    position: absolute;
    top: 0;
    right: 0;
    color: var(--white) !important;
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 0 10px 0 0;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}
.user-offer-info{
    padding: 30px 0;
}
#user_registration_user_terms_field{
    display: none;
}
.user-info{
    display: flex;
    flex-wrap: wrap;
}
.user-info h2{
    text-align: left !important;
}
.user-col{
    width: 100%;
    padding: 0 15px;
    max-width: 33.33%;
}
/* Footer Section
==========================================*/
footer{
    padding: 15px 0 10px;
    background: var(--secondary);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-left: 250px;
}
.page-template-page-create-user footer{
    padding-left: 0;
}
footer p{
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}
@media(max-width:1599px){
    .ypm-all-campaigns .campaign-info{
        padding: 20px;
    }
    .ypm-all-campaigns .campaign-info .theme-btn{
        padding: 10px 15px;
        font-size: 14px;
    }
}
@media(max-width:1199px){
    h2{
        font-size: 24px;
    }
    .icon-box-sec .col{
        max-width: 100%;
    }
    .offer-col,
    .ypm-all-campaigns .campaign-col{
        max-width: 50%;
    }
    main{
        padding: 30px 30px 90px 230px;
    }
    .dashboard-sidebar{
        width: 200px;
        padding: 30px 20px;
    }
    .custom-table{
        overflow: auto;
    }
    #api-response_wrapper{
        width: 1000px;
    }
    footer{
        padding-left: 200px;
    }
}
@media(max-width:1023px){
    h1{
        font-size: 34px;
    }
    .welcome-sec .col:first-child{
        max-width: 80%;
    }
    .welcome-sec .col:last-child{
        max-width: 20%;
    }
    .offer-col,
    .ypm-all-campaigns .campaign-col{
        max-width: 100%;
    }
}
@media(max-width:767px){
    h1{
        font-size: 28px;
    }
    html{
        margin: 0 !important;
    }
    #wpadminbar{
        display: none !important;
    }
    body{
        font-size: 14px;
    }
    h2{
        font-size: 20px;
    }
    h3{
        font-size: 18px;
    }
    main{
        padding: 30px 20px 50px 70px;
    }
    .col2 .col{
        max-width: 100% !important;
    }
    .sidebar-logo .md-logo{
        display: none;
    }
    .sidebar-logo .sm-logo{
        display: block;
    }
    .dashboard-sidebar{
        width: 50px;
        padding: 30px 10px;
    }
    .dashboard-sidebar li{
        text-align: center;
    }
    .dashboard-sidebar li a{
        font-size: 0;
        display: block;
    }
    .dashboard-sidebar li a i{
        font-size: 18px;
        margin-right: 0;
    }
    .user-profile{
        left: 10px;
        right: 10px;
    }
    .welcome-sec .user-meta{
        position: absolute;
        top: 30px;
        right: 20px;
    }
    .welcome-sec .user-meta p{
        margin-bottom: 0;
    }
    .dashboard-sec .icon-box-sec .shadow-box .icon-box{
        width: 20%;
        font-size: 36px;
    }
    .dashboard-sec .shadow-box h3.counter-num{
        font-size: 24px;
    }
    .dashboard-sec .icon-box-sec .shadow-box p{
        font-size: 14px;
        margin-bottom: 10px;
    }
    .dashboard-sec .icon-box-sec .shadow-box{
        padding-left: 26%;
    }
    .dashboard-sec .icon-box-sec .shadow-box p{
        font-size: 13px;
    }
    .support-modal-overlay .support-modal {
        left: 20px;
        width: auto;
        right: 20px;
        transform: translate(0, -50%);
    }
    .gform_fields{
        gap: 10px !important;
    }
    .support-modal-overlay .support-modal textarea{
        height: 100px;
    }
    .campaign-info h3{
        margin-bottom: 10px;
    }
    .button-box a{
        display: block;
        margin-bottom: 10px;
    }
    .button-box a:last-child{
        margin-bottom: 0;
    }
    .offer-box .info-box ul li span{
        max-width: 230px;
    }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info{
        float: left;
        text-align: left;
    }
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_paginate{
        float: right;
        text-align: right;
    }
    .form-alert,
    .login-form{
        left: 20px;
        right: 20px;
        max-width: inherit;
        width: auto !important;
        transform: translate(0, -50%);
    }
    body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount),
    body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount),
    body.user-registration-page #user-registration:not(.user-registration-MyAccount),
    body.user-registration-page .user-registration:not(.user-registration-MyAccount){
        padding: 0 !important;
    }
    body.user-registration-page .ur-lost-password-title{
        font-size: 22px !important;
    }
    footer {
        padding-left: 50px;
    }
}