@import url(ads.inc.item.css);

/****************************************/

#ofr_cont {
    max-width: 1232px;
    margin: 0 auto
}

#ofr_top {
    padding: 44px 0 55px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start
}

#ofr_top > div {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 26px;
    box-sizing: border-box;
    position: relative;
}

#ofr_top > div > h1 {
    color: #434343;
    font: bold 28px 'MainFont';
    margin: 0 0 35px 0;
    padding: 0
}

body.dark #ofr_top > div > h1 { color: #c4c4c4 }

#ofr_top > div > p {
    color: #8D8D8D;
    font: normal 16px 'MainFont';
    margin: 10px 0;
    padding: 0
}

/**************************************/

#ofr_popular_list {
    margin: 0;
    overflow: hidden;
    height: 156px;
    display: flex;
    justify-content: flex-start
}

#ofr_popular_list > div {
    flex: 0 0 auto;
    text-align: left;
    font-size: 0;
    height: 156px;
    text-wrap: nowrap
}

.ofr_popular_item {
    display: inline-block;
    vertical-align: top;
    width: 142px;
    height: 156px;
    border-radius: 10px;
    position: relative;
    cursor: pointer
}

.ofr_popular_item + .ofr_popular_item { margin-left: 7px }

.ofr_popular_item > img { border-radius: 10px; object-fit: cover; width: 142px; height: 156px }

.ofr_popular_item > div.oname {
    position: absolute;
    bottom: 7px;
    left: 10px;
    color: #fff;
    font: bold 12px/12px 'MainFont';
    z-index: 3
}

body.dark .ofr_popular_item > div.oname { color: #ccc }

.ofr_popular_item > div.oname::first-letter { text-transform: uppercase }

.ofr_popular_item.online:before {
    content: '';
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #0EDB15;
    right: 6px;
    bottom: 8px;
    z-index: 4
}

.ofr_popular_item:after {
    content: '';
    position: absolute;
    top: 35%;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
}

.ofr_popular_item > span {
    position: absolute;
    z-index: 5;
    right: 10px;
    top: 8px;
    width: 20px;
    display: flex;
    flex-direction: column
}

.ofr_popular_item > span > a {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.ofr_popular_item > span > a + a { margin-top: 8px } 

a.telegram_icon { background: url(../../img/mobile/ads/telegram_small.svg) center center / contain no-repeat }
a.viber_icon { background: url(../../img/mobile/ads/viber_small.svg) center center / contain no-repeat }
a.whatsapp_icon { background: url(../../img/mobile/ads/whatsapp_small.svg) center center / contain no-repeat }

body.dark a.telegram_icon { background-image: url(../../img/main/ads/telegram_small_dark.svg) }
body.dark a.viber_icon { background-image: url(../../img/main/ads/viber_small_dark.svg) }
body.dark a.whatsapp_icon { background-image: url(../../img/main/ads/whatsapp_small_dark.svg) }

/**************************************/

.ofr_popular_item > .dia, .ofr_popular_item > .vip {
    position: absolute;
    text-align: center;
    color: #1d1d1d;
    font: bold 12px 'MainFont';
    text-shadow: 0 0 1px #1d1d1d;
    z-index: 6
}

.ofr_popular_item > .dia {
    top: 8px;
    left: 2px;
    width: 32px;
    height: 26px;
    background: url(../../img/diamond.svg) center center no-repeat;
    line-height: 24px;   
}

.ofr_popular_item > .vip {
    top: 2px;
    left: 2px;
    width: 36px;
    height: 34px;
    background: url(../../img/vip.svg) center center no-repeat;
    line-height: 36px;
}

/**************************************/

#ofr_popular_prev, #ofr_popular_next {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    top: 63px;
    z-index: 10;
    box-shadow: rgba(0, 0, 0, 0.15) 0 0 3px 1px;
    background: #fff url(../../img/main/ads/next.svg) center center no-repeat
}

#ofr_popular_prev.grayed, #ofr_popular_next.grayed { background-image: url(../../img/main/ads/next_disabled.svg) }

#ofr_popular_prev { left: -15px; transform: rotate(180deg); }
#ofr_popular_next { right: 11px;  }

body.dark #ofr_popular_prev, body.dark #ofr_popular_next { background-color: #404040; background-image: url(../../img/main/ads/next_disabled.svg) }
body.dark #ofr_popular_prev.grayed, body.dark #ofr_popular_next.grayed { background-image: url(../../img/main/ads/next.svg) }

/**************************************/

#ofr_cats {
    padding: 0 0 44px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#ofr_cats > div {
    flex: 0 0 auto;
    width: 50%;
    box-sizing: border-box
}

