/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
div#main:has(#afcoupons-container) {
    background: #f5f5f5 !important;
}
body:has(#afcoupons-container) div#below-header {
    box-shadow: none;
}
div#afcoupons-list *, div#afcoupons-container *, .afc_widget *, .afcPopup * {
    box-sizing: border-box;
}
div#afcoupons-list img, div#afcoupons-container img, .afc_widget img, .afcPopup img {
    margin: 0 !important;
}
div#afcoupons-container {
    margin-bottom: 50px;
}
.afcontainer{
    width: 100%;
    max-width: 1440px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
/* Grid view */
.afc-coupons.gridview {
    gap: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.afc-coupons.gridview .afcinfo {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.afc-coupons a, .afcPopup a{
    border: none;
    outline: none;
    box-shadow: none;
    text-decoration: none !important;
}
.afc-coupons.gridview .afcthumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #bbbbbb;
    overflow: hidden;
}

.afc-coupons.gridview .afcthumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.afc-coupons .afccoupon {
    position: relative;
    border-radius: 3px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    background-color: white;
    border: 2px solid #333;;
}

.afcouponinner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.afccoupon .discountCode {
    text-align: center;
    padding: 20px 0 10px;
}

.afccoupon .afc-coupon-code {
    font-family: "Barlow Condensed", sans-serif;
    text-align: center;
    font-style: italic;
    font-size: 28px;
    line-height: 28px;
    border-style: dashed;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    height: 43px;
    color: #2e2e2e;
    padding: 5px;
    background: #ff980026;
    border-width: 2px;
    border-color: #FF9800;
    background-clip: padding-box !important;
}

.afc-coupon-code span.alert {
    position: absolute;
    left: 0;
    background: #FF9800;
    right: 0;
    top: 0;
    bottom: 0;
    color: #fff;
    display: none;
    padding: 5px;
}

.copyalert{
    position: absolute;
    left: 0;
    background: #FF9800;
    right: 0;
    top: 0;
    bottom: 0;
    color: #fff;
    padding: 5px;
}

p.expirytimer {
    text-align: center;
    margin: 0;
    color: darkred;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
}

.afc-coupons h3.discountBadge {
    position: absolute;
    bottom: calc(100% - 12px);
    right: -3px;
    padding: 3px 14px;
    border-radius: 3px;
    background: #3cb4c1;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: "play", sans-serif;
    cursor: text;
    margin: 0;
    max-width: 80%;
    pointer-events: none;
}

a.afc-coupon-box {
    text-decoration: none !important;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    padding: 9px 15px;
    position: relative;
    width: 100%;
    display: block;
    height: 40px;
    overflow: hidden;
}
span.buttonInfo {
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-overflow: clip;
    white-space: nowrap;
    font-weight: 500;
}

a.lockedCode span.buttonInfo {
    width: calc(100% - 25px);
    clip-path: polygon(0% 0%, calc(100% - 30px) 0, 100% 100%, 0 100%, 0 0);
}

a.afc-coupon-box span.code {
    color: #000000;
    font-weight: 500;
    background-color: #ffecb3;
    text-transform: uppercase;
    width: calc(100% - 4px);
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    bottom: 2px;
    text-align: right;
    align-content: center;
    padding-right: 10px;
    z-index: 1;
    outline-color: #FF9800;
    border-radius: 5px;
    outline-style: dashed;
    outline-width: 2px;
}
a.afc-coupon-box:hover span.buttonInfo {
    filter: brightness(70%);
}
a.lockedCode.afc-coupon-box:hover span.buttonInfo {
    width: calc(100% - 50px);
}
.afc-coupons h3.afcheading {
    margin-bottom: 0;
    font-size: 18px;
    margin-top: 0 !important;
}

.afcMetaInfo {
    margin-bottom: 10px;
}

.afc-coupons div.afcdesc {
    font-size: 16px;
    font-weight: 400;
    max-height: 120px;
    overflow-y: auto;
    margin: 0;
    margin-top: 10px;
    color: #000000;
}

.afc-coupons div.afcdesc p{
    margin-bottom: 0;
}

div.afcdesc::-webkit-scrollbar {
  width: 2px;
}

/* Track */
div.afcdesc::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
div.afcdesc::-webkit-scrollbar-thumb {
  background: #3cb4c1; 
}

.afc-coupons.listview div.afcdesc {
    height: initial;
}

.load-more-container {
    margin: 30px 0;
    text-align: center;
}
button#load-more-afcoupons {
    background: #123a93;
    border-radius: 25px;
    padding: 12px 25px;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
}

/* Filter */
.afc-filter-container {
    margin-bottom: 20px;
}
.afc-filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: sans-serif;
    padding: 20px 0;
    border-bottom: 1px solid #f6f6f6;
    justify-content: space-between;
}
.selectBoxes {
    display: flex;
    gap: 20px;
}
@media (max-width: 768px) {
    .afc-filter-row {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .afc-filter-box.search {
        width: 100%;
    }
}
.afc-filter-row:last-child{
    border-bottom: none;
}
.afc-filter-box {
    display: flex;
    border: 1px solid #c9c9c9;
    background-color: #ffffff;
    border-radius: 4px;
}
.afc-filter-box.search {
    flex: 1;
    max-width: 480px;
}
.afc-filter-box svg{
    aspect-ratio: 1;
    padding-inline: 8px;
    align-self: center;
}
.afc-filter-box input.afc-search-field {
    flex: 1;
    font-size: 16px;
    color: #204042;
    height: 100%;
    border: none !important;
    outline: none !important;
    background-color: transparent;
    box-shadow: none !important;
    padding: 16px 10px;
}
.fImgBox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fImgBox {
    width: 50px;
    padding: 5px;
    border-right: 1px solid #ddd;
}
.afc-filter-box:has(input.afc-search-field:focus){
    box-shadow: 0 0 .5px 1px #123a93;
    border-color: #123a93;
}
.afc-filter-box button.afc-search-button {
    background-color: #123a93;
    color: #fff;
    border: none;
    display: block;
    padding: 0 15px;
    cursor: pointer;
    text-transform: capitalize;
    transition: 0.2s ease;
    -webkit-transition: 0.2s ease;
    -moz-transition: 0.2s ease;
    -ms-transition: 0.2s ease;
    -o-transition: 0.2s ease;
    border-radius: 4px;
}
.afc-filter-box button.afc-search-button:hover{
    background-color: #10327e;
}
.selectBoxes{
    display: flex;
    gap: 20px
}
.afc-filter-box.afc-dropdown {
    cursor: pointer;
    position: relative;
    padding: 0 12px;
}
.afc-filter-box.afc-dropdown img {
    width: 14px;
}
.afc-filter-box p.label{
    margin: 10px 5px;
    padding: 0;
    font-size: 16px;
    color: #204042;
    user-select: none;
}
.afc-filter-box.focused{
    box-shadow: 0 0 .5px 1px #123a93;
    border-color: #123a93;
}
.afc-dropdown-popup {
    position: absolute;
    top: calc(100% + 10px);
    background-color: #ffffff;
    border-radius: 2px;
    width: fit-content;
    left: 50%;
    translate: -50% 0;
    display: none;
    z-index: 999;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    height: 300px;
    overflow-y: auto;
}
.afc-dropdown-popup label.afc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    cursor: pointer;
    color: #505050;
    user-select: none;
    font-size: 16px;
}
.afc-dropdown-popup label.afc-dropdown-item:last-child{
    margin-bottom: 0;
}
.afc-dropdown-popup label.afc-dropdown-item:has(input[type=checkbox]:checked),
.afc-dropdown-popup label.afc-dropdown-item:hover{
    background-color: #e7e7e780;
    
}
.afc-filter-box.afc-dropdown svg.down-arrow{
    scale: .6;
}
.afc-filter-box.focused .afc-dropdown-popup{
    display: block;
}
.afc-dropdown-popup label.afc-dropdown-item input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.afc-sorting {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.afc-sorting p.label{
    margin: 0;
}
.afc-sorting label.afc-sort-item {
    text-transform: capitalize;
    position: relative;
    cursor: pointer;
    padding-left: 25px;
    font-size: 16px;
}
.afc-sorting label.afc-sort-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    translate: -50% -50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #636363;
    transition: .2s;
}
.afc-sorting label.afc-sort-item:has(input[type=radio]:checked)::after{
    box-shadow:
     0 0 1px 2px #123a93,
    0 0 1px 1px #e0e0e0,
    inset 0 0 1px 4px #123a93;
    border-width: 2px;
}
.afc-sorting label.afc-sort-item input[type=radio]{
    display: none;
}

