#smartbanner {
    position: absolute;
    left: 0;
    top: -82px;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
    height: 78px;
    font-family: 'Helvetica Neue', sans-serif;
    background: -webkit-linear-gradient(top, #f4f4f4 0%, #cdcdcd 100%);
    background-image: -ms-linear-gradient(top, #F4F4F4 0%, #CDCDCD 100%);
    background-image: -moz-linear-gradient(top, #F4F4F4 0%, #CDCDCD 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    -webkit-text-size-adjust: none;
}

#smartbanner, html.sb-animation {
    -webkit-transition: all .3s ease;
}

#smartbanner .sb-container {
    margin: 0 auto;
}

#smartbanner .sb-close {
    position: absolute;
    left: 5px;
    top: 5px;
    display: block;
    border: 2px solid #fff;
    width: 14px;
    height: 14px;
    font-family: 'ArialRoundedMTBold', Arial;
    font-size: 15px;
    line-height: 15px;
    text-align: center;
    color: #fff;
    background: #070707;
    text-decoration: none;
    text-shadow: none;
    border-radius: 14px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    -webkit-font-smoothing: subpixel-antialiased;
}

#smartbanner .sb-close:active {
    font-size: 13px;
    color: #aaa;
}

#smartbanner .sb-icon {
    position: absolute;
    left: 30px;
    top: 10px;
    display: block;
    width: 57px;
    height: 57px;
    background: rgba(0, 0, 0, 0.6);
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#smartbanner.no-icon .sb-icon {
    display: none;
}

#smartbanner .sb-info {
    position: absolute;
    left: 98px;
    top: 18px;
    width: 44%;
    font-size: 11px;
    line-height: 1.2em;
    font-weight: bold;
    color: #6a6a6a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

#smartbanner #smartbanner.no-icon .sb-info {
    left: 34px;
}

#smartbanner .sb-info strong {
    display: block;
    font-size: 13px;
    color: #4d4d4d;
    line-height: 18px;
}

#smartbanner .sb-info > span {
    display: block;
}

#smartbanner .sb-info em {
    font-style: normal;
    text-transform: uppercase;
}

#smartbanner .sb-button {
    position: absolute;
    right: 20px;
    top: 24px;
    border: 1px solid #bfbfbf;
    padding: 0 10px;
    min-width: 10%;
    height: 24px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    color: #6a6a6a;
    background: -webkit-linear-gradient(top, #efefef 0%, #dcdcdc 100%);
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

#smartbanner .sb-button:active, #smartbanner .sb-button:hover {
    background: -webkit-linear-gradient(top, #dcdcdc 0%, #efefef 100%);
}

#smartbanner .sb-icon.gloss:after {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 50%;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 10px 10px 12px 12px;
}

#smartbanner.android {
    border-color: #FFF;
    background: #FFF;
    border-top: 0px solid #88B131;
    box-shadow: none;
}

#smartbanner.android .sb-close {
    border: 0;
    width: 17px;
    height: 17px;
    line-height: 17px;
    color: #FFF !important;
    background: #1c1e21;
    text-shadow: 0;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) inset, 0 1px 1px rgba(255, 255, 255, 0.3);
}

#smartbanner.android .sb-close:active {
    color: #FFF !important;
}

#smartbanner.android .sb-info {
    color: #888;
    text-shadow: 0;
}

#smartbanner.android .sb-info strong {
    color: #000;
}

#smartbanner.android .sb-button {
    min-width: 12%;
    border: 1px solid #DDDCDC;
    padding: 1px;
    color: #d1d1d1;
    background: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 28px
}

#smartbanner.android .sb-button span {
    text-align: center;
    display: block;
    padding: 0 10px;
    background-color: #146799;
    height: 28px;
    line-height: 28px;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
}

#smartbanner.android .sb-button:active, #smartbanner.android .sb-button:hover {
    background: none;
}

#smartbanner.android .sb-button:active span, #smartbanner.android .sb-button:hover span {
    background: #135688;
}

#smartbanner.windows .sb-icon {
    border-radius: 0px;
}


.app-offer {
    font-size: 1.6em;
    position: relative;
    background: #FFF;
    height: 55px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.app-offer__text {
    display: inline-block;
    vertical-align: middle;
    text-align: right;
    margin-left: 1em;
}

.app-offer__name {
    color: #6dc331;
}

.app-offer__logo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1em;
    line-height: 1;
    height: 55px;
}

