.isMobile #carbonads{
    margin: 15px auto !important;
}

.single-ad{
    /* margin: 0 0 0 auto; */
}

.mobile-ad #carbonads{
    max-width: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0px !important;
}

.mobile-ad .carbon-wrap{
    padding: 0px !important;
}

.mobile-ad .carbon-poweredby{
    text-align: right !important;
}

.mobile-ad .carbon-poweredby{
    background: none;
}

.single-ad #carbonads{
    height: fit-content;
height: -moz-fit-content;
    margin: auto;
}

.single-ad #carbonads:hover{
    opacity: 1;
    transform: translatey(-3px);
}

.single-ad #carbonads:hover .carbon-img{
    transform: translateY(-10px);
}

.single-ad #carbonads * {
    margin-left: auto;
    padding: initial;
  }
  
.single-ad #carbonads {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
      Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
      sans-serif;
  }
  
.single-ad #carbonads {
    display: flex;
    max-width: 360px;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
    z-index: 100;
  }
  
.single-ad #carbonads a {
    color: inherit;
    text-decoration: none;
  }
  
.single-ad #carbonads a:hover {
    color: inherit;
  }
  
.single-ad #carbonads{
    overflow: visible;
}

.single-ad #carbonads > span {
    
}

.single-ad #carbonads span {
    position: relative;
    display: block;
    overflow: visible;
}
  
.single-ad #carbonads .carbon-wrap {
    /* display: flex; */
    display: grid;
    grid-template-columns: 22% 78%;
    grid-template-rows: auto;
    padding: 15px 20px 15px 0px;
  }
  
.single-ad #carbonads .carbon-img {
    display: block;
    margin: 0;
    line-height: 1;
    position: relative;
    width: 100%;
    transition: 0.3s;
    /* transform: translatey(-50%) */
}

.single-ad #carbonads .carbon-img img {
    position: absolute;
    top: 30%;
    width: 160%;
    height: auto;
    max-width: 150px !important;
    right: 0px;
    transform: translatey(-50%);
    display: block;
    opacity: 1;
  }
  
.single-ad #carbonads .carbon-text {
    font-size: 13px;
    margin: auto;
    padding: 0px 10px 30px 10px;
    line-height: 1.5;
    text-align: left;
  }
  
.single-ad #carbonads .carbon-poweredby {
    display: block;
    padding: 6px 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 8px;
    line-height: 1;
    position: absolute;
    bottom: 0;
    right: 15px;
    width: calc(100% - 120px);
}

/* background: #f1f1f2; */


.ad-warning{
    content: "Ad";
    position: absolute;
    text-align: center;
    width: 100%;
    height: fit-content;
    font-size: 0.7rem;
    opacity: 0.7;
    color: var(--coral-text);
}


/* Resources card ad */
/* //////////////////////////////////////////////////////////////// */

.resource-description .single-ad{
    position: absolute;
    bottom: 0;
}

.resource-content-wrapper #carbonads{
    max-width: none;
}

.resource-content-wrapper #carbonads .carbon-text {
    padding: 0px 0px 30px 15px;
}

.resources-card-ad{
    height: 100%;
    min-width: calc(100vw / 3 - 18vw);
    min-height: 140px;
    /* max-width: 320px; */
}

.resources-card-ad .card-no-ad{
    transform: translateY(-40%);
    /* width: 100%;
    left: 0px;
    top: 50%;
    position: absolute; */
}

.resources-card-ad .carbon-text{
    padding: 0px
}

.resources-card-ad .carbon-wrap{
    gap: 5px;
}

.resources-card-ad #carbonads{
    padding: 15px;
    max-width: none;
    position: relative;
    z-index: 99;
    cursor: pointer;
    overflow: visible;
    min-height: 270px;
}

.resources-card-ad #carbonads:hover img{
    transform: translateY(-10px);
}

.resources-card-ad #carbonads .carbon-poweredby{
    padding: 10px;
}

.resources-card-ad #carbonads .carbon-text{
    font-size: 15px;
}

.resources-card-ad #carbonads span{
    overflow: visible;
}

.resources-card-ad #carbonads > span{
    width: fit-content;
    margin: auto;
    gap: 15px;
}

.resources-card-ad #carbonads > span > a{
    position: relative;
    width: calc(100% - 20px);
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 250px;
}

.resources-card-ad #carbonads .carbon-wrap{
    padding: 0px;
}

.resources-card-ad .carbon-poweredby{
    margin: 0px auto;
}

/* //////////////////////////////////////////////////////////////// */





@media only screen and (max-width: 1440px){
    .resources-card-ad{
        height: 100%;
        min-width: none;
        /* max-width: 320px; */
    }
}

@media only screen and (max-width: 900px){
    .resources-card-ad{
        height: 100%;
        width: 100%;
    }
}

@media only screen and (max-width: 720px){
    .single-ad #carbonads {
        max-width:none;
    }
}