.afcLoading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    width: auto;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


/* Popup */
.afcPopup {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000b3;
    z-index: 999;
    backdrop-filter: blur(1px);
}
.afcpopup_wrapper{
    width: 500px;
    position: relative;
}
span.afc_close_popup {
    color: #4d4d4d;
    right: 20px;
    top: 20px;
    position: absolute;
    width: 32px;
    height: 32px;
    text-align: center;
    font-size: 40px;
    line-height: 33px;
    rotate: 45deg;
    z-index: 99;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    border: 1px solid;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}
span.afc_close_popup:hover {
    color: red;
}
.afcpopup_inner {
    width: 100%;
    background: #fff;
    border-radius: 25px;
}

.afcpopup_inner .afcinfo {
    padding: 10px 20px 20px;
    text-align: center;
}
.afcpopup_inner .afcthumb {
    display: block;
    width: 100%;
    height: 120px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}
.afcpopup_inner .afcthumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.afcpopup_inner .afcthumb h3.discountBadge {
    position: absolute;
    top: 10px;
    right: -3px;
    padding: 4px 14px;
    border-radius: 3px;
    background: #3cb4c1;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: "play", sans-serif;
}
.afcpopup_inner span.buttonInfo {
    position: relative;
}

.afcpopup_inner .discountCode {
    text-align: center;
    align-content: center;
    font-size: 24px;
    margin: 18px 0;
}