.app-offer__logo_google-play {
    width: 175px;
    background-image: url("../pics/google-play-badge_AR.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100% auto;
}

.app-offer__logo_app-store {
    width: 164px;
    background-image: url("../pics/app-store-badge_AR.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100% auto;
}

.app-offer__close_js {
    position: absolute;
    display: block;
    height: 21px;
    width: 21px;
     right: 20px;
    top: 50%;
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-top: -10px;
}

.app-offer__close_js::before, .app-offer__close_js::after {
    position: absolute;
    content: '';
    background: #333;
}

.app-offer__close_js:hover::before, .app-offer__close_js:hover::after {
    background: #000;
}

.app-offer__close_js::before {
    width: 1px;
    height: 100%;
    left: 10px;
    top: 0;
}

.app-offer__close_js::after {
    height: 1px;
    width: 100%;
    top: 10px;
    left: 0;
}

@media all and (max-width: 684px) {
    .unknown-device .app-offer {
        display: none;
    }

    .app-offer__name {
        display: block;
    }
}

@media all and (max-width: 500px) {
    .app-offer {
        text-align: left;
    }
}

@media all and (max-width: 480px) {
    .app-offer {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .app-offer__text {
        width: 45%;
        font-size: 0.9em;
    }

    .app-offer__logo {
        width: 35%;
        max-width: 120px;
    }

    .app-offer__logo_google-play {
        width: 120px;
    }

    .app-offer__logo_app-store {
        width: 110px;
    }
}

@media all and (max-width: 400px) {
    .app-offer__text {
        font-size: 0.8em;
        margin-left: 0.5em;
    }

    .app-offer__close_js {
        right: 10px;
    }

    .app-offer__logo {
        width: 30%;
        max-width: 100px;
    }

    .app-offer__logo_google-play {
        width: 100px;
    }

    .app-offer__logo_app-store {
        width: 90px;
    }
}

@media all and (max-width: 360px) {
    .app-offer {
        height: auto;
        padding: 10px 5px;
        text-align: center;
        white-space: normal;
    }

    .app-offer__text {
        width: 100%;
        margin-left: 0;
        margin-bottom: 8px;
        text-align: center;
    }

    .app-offer__logo {
        width: auto;
        margin-left: 5px;
        margin-right: 5px;
        display: inline-block;
    }

    .app-offer__logo_google-play {
        width: 140px;
    }

    .app-offer__logo_app-store {
        width: 130px;
    }

    .app-offer__close_js {
        right: 5px;
    }
}

@media all and (max-width: 320px) {
    .app-offer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        height: auto;
    }

    .app-offer__text {
        margin-bottom: 10px;
        font-size: 0.75em;
    }

    .app-offer__logo {
        margin: 0 3px 5px;
    }

    .app-offer__logo_google-play {
        width: 120px;
        height: 40px;
    }

    .app-offer__logo_app-store {
        width: 110px;
        height: 40px;
    }
}


/*new...... */




.app-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    padding: 20px;
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px auto;
    /*max-width: 800px;*/
}

.app-offer > div:nth-child(2) {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-offer > div:nth-child(2) a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-offer > div:nth-child(2) a:hover {
    transform: translateY(-3px);
}

.app-offer > div:nth-child(2) img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

/* استایل‌های موبایل */
@media (max-width: 768px) {
    .app-offer {
        flex-direction: row;
        padding: 15px;
        margin: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .app-offer > div:first-child {
        margin-bottom: 0;
        margin-left: 15px;
        font-size: 16px;
        text-align: right;
        flex-shrink: 0;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    .app-offer > div:first-child span {
        display: inline;
        margin-top: 0;
        margin-right: 5px;
    }

    .app-offer > div:nth-child(2) {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .app-offer > div:nth-child(2) img {
        height: 40px;
    }

    .app-offer__close_js {
        top: 5px;
        right: 5px;
        /*width: 25px;*/
        /*height: 25px;*/
        font-size: 16px;
    }
}

/* استایل‌های برای نمایش خیلی کوچک (موبایل‌های قدیمی) */
@media (max-width: 480px) {
    .app-offer > div:first-child {
        font-size: 14px;
    }

    .app-offer > div:nth-child(2) img {
        height: 35px;
    }
}
