#adb_top {
    position: relative;
}

.adb_px {
    height: 1px;
    width: 1px;
}

#adb_top .ad__class__caption {
    position: relative;
    padding: 0 20px;
    z-index: 1;
    font-size: 11px;
    line-height: 1;
}

#adb_top .ad-items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

#adb_top .ad__class-item {
    display: grid;
    grid-template-columns: 2.0fr 0.6fr;
    grid-template-rows: 1fr;
    grid-template-areas: "info seenow";
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

@media all and (-ms-high-contrast:none) {
    #adb_top  .ad__class-item {
        display: -ms-grid;
        -ms-grid-columns: 0.4fr 2.0fr 0.6fr;
        -ms-grid-rows: 1fr;
    }
}

#adb_top .ad__class-item .ad-domain {
    width: 100%;
}

#adb_top .adb-item-img img{
    height: 70px;
    width: 70px;
}

#adb_top .ad-info img {
    height: 16px;
    width: 16px;
}

#adb_top .adb-item-img {
    grid-area: image;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adb_top .adb-item-img a {
    display: flex;
    align-items: center;
}

#adb_top .adb-item-img .green-box {
    border-radius: 0;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adb_top .ad-info {
    grid-area: info;
    padding: 5px;
}

#adb_top .ad-see-now {
    grid-area: seenow;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adb_top .ad__class-item__site-links {
    display: none;
}

#adb_top  .validclick-inline-ad--button {
    float: right;
    right: 0;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    margin: 0 5px;
    top: 50%;
    text-align: center;
    width: 80%;
}

#adb_top .ad__class-item__title {
    line-height: 1.0;
}

#adb_top .ad__class-item__descr {
    line-height: 1.5;
}

#adb_top .adb-domain {
    line-height: 1.0;
}

@media (max-device-width: 1023px){
    #adb_top .ads-link-full-click {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        text-decoration: none;
        z-index: 10;
        /* raises anchor tag above everything else in div */
    }
}

@media (max-width: 767px) {
    #adb_top .ad__class-item {
        display: grid;
        grid-template-columns: 1.0fr;
        grid-template-rows: 1.7fr 0.3fr;
        grid-template-areas: "info" "seenow";
    }

    @media all and (-ms-high-contrast:none) {
        #adb_top  .ad__class-item {
            display: -ms-grid;
            -ms-grid-columns: 1.0fr;
            -ms-grid-rows: 1.7fr 0.3fr;
        }
    }

    #adb_top .adb-item-img {
        display: none;
    }

    #adb_top .adb-domain img {
        display: none;
    }

    #adb_top  .validclick-inline-ad--button {
        width: 90%;
        margin-bottom: 15px;
    }

    #adb_top .ad__class-item__title {
        line-height: 1.5;
        text-align: center;
    }

    #adb_top .ad__class-item__descr {
        line-height: 1.5;
        text-align: center;
    }

    #adb_top .adb-domain {
        line-height: 1.5;
        text-align: center;
    }

    #adb_top .ad__class-item__site-links {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "." ".";
        text-align: center;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    #adb_top .ad__class-item__site-links a{
        padding-top: 3px;
        padding-bottom: 3px;
    }

    @media all and (-ms-high-contrast:none) {
        #adb_top .ad__class-item__site-links {
            display: -ms-grid;
            -ms-grid-columns: 1fr;
            -ms-grid-rows: 1fr 1fr;
        }
    }

    #adb_top .ad-info {
        padding: 5px 15px;
    }
}