/* =========================================================
   FOS7TY — COOKIE CONSENT BAR (1.7.0)
   ---------------------------------------------------------
   شريط سفلي ثابت (مش مودال، مش sticky):
   - عرض كامل، ارتفاع صغير، خلفية ساند مسطّحة + خط علوي 1px.
   - مفيش تدرّجات ولا ظل ملوّن.
   - منطقي بالكامل (inset-block-end / padding-inline) — نفس الشكل في RTL وLTR.

   الملف بيتحمّل على كل صفحات الموقع (الشريط مش خاص بصفحات فسحتي)، فالتوكنز
   مكتوبة هنا بقيم fallback بدل الاعتماد على `frontend.css`.
   ========================================================= */

:root {
    --f7-consent-bg: #FAF7F1;
    --f7-consent-line: #E6DCCB;
    --f7-consent-ink: #1C1A17;
    --f7-consent-ink-60: #5A554C;
    --f7-consent-nile: #0F4C5C;
    --f7-consent-nile-dark: #0B3A46;
    --f7-consent-white: #FFFFFF;
    --f7-consent-focus: 2px solid #0F4C5C;
}

.fos7ty-consent {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 9998;

    background: var(--f7-consent-bg);
    color: var(--f7-consent-ink);
    border-block-start: 1px solid var(--f7-consent-line);

    font-size: 13px;
    line-height: 1.6;
    font-family: inherit;
}

.fos7ty-consent[hidden] {
    display: none !important;
}

.fos7ty-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;

    max-width: 1200px;
    margin-inline: auto;
    padding-block: 12px;
    padding-inline: 16px;
}

.fos7ty-consent-text {
    margin: 0;
    flex: 1 1 260px;
    min-width: 0;
    color: var(--f7-consent-ink-60);
}

.fos7ty-consent-link {
    color: var(--f7-consent-nile);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-inline-start: 6px;
    white-space: nowrap;
}

.fos7ty-consent-link:hover,
.fos7ty-consent-link:focus {
    color: var(--f7-consent-nile-dark);
}

.fos7ty-consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.fos7ty-consent-accept {
    min-height: 40px;
    padding-block: 8px;
    padding-inline: 20px;

    background: var(--f7-consent-nile);
    color: var(--f7-consent-white);
    border: 1px solid var(--f7-consent-nile);
    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.fos7ty-consent-accept:hover {
    background: var(--f7-consent-nile-dark);
    border-color: var(--f7-consent-nile-dark);
}

.fos7ty-consent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    inline-size: 40px;
    block-size: 40px;
    padding: 0;

    background: transparent;
    color: var(--f7-consent-ink-60);
    border: 1px solid var(--f7-consent-line);
    border-radius: 8px;

    cursor: pointer;
}

.fos7ty-consent-close:hover {
    color: var(--f7-consent-ink);
    border-color: var(--f7-consent-ink-60);
}

.fos7ty-consent-close svg {
    display: block;
    inline-size: 16px;
    block-size: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.fos7ty-consent-accept:focus-visible,
.fos7ty-consent-close:focus-visible,
.fos7ty-consent-link:focus-visible {
    outline: var(--f7-consent-focus);
    outline-offset: 2px;
}

/* مايغطّيش زر واتساب العائم (ولا زرار الحجز) — الزر بيطلع فوق الشريط. */
html.f7-consent-open body .fos7ty-wa-float {
    inset-block-end: 96px;
}

@media (max-width: 640px) {
    .fos7ty-consent-inner {
        padding-block: 10px;
        gap: 10px;
    }

    .fos7ty-consent-actions {
        width: 100%;
        justify-content: space-between;
    }

    .fos7ty-consent-accept {
        flex: 1 1 auto;
    }

    html.f7-consent-open body .fos7ty-wa-float {
        inset-block-end: 148px;
    }
}

@media print {
    .fos7ty-consent {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fos7ty-consent * {
        transition: none !important;
        animation: none !important;
    }
}