#ofr_cats > div:first-child { padding: 0 16px 0 20px }
#ofr_cats > div:last-child { padding: 0 26px 0 10px }

a.ofr_cat_tab {
    text-decoration: none;
    background-color: #fff;
    display: block;
    width: 580px;
    height: 120px;
    padding: 20px 20px 20px 155px;
    box-sizing: border-box;
    font: bold 20px/22px 'MainFont';
    color: #434343;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.08) 0 0 5px 2px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center
}                           

body.dark a.ofr_cat_tab { background-color: #404040; color: #c5c5c5 }

a.ofr_cat_tab:hover { box-shadow: rgba(0, 0, 0, 0.15) 0 0 5px 2px; }
body.dark a.ofr_cat_tab:hover { box-shadow: rgba(255, 255, 255, 0.3) 0 0 5px 2px; }

a.ofr_cat_tab.sel { background: linear-gradient(to right, #ED2847, #FF7043); color: #fff !important }

.ofr_cat_total { color: #c2c2c2 }
.ofr_cat_total:before { content: '('; margin-left: 5px }
.ofr_cat_total:after { content: ')' }
.ofr_cat_total:empty { display: none }

a.ofr_cat_tab.sel .ofr_cat_total { color: #FDBBAF }

.ofr_cat_desc { font: normal 14px 'MainFont'; color: #434343 }
body.dark .ofr_cat_desc { color: #c5c5c5 }

a.ofr_cat_tab.sel .ofr_cat_desc { color: #FDBBAF }

a.ofr_cat_tab:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 155px;
}

a.ofr_cat_tab.cat0:before { background: url(../../img/main/ads/cat0.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat1:before { background: url(../../img/main/ads/cat1.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat2:before { background: url(../../img/main/ads/cat2.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat3:before { background: url(../../img/main/ads/cat3.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat4:before { background: url(../../img/main/ads/cat4.svg) left 38px center no-repeat }
a.ofr_cat_tab.cat5:before { background: url(../../img/main/ads/cat5.svg) left 33px center no-repeat }
a.ofr_cat_tab.cat6:before { background: url(../../img/main/ads/cat6.svg) left 33px center no-repeat }
a.ofr_cat_tab.cat8:before { background: url(../../img/main/ads/cat8.svg) left 46px center no-repeat }
a.ofr_cat_tab.cat9:before { background: url(../../img/main/ads/cat9.svg) left 43px center no-repeat }
a.ofr_cat_tab.cat10:before { background: url(../../img/main/ads/cat10.svg) left 33px center no-repeat }

a.ofr_cat_tab.cat0.sel:before { background: url(../../img/main/ads/cat0_sel.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat1.sel:before { background: url(../../img/main/ads/cat1_sel.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat2.sel:before { background: url(../../img/main/ads/cat2_sel.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat3.sel:before { background: url(../../img/main/ads/cat3_sel.svg) left 32px center no-repeat }
a.ofr_cat_tab.cat4.sel:before { background: url(../../img/main/ads/cat4_sel.svg) left 38px center no-repeat }
a.ofr_cat_tab.cat5.sel:before { background: url(../../img/main/ads/cat5_sel.svg) left 33px center no-repeat }
a.ofr_cat_tab.cat6.sel:before { background: url(../../img/main/ads/cat6_sel.svg) left 33px center no-repeat }
a.ofr_cat_tab.cat8.sel:before { background: url(../../img/main/ads/cat8_sel.svg) left 46px center no-repeat }
a.ofr_cat_tab.cat9.sel:before { background: url(../../img/main/ads/cat9_sel.svg) left 43px center no-repeat }
a.ofr_cat_tab.cat10.sel:before { background: url(../../img/main/ads/cat10_sel.svg) left 33px center no-repeat }

/**************************************/

#ofr_filter_order {
    height: 45px;
    display: flex;
    justify-content: space-between;
    margin: 0 0 35px 0;
    padding-right: 25px
}

#ofr_order {
    display: block;
    flex: 0 0 auto;
    height: 45px;
    position: relative;
}

#ofr_order > a {
    display: block;
    border: 1px solid #FF7043;
    border-radius: 5px;
    min-width: 192px;
    height: 45px;
    box-sizing: border-box;
    padding: 0 15px;
    text-align: center;
    color: #FF7043;
    font: bold 16px/45px 'MainFont' ;
    text-decoration: none;
}

#ofr_order > a:after {
    content: '';
    float: right;
    width: 24px;
    height: 12px;
    margin: 15px 0 16px 10px;
    background: url(../../img/main/ads/down.svg) center center no-repeat
}

#ofr_order_options {
    display: none;
    position: absolute;
    background-color: #fff;
    top: 50px;
    right: 0;
    min-width: 192px;
    box-sizing: border-box;
    padding: 21px 14px;
    border-radius: 10px;
    border: 1px solid rgba(172, 169, 169, 0.5);
    z-index: 90;
    white-space: nowrap;
    box-shadow: rgba(0, 0, 0, 0.08) 0 0 3px 1px;
}

#ofr_order > a.sel + #ofr_order_options { display: block }

body.dark #ofr_order_options { background-color: #404040 }

#ofr_order_options > a {
    display: block;
    height: 18px;
    padding: 0 0 0 37px;
    position: relative;
    color: #434343;
    font: bold 16px/18px 'MainFont';
    text-decoration: none
}

body.dark #ofr_order_options > a { color: #c5c5c5 }

#ofr_order_options > a:before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid rgba(172,169,169,0.5)
}

#ofr_order_options > a.sel:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #36B73A 
}

body.dark #ofr_order_options > a.sel:after { background-color: #237025 }

#ofr_order_options > a + a { margin-top: 20px } 

/**************************************/

#ofr_filter { height: 45px }

#ofr_filter > a {
    text-decoration: none;
    display: block;
    height: 45px;
    min-width: 192px;
    box-sizing: border-box;
    border-radius: 5px;
    background: #FF7043 url('../../img/main/ads/filter.svg') left 30px center no-repeat;
    font: bold 16px/45px 'MainFont';
    text-align: center;
    color: #fff;
    padding: 0 15px 0 65px
}

/**************************************/

#ofr_filter_area { margin: 0 0 35px 0 }

#filter_form { display: flex; justify-content: center; align-items: center; flex-wrap: wrap }

#filter_form > div { 
    width: 50%; 
    flex: 0 0 auto; 
    box-sizing: border-box; 
    padding: 0;
    display: flex;
    align-items: flex-start
}

#filter_form > div:nth-child(2n+1) { justify-content: flex-end }
#filter_form > div:nth-child(2n) { justify-content: flex-start }

.ofr_filter_option {
    flex: 0 0 auto;
    width: 375px;
    height: 120px;
    padding: 35px
}

#filter_form > div:nth-child(1) > .ofr_filter_option, 
#filter_form > div:nth-child(2) > .ofr_filter_option { border-bottom: 1px solid rgba(230,230,230,0.5) }


.ofr_filter_option > .ofr_input_head {
    font: bold 14px 'MainFont';
    color: #FF7043;
    margin: 0 0 5px 0;
}

.ofr_filter_select.empty { color: #a2a2a2 }

.ofr_filter_select {
    height: 50px;
    background: transparent url("../../img/main/ads/select_arrow.svg") right 25px center no-repeat;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 55px 0 0;
    margin: 5px 0 0 0;
    color: #5a5a5a;
    font: normal 16px/50px 'MainFont';
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ofr_filter_select > option { color: #5a5a5a }
.ofr_filter_select > option[value='0'] { color: #a2a2a2 }

body.dark .ofr_filter_select.empty { color: #777 }
body.dark .ofr_filter_select, body.dark .ofr_filter_select > option { color: #b1b1b1 }
body.dark .ofr_filter_select > option { background-color: #404040 }

body.dark .ofr_filter_select > option { color: #b1b1b1 }
body.dark .ofr_filter_select > option[value='0'] { color: #777 }

.ofr_filter_gender {
    margin-top: 10px;
    display: flex;
    justify-content: space-between
}

a.ofr_gender {
    flex: 0 0 auto;
    width: 80px;
    height: 75px;
    text-align: center;
    color: #FF7043;
    font: normal 12px 'MainFont';
    text-decoration: none;
    position: relative
}

a.ofr_gender::before {
    content: '';
    display: block;
    width: 80px;
    height: 53px;
    box-sizing: border-box;
    border: 1px solid rgba(221,221,221,0.6);
    border-radius: 5px;
    margin: 0 auto 7px auto;
}

a.ofr_gender[value='1']::before { background: url(../../img/main/ads/sex1.svg) center center no-repeat }
a.ofr_gender[value='2']::before { background: url(../../img/main/ads/sex2.svg) center center no-repeat }
a.ofr_gender[value='4']::before { background: url(../../img/main/ads/sex4.svg) center center no-repeat }
a.ofr_gender[value='8']::before { background: url(../../img/main/ads/sex8.svg) center center no-repeat }

a.ofr_gender.checked::before { border-color: #EB5017 }
a.ofr_gender.checked[value='1']::before { background: url(../../img/main/ads/sex1_sel.svg) center center no-repeat }
a.ofr_gender.checked[value='2']::before { background: url(../../img/main/ads/sex2_sel.svg) center center no-repeat }
a.ofr_gender.checked[value='4']::before { background: url(../../img/main/ads/sex4_sel.svg) center center no-repeat }
a.ofr_gender.checked[value='8']::before { background: url(../../img/main/ads/sex8_sel.svg) center center no-repeat }

body.dark a.ofr_gender::after { 
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 53px;
    border-radius: 5px;
    background-color: #A9A9A9;
    opacity: 0.15;
}

.ofr_filter_btn {
    height: 45px;
    width: 375px;
    padding: 0 35px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start
}

.ofr_filter_btn > button {
    flex: 0 0 auto;
    display: block;
    text-align: center;
    min-width: 237px;
    height: 45px;
    background: linear-gradient(to right, #ED3554, #FF7043);
    font: bold 16px/45px 'MainFont';
    border-radius: 5px;
    border: none;
    color: #fff;
}

.ofr_filter_btn > button.processing { font-size: 0 }
.ofr_filter_btn > button.processing:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 43px;
    height: 11px;
    background: url(../../img/jquery/wait.gif) center center no-repeat
}

/*************/

.ofr_filter_range {
    height: 41px;
    position: relative;
    user-select: none;
    margin-top: 10px
}

.frange_label_left, .frange_label_right { 
    position: absolute;
    top: 0;
    color: #5A5A5A; 
    font: normal 16px/16px 'MainFont'
}

.frange_label_left { left: 0 }
.frange_label_right { right: 0 }

.frange_slider_area {
    height: 6px;
    border-radius: 4px;
    background-color: #FFE2D9;
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 6px
}

body.dark .frange_slider_area { background-color: #A13311 }

.frange_slider {
    height: 6px;
    background-color: #FF7043;
    position: absolute;
    left: 30%;
    right: 40%;
    bottom: 6px;
    margin: 0 3px
}

.frange_left, .frange_right {
    padding-top: 25px;
    position: absolute;
    bottom: -25px
}

.frange_left:before, .frange_right:before {
    content: '';
    position: absolute;
    bottom: 25px;
    width: 18px;
    height: 18px;
    background-color: #FF7043;
    border-radius: 9px;
}

.frange_left:before { left: 0 }
.frange_right:before { right: 0 }

.frange_left:after, .frange_right:after {
    content: '';
    position: absolute;
    bottom: 30px;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 4px;
}

.frange_left:after { left: 5px }
.frange_right:after { right: 5px }

body.dark .frange_left:after, body.dark .frange_right:after { background-color: #404040 }

.frange_left > div, .frange_right > div {
    color: #F98A81;
    font: bold 18px/20px 'MainFont';
}

body.dark .frange_left > div, body.dark .frange_right > div { background-color: #292929 }

.frange_left { left: 30%; text-align: left; z-index: 2 }
.frange_right { left: 60%; text-align: right; margin-left: -22px; z-index: 1 }

/**************/

#ofr_ads_desc {
    font: normal 16px 'MainFont';
    color: #434343;
    margin: 60px auto;
}

body.dark #ofr_ads_desc { 
    margin: 45px auto;
    padding: 27px 36px; 
    border-radius: 10px; 
    background-color: #2E2E2E; 
    color: #717171 
}


#ofr_ads_desc > h2 {
    font: bold 22px 'MainFont';
    margin: 20px 0;
    padding: 0
}

#ofr_ads_desc > h2:first-child { margin-top: 0 }

#ofr_ads_desc > h3 {
    font: italic normal 18px 'MainFont';
    margin: 15px 0;
    padding: 0
}

#ofr_ads_desc > p {
    margin: 10px 0;
    padding: 0
}

#ofr_ads_desc > ul {
    list-style-position: inside;
    list-style-type: disc;
}

#ofr_ads_desc > ol {
    list-style-position: inside;
}

/**************************************/

#ofr_list {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column
}

#ofr_list.processing:before {
    content: '';
    display: block;
    height: 11px;
    width: 100%;
    background: url(../../img/jquery/wait.gif) center center no-repeat;
    margin: 25px 0
}

.ofr_not_found { display: none }
.ofr_not_found:last-child { display: block }

/************/

#ofr_paging {
    margin: 50px auto;
    display: flex;
    justify-content: center
}

#ofr_paging > * + * { margin-left: 10px }

#ofr_paging > a.numb {
    width: 30px;
    height: 30px;
    border: 1px solid #FF7043;
    border-radius: 16px;
    font: bold 16px/30px 'MainFont'; 
    color: #FF7043;
    text-align: center;
    text-decoration: none
}

body.dark #ofr_paging > a.numb { background-color: #404040 }

#ofr_paging > a.numb.sel { background-color: #FF7043 !important; color: #fff }
body.dark #ofr_paging > a.numb.sel { color: #404040 }

#ofr_paging > a.numb:empty:before { content: '...' }

#ofr_paging > a.prev, #ofr_paging > a.next {
    width: 46px;
    height: 30px;
    border: 1px solid #FF7043;
    border-radius: 16px;
}

#ofr_paging > a.prev { background: url(../../img/main/ads/prev_page.svg) center center no-repeat }
#ofr_paging > a.next { background: url(../../img/main/ads/next_page.svg) center center no-repeat }

body.dark #ofr_paging > a.prev, body.dark #ofr_paging > a.next { background-color: #404040 }