.afcpopup_inner .afc-coupon-code {
    font-family: "Barlow Condensed", sans-serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 600;
    line-height: 28px;
    border-style: dashed;
    position: relative;
    cursor: pointer;
    height: 44px;
    color: #2e2e2e;
    padding: 5px 20px;
    background: #ff980026;
    border-width: 2px;
    border-color: #FF9800;
    background-clip: padding-box !important;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}
.afc-desc-box {
    max-height: 100px;
    overflow-y: auto;
}
.afcpopup_inner p {
    margin: 0;
}

.afcpopup_inner h3 {
    margin: 0;
    margin-bottom: 10px;
}

.afcpopup_inner a.afc-coupon-box .buttonInfo {padding: 10px;border-radius: 5px;}

.afcpopup_inner a.afc-coupon-box {
    text-decoration: none;
    margin-top: 10px;
    display: block;
    height: 60px;
}

@media (max-width: 500px){
    .afcpopup_wrapper {
        width: 90%;
    }
    .afcpopup_inner .discountCode {
        margin: 10px 0;
    }
    .afcpopup_inner a.afc-coupon-box .buttonInfo {padding: 7px;}
}


/* List view */
.afc-coupons.listview {
    display: flex;
    flex-direction: column;
    gap: 38px;
}
.afc-coupons.listview .afccoupon {
    padding: 20px;
}

.afc-coupons.listview .afcouponinner {
    flex-direction: row;
}
.afc-coupons.listview .afcthumb {
    min-width: 150px;
    max-width: 150px;
    aspect-ratio: 16 / 9;
}
.afc-coupons.listview .afcinfo {
    display: flex;
    width: calc(100% - 150px);
}

.afc-coupons.listview .afcMetaInfo {
    width: 70%;
    padding: 0 20px;
}