#carbonads {
    display: flex;
    max-width: 330px;
    box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: var(--main-border-radius);
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: 0.2s;
}
/* 
#carbonads:hover {
    transform: translateY(-4px);
} */

.coral--dark #carbonads{
    background: var(--coral-dark-card);
    color: var(--coral-light-border);
}

.coral--light #carbonads{
    background: var(--coral-light-card) ;
    color: var(--coral-dark-border) !important;
}

#carbonads a {
    color: inherit;
    text-decoration: none;
}

.coral--light #carbonads a {
    color: var(--coral-dark-bg)
}

.coral--dark #carbonads a {
    color: var(--coral-light-bg)
}

#carbonads:hover .carbon-img img {
    opacity: 1;
    /* width: 100%; */
    /* height: auto; */
}

#carbonads span {
    position: relative;
    display: grid;
    overflow: hidden;
}

.native-ad-wrapper{
    overflow: hidden;
    height: fit-content;
    max-height: 42px;
}

.icon-list-area {

    .bsa-link{
        top: 50%;
        position: absolute;
        transform: translateY(-20%);
        min-height: 210px;
        text-align: left;

        &::after{
            @extend .ad-warning;
            bottom: 0px;
            top: 4px;
        }
    }

 .carbon-img img {
    width: auto;
    height: 100%;
    max-height: 80px;
}

    #carbonads{
        overflow: visible;
        cursor: pointer;

        &:hover{

            img{
                transform: translateY(-5px);
            }
        }


        &>span{
            height: calc(100% - 20px) !important;
            padding: 10px 7px 10px 7px;
            grid-template-rows: auto 19px;
            gap: 5px;
            margin: auto;
            max-height: 200px;
        }

        span {
            display: grid;
            overflow: visible;
            position: relative;
            /* height: 100%; */
            height: fit-content;
            height: -moz-fit-content;
        }
        .carbon-wrap{
            grid-template-rows: auto auto;
            /* grid-template-rows: 65px auto; */
        }

    }

}

#carbonads .carbon-wrap {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
}

#_carbonads_js:after{
    transform: translatey(40px);
}


.carbon-card-ad > div{
    position: absolute;
    top: 0px;
}

/* card-grid-nativeAd START */
/* //////////////////////////////////// */

.card-grid-nativeAd{
    z-index: 2;
    height: 100%;
    width: 100%;
    background: none !important;

    & > div{
        height: 100%;
        min-height: 100px
    }

    #card-ad{
        height: 100%;
        
        & > div{
            height: 100%;
        }
    }

    .bsa-link{
        padding: 0px 0px 20px 0px;
        height: fit-content;
        height: -moz-fit-content;
        height: -moz-fit-content;
        display: grid;
        grid-template-rows: 88px auto;
        background-color: transparent;
        border: 0px;
        font-size: 13px;
        align-content: center;
        overflow-y: visible;
        gap: 10px;
        // top: 50%;
        // transform: translateY(-50%);

        @media screen and (max-width: 990px) {
            gap: 0px;
        }
    }

    .coral-card{
        overflow: visible;
    }

    .bsa-img-wrapper{
        height: 78px;
        width: 80%;
        position: relative;
        margin: auto;
        border-radius: 5px;
        /* left: -20px; */
    
        &:hover{
            transform-origin: top center;
            animation-name: hover-swing;
            animation-duration: 1s;
            animation-fill-mode: both
        }
    }

    .bsa-desc{
        width: calc(100% - 30px);
        height: fit-content;
        height: -moz-fit-content;
        top: 5px;
        text-align: center;
        font-size: 12px !important;
        padding: 0px 15px !important;
    }

    .text-ad-wrapper{
        display: grid;
        width: 100%;
        height: 100%;
        grid-template-columns: auto;
        height: fit-content;
        height: -moz-fit-content;
    
        img{
            width: calc(100% - 13px);
            border-radius: 50px;
            padding: 4px;
            display: none;
        }
    }
}


.coral--dark{
    .card-grid-nativeAd{
    }
    
    .card-grid-nativeAd .bsa-link{
        background: var(--coral-dark-card);
        color: white;
    }

    #stickyBanner .card-grid-nativeAd .bsa-link{
        background-color: var(--coral-dark-card);
        color: var(--coral-light-bg);
    }

}

.coral--light{
    
    .card-grid-nativeAd{
    }
    
    .card-grid-nativeAd .bsa-link{
        background: var(--coral-light-card);
    }

    #stickyBanner .card-grid-nativeAd .bsa-link{
        background-color: var(--coral-light-card);
        color: var(--coral-dark-bg);
    }

}


#stickyBanner .card-grid-nativeAd .bsa-link{
    padding: 10px 20px;
    height: fit-content;
    display: flex;
    grid-template-rows: 88px auto;
    border: 0px;
    font-size: 13px;
    gap: 10px;
    width: calc(100% - 60px);

    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    z-index: 2;
}


