/* ==========================================================================
   فوتر المتجر وشريط التنقل السفلي (Front Footer) — ستايل مستقل وخفيف
   ========================================================================== */

.store-footer [x-cloak],
.store-mobile-footer [x-cloak] {
    display: none !important;
}

/* ==========================================================================
   1. السطر السفلي للفوتر وضبط دقة ووضوح صورة وسائل الدفع (payment.png)
   ========================================================================== */
.store-footer .store-footer-bottom {
    border-top: 1px solid #f3f4f6;
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.store-footer .footer-payment-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    max-width: 100%;
}

.store-footer .footer-payment-label {
    white-space: nowrap;
    flex-shrink: 0;
}

/* تنعيم احترافي للصورة ومنع التكسّر أو التمطيط على الشاشات المتوسطة والكبيرة */
.store-footer .footer-payment-img {
    display: block;
    height: 26px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    user-select: none;
}

@media (min-width: 1024px) {
    .store-footer .footer-payment-img {
        height: 28px;
    }
}

/* ضبط الشاشات المتوسطة (768px - 1023px) لمنع تزاحم الحقوق مع صورة الدفع */
@media (min-width: 768px) and (max-width: 1023px) {
    .store-footer .store-footer-bottom {
        gap: 0.75rem;
    }

    .store-footer .footer-payment-img {
        height: 24px;
    }
}

/* ==========================================================================
   2. روابط السياسات والتواصل (انتقالات خفيفة بدون Repaint زائد)
   ========================================================================== */
.store-footer .footer-policy-link,
.store-footer .footer-social-link {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   3. شريط التنقل السفلي وقائمة الإعدادات (الشاشات الصغيرة)
   ========================================================================== */
.store-mobile-footer .bottom-nav-shadow {
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}

.store-mobile-footer .footer-nav-btn {
    min-width: 0;
    min-height: 0;
}

.store-mobile-footer .footer-policy-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2px;
}

.store-mobile-footer .footer-social-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2px;
}

.store-mobile-footer .footer-policy-content p {
    margin-bottom: 0.75rem;
}

.store-mobile-footer .footer-policy-content p:last-child {
    margin-bottom: 0;
}

.store-mobile-footer .footer-policy-content ul {
    list-style-type: disc;
    margin-right: 1.25rem;
    margin-bottom: 0.75rem;
}

.store-mobile-footer .footer-policy-content ol {
    list-style-type: decimal;
    margin-right: 1.25rem;
    margin-bottom: 0.75rem;
}

.store-mobile-footer .footer-policy-content h1 {
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.store-mobile-footer .footer-policy-content h2 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.store-mobile-footer .footer-policy-content h3 {
    font-size: 0.875rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   4. بانر تثبيت التطبيق (PWA) — تحييد تضخم زر الإغلاق الصغير
   ========================================================================== */
#pwa-install-banner #pwa-close-btn {
    min-width: 28px;
    min-height: 28px;
}

#pwa-install-banner #pwa-close-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}