/* ══ صفحة الدفع — تصميم v34 بالحرف ══
 *
 * الملف ده بيتحمّل **بعد** الـstyle الداخلي بتاع الصفحة، فهو بيغطّي عليه.
 * عمله حاجتين:
 *   ① يضيف ماركب الزيب الجديد: الترويسة، شريط المراحل، الكروت المرقّمة،
 *      شبكة الدفع، صندوق الشروط، ملخص التجار، وبلوك الثقة.
 *   ② يعيد تلوين العناصر القديمة اللي محتفظين بيها بمنطقها (إيصال InstaPay،
 *      بيانات التحويل، المحفظة، بنود الطلب، كارت العنوان، شاشة «تم») بنفس
 *      توكنز الزيب، عشان الصفحة تبقى قطعة واحدة مش خلطة.
 *
 * ملاحظة متغيّرات: الزيب بيستخدم --navy/--blue/--red، والموقع بيستخدم
 * --r/--k/--pcr. مابنلمسش أي اسم موجود — كل أسماء الزيب هنا مبدوءة بـ--co.
 */

body.unified-checkout{
  --co-navy:#0b2239; --co-blu:#0d5ea8; --co-red:#e53935; --co-orange:#f59e0b;
  --co-grn:#16845b;  --co-ink:#17202a; --co-mut:#687586; --co-ln:#e5e9ef;
  --co-bgp:#f6f8fb;  --co-sh:0 10px 35px rgba(11,34,57,.08); --co-rad:18px;
  background:var(--co-bgp); color:var(--co-ink);
  font-family:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif;
}
/* الستايل الداخلي القديم لسه بيغطّي عناصر محتفظين بيها، وبيلوّنها من
   توكنز اسمها --co-blue/--co-line/... (و--co-blue كان أحمر). بدل ما
   ألاحق كل قاعدة فيه، بعيد تعريف نفس التوكنز بألوان v34 — فأي قاعدة
   قديمة ماعديتش عليها بتاخد الهوية الجديدة لوحدها. */
body.unified-checkout .checkout-v2{
  --co-ink:#17202a; --co-blue:#0d5ea8; --co-orange:#f59e0b; --co-paper:#f6f8fb;
  --co-line:#e5e9ef; --co-muted:#687586; --co-green:#16845b; --co-red:#e53935;
  --co-soft:#f6f8fb;
  max-width:1180px;margin-inline:auto;padding:0 16px 60px}


/* ── الترويسة: شريط آمن أبيض زي الزيب، بدل الترويسة الداكنة ─────────── */
body.unified-checkout .co-rb{display:none}
body.unified-checkout .co-hd{background:#fff;border-bottom:1px solid var(--co-ln);
  padding:0 16px;height:72px;display:flex;align-items:center}
body.unified-checkout .co-hd .rw{width:100%;max-width:1180px;margin-inline:auto;gap:10px}
body.unified-checkout .co-hd .logo{display:inline-block;color:var(--co-navy);font-size:24px;
  font-weight:800;line-height:1.15;direction:ltr;unicode-bidi:isolate;text-align:left;
  letter-spacing:-.01em;white-space:nowrap}
body.unified-checkout .co-hd .logo b{color:var(--co-red);font-weight:800}
body.unified-checkout .co-hd .logo small{display:block;direction:rtl;unicode-bidi:isolate;
  text-align:right;color:var(--co-mut);font-size:11px;font-weight:400;margin-top:3px}
body.unified-checkout .co-hd .ic{color:var(--co-navy)}
body.unified-checkout .co34-secure{margin-inline-start:auto;display:flex;align-items:center;gap:5px;
  color:var(--co-grn);font-size:13px;font-weight:700;white-space:nowrap}

/* ── ترويسة الصفحة ──────────────────────────────────────────────────── */
body.unified-checkout .checkout-hero{display:none}
.co34-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:38px 0 0;margin-bottom:22px}
.co34-eyebrow{color:var(--co-red);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.co34-head h1{margin:4px 0;font-size:32px;font-weight:800;color:var(--co-navy);line-height:1.4}
.co34-head p{margin:0;color:var(--co-mut);font-size:14px}
.co34-back{color:var(--co-blu);font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}

/* ── شريط المراحل ───────────────────────────────────────────────────── */
.co34-prog{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--co-ln);
  border-radius:16px;padding:12px 18px;margin-bottom:20px}