@keyframes hover-swing {
	20% {
		-webkit-transform: rotate3d(0,0,1,10deg);
		transform: rotate3d(0,0,1,10deg)
	}

	40% {
		-webkit-transform: rotate3d(0,0,1,-7deg);
		transform: rotate3d(0,0,1,-7deg)
	}

	60% {
		-webkit-transform: rotate3d(0,0,1,5deg);
		transform: rotate3d(0,0,1,5deg)
	}

	80% {
		-webkit-transform: rotate3d(0,0,1,-5deg);
		transform: rotate3d(0,0,1,-5deg)
	}

	to {
		-webkit-transform: rotate3d(0,0,1,0);
		transform: rotate3d(0,0,1,0)
	}
}

.card-grid-nativeAd .bsa-icon{
    width: 80%;
    height: 100%;
    margin: auto;
    background-size: contain;
}


.coral-dark .card-grid-nativeAd .text-ad-wrapper img{
    border: 5px solid var(--coral-dark-card);
}

.coral-light .card-grid-nativeAd .text-ad-wrapper img{
    border: 5px solid var(--coral-light-card);
}


#hovercard{
    height: 100%;

    & > div{
        height: 100%;
    }

    a{
        width: 100%;
        height: 100%;
        
        & > div{
            margin: auto;
            width: auto;
        }
    }


    .hover-section{
        left: 0px !important;
        /* display: grid !important; */
        /* grid-template-rows: 60px auto; */
    }

    .hover-icon{
        display: none !important;
    }

    .hover-subset{
        left: 0px !important;
        width: 80%;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        height: fit-content !important;
    }

    .hover-banner{
        height: 80px !important;
        top: 0px !important;
        width: 100%;
        margin-top: 0px !important;
    }

    .hover-description{
        margin-bottom: 0px !important;
        font-size: 13px !important;
    }

}

/* card-grid-nativeAd END */
/* //////////////////////////////////// */


.carbon-img {
    display: block;
    margin: 0;
    line-height: 1;

    img {
        border-radius: 7px;
        display: block;
        margin: auto;
        opacity: 0.8;
        transition: 0.3s;
    }
}

.carbon-text {
    font-size: 12px;
    /* padding: 2px 5px 0px 5px; */
    line-height: 1.4;
    text-align: center;
    margin: 10px 0px 0px 0px;
}

.carbon-poweredby {
    display: block;
    padding: 5px 10px;
    
    opacity: 0.5;
    margin-bottom: 13px;
    width: 70%;
    height: fit-content;
    height: -moz-fit-content;
    border-radius: 4px;
    /* border-radius: 7px; */
    
    background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, 0.025) 5px, hsla(0, 0%, 0%, 0.025) 10px) hsla(203, 11%, 95%, 0.2);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 9px;
    line-height: 1;
}


.lgbt-wrapper{
    .text-ad-wrapper{
        position: relative;
        padding-bottom: 0.25rem;
        margin-bottom: 0.75rem;

        &::after{
            bottom: -18px;
            right: 0%;
            @extend .ad-warning;
            // content: "Ad";
            // position: absolute;
            // text-align: center;
            // // transform: translateX(-50%);
            // width: 100%;
            // font-size: 0.7rem;
            // height: 16px;
            // opacity: 0.7;
            // color: var(--coral-text);
        }
    }
}

.ad-hero{
    overflow: hidden;
    .native-ad-wrapper{
        overflow: hidden;
        // overflow: visible;
        &>div{
            &::after{
                @extend .ad-warning;
                top: -18px;
                left: 0%;
                width: 100%;
                // right: 0px;
            }
        }
    }
}

.lgbt-img {
    width: 80px;
    margin: auto;
}

.icon-absolute {
    position: absolute;
    padding: 0px !important;
    height: 10px;
    width: 8px;
    right: 8px;
    top: 10px;
    opacity: 0.7;
    cursor: pointer;
}

.icon-absolute:hover {
    opacity: 1;
}

.lgbt-text {
    height: fit-content;
    margin: auto;
    text-align: left;
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
}

.lgbt-text p {
    margin: 5px;
}


.sticky-banner {
    position: fixed !important;
    height: auto !important;
    width: 100%;
    max-width: 430px !important;
    max-height: 180px !important;
    padding: 5px;
    bottom: 20px;
    right: 20px;
    z-index: 9;
    box-shadow: 0px 10px 30px -10px rgb(0 0 0);
    min-height: 20px !important;
    overflow: hidden;
    
    ._coral-Button {
        width: 100%;
    }
}

@media only screen and (max-width: 720px) {
    .sticky-banner {
        bottom: 10px;
        max-width: 500px !important;
        width: calc(100% - 20px) !important;
        right: 50%;
        transform: translateX(50%)
    }
    .lgbt-img {
        width: 70px;
    }
    #stickyBanner .card-hover:hover {
        transform: translateX(50%) !important;
    }
}