/* Makkah: customer card, account page, tables, no-WhatsApp state */

/* ---- hide WhatsApp links while no number is configured ---- */
.mk-no-wa a[href="https://wa.me/"],
.mk-no-wa a[href^="https://wa.me/?"],
.mk-no-wa .araa-store__wa-float { display: none !important; }
.mk-no-wa li:has(> a[href="https://wa.me/"]) { display: none; }

/* ---- customer card (CR80 ratio 85.6 x 54) ---- */
.mk-ccard {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 8.56cm;
    height: 5.4cm;
    padding: 9px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mk-pd) 0%, var(--mk-p) 55%, var(--mk-pl) 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-family: "Cairo", "Almarai", sans-serif;
}
.mk-ccard::after { content: ""; position: absolute; inset-inline-start: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.mk-ccard__brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.mk-ccard__brand img { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 2px 4px; }
.mk-ccard__body { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; min-height: 0; position: relative; z-index: 1; }
.mk-ccard__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-ccard__shop { font-size: 15px; font-weight: 800; line-height: 1.2; }
.mk-ccard__row { font-size: 10.5px; display: flex; gap: 5px; align-items: center; opacity: .95; }
.mk-ccard__row .ti { font-size: 12px; }
.mk-ccard__code { margin-top: 3px; align-self: flex-start; background: var(--mk-accent); color: #3a2f00; font-weight: 800; font-size: 13px; padding: 1px 9px; border-radius: 6px; letter-spacing: .5px; direction: ltr; }
.mk-ccard__qr { flex: none; width: 2.3cm; height: 2.3cm; padding: 4px; background: #fff; border-radius: 8px; }
.mk-ccard__qr > div, .mk-ccard__qr svg { width: 100%; height: 100%; display: block; }

/* ---- account / customer page ---- */
.mk-account { max-width: 980px; }
.mk-account__top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 8px; }
.mk-account__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; flex: 1; min-width: 260px; }
.mk-stat { background: #fff; border: 1px solid var(--mk-border); border-radius: 14px; padding: 14px 16px; }
.mk-stat span { display: block; font-size: 13px; color: #5b6b68; }
.mk-stat strong { display: block; font-size: 26px; color: var(--mk-p); margin-top: 4px; }
.mk-stat small { font-size: 14px; font-weight: 600; }
.mk-h2 { font-size: 20px; margin: 28px 0 10px; }
.mk-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--mk-border); border-radius: 12px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mk-table th { background: var(--mk-tint); color: var(--mk-p); text-align: start; padding: 10px 12px; white-space: nowrap; }
.mk-table td { padding: 10px 12px; border-top: 1px solid #eef3f2; }
.mk-due { color: #b3392f; font-weight: 700; }
.mk-note { background: #fff8e1; border: 1px solid #f2dc9b; color: #5c4a00; padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.mk-note--ok { background: #e9f7ef; border-color: #bfe3cd; color: #1b6b3a; }
.mk-note a { color: var(--mk-p); font-weight: 700; }

/* ---- cart: order destinations ---- */
.mk-cart__dest { display: grid; gap: 8px; }
.mk-cart__login { background: #fff8e1; border: 1px solid #f2dc9b; color: #5c4a00; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: center; }
.mk-cart__login a { color: var(--mk-p); font-weight: 700; }
.mk-cart__done { background: #e9f7ef; border: 1px solid #bfe3cd; color: #1b6b3a; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.mk-cart__who { font-size: 13px; color: #5b6b68; margin: 0; }

/* ---- customer details list on the QR page ---- */
.mk-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0; }
.mk-details > div { background: #fff; border: 1px solid var(--mk-border); border-radius: 12px; padding: 12px 14px; }
.mk-details dt { font-size: 13px; color: #5b6b68; margin: 0 0 3px; }
.mk-details dd { margin: 0; font-weight: 700; font-size: 16px; }
.mk-details__link { display: inline-block; margin-inline-start: 10px; font-size: 13px; font-weight: 700; color: var(--mk-p); text-decoration: none; border: 1px solid var(--mk-border); border-radius: 999px; padding: 2px 10px; }
.mk-details__link:hover { background: var(--mk-p); color: #fff; }

/* ---- tiers, redeem, unit ---- */
.mk-ccard--silver { background: linear-gradient(135deg, #4a5560 0%, #7b8793 55%, #a3adb7 100%); }
.mk-ccard--gold { background: linear-gradient(135deg, #7a5a00 0%, #b8860b 55%, #e0b43c 100%); }
.mk-ccard__tier { margin-inline-start: auto; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .22); padding: 1px 8px; border-radius: 999px; }
.mk-redeem { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fffbea; border: 1px solid #f2dc9b; border-radius: 12px; padding: 12px 16px; margin: 18px 0 0; }
.mk-redeem span { color: #5b6b68; font-size: 14px; }
.mk-redeem button[disabled] { opacity: .45; cursor: not-allowed; }
.mk-unit { margin-inline-start: 4px; font-size: 12px; color: #5b6b68; }
.mk-stat small.mk-next, .mk-stat > small { display: block; font-size: 12px; font-weight: 500; color: #5b6b68; margin-top: 2px; }

/* ---- pickup / delivery time picker in the cart ---- */
.mk-cart__when { padding: 10px 18px 0; display: grid; gap: 8px; }
.mk-cart__when b { font-size: 14px; }
.mk-seg { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.mk-seg label { display: flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; }
.mk-when__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.mk-when__row select { padding: 8px; border: 1px solid var(--mk-border); border-radius: 10px; font: inherit; background: #fff; }
.mk-cart__when small { color: #5b6b68; font-size: 12.5px; }

/* ---- order cards (customer account) ---- */
.mk-order { background: #fff; border: 1px solid var(--mk-border); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.mk-order__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mk-order__total { margin-inline-start: auto; color: var(--mk-p); }
.mk-order__when { color: #5b6b68; font-size: 13.5px; }
.mk-badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef2f5; color: #334155; }
.mk-badge--new { background: #fff3cd; color: #6b5200; } .mk-badge--confirmed { background: #e0f2fe; color: #0b4a75; }
.mk-badge--preparing { background: #ede9fe; color: #4c1d95; } .mk-badge--ready { background: #d1fae5; color: #065f46; }
.mk-badge--out_for_delivery { background: #dbeafe; color: #1e40af; } .mk-badge--delivered { background: #dcfce7; color: #166534; } .mk-badge--cancelled { background: #fee2e2; color: #991b1b; }
.mk-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0 4px; font-size: 12.5px; }
.mk-steps li { flex: 1; text-align: center; padding: 6px 4px; border-radius: 8px; background: #f1f4f3; color: #7a8a87; position: relative; }
.mk-steps li.is-done { background: #d1fae5; color: #065f46; }
.mk-steps li.is-current { background: var(--mk-p); color: #fff; font-weight: 700; }
.mk-order__items { margin-top: 8px; font-size: 14px; } .mk-order__items ul { margin: 6px 0 0; padding-inline-start: 18px; }
.mk-order__items li.is-na { color: #991b1b; } .mk-order__items li em { font-style: normal; font-weight: 700; margin-inline-start: 6px; }
.mk-order__rate { margin: 8px 0 0; color: #92400e; font-weight: 700; }
.mk-rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; flex-direction: row-reverse; justify-content: flex-end; }
.mk-rate input[type=radio] { display: none; }
.mk-rate label { font-size: 24px; color: #cbd5d1; cursor: pointer; margin: 0; }
.mk-rate input:checked ~ label, .mk-rate label:hover, .mk-rate label:hover ~ label { color: #f59e0b; }
.mk-rate span, .mk-rate input[type=text], .mk-rate button { order: 9; }
.mk-rate input[type=text] { flex: 1; min-width: 140px; padding: 7px 10px; border: 1px solid var(--mk-border); border-radius: 10px; font: inherit; }

/* ---- category intro (SEO text) ---- */
.mk-about h2 { font-size: 20px; margin: 0 0 8px; }
.mk-about p { color: #3f4f4c; line-height: 1.9; max-width: 860px; }
.mk-about__subs { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-about__subs a { padding: 4px 12px; border: 1px solid var(--mk-border); border-radius: 999px; font-size: 14px; color: var(--mk-p); text-decoration: none; }
.mk-about__subs a:hover { background: var(--mk-p); color: #fff; }

/* ---- distinct banners: "new arrivals" (gold) and "weekly offers" (red) ---- */
.araa-store__banner.mk-ban { display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 16px 22px; border-radius: 22px; position: relative; overflow: hidden; color: #fff; }
.araa-store__banner.mk-ban::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.28) 0 2px, transparent 3px), radial-gradient(circle at 40% 70%, rgba(255,255,255,.22) 0 2px, transparent 3px), radial-gradient(circle at 78% 30%, rgba(255,255,255,.25) 0 2px, transparent 3px); background-size: 90px 90px; opacity: .8; pointer-events: none; }
.mk-ban > * { position: relative; }
.mk-ban__logo { flex: none; width: 92px; height: 92px; padding: 8px; background: #fff; border-radius: 22px; display: flex; box-shadow: 0 8px 20px rgba(0,0,0,.18); transform: rotate(-4deg); }
.mk-ban__logo img { width: 100%; height: 100%; object-fit: contain; }
.mk-ban > div:not(.araa-store__arrows) { flex: 1; min-width: 0; }
.mk-ban h2 { margin: 6px 0 2px; font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: inherit; }
.mk-ban p { margin: 0; font-size: 15px; opacity: .92; color: inherit; }
.mk-ban__tag { display: inline-block; padding: 2px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.9); }
.mk-ban--new { background: linear-gradient(120deg, #f7d560 0%, #e8b50b 55%, #c98f00 100%); color: #3a2a00; box-shadow: 0 8px 22px rgba(201,143,0,.28); }
.mk-ban--new .mk-ban__tag { color: #7a5a00; }
.mk-ban--offer { background: linear-gradient(120deg, #ef6a4c 0%, #d9381e 60%, #a8230f 100%); box-shadow: 0 8px 22px rgba(217,56,30,.3); }
.mk-ban--offer .mk-ban__tag { color: #a8230f; }
.mk-ban .araa-store__arrows button { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); color: inherit; }
@media (max-width: 560px) { .mk-ban__logo { width: 64px; height: 64px; border-radius: 16px; } .araa-store__banner.mk-ban { gap: 12px; padding: 14px; } }

/* install app strip */
.mk-install { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0f5c46; color: #fff; }
.mk-install img { border-radius: 10px; background: #fff; flex: none; }
.mk-install span { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.mk-install small { opacity: .85; font-size: 12px; }
.mk-install__go { border: 0; border-radius: 999px; padding: 8px 18px; background: #e2b441; color: #1c2b22; font-weight: 800; }
.mk-install__x { border: 0; background: none; color: #fff; font-size: 24px; padding: 0 4px; }
.mk-install-link { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer; }
.mk-install-link[hidden] { display: none; }
