/* Funnel checkout - one narrow column straight to the pay button.
   The add-ons live in a sheet over the page (.njd-fcpop), not in the column. */

/* the site chrome, gone */
body.njd-fco .njd-top,
body.njd-fco .njd-nav,
body.njd-fco .njd-foot-nav,
body.njd-fco .njd-fcta,
body.njd-fco .hero-section,
body.njd-fco .entry-header{display:none}

body.njd-fco,body.njd-lean{overflow-x:clip;background:#F6F6F7}
html.njd-poplock,html.njd-poplock body{overflow:hidden}

.njd-fc #customer_details h3,
.njd-fc .woocommerce-billing-fields > h3{display:none}

.njd-fc{max-width:540px;margin:0 auto;padding:0 16px 70px;color:var(--ink,#0F1115)}
.njd-fc *{box-sizing:border-box}

.njd-fchd{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 2px 14px}
.njd-fchd .bk{font-size:14px;color:var(--mut,#6E7379);text-decoration:none}
.njd-fchd .bk::before{content:"\2192";margin-inline-end:6px}
html[lang^=en] .njd-fchd .bk::before{content:"\2190"}
.njd-fchd .bk:hover{color:var(--or,#FF5A1F)}
.njd-fchd .sec{display:inline-flex;align-items:center;gap:6px;font-size:13px;
  color:#1E9E5A}
.njd-fchd .sec svg{width:14px;height:14px}

/* ---- the card ---------------------------------------------------------- */
.njd-fccard{background:#fff;border:1px solid var(--line,#E8E8EA);border-radius:16px;
  padding:24px 24px 22px;box-shadow:0 1px 2px rgba(15,17,21,.04)}
.njd-fccard h1{font-size:20px;margin:0 0 6px;line-height:1.4}
.njd-fccard .col-2:empty{display:none}
.njd-fcoh{font-size:14px;font-weight:700;color:var(--ink,#0F1115);
  margin:22px 0 12px;padding-top:20px;border-top:1px solid var(--line,#E8E8EA)}

.njd-fc .form-row{margin:0 0 12px;padding:0;display:block}
.njd-fc label{display:block;font-size:13px;color:var(--mut,#6E7379);margin-bottom:6px}
.njd-fc .required{color:var(--or,#FF5A1F);text-decoration:none}
.njd-fc input[type=text],.njd-fc input[type=email],.njd-fc input[type=tel],
.njd-fc .input-text{width:100%;border:1px solid var(--line,#E8E8EA);border-radius:10px;
  padding:13px 15px;font-size:15px;font-family:inherit;background:#fff;color:inherit}
.njd-fc .input-text:focus{outline:2px solid var(--or,#FF5A1F);outline-offset:1px;
  border-color:transparent}
.njd-fc .woocommerce-billing-fields .description,
.njd-fc .form-row .description{font-size:12px;color:var(--mut-2,#8A9099)}

/* ---- the order --------------------------------------------------------- */
.njd-fcorder table.shop_table{width:100%;border-collapse:collapse;font-size:14px;
  border:0;margin:4px 0 0}
.njd-fcorder table.shop_table th,.njd-fcorder table.shop_table td{
  border:0;padding:10px 0;text-align:start;background:none;vertical-align:middle}
.njd-fcorder table.shop_table td.product-total{text-align:end;white-space:nowrap;font-weight:700}
.njd-fcorder table.shop_table tbody tr.cart_item{border-bottom:1px solid var(--line,#E8E8EA)}
.njd-fcorder table.shop_table tfoot th{color:var(--mut,#6E7379);font-weight:400}
.njd-fcorder table.shop_table tfoot td{text-align:end}
/* one figure is enough while there are no taxes or fees to explain */
.njd-fcorder tr.cart-subtotal{display:none}
.njd-fcorder .order-total th,.njd-fcorder .order-total td{font-size:18px;
  padding-top:14px;color:var(--ink,#0F1115);font-weight:700}
.njd-fcorder .order-total td{color:var(--or,#FF5A1F)}
.njd-fcorder .quantity .ct-increase,
.njd-fcorder .quantity .ct-decrease,
.njd-fcorder .quantity input{display:none}

/* the coupon folds behind one line until someone has a code */
.njd-fcorder tr.njd-cocp td{padding:10px 0 0}
.njd-fc:not(.cp-open) .njd-cocp:not(:has(.on)) .njd-cp{display:none}
.njd-fc:not(.cp-open) .njd-cocp:not(:has(.on)) td::before{content:"عندك كود خصم؟";
  font-size:13px;color:var(--mut,#6E7379);text-decoration:underline;cursor:pointer;
  text-underline-offset:3px}
html[lang^=en] .njd-fc:not(.cp-open) .njd-cocp:not(:has(.on)) td::before{content:"Have a discount code?"}

/* ---- the add-ons link -------------------------------------------------- */
.njd-fcaddo{display:flex;align-items:center;gap:10px;width:100%;margin:16px 0 0;
  padding:12px 14px;border:1.5px dashed var(--or,#FF5A1F);border-radius:12px;
  background:#FFF7F2;color:var(--ink,#0F1115);font:inherit;font-size:14px;cursor:pointer;
  text-align:start}
.njd-fcaddo:hover{background:#FFF0E7}
.njd-fcaddo .ic{flex:0 0 auto;width:24px;height:24px;border-radius:50%;
  background:var(--or,#FF5A1F);color:#fff;display:grid;place-items:center;font-size:17px;line-height:1}
.njd-fcaddo .tx{flex:1 1 auto}
.njd-fcaddo em{font-style:normal;font-size:12px;color:var(--or,#FF5A1F);white-space:nowrap}

/* ---- payment ----------------------------------------------------------- */
.njd-fcpay #payment{background:none;border:0;padding:0}
.njd-fcpay ul.wc_payment_methods{list-style:none;margin:0 0 14px;padding:0}
.njd-fcpay .wc_payment_method > label{display:flex;align-items:center;gap:9px;
  font-size:14px;color:var(--ink,#0F1115);margin:0;padding:12px 0}
.njd-fcpay .payment_box{background:var(--card,#F4F4F5);border-radius:10px;
  padding:14px 16px;font-size:12.5px;color:var(--mut,#6E7379);line-height:1.75}
.njd-fcpay .payment_box p:last-child{margin-bottom:0}
.njd-fc #place_order{width:100%;background:var(--or,#FF5A1F);color:#fff;border:0;
  border-radius:12px;padding:17px 20px;font-size:17px;font-weight:700;font-family:inherit;
  cursor:pointer;line-height:1.4}
.njd-fc #place_order:hover{background:var(--or-d,#E8430A)}
.njd-fc .woocommerce-terms-and-conditions-wrapper{font-size:12px;color:var(--mut-2,#8A9099);
  line-height:1.7;margin-bottom:12px}
.njd-fctrust{display:flex;align-items:center;justify-content:center;gap:7px;
  margin:14px 0 0;font-size:12.5px;color:var(--mut,#6E7379);text-align:center}
.njd-fctrust svg{width:14px;height:14px;flex:0 0 auto}

/* ---- the add-ons sheet ------------------------------------------------- */
.njd-fcpop{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;
  justify-content:center;padding:20px}
.njd-fcpop[hidden]{display:none}
.njd-fcpop .bg{position:absolute;inset:0;background:rgba(15,17,21,.55);opacity:0;
  transition:opacity .2s}
.njd-fcpop .sh{position:relative;width:100%;max-width:680px;max-height:calc(100vh - 40px);
  overflow:auto;background:#fff;border-radius:20px;padding:26px 24px 20px;
  box-shadow:0 30px 80px -20px rgba(15,17,21,.45);
  transform:translateY(24px) scale(.98);opacity:0;transition:transform .22s,opacity .22s}
.njd-fcpop.is-in .bg{opacity:1}
.njd-fcpop.is-in .sh{transform:none;opacity:1}
.njd-fcpop .x{position:absolute;top:12px;inset-inline-end:12px;width:36px;height:36px;
  border-radius:50%;border:0;background:#F1F1F3;color:var(--ink,#0F1115);font-size:22px;
  line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.njd-fcpop .x:hover{background:#E6E6E9}
.njd-fcpop h2{font-size:20px;margin:0 0 4px;padding-inline-end:44px;line-height:1.4}
.njd-fcpop .sb{font-size:13px;color:var(--mut,#6E7379);margin:0 0 16px}

.njd-fcpop .trk{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:2px 2px 10px;scrollbar-width:none;overscroll-behavior-x:contain}
.njd-fcpop .trk::-webkit-scrollbar{display:none}
.njd-fcoff{flex:0 0 calc(50% - 7px);scroll-snap-align:start;display:flex;flex-direction:column;
  border:1px solid var(--line,#E8E8EA);border-radius:14px;padding:12px;background:#fff;
  transition:border-color .15s,background .15s}
.njd-fcoff.is-on{border-color:#1E9E5A;background:#F3FBF6}
.njd-fcoff.is-busy{opacity:.55;pointer-events:none}
.njd-fcoff .im{position:relative;aspect-ratio:4/3;border-radius:10px;background:#F4F4F5;
  overflow:hidden;margin-bottom:12px}
.njd-fcoff .im img{width:100%;height:100%;object-fit:contain;display:block}
.njd-fcoff .im em{position:absolute;top:8px;inset-inline-start:8px;font-style:normal;
  font-size:12px;font-weight:700;background:var(--or,#FF5A1F);color:#fff;border-radius:20px;
  padding:3px 9px}
.njd-fcoff h3{font-size:15px;margin:0 0 6px;line-height:1.5}
.njd-fcoff p{font-size:12.5px;color:var(--mut,#6E7379);line-height:1.75;margin:0 0 10px}
.njd-fcoff .pr{display:flex;align-items:baseline;gap:9px;margin:auto 0 10px}
.njd-fcoff .pr del{color:var(--mut-2,#8A9099);font-size:13px}
.njd-fcoff .pr b{font-size:19px;color:var(--or,#FF5A1F)}
.njd-fcoff .go{width:100%;border:0;border-radius:10px;padding:11px 12px;font:inherit;
  font-size:14px;font-weight:700;cursor:pointer;background:var(--ink,#0F1115);color:#fff}
.njd-fcoff .go .r{display:none}
.njd-fcoff.is-on .go{background:#1E9E5A}
.njd-fcoff.is-on .go .a{display:none}
.njd-fcoff.is-on .go .r{display:inline}

.njd-fcpop .nav{display:flex;justify-content:center;gap:10px;margin:6px 0 4px}
.njd-fcpop .nav button{width:36px;height:36px;border-radius:50%;border:1px solid var(--line,#E8E8EA);
  background:#fff;font-size:22px;line-height:1;cursor:pointer;color:var(--ink,#0F1115);
  display:grid;place-items:center;padding:0}
.njd-fcpop .nav button:hover{border-color:var(--ink,#0F1115)}
.njd-fcpop .done{display:block;width:100%;margin:12px 0 0;border:0;border-radius:12px;
  padding:14px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;
  background:var(--or,#FF5A1F);color:#fff}

@media (max-width:640px){
  .njd-fccard{padding:20px 16px 18px;border-radius:14px}
  /* a bottom sheet on a phone */
  .njd-fcpop{align-items:flex-end;padding:0}
  .njd-fcpop .sh{border-radius:20px 20px 0 0;max-height:88vh;padding:22px 16px 16px;
    transform:translateY(100%)}
  .njd-fcoff{flex-basis:78%}
}

/* ---- the coupon: the wide text-input rule above must not swallow the button */
.njd-fc .njd-cp .in{display:flex;gap:8px}
.njd-fc .njd-cp .fld{width:auto;flex:1 1 auto;min-width:0;padding:0 13px;height:44px}
.njd-fc .njd-cp .go{display:inline-block;flex:0 0 auto;height:44px;padding:0 18px;border:0;
  border-radius:10px;background:var(--ink,#0F1115);color:#fff;font:inherit;font-size:14px;
  font-weight:700;cursor:pointer;visibility:visible}
.njd-fc .njd-cp .go:hover{background:var(--or,#FF5A1F)}

/* ---- remove a line --------------------------------------------------------- */
.njd-fcorder td.product-total{position:relative}
.njd-rm,.njd-lcit .rm{display:inline-grid;place-items:center;width:26px;height:26px;
  margin-inline-start:10px;border-radius:50%;background:#F1F1F3;color:var(--mut,#6E7379);
  font-size:17px;line-height:1;text-decoration:none;vertical-align:middle;flex:0 0 auto}
.njd-rm:hover,.njd-lcit .rm:hover{background:#FDE8E1;color:#D4380D}

/* ---- the one-line sign-in on the shop checkout ------------------------------ */
.njd-fc .njd-coauth{background:none;border:0;box-shadow:none;padding:0;margin:0 2px 12px}
.njd-fc .njd-coauth .hd{gap:6px;justify-content:flex-start}
.njd-fc .njd-coauth .hd em,.njd-fc .njd-coauth .hd i,.njd-fc .njd-coauth .tg.gh{display:none}
.njd-fc .njd-coauth .hd b{font-size:13.5px;font-weight:400;color:var(--mut,#6E7379)}
.njd-fc .njd-coauth .ac{margin:0}
.njd-fc .njd-coauth .tg{margin:0;padding:0;border:0;background:none;font-size:13.5px;
  font-weight:700;color:var(--or,#FF5A1F);text-decoration:underline;text-underline-offset:3px}
.njd-fc .njd-coauth .tg:hover{background:none}
.njd-fc > .woocommerce-notices-wrapper:empty{display:none}

/* ---- the cart --------------------------------------------------------------- */
.njd-lcit{list-style:none;margin:8px 0 0;padding:0}
.njd-lcit li{display:flex;align-items:center;gap:12px;padding:12px 0;
  border-bottom:1px solid var(--line,#E8E8EA)}
.njd-lcit .cv{flex:0 0 52px;width:52px;height:52px;border-radius:8px;background:#F4F4F5;
  display:grid;place-items:center;overflow:hidden}
.njd-lcit .cv img{width:100%;height:100%;object-fit:contain}
.njd-lcit .tx{flex:1 1 auto;min-width:0}
.njd-lcit .tx b{display:block;font-size:14px;line-height:1.5}
.njd-lcit .tx b a{color:inherit;text-decoration:none}
.njd-lcit .tx i{display:block;font-style:normal;font-size:12.5px;color:var(--mut,#6E7379)}
.njd-lcit .pr{font-weight:700;font-size:14px;white-space:nowrap}
.njd-lcrow{display:flex;justify-content:space-between;align-items:baseline;margin:12px 0 0;font-size:14px}
.njd-lcrow.dc{color:#177A3C}
.njd-lcrow.gt{font-size:18px;font-weight:700;margin-top:16px}
.njd-lcrow.gt b{color:var(--or,#FF5A1F)}
.njd-lcgo{margin:16px 0 0}
.njd-lcgo .checkout-button{display:block;width:100%;text-align:center;background:var(--or,#FF5A1F);
  color:#fff;border-radius:12px;padding:16px 20px;font-size:17px;font-weight:700;text-decoration:none}
.njd-lcgo .checkout-button:hover{background:var(--or-d,#E8430A);color:#fff}
.njd-lc .woocommerce-cart-form{margin:0}