.couponActionBox {
    width: 30%;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.afc-coupons.listview .afcMetaInfo div.afcdesc {
    margin-top: 5px;
}

.afc-coupons.listview .afcMetaInfo p.expirytimer {
    text-align: left;
    margin-top: 10px;
}

.afc-coupons.listview .afcthumb img {
    object-fit: contain;
    object-position: center center;
}

.afc-coupons.listview  h3.discountBadge {
    left: -5px;
    right: unset;
}

.afc-coupons.listview p.expirytimer {
    position: absolute;
    right: 20px;
    top: 10px;
}

/* .afc-coupons.listview .couponActionBox {
    padding-top: 30px;
} */

@media (max-width: 768px){
    .afc-coupons.listview a.afc-coupon-box {
        font-size: 14px;
    }
    .afc-coupons.listview .afc-coupon-code {
        font-size: 24px;
        line-height: 24px;
        height: 40px;
    }
    .afc-coupons.listview .afcouponinner {
        flex-direction: row;
    }
    .afc-coupons.listview .afcinfo {
        display: block;
        padding-left: 20px;
    }
    .afc-coupons.listview .couponActionBox {
        width: 100%;
        display: block;
        margin-top: 10px;
    }
    .afc-coupons.listview .afcMetaInfo {
        width: 100%;
        padding: 0;
    }
    .afc-coupons.listview div.afcdesc {
        max-height: 120px;
    }
    .afc-coupons.listview p.expirytimer {
        position: initial;
    }
    .afc-coupons.listview a.afc-coupon-box {
        margin-top: 10px;
    }
}

@media (max-width: 500px){
    .afc-coupons.listview .afccoupon {
        padding: 0;
    }
    .afc-coupons.listview .afcouponinner {
        flex-direction: column;
    }
    .afc-coupons.listview .afcinfo {
        padding-left: 0;
        position: relative;
        padding: 20px;
        width: 100%;
    }
    .afc-coupons.listview .afcMetaInfo {
        padding: 0;
    }
    .afc-coupons.listview .afcthumb {
        padding: 20px;
    }
    /* .afc-coupons.listview .afcMetaInfo p.expirytimer {
        position: absolute;
        bottom: 74px;
    } */
    .afc-coupons.listview a.afc-coupon-box {
        margin-top: 10px;
    }
}


/* Widget */
.afc_widget ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.afc_widget ul li{
    margin-bottom: 20px;
    font-family: "play", sans-serif;
}
.afc_widget ul li:last-child{
    margin-bottom: 0;
}
.afc_widget .couponActionBox {
    width: 100%;
}

.afc_widget a.afc-coupon-box {
    height: initial;
    line-height: normal;
    margin: 0;
    padding: 0;
    font-size: 18px;
    height: 70px;
    font-weight: bold;
    overflow: unset;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.afc_widget span.buttonInfo {
    text-overflow: initial;
    white-space: normal;
    position: absolute;
    padding: 10px 20px;
    clip-path: unset !important;
    width: calc(100% - 60px) !important;
    border-radius: 5px 0 0 5px;
}
.afc_widget span.buttonInfo:before {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    width: 14px;
    height: 8px;
    background: #00000073;
    border-radius: 0 0 0 10px;
}
.afc_widget span.buttonInfo:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 60%;
    background: inherit;
    bottom: -13px;
    clip-path: polygon(0% 0%, calc(100% - 41px) 0px, 138% 100%, 0 100%, 0 0);
    border-radius: 4px;
    rotate: 27deg;
    right: -40px;
    top: 33%;
    transform-origin: top left;
    z-index: 99;
    filter: brightness(142%);
}
.afc_widget .discountCode {
    margin: 0;
    padding: 0;
}
.afc_widget .afc-coupon-code {
    padding: 10px;
    height: 70px;
    font-size: 42px;
    line-height: 42px;
}
.discountCode.afcnone{
    display: none;
}

.sidebar .textwidget .afc-coupons.listview .afcouponinner {
    flex-direction: column;
}

.sidebar .textwidget .afc-coupons.listview  .afcinfo {
    flex-direction: column;
    width: 100%;
}

.sidebar .textwidget .afc-coupons.listview .afcinfo > div {
    width: 100%;
    padding: 0;
}

.sidebar .textwidget .afc-coupons.listview .afcinfo p.expirytimer.afctimer {
    position: initial;
    margin-bottom: 0;
}

.afc-coupons .google-auto-placed {
    display: none;
}