/* =====================================================================
   ZHOOMA — "Appeler pour commander" modal (#fast-order)
   Markup: core/templates/core/includes/fast_order_modal.html
   Desktop: centered card · Mobile (< 576px): bottom sheet
   ===================================================================== */

.zc-modal {
    --zc-orange: #ff5722;
    --zc-orange-soft: #fff1eb;
    --zc-ink: #1f2430;
    --zc-muted: #6b7280;
    --zc-line: #eceef2;
    --zc-wa: #25d366;
    --zc-wa-dark: #17b955;
}

.zc-modal .modal-dialog {
    max-width: 420px;
}

.zc-modal .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    font-family: "Lato", sans-serif;
    color: var(--zc-ink);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

/* ---------- hero ---------- */

.zc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 196px;
    padding: 1.6rem 1.5rem 1.4rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22) 0, transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.12) 0, transparent 45%),
        linear-gradient(135deg, #ff5722 0%, #ff7043 55%, #ff9157 100%);
}

.zc-hero-text {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.zc-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.zc-dot {
    position: relative;
    width: 8px;
    height: 8px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #3cff8f;
    box-shadow: 0 0 0 0 rgba(60, 255, 143, 0.7);
    animation: zc-pulse 1.8s ease-out infinite;
}

.zc-title {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
}

.zc-sub {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    opacity: 0.93;
}

.zc-illus {
    position: absolute;
    right: -10px;
    bottom: -2px;
    width: 48%;
    max-width: 200px;
    height: auto;
}

.zc-ring {
    transform-origin: 58px 150px;
    animation: zc-ring 2s ease-out infinite;
}

.zc-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.2s ease;
}

.zc-close:hover,
.zc-close:focus {
    outline: 0;
    background: rgba(255, 255, 255, 0.38);
}

.zc-handle {
    display: none;
}

/* ---------- body ---------- */

.zc-body {
    padding: 1.3rem 1.25rem 1.1rem;
}

.zc-wa {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--zc-wa) 0%, var(--zc-wa-dark) 100%);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zc-wa:hover,
.zc-wa:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.4);
}

.zc-wa-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 0.85rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.zc-wa-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.zc-wa-text small {
    display: block;
    font-size: 0.78rem;
    opacity: 0.92;
}

.zc-arrow {
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.85;
}

.zc-divider {
    display: flex;
    align-items: center;
    margin: 1.15rem 0 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zc-muted);
}

.zc-divider::before,
.zc-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--zc-line);
}

.zc-divider span {
    padding: 0 0.75rem;
}

.zc-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zc-lines li + li {
    margin-top: 0.55rem;
}

.zc-line {
    display: flex;
    align-items: center;
    padding: 0.62rem 0.75rem;
    color: var(--zc-ink);
    text-decoration: none;
    border: 1px solid var(--zc-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.zc-line:hover,
.zc-line:focus {
    color: var(--zc-ink);
    text-decoration: none;
    border-color: rgba(255, 87, 34, 0.4);
    background: #fffaf7;
    transform: translateY(-1px);
}

.zc-line-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 0.8rem;
    border-radius: 50%;
    color: var(--zc-orange);
    background: var(--zc-orange-soft);
}

.zc-line-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zc-line-num {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.zc-line-label {
    font-size: 0.73rem;
    color: var(--zc-muted);
}

.zc-line-cta {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 999px;
    color: var(--zc-orange);
    background: var(--zc-orange-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.zc-line:hover .zc-line-cta {
    color: #fff;
    background: var(--zc-orange);
}

.zc-foot {
    padding: 0.8rem 1rem 1rem;
    font-size: 0.74rem;
    text-align: center;
    color: var(--zc-muted);
    border-top: 1px solid var(--zc-line);
    background: #fafbfc;
}

.zc-foot a {
    color: inherit;
    font-weight: 700;
}

/* ---------- animations ---------- */

@keyframes zc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(60, 255, 143, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(60, 255, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(60, 255, 143, 0); }
}

@keyframes zc-ring {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .zc-dot,
    .zc-ring {
        animation: none;
    }
}

/* ---------- mobile: bottom sheet ---------- */

@media (max-width: 575.98px) {
    .zc-modal .modal-dialog,
    .zc-modal .modal-dialog-centered {
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .zc-modal .modal-dialog-centered::before {
        display: none;
    }

    .zc-modal .modal-content {
        border-radius: 24px 24px 0 0;
    }

    .zc-modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .zc-modal.show .modal-dialog {
        transform: none;
    }

    .zc-handle {
        display: block;
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.55);
    }

    .zc-hero {
        min-height: 182px;
        padding-top: 1.8rem;
    }

    .zc-title {
        font-size: 1.35rem;
    }

    .zc-foot {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}
