.custom-ad {
    width: max-content;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    position: relative;
}

.custom-ad.google-style.mobile,
body[data-elementor-device-mode="mobile"] .custom-ad.google-style
{
    min-width: 300px;
    min-height: 50px;
    max-width: 320px;
    max-height: 250px;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-ad.google-style.desktop,
body[data-elementor-device-mode="desktop"] .custom-ad.google-style
{
    max-width: 728px;
    max-height: 90px;
    box-sizing: border-box;
    overflow: hidden;
}

.custom-ad img.custom_ad_img {
    max-width: 100%;
    max-height: 100%;
}


body[data-elementor-device-mode="mobile"] .custom-ad.google-style .custom_ad_img.desktop {
    display: none;
}

body[data-elementor-device-mode="desktop"] .custom-ad.google-style .custom_ad_img.mobile {
    display: none;
}

.custom-ad-google-style-helpers {
    position: absolute;
    top: 1px;
    right: 1px;
}
.custom-ad-google-style-helpers .il-icon,
.custom-ad-google-style-helpers .close-icon
{
    width: 15px;
    height: 15px;
    background-color: #ffffff;
    display: inline-block;
    margin-left: 2px;
}

.custom-ad-google-style-helpers .il-icon:hover,
.custom-ad-google-style-helpers .close-icon:hover
{
    background-color: #58585a;
}
.custom-ad-google-style-helpers .il-icon svg,
.custom-ad-google-style-helpers .close-icon svg {
    fill: #00aecd;
    color: #00aecd;
    vertical-align: top;
}
.custom-ad-google-style-helpers .close-icon svg {
    stroke: #00aecd;
}

.custom-ad-google-style-helpers .il-icon:hover svg,
.custom-ad-google-style-helpers .close-icon:hover svg {
    fill: #ffffff;
    color: #ffffff;
}
.custom-ad-google-style-helpers .close-icon:hover svg {
    stroke: #ffffff;
}


.custom-ad.google-style.ad-text {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e5e5;
    padding: 0px 7px;
    padding-bottom: 3px;
    left: 0;
    right: 0;
    margin: auto;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    direction: rtl;
    text-align: right;
    min-width: 320px;
    min-height: 60px;
}

.custom-ad.google-style.ad-text .headline {
    margin: 0;
}

.custom-ad.google-style.ad-text .headline a {
    font-weight: normal;
    color: #1a0dab;
    font-size: 16px;
}

.custom-ad.google-style.ad-text div.urlline {
    margin-top: -4px;
    margin-bottom: 0px;
}
.custom-ad.google-style.ad-text div.urlline span.displayurl {
    color: #006621;
    font-size: 14px;
    margin-left: 2px;
}
.custom-ad.google-style.ad-text div.urlline span.adtag {
    background-color: #fff;
    border-radius: 3px;
    color: #006621;
    display: inline-block;
    font-size: 11px;
    border: 1px solid #006621;
    padding: 1px 3px 0 2px;
    line-height: 11px;
    vertical-align: baseline;
}
.custom-ad.google-style.ad-text .ad-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.42857143;
}


@media all and (min-width: 768px){
    .custom-ad.google-style.ad-text .headline a{
        font-size: 18px;
    }
}

