#sanatgard-install-box {
    position: fixed !important;
    right: 15px !important;
    left: 15px !important;
    bottom: 15px !important;

    z-index: 999999 !important;

    display: none;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.06);

    direction: rtl;

    font-family: inherit;

    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


/* وقتی بنر نمایش داده می‌شود */

#sanatgard-install-box.sanatgard-install-visible {
    opacity: 1;
    transform: translateY(0);
}


/* محتوای سمت راست */

.sanatgard-install-content {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}


/* آیکن */

.sanatgard-install-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.sanatgard-install-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* متن */

.sanatgard-install-text {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.sanatgard-install-text strong {
    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;

    color: #222;
}

.sanatgard-install-text span {
    font-size: 11px;

    line-height: 1.6;

    color: #777;
}


/* دکمه نصب */

#sanatgard-install-button {
    flex-shrink: 0;

    border: 0;
    border-radius: 11px;

    padding: 10px 16px;

    background: #FFBE00;
    color: #111111;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;
    white-space: nowrap;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

#sanatgard-install-button:hover {
    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(255, 190, 0, 0.35);
}

#sanatgard-install-button:active {
    transform: scale(0.96);
}


/* دکمه بستن */

#sanatgard-install-close {
    position: absolute;

    top: -8px;
    left: -7px;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #777;

    font-family: Arial, sans-serif;

    font-size: 18px;

    line-height: 22px;

    text-align: center;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);

    z-index: 2;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

#sanatgard-install-close:hover {
    transform: scale(1.08);
}


/* دسکتاپ */

@media (min-width: 768px) {

    #sanatgard-install-box {
        right: 25px !important;
        left: auto !important;
        bottom: 25px !important;

        width: 370px;
    }

}


/* موبایل خیلی کوچک */

@media (max-width: 380px) {

    #sanatgard-install-box {
        gap: 8px;

        padding: 10px 11px;
    }

    .sanatgard-install-icon {
        width: 40px;
        height: 40px;

        border-radius: 10px;
    }

    .sanatgard-install-text strong {
        font-size: 13px;
    }

    .sanatgard-install-text span {
        font-size: 10px;
    }

    #sanatgard-install-button {
        padding: 9px 12px;

        font-size: 12px;
    }

}

/* =========================
   iOS Install Banner
   ========================= */

#sanatgard-ios-install-box {
    position: fixed !important;

    right: 15px !important;
    left: 15px !important;
    bottom: 15px !important;

    z-index: 999999 !important;

    display: none;

    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.06);

    direction: rtl;

    font-family: inherit;

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


#sanatgard-ios-install-box.sanatgard-ios-install-visible {
    opacity: 1;
    transform: translateY(0);
}


.sanatgard-ios-install-content {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}


.sanatgard-ios-install-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.10);
}


.sanatgard-ios-install-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.sanatgard-ios-install-text {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.sanatgard-ios-install-text strong {
    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

    color: #222;
}


.sanatgard-ios-install-text span {
    font-size: 11px;

    line-height: 1.7;

    color: #777;
}


.sanatgard-ios-install-text b {
    color: #222;

    font-weight: 700;
}


#sanatgard-ios-install-close {
    position: absolute;

    top: -8px;
    left: -7px;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #777;

    font-family: Arial, sans-serif;

    font-size: 18px;

    line-height: 22px;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15);

    z-index: 2;
}


@media (min-width: 768px) {

    #sanatgard-ios-install-box {
        right: 25px !important;
        left: auto !important;
        bottom: 25px !important;

        width: 370px;
    }

}


@media (max-width: 380px) {

    #sanatgard-ios-install-box {
        gap: 8px;

        padding: 10px 11px;
    }


    .sanatgard-ios-install-icon {
        width: 40px;
        height: 40px;

        border-radius: 10px;
    }


    .sanatgard-ios-install-text strong {
        font-size: 13px;
    }


    .sanatgard-ios-install-text span {
        font-size: 10px;
    }

}

/* =========================================
   Push Notification Banner
   ========================================= */

#pwa-notification-box {

    position: fixed;

    top: 0;
    left: 50%;

    width: min(
        calc(100% - 24px),
        520px
    );

    transform:
        translate(-50%, -120%);

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px 16px;

    background: #ffffff;

    border-radius: 0 0 16px 16px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.14);

    z-index: 999999;

    direction: rtl;

    transition:
        transform 0.4s ease;

    box-sizing: border-box;

}


#pwa-notification-box.pwa-notification-visible {

    transform:
        translate(-50%, 0);

}


.pwa-notification-content {

    display: flex;

    align-items: center;

    gap: 12px;

    flex: 1;

    min-width: 0;

}


.pwa-notification-icon {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 12px;

    overflow: hidden;

}


.pwa-notification-icon img {

    width: 100%;
    height: 100%;

    display: block;

}


.pwa-notification-text {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;

}


.pwa-notification-text strong {

    font-size: 14px;

    line-height: 1.5;

    color: #222222;

}


.pwa-notification-text span {

    font-size: 12px;

    line-height: 1.6;

    color: #777777;

}


#pwa-notification-button {

    flex: 0 0 auto;

    border: 0;

    outline: none;

    cursor: pointer;

    background: #FFBE00;

    color: #222222;

    font-size: 13px;

    font-weight: 700;

    padding: 10px 15px;

    border-radius: 10px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    white-space: nowrap;

}


#pwa-notification-button:hover {

    opacity: 0.88;

    transform: translateY(-1px);

}


#pwa-notification-button:disabled {

    cursor: default;

    opacity: 0.7;

}


#pwa-notification-close {

    position: absolute;

    top: 7px;
    left: 8px;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #777777;

    font-size: 22px;

    line-height: 24px;

    cursor: pointer;

    z-index: 2;

}


/* موبایل */

@media (max-width: 600px) {

    #pwa-notification-box {

        width: calc(100% - 16px);

        padding: 13px 12px;

        gap: 10px;

        border-radius: 0 0 14px 14px;

    }


    .pwa-notification-icon {

        width: 44px;
        height: 44px;

        flex-basis: 44px;

    }


    .pwa-notification-text strong {

        font-size: 13px;

    }


    .pwa-notification-text span {

        font-size: 11px;

    }


    #pwa-notification-button {

        font-size: 12px;

        padding: 9px 11px;

    }

}