/* أنماط زر تتبّع الطلب.
   كانت مضمّنة داخل ‎Views/OrderTrackingButton.cshtml‎ في وسم ‎<style>‎، والمكوّن يُستدعى في
   ستّ مناطق ودجات فتُطبع الكتلة كاملة في كل استدعاء: قِيست **18 نسخة** في الصفحة الرئيسية
   الواحدة، أي نحو 70 كيلوبايت مكرّرة بلا أي فائدة. نُقلت إلى ملف مستقلّ يُسجَّل عبر
   ‎AppendCssFileParts‎، وهو يُزيل التكرار تلقائياً (‎Distinct()‎ داخل ‎PageHeadBuilder‎).
   ‎@@keyframes‎ عادت إلى ‎@keyframes‎ لأن مضاعفة ‎@@‎ كانت لهروب رازور فقط. */

/* ============================================
       FLOATING BUTTON STYLES (Mobile & Desktop)
       ============================================ */
    .order-tracking-widget-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        animation: slideInUp 0.5s ease-out;
    }

    .order-tracking-floating-button {
        display: flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, var(--accent-color, #ffa6a8) 0%, var(--accent-color-hover, #e88a8d) 100%);
        color: #fff;
        padding: 15px 25px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 8px 25px rgba(255, 166, 168, 0.4);
        transition: all 0.3s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .order-tracking-floating-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(255, 166, 168, 0.5);
        background: linear-gradient(135deg, var(--accent-color-hover, #e88a8d) 0%, var(--accent-color, #ffa6a8) 100%);
        color: #fff;
        text-decoration: none;
    }

    .order-tracking-floating-button:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 166, 168, 0.4);
    }

    .tracking-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

    .tracking-icon svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
    }

    .tracking-text {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    /* Pulse animation for attention */
    .order-tracking-floating-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50px;
        background: inherit;
        animation: pulse 2s infinite;
        z-index: -1;
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.05);
            opacity: 0.8;
        }
    }

    @keyframes slideInUp {
        from {
            transform: translateY(100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* ============================================
       HEADER/FOOTER LINK STYLES
       ============================================ */
    .order-tracking-header-link {
        display: inline-block;
        margin: 0 10px;
    }

    .order-tracking-footer-link {
        display: inline-block;
        margin: 15px 0;
    }

    .track-order-link-footer {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: linear-gradient(135deg, var(--accent-color, #ffa6a8) 0%, var(--accent-color-hover, #e88a8d) 100%);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 166, 168, 0.3);
    }

    /* رابط الهيدر — الشريط العلوي الرفيع.

       كان يشترك مع رابط الفوتر في نفس التنسيق: حشوة 10×20، خطّ 15px، تدرّج لوني وظلّ
       ممتدّ 15px. النتيجة أنه صار أبرز عنصر في الصفحة، أعلى من شعار المتجر نفسه، وهو
       طافٍ خارج أي صف. الحجم هنا مضبوط على ارتفاع الشريط: كبسولة مدمجة تبقى العنصر
       الملوّن الوحيد في شريط داكن — فتُرى فوراً دون أن تنافس العلامة أو صندوق البحث. */
    .track-order-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        background: var(--accent-color, #ffa6a8);
        color: #101010;
        text-decoration: none;
        border-radius: 999px;
        font-weight: 700;
        font-size: 12.5px;
        line-height: 1.6;
        white-space: nowrap;
        transition: background-color .15s ease, transform .15s ease;
    }

    .track-order-link:hover,
    .track-order-link:focus {
        background: #fff;
        color: #101010;
        text-decoration: none;
        transform: none;
    }

    .track-order-link .track-icon {
        width: 15px;
        height: 15px;
    }

    .track-order-link-footer:hover {
        background: linear-gradient(135deg, var(--accent-color-hover, #e88a8d) 0%, var(--accent-color, #ffa6a8) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 166, 168, 0.5);
        color: #fff;
        text-decoration: none;
    }

    .track-icon {
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }

    /* ============================================
       MOBILE RESPONSIVE STYLES
       ============================================ */
    @media (max-width: 768px) {
        .order-tracking-widget-container {
            bottom: 15px;
            right: 15px;
        }

        .order-tracking-floating-button {
            padding: 12px 20px;
            font-size: 14px;
        }

        .tracking-text {
            font-size: 14px;
        }

        .tracking-icon {
            width: 20px;
            height: 20px;
        }
    }

    /* Extra small mobile devices */
    @media (max-width: 480px) {
        .order-tracking-widget-container {
            bottom: 10px;
            right: 10px;
            left: 10px;
        }

        .order-tracking-floating-button {
            width: 100%;
            justify-content: center;
            padding: 14px 20px;
            font-size: 15px;
            border-radius: 12px;
        }

        .tracking-text {
            font-size: 15px;
        }
    }

    /* Tablet landscape */
    @media (min-width: 769px) and (max-width: 1024px) {
        .order-tracking-floating-button {
            padding: 14px 22px;
            font-size: 15px;
        }
    }

    /* Large desktop - make it even more prominent */
    @media (min-width: 1440px) {
        .order-tracking-floating-button {
            padding: 18px 30px;
            font-size: 17px;
        }

        .tracking-icon {
            width: 26px;
            height: 26px;
        }
    }

    /* ============================================
       ACCESSIBILITY & PRINT STYLES
       ============================================ */
    @media (prefers-reduced-motion: reduce) {
        .order-tracking-floating-button::before {
            animation: none;
        }
        
        .order-tracking-widget-container {
            animation: none;
        }
    }

    @media print {
        .order-tracking-widget-container,
        .order-tracking-header-link {
            display: none !important;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .order-tracking-floating-button,
        .track-order-link {
            border: 2px solid currentColor;
        }
    }

    /* Dark mode support - pink accent */
    @media (prefers-color-scheme: dark) {
        .order-tracking-floating-button {
            background: linear-gradient(135deg, var(--accent-color, #ffa6a8) 0%, var(--accent-color-hover, #e88a8d) 100%);
            box-shadow: 0 8px 25px rgba(255, 166, 168, 0.5);
        }

        .order-tracking-floating-button:hover {
            background: linear-gradient(135deg, var(--accent-color-hover, #e88a8d) 0%, var(--accent-color, #ffa6a8) 100%);
            box-shadow: 0 12px 35px rgba(255, 166, 168, 0.6);
        }
    }


/* الشريط العلوي: يوزّع نص الترحيب والزر على الطرفين بدل تكديسهما */
.header-upper .header-selectors-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-tracking-header-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

@media (max-width: 768px) {
    .track-order-link {
        padding: 4px 11px;
        font-size: 11.5px;
    }

    .track-order-link .track-icon {
        width: 13px;
        height: 13px;
    }
}
