/* ============================================================
   xco-app-download-promo.css
   پاپ‌آپ + لینک سایدبار «دانلود اپلیکیشن اندروید اکسکو».
   فقط توسط xco-app-download-promo.js نمایان می‌شود (مرورگر اندروید،
   خارج از خودِ اپ، و طبق navigator.getInstalledRelatedApps() نصب‌نشده).
   ============================================================ */

/* ---------- پس‌زمینه‌ی تیره‌ی پشت پاپ‌آپ ---------- */
.xco-app-promo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    transition: opacity .22s ease;
}

.xco-app-promo-backdrop.is-visible {
    opacity: 1;
}

/* ---------- کارت پاپ‌آپ (از پایین صفحه، شبیه Bottom Sheet) ---------- */
.xco-app-promo-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1091;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: var(--xco-shadow-lg);
    padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform .28s ease;
    text-align: center;
}

.xco-app-promo-sheet.is-visible {
    transform: translateY(0);
}

.xco-app-promo-close {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--xco-body-bg);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.xco-app-promo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto .9rem;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--xco-shadow-sm);
}

.xco-app-promo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xco-app-promo-sheet h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--xco-ink);
    margin-bottom: .35rem;
}

.xco-app-promo-sheet p {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 1.2rem;
}

.xco-app-promo-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.xco-app-promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--xco-radius-sm);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--xco-card-border);
}

.xco-app-promo-btn i {
    font-size: 1.1rem;
}

.xco-app-promo-btn-primary {
    background: var(--xco-primary);
    border-color: var(--xco-primary);
    color: #fff;
}

.xco-app-promo-btn-primary:hover {
    background: var(--xco-primary-dark);
    color: #fff;
}

.xco-app-promo-btn-outline {
    background: #fff;
    color: var(--xco-ink);
}

.xco-app-promo-btn-outline:hover {
    background: var(--xco-body-bg);
    color: var(--xco-ink);
}

.xco-app-promo-later {
    display: inline-block;
    margin-top: 1rem;
    font-size: .8rem;
    color: #94a3b8;
    background: none;
    border: none;
}

/* ---------- لینک سایدبار «دانلود اپلیکیشن اندروید» ----------
   به‌صورت پیش‌فرض مخفی (فقط با کلاس is-visible که JS اضافه می‌کند
   نمایان می‌شود)؛ رنگ متفاوت تا از بقیه‌ی آیتم‌های منو متمایز باشد. */
.xco-android-download-link {
    display: none;
}

.xco-android-download-link.is-visible {
    display: flex;
}

.xco-android-download-link i {
    color: #3ddc84; /* سبز رسمی اندروید، فقط برای همین آیکن */
}

@media (min-width: 992px) {
    .xco-app-promo-sheet {
        inset-inline: auto;
        inset-inline-end: 1.5rem;
        bottom: 1.5rem;
        max-width: 340px;
        border-radius: 1.25rem;
    }
}