.co34-prog i{height:1px;background:var(--co-ln);flex:1;min-width:16px}
.co34-prog .step{display:flex;align-items:center;gap:8px;color:#9aa5b1;font-size:12px;font-weight:700;white-space:nowrap}
.co34-prog .step b{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:#eef1f5;color:#7d8794;font-size:12px}
.co34-prog .step.is-active{color:var(--co-navy)}
.co34-prog .step.is-active b{background:var(--co-navy);color:#fff}
.co34-prog .step.is-done{color:var(--co-grn)}
.co34-prog .step.is-done b{background:var(--co-grn);color:#fff}

/* ── الشبكة ─────────────────────────────────────────────────────────── */
body.unified-checkout .checkout-layout{display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:20px;align-items:start}
body.unified-checkout .checkout-form{display:grid;gap:16px;min-width:0}

/* ── الكروت المرقّمة ────────────────────────────────────────────────── */
body.unified-checkout .checkout-section{background:#fff;border:1px solid var(--co-ln);
  border-radius:var(--co-rad);box-shadow:var(--co-sh);padding:22px;margin:0}
body.unified-checkout .section-heading{display:flex;gap:13px;align-items:center;margin-bottom:18px;border:0;padding:0}
body.unified-checkout .section-number{width:34px;height:34px;flex:none;border-radius:10px;background:#eef5fb;
  color:var(--co-blu);display:grid;place-items:center;font-weight:800;font-size:12px;direction:ltr}
body.unified-checkout .section-heading h2{margin:0;color:var(--co-navy);font-size:18px;font-weight:800}
body.unified-checkout .section-heading p{margin:2px 0 0;color:var(--co-mut);font-size:12px;font-weight:400}
body.unified-checkout .section-body{padding:0}

/* ── الحقول ─────────────────────────────────────────────────────────── */
body.unified-checkout .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
body.unified-checkout .checkout-field{margin:0;min-width:0}
body.unified-checkout .checkout-field.is-full{grid-column:1/-1}
body.unified-checkout .checkout-field label{display:block;color:#394654;font-size:12px;font-weight:700;margin:0}
body.unified-checkout .required-mark{color:var(--co-red)}
body.unified-checkout .inp,body.unified-checkout .checkout-field input,
body.unified-checkout .checkout-field select{display:block;width:100%;height:48px;border:1px solid #d9dfe7;
  border-radius:11px;background:#fff;padding:0 14px;margin-top:7px;color:var(--co-ink);
  font:inherit;font-size:14px;outline:none;transition:.18s}
body.unified-checkout textarea.inp{height:auto;min-height:84px;padding:12px 14px;line-height:1.8}
/* الستايل القديم بيحط outline أحمر صريح عند التركيز (rgba(224,18,26,.12))
   — لون غلط هنا لأنه بيقرا كإنه خطأ. نرجّعه أزرق زي v34. */
body.unified-checkout .inp:focus,body.unified-checkout .checkout-field input:focus,
body.unified-checkout .checkout-field select:focus,body.unified-checkout textarea.inp:focus{
  border-color:var(--co-blu);outline:3px solid rgba(13,94,168,.12);outline-offset:0;
  box-shadow:none}
/* الخانة الغلط فعلًا: حمرا — ودي المرة الوحيدة اللي الأحمر يبان فيها */
body.unified-checkout .inp[aria-invalid=true]:focus{
  border-color:var(--co-red);outline-color:rgba(229,57,53,.14)}
body.unified-checkout .inp[aria-invalid=true]{border-color:var(--co-red);box-shadow:0 0 0 3px rgba(229,57,53,.08)}
body.unified-checkout .field-error{display:block;color:var(--co-red);font-size:11px;font-weight:700;margin-top:5px;min-height:14px}
body.unified-checkout .check-row{display:flex;align-items:center;gap:8px;margin-top:13px;
  color:var(--co-mut);font-size:12.5px;font-weight:500}
body.unified-checkout .check-row input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--co-blu)}

/* نوع العنوان — منزل / عمل */
.co34-atype{display:flex;gap:8px;margin-top:13px}
.co34-atype button{border:1px solid var(--co-ln);background:#fff;border-radius:10px;padding:9px 16px;
  min-height:44px;color:var(--co-mut);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.co34-atype button.is-on{border-color:var(--co-blu);color:var(--co-blu);background:#f3f8fd;font-weight:800}

/* ── طريقة الشحن ────────────────────────────────────────────────────── */
.co34-ship{display:flex;align-items:center;gap:12px;border:1px solid #9ec6e8;background:#f6fbff;
  border-radius:14px;padding:13px;margin-top:9px}
.co34-ship .co34-ship-ic{flex:none;width:34px;height:34px;border-radius:9px;background:#fff;
  display:grid;place-items:center;color:var(--co-blu)}
.co34-ship .co34-ship-c{flex:1;min-width:0}
.co34-ship strong{display:block;font-size:14px;font-weight:800;color:var(--co-navy)}
.co34-ship span{display:block;font-size:11px;color:var(--co-mut);margin-top:2px;line-height:1.7}
.co34-ship>b{font-size:14px;font-weight:800;color:var(--co-navy);white-space:nowrap}

/* ── شبكة الدفع ─────────────────────────────────────────────────────── */
body.unified-checkout .payment-options,.co34-pays{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.co34-pay{position:relative;min-height:92px;border:1px solid var(--co-ln);background:#fff;border-radius:13px;
  padding:12px;text-align:start;display:flex;flex-direction:column;gap:3px;cursor:pointer;
  font:inherit;color:inherit;transition:.18s}
.co34-pay>.co34-pay-ic{color:var(--co-blu);height:24px;display:flex;align-items:center}
.co34-pay strong{font-size:12.5px;font-weight:800;color:var(--co-navy);line-height:1.5}
.co34-pay small{font-size:10.5px;color:var(--co-mut);line-height:1.6}
.co34-pay.is-on{border:2px solid var(--co-blu);background:#f5faff;padding:11px}
.co34-pay:focus-visible{outline:2px solid var(--co-blu);outline-offset:2px}
.co34-pay.is-wide{grid-column:1/-1;min-height:auto;flex-direction:row;align-items:center;gap:11px}
.co34-pay.is-wide>.co34-pay-ic{height:auto}
.co34-pay div{display:grid;gap:2px;min-width:0}
.co34-pay input{position:absolute;opacity:0;pointer-events:none}

/* إشعارات تحت الشبكة */
.co34-note{margin-top:13px;border:1px solid #b9e2d0;background:#f0fbf6;border-radius:12px;
  padding:12px 14px;color:#146545;font-size:12.5px;line-height:1.85}
.co34-note strong{display:block;font-size:13px;font-weight:800}
.co34-note p{margin:4px 0 0;color:#4a675b}
.co34-note.is-info{border-color:#bcd7ef;background:#f3f9ff;color:#124a78}
.co34-note.is-info p{color:#41617d}
.co34-note.is-warn{border-color:#f3d7a8;background:#fffaf0;color:#79551a}
.co34-note.is-warn p{color:#7d6534}
.co34-micro{font-size:11px;color:var(--co-mut);margin:9px 0 0;line-height:1.8}

/* ── الشروط والأحكام ────────────────────────────────────────────────── */
.co34-terms{display:flex;align-items:flex-start;gap:10px;padding:16px;border:1px solid var(--co-ln);
  border-radius:12px;background:#fff;box-shadow:var(--co-sh);line-height:1.85;margin:0;cursor:pointer}
.co34-terms input{width:20px;height:20px;min-width:20px;margin:2px 0 0;accent-color:var(--co-red)}
.co34-terms span{font-size:13px;color:#394654;font-weight:500}
.co34-terms a{color:var(--co-blu);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.co34-terms.is-bad{border-color:var(--co-red);background:#fffafa}
.co34-termerr{color:var(--co-red);font-size:12px;font-weight:800;margin:7px 2px 0;min-height:15px}

/* ── الزر الأساسي ───────────────────────────────────────────────────── */
body.unified-checkout .place-order,.co34-primary{width:100%;min-height:54px;border:0;border-radius:13px;
  background:var(--co-red);color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 7px 18px rgba(229,57,53,.2);transition:.18s}
body.unified-checkout .place-order:hover:not(:disabled),.co34-primary:hover:not(:disabled){filter:brightness(.96)}
body.unified-checkout .place-order:disabled,.co34-primary:disabled{opacity:.62;cursor:not-allowed;box-shadow:none}
.co34-cta-main{display:none}

/* ── الملخص ─────────────────────────────────────────────────────────── */
body.unified-checkout .checkout-summary{position:sticky;top:88px;background:#fff;border:1px solid var(--co-ln);
  border-radius:var(--co-rad);box-shadow:var(--co-sh);padding:20px;min-width:0}
body.unified-checkout .checkout-summary-title{margin:0;font-size:18px;font-weight:800;color:var(--co-navy)}
.co34-sumhd{display:flex;align-items:center;justify-content:space-between;gap:8px;
  border-bottom:1px solid var(--co-ln);padding-bottom:14px;margin-bottom:4px}
.co34-sumhd span{font-size:11px;color:var(--co-mut);font-weight:700;white-space:nowrap}

/* بنود مجمّعة حسب التاجر */
body.unified-checkout .summary-vendor{display:flex;align-items:center;gap:6px;justify-content:flex-start;
  margin:14px 0 2px;padding-top:12px;border-top:1px solid var(--co-ln);
  color:var(--co-grn);font-size:11px;font-weight:800}
body.unified-checkout .summary-vendor:first-child{border-top:0;padding-top:0;margin-top:8px}
body.unified-checkout .checkout-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;
  align-items:center;margin:11px 0;padding:0;border:0;background:none}
body.unified-checkout .checkout-item img{width:44px;height:44px;border-radius:10px;background:#f2f4f7;object-fit:cover}
body.unified-checkout .checkout-item-name{display:block;font-size:11.5px;font-weight:800;color:var(--co-ink);line-height:1.6}
body.unified-checkout .checkout-item-meta{display:block;font-size:9.5px;color:var(--co-mut);margin-top:2px;line-height:1.6}
body.unified-checkout .checkout-item-price{font-size:11.5px;font-weight:800;white-space:nowrap;color:var(--co-navy)}
body.unified-checkout .checkout-item-tools{display:flex;align-items:center;gap:7px;margin-top:6px}
body.unified-checkout .checkout-quantity{display:inline-flex;align-items:center;border:1px solid var(--co-ln);border-radius:8px;overflow:hidden}
body.unified-checkout .checkout-quantity button{min-width:28px;min-height:28px;border:0;background:#fff;
  color:var(--co-navy);font:inherit;font-weight:800;cursor:pointer}
body.unified-checkout .checkout-quantity button:disabled{opacity:.4;cursor:not-allowed}
body.unified-checkout .checkout-quantity output{min-width:24px;text-align:center;font-size:11px;font-weight:800}
body.unified-checkout .checkout-remove{border:0;background:none;color:var(--co-red);font:inherit;
  font-size:10px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:3px;min-height:28px}

/* كوبونات التجار */
.co34-mc{border:1px solid #f0d3d3;background:#fffafa;border-radius:12px;padding:13px;margin:14px 0 0}
.co34-mc strong{display:block;color:var(--co-navy);font-size:12.5px;font-weight:800}
.co34-mc p{font-size:11.5px;line-height:1.85;color:var(--co-mut);margin:5px 0 0}
.co34-mc .co34-mcst{font-size:11.5px;color:var(--co-grn);font-weight:800;margin-top:6px;line-height:1.8}
.co34-mc ul{margin:7px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.co34-mc li{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;color:var(--co-grn)}
.co34-mc li code{direction:ltr;font-family:monospace;font-weight:700}

body.unified-checkout .coupon-optional{margin:13px 0 0;border:0;padding:0;background:none}
body.unified-checkout .coupon-optional>summary{cursor:pointer;color:var(--co-blu);font-size:12px;font-weight:800;padding:4px 0}
body.unified-checkout .checkout-coupon{margin:9px 0 0;padding:0;border:0;background:none}
body.unified-checkout .coupon-head b{font-size:12px;color:var(--co-navy)}
body.unified-checkout .coupon-head small{font-size:9.5px;color:var(--co-mut)}
body.unified-checkout .coupon-form{display:grid;grid-template-columns:1fr auto;gap:7px}
body.unified-checkout .coupon-form input{height:44px;border:1px solid #d9dfe7;border-radius:10px;
  background:#fff;padding:0 12px;font:inherit;font-size:13px;text-transform:uppercase}
body.unified-checkout .coupon-form button,body.unified-checkout .coupon-applied button{min-height:44px;
  border:1px solid var(--co-navy);border-radius:10px;background:#fff;color:var(--co-navy);
  padding:0 14px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
body.unified-checkout .coupon-wallet button{border:1px dashed var(--co-blu);color:var(--co-blu);
  border-radius:9px;background:#fff;min-height:40px;padding:0 10px;font:inherit;font-size:10.5px;font-weight:800}
body.unified-checkout .coupon-applied button{border-color:#efc7c3;color:var(--co-red)}
body.unified-checkout .coupon-status{font-size:11px;font-weight:700;color:var(--co-mut);margin:6px 0 0;min-height:15px}
body.unified-checkout .coupon-status.is-error{color:var(--co-red)}
body.unified-checkout .coupon-auto{display:none}

/* الإجماليات */
body.unified-checkout .summary-list{margin:14px 0 0;padding:0;border-top:1px solid var(--co-ln);padding-top:10px}
body.unified-checkout .summary-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;
  font-size:12.5px;color:var(--co-mut)}
body.unified-checkout .summary-row dt,body.unified-checkout .summary-row dd{margin:0}
body.unified-checkout .summary-row.is-discount{color:var(--co-grn);font-weight:700}
body.unified-checkout .summary-total{border-top:1px solid var(--co-ln);margin-top:7px;padding-top:14px;
  align-items:center;color:var(--co-navy)}
body.unified-checkout .summary-total dt{font-size:13px;font-weight:800}
body.unified-checkout .summary-total dd{font-size:22px;font-weight:800;color:var(--co-red)}

/* المطلوب الآن */
body.unified-checkout .due-box{margin:14px 0 0;border:1px solid #bcd7ef;background:#f3f9ff;border-radius:12px;padding:12px 14px}
body.unified-checkout .due-now,body.unified-checkout .due-later{display:flex;justify-content:space-between;gap:10px;font-size:12.5px}
body.unified-checkout .due-now{color:var(--co-navy);font-weight:800}
body.unified-checkout .due-now b{font-size:16px}
body.unified-checkout .due-later{color:var(--co-mut);font-weight:700;margin-top:6px;padding-top:6px;border-top:1px dashed #cfe0f0}
body.unified-checkout .due-note{margin:7px 0 0;font-size:11px;color:#41617d;line-height:1.8;display:flex;gap:5px;align-items:flex-start}

/* بلوك الثقة */
.co34-trust{margin-top:15px;background:#f7f9fb;border-radius:12px;padding:10px}
.co34-trust>div{display:flex;gap:9px;align-items:flex-start;padding:7px 0}
.co34-trust .co34-trust-ic{flex:none;color:var(--co-grn);display:flex;align-items:center}
.co34-trust b{display:block;font-size:11px;font-weight:800;color:var(--co-navy)}
.co34-trust small{display:block;font-size:9.5px;color:var(--co-mut);margin-top:1px;line-height:1.65}

body.unified-checkout .agreement-box{display:none}

/* ── عناصر محتفظ بيها: بنفس توكنز الزيب ─────────────────────────────── */
body.unified-checkout .error-summary{display:none;margin:0 0 14px;border:1px solid #f0c9c6;background:#fffafa;
  border-radius:12px;padding:13px 15px}
body.unified-checkout .error-summary.is-visible{display:block}
body.unified-checkout .error-summary h2{display:flex;align-items:center;gap:6px;margin:0 0 7px;
  font-size:13px;font-weight:800;color:var(--co-red);border:0;padding:0}
body.unified-checkout .error-summary ul{margin:0;padding-inline-start:18px}
body.unified-checkout .error-summary li{font-size:12px;margin-bottom:4px}
body.unified-checkout .error-summary a{color:var(--co-red);font-weight:700}

body.unified-checkout .addr-card{display:flex;align-items:center;gap:11px;border:1px solid var(--co-ln);
  border-radius:12px;background:#f8fafc;padding:13px}
body.unified-checkout .addr-ic{flex:none;color:var(--co-blu);display:flex}
body.unified-checkout .addr-card>div{flex:1;min-width:0}
body.unified-checkout .addr-card b{display:block;font-size:12.5px;font-weight:800;color:var(--co-navy)}
body.unified-checkout .addr-card span{display:block;font-size:11.5px;color:var(--co-mut);margin-top:2px;line-height:1.7}
body.unified-checkout .addr-edit{border:1px solid var(--co-ln);background:#fff;border-radius:9px;
  min-height:40px;padding:0 13px;color:var(--co-blu);font:inherit;font-size:12px;font-weight:800;cursor:pointer}

body.unified-checkout .notes-fold{margin-top:13px;border:1px solid var(--co-ln);border-radius:11px;background:#fff;padding:11px 13px}
body.unified-checkout .notes-fold>summary{cursor:pointer;font-size:12.5px;font-weight:700;color:var(--co-navy);
  display:flex;align-items:center;gap:6px}
body.unified-checkout .notes-fold>summary small{color:var(--co-mut);font-weight:400}
body.unified-checkout .notes-fold textarea{margin-top:10px}

body.unified-checkout .pay-methods{margin-top:14px;border-top:1px dashed var(--co-ln);padding-top:14px}
body.unified-checkout .pay-methods-title{margin:0 0 10px;font-size:12.5px;font-weight:700;color:var(--co-navy)}
body.unified-checkout .pay-methods-title b{font-weight:800;color:var(--co-red)}
body.unified-checkout .method-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
body.unified-checkout .method-chip{display:flex;align-items:center;gap:7px;min-height:62px;padding:10px;
  border:1px solid var(--co-ln);border-radius:11px;background:#fff;cursor:pointer;color:var(--co-ink);
  font:inherit;text-align:start;width:100%}
body.unified-checkout .method-chip.is-on{border:2px solid var(--co-blu);background:#f5faff;
  padding:9px;color:var(--co-blu);box-shadow:none}
body.unified-checkout .method-chip.is-on small{color:var(--co-blu)}
body.unified-checkout .method-chip input{position:absolute;opacity:0;pointer-events:none}
body.unified-checkout .method-chip b{display:block;font-size:11.5px;font-weight:800;color:var(--co-navy)}
body.unified-checkout .method-chip small{display:block;font-size:9.5px;color:var(--co-mut);margin-top:1px}

body.unified-checkout .proof-box{margin-top:13px;border:1px solid var(--co-ln);border-radius:12px;background:#f8fafc;padding:13px}
body.unified-checkout .proof-drop{display:flex;align-items:center;gap:10px;min-height:62px;padding:11px;
  border:1px dashed var(--co-blu);border-radius:11px;background:#fff;cursor:pointer;color:var(--co-navy)}
body.unified-checkout .proof-drop img{width:44px;height:44px;border-radius:9px;object-fit:cover}
body.unified-checkout .proof-drop b{display:block;font-size:12px;font-weight:800}
body.unified-checkout .proof-drop small{display:block;font-size:10px;color:var(--co-mut);margin-top:1px}
body.unified-checkout .proof-box label[for=payRef]{display:block;margin-top:11px;font-size:12px;font-weight:700;color:#394654}

body.unified-checkout .transfer-info{display:flex;gap:11px;margin-top:13px;border:1px solid var(--co-ln);
  border-radius:12px;background:#fff;padding:13px}
/* كود الـQR ماينفعش يتقص أبدًا. كنت حاطط object-fit:cover في صندوق
   مش مربّع، والصورة 516×552 — فعلى الموبايل (100%×150) كان بيتقص منها
   أكتر من النص ويبقى غير قابل للمسح. contain بيضمن إن الكود كامل،
   والخلفية البيضا والهامش حواليه (quiet zone) شرط عشان الكاميرا تقراه. */
body.unified-checkout .transfer-qr{width:156px;height:auto;aspect-ratio:516/552;flex:none;
  object-fit:contain;border-radius:10px;background:#fff;border:1px solid var(--co-ln);padding:6px}
body.unified-checkout .transfer-lines{flex:1;min-width:0}
body.unified-checkout .transfer-title{margin:0 0 7px;font-size:12.5px;font-weight:800;color:var(--co-navy)}
body.unified-checkout .transfer-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px;font-size:11.5px}
body.unified-checkout .transfer-line span{color:var(--co-mut);font-weight:700}
body.unified-checkout .transfer-line b{font-weight:800;color:var(--co-navy)}
body.unified-checkout .transfer-lines small{display:block;margin-top:5px;font-size:10.5px;color:var(--co-mut);line-height:1.75}
body.unified-checkout .copy-btn{border:1px solid var(--co-ln);background:#fff;border-radius:7px;min-height:30px;
  padding:0 8px;color:var(--co-blu);font:inherit;font-size:10px;font-weight:800;cursor:pointer;
  display:inline-flex;align-items:center;gap:3px}

body.unified-checkout .wallet-box{margin-top:11px;border-radius:12px;border:1px solid var(--co-ln);background:#f8fafc}
body.unified-checkout .wallet-box.is-ok{border-color:#b9e2d0;background:#f0fbf6}
body.unified-checkout .wallet-box.is-short{border-color:#f3d7a8;background:#fffaf0}

body.unified-checkout .installment-panel{margin-top:12px;background:#f3f9ff;border:1px solid #bcd7ef;border-radius:12px;padding:14px}
body.unified-checkout .installment-companies{grid-template-columns:repeat(3,minmax(0,1fr))}
body.unified-checkout .installment-company{border-color:var(--co-ln);border-radius:10px;font-size:13px}
body.unified-checkout .installment-company:has(input:checked){border-color:var(--co-blu);color:var(--co-blu);box-shadow:0 0 0 1px var(--co-blu)}
body.unified-checkout .installment-state{border:1px solid #f3d7a8;background:#fffaf0;border-radius:12px;
  padding:14px;margin-top:13px;color:#79551a;font-size:12.5px;line-height:1.85}
body.unified-checkout .installment-state b{font-weight:800}
body.unified-checkout .installment-state p{margin:4px 0 0;font-size:12px!important;color:#7d6534}

body.unified-checkout .payment-unavailable{margin:0 0 11px;border:1px solid var(--co-ln);background:#f8fafc;
  border-radius:11px;padding:11px 13px;color:var(--co-mut);font-size:12px;font-weight:700;line-height:1.8}

body.unified-checkout .checkout-recovery{margin-top:14px;border:1px solid #f0c9c6;background:#fffafa;
  border-radius:12px;padding:13px 15px;font-size:12.5px;line-height:1.85;color:#8a2b26}
body.unified-checkout .checkout-recovery .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
body.unified-checkout .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:0 16px;border-radius:11px;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
body.unified-checkout .btn-primary{background:var(--co-red);color:#fff;border:0}
body.unified-checkout .btn-ghost{background:#fff;color:var(--co-navy);border:1px solid var(--co-ln)}

body.unified-checkout .done-card{background:#fff;border:1px solid var(--co-ln);border-radius:var(--co-rad);
  box-shadow:var(--co-sh);padding:32px 22px;text-align:center;max-width:620px;margin:22px auto}
body.unified-checkout .done-ic{display:inline-flex;color:var(--co-grn)}
body.unified-checkout .done-card h2{margin:12px 0 7px;font-size:21px;font-weight:800;color:var(--co-navy)}
body.unified-checkout .done-card p{margin:0 0 7px;font-size:13.5px;color:var(--co-mut);line-height:1.9}
body.unified-checkout .done-sub{font-size:12px!important}
body.unified-checkout .done-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:16px}

body.unified-checkout .checkout-empty,body.unified-checkout .checkout-error{background:#fff;
  border:1px solid var(--co-ln);border-radius:var(--co-rad);box-shadow:var(--co-sh);
  padding:36px 22px;text-align:center;max-width:560px;margin:38px auto}
body.unified-checkout .checkout-empty h1,body.unified-checkout .checkout-error h1{font-size:21px;color:var(--co-navy);margin:0 0 8px}
body.unified-checkout .checkout-empty p,body.unified-checkout .checkout-error p{color:var(--co-mut);font-size:13.5px;margin:0 0 16px}

body.unified-checkout .spinner{width:16px;height:16px;border:2px solid #ffffff55;border-top-color:#fff;
  border-radius:50%;display:inline-block;animation:co34spin .7s linear infinite}
@keyframes co34spin{to{transform:rotate(360deg)}}

/* ── الشريط السفلي اللاصق للموبايل ──────────────────────────────────── */
body.unified-checkout .mobile-place{display:none}

/* ── الفوتر ─────────────────────────────────────────────────────────── */
.co34-foot{border-top:1px solid var(--co-ln);background:#fff;color:#8a95a3;font-size:11.5px;
  text-align:center;padding:20px 16px;line-height:1.8}
.co34-foot a{color:var(--co-blu);font-weight:700;text-decoration:none}

/* ── الموبايل ───────────────────────────────────────────────────────── */
@media(max-width:900px){
  body.unified-checkout .checkout-layout{grid-template-columns:1fr}
  /* الملخص فوق الفورم زي v34 — العميل يشوف هو بيشتري إيه وبكام الأول.
     الـ!important عشان الستايل الداخلي القديم بيفرض order:initial!important */
  body.unified-checkout .checkout-summary{position:static;order:-1!important}
  body.unified-checkout .checkout-form{order:1!important}
  body.unified-checkout .place-order{display:none}          /* زر الملخص يختفي */
  .co34-cta-main{display:inline-flex;position:sticky;bottom:12px;z-index:12}
  .co34-pays,body.unified-checkout .payment-options{grid-template-columns:repeat(2,1fr)}
  body.unified-checkout .method-chips{grid-template-columns:1fr}
  /* صفحة الدفع مفيهاش شريط سفلي: بياخد مكان زر التأكيد اللاصق، وبيدي
     العميل 5 مخارج في اللحظة اللي المفروض يكمّل فيها. روابط التنقل
     موجودة في الترويسة والفوتر. */
  body.unified-checkout .co-bn{display:none}
  body.unified-checkout.store-editorial{padding-bottom:0}
}
@media(max-width:600px){
  body.unified-checkout .checkout-v2{padding:0 14px 40px}
  body.unified-checkout .co-hd{height:62px}
  body.unified-checkout .co-hd .logo{font-size:20px}
  .co34-head{padding-top:22px;align-items:flex-start;margin-bottom:16px}
  .co34-head h1{font-size:24px}
  .co34-head p{font-size:12.5px}
  .co34-back{font-size:11.5px}
  .co34-secure{font-size:10.5px}
  .co34-prog{overflow-x:auto;padding:9px 12px;scrollbar-width:none}
  .co34-prog::-webkit-scrollbar{display:none}
  .co34-prog .step span{display:none}
  body.unified-checkout .checkout-layout{gap:12px}
  body.unified-checkout .checkout-section{padding:16px;border-radius:15px}
  body.unified-checkout .form-grid{grid-template-columns:1fr}
  body.unified-checkout .section-heading{margin-bottom:14px}
  body.unified-checkout .section-heading h2{font-size:16px}
  body.unified-checkout .checkout-summary{padding:16px}
  body.unified-checkout .summary-total dd{font-size:20px}
  body.unified-checkout .checkout-item{grid-template-columns:40px minmax(0,1fr) auto}
  body.unified-checkout .checkout-item img{width:40px;height:40px}
  /* على الموبايل: الكود أكبر عشان الكاميرا تمسكه من على بُعد معقول،
     ومتمركز، والبيانات تحته بعرض كامل. */
  body.unified-checkout .transfer-info{flex-direction:column;align-items:center}
  body.unified-checkout .transfer-qr{width:min(62vw,210px);height:auto}
  body.unified-checkout .transfer-lines{width:100%}
  /* الحقول 16px عشان المتصفح مايكبّرش الصفحة لوحده عند الكتابة */
  body.unified-checkout input:not([type=checkbox]):not([type=radio]),
  body.unified-checkout select,body.unified-checkout textarea{font-size:16px}
}
@media(max-width:380px){
  .co34-pays,body.unified-checkout .payment-options{grid-template-columns:1fr}
  .co34-atype button{flex:1}
}
@media(prefers-reduced-motion:reduce){
  body.unified-checkout *{transition:none!important;animation:none!important}
}

/* ══ تحسينات التحويل ═══════════════════════════════════════════════
 * الهدف: تقليل المجهود المحسوس، ورفع اليقين قبل الضغط على الزرار.
 */

/* ── سطر القسم المطوي: «خلصت، وتقدر ترجع تعدّل» ─────────────────── */
.co34-done{display:flex;align-items:center;gap:11px;padding:13px;
  border:1px solid #b9e2d0;border-radius:12px;background:#f3fbf7}
.co34-done[hidden]{display:none}
.co34-done-ic{flex:none;color:var(--co-grn);display:flex}
.co34-done>div{flex:1;min-width:0}
.co34-done b{display:block;font-size:13px;font-weight:800;color:var(--co-navy)}
.co34-done span{display:block;font-size:11.5px;color:var(--co-mut);margin-top:2px;
  line-height:1.7;overflow-wrap:anywhere}

/* ── علامة صح على الخانة السليمة ───────────────────────────────── */
body.unified-checkout .inp.is-good{
  border-color:#9fd3bb;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%2316845b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 13px center;padding-left:40px}
body.unified-checkout select.inp.is-good{background-position:left 30px center;padding-left:52px}

/* ── ليه بنطلب البيانات دي ─────────────────────────────────────── */
.co34-why{display:flex;align-items:flex-start;gap:6px;margin:11px 0 0;
  color:var(--co-mut);font-size:11.5px;line-height:1.8}
.co34-why svg,.co34-why i{flex:none;margin-top:2px}

/* ── تاريخ الوصول المتوقّع ──────────────────────────────────────── */
.co34-eta{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap;
  margin:3px 0 2px;color:var(--co-grn)!important;font-size:12px!important;font-weight:700}
.co34-eta b{font-weight:800}

/* ── شريط الطمأنة فوق الزرار ───────────────────────────────────── */
.co34-rea{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0;list-style:none}
.co34-rea li{display:flex;align-items:center;gap:5px;color:var(--co-mut);
  font-size:11.5px;font-weight:600}
.co34-rea svg,.co34-rea i{color:var(--co-grn);flex:none}

/* ── الزرار: المبلغ سطر أول، الوسيلة تحته ───────────────────────── */
body.unified-checkout .place-order,.co34-primary{gap:9px;padding:11px 16px;line-height:1.35}
.cta-txt{display:grid;gap:1px;text-align:center;min-width:0}
.cta-txt b{font-size:16px;font-weight:800}
.cta-txt small{font-size:11px;font-weight:600;opacity:.88}

@media(max-width:600px){
  .co34-rea{gap:5px 12px}
  .co34-rea li{font-size:11px}
  .cta-txt b{font-size:15px}
}

/* ── حلقة التركيز ──────────────────────────────────────────────────
 * فيه قاعدتين قديمتين بيحطّوا حلقة **حمرا** على أي عنصر متركّز عليه،
 * الاتنين بـ!important:
 *   pc-store-editorial.css : body.store-editorial :focus-visible
 *   الستايل الداخلي        : .checkout-v2 :focus-visible
 * الأحمر هنا بيتقرا «في غلط» وإحنا لسه مكتبناش حاجة — ودي آخر رسالة
 * عايزين نبعتها لحد بيدفع. بنخلّيها زرقا، وبنسيب الأحمر لحالة الخطأ
 * الحقيقية بس. الحلقة نفسها باقية (إتاحة الوصول بالكيبورد).
 */
body.unified-checkout .checkout-v2 :focus-visible{
  outline:3px solid rgba(13,94,168,.45)!important;outline-offset:2px}
body.unified-checkout .checkout-v2 .inp:focus{
  border-color:var(--co-blu);outline-offset:0}
/* الخانة الغلط فعلًا — هنا بس الأحمر مفهوم */
body.unified-checkout .checkout-v2 .inp[aria-invalid=true],
body.unified-checkout .checkout-v2 .inp[aria-invalid=true]:focus-visible{
  border-color:var(--co-red);outline-color:rgba(229,57,53,.45)!important}

/* ── إصلاح: نص أبيض على خلفية فاتحة ───────────────────────────────
 * pc-store-editorial.css بيخلّي الشيب المختارة **خلفية داكنة ونص أبيض**:
 *   body.store-editorial .method-chip.is-on{background:var(--se-ink);color:#fff}
 *   body.store-editorial .method-chip.is-on :is(b,small,svg){color:#fff}
 * إحنا غيّرنا الخلفية لفاتحة (#f5faff) فالخلفية اتغلبت لكن لون المحتوى لأ،
 * والنتيجة نص أبيض على أبيض — تباين **1.05:1** بالقياس، يعني مخفي فعليًا.
 * ظهرت على موبايل حقيقي في وسيلة الدفع المختارة.
 */
body.unified-checkout .checkout-v2 .method-chip.is-on :is(b,small,svg,i){color:var(--co-blu)}
body.unified-checkout .checkout-v2 .method-chip.is-on b{color:var(--co-navy)}
body.unified-checkout .checkout-v2 .method-chip.is-on svg{stroke:currentColor}

/* ── الزرار اللاصق مايغطّيش الخانة اللي بتكتب فيها ─────────────────
 * الزرار sticky في آخر الفورم، فهو بيعوم فوق المحتوى اللي قبله أثناء
 * النزول. ولما العميل يكتب رقم عملية InstaPay (آخر خانة في قسم الدفع)
 * الزرار بيقعد فوقها. shop.js أصلًا بيحط .mobile-keyboard-open على الـbody
 * لما الكيبورد يفتح — بنستغلها ونرجّع الزرار لمكانه الطبيعي وقتها.
 */
body.unified-checkout.mobile-keyboard-open .co34-cta-main{position:static}
