/* עגלה וקופה: גרסה ב׳ "בהיר ושקט", עם פס כותרת בכחול הלילה */
:root{
  --night:#1d2257; --night-2:#2b2f78; --dusk:#4b3f8f; --violet:#7b5cc4;
  --moon:#ffd66b; --cream:#ece5fa; --mist:#f6f3fd; --line:#d6cdee;
  --ink:#23234a; --ink-soft:#544d78; --ok:#2f7d4f; --err:#b3261e;
  --gutter:16px;
}
html{-webkit-text-size-adjust:100%;background:#fbfaff!important}
body.mz-shop{min-height:100vh;display:flex;flex-direction:column}
body.mz-shop .mz-main{flex:1;width:100%}
body.mz-shop{margin:0;background:#fbfaff;color:var(--ink);font:16px/1.6 "Rubik",system-ui,sans-serif;direction:rtl}
.mz-shop *,.mz-shop *::before,.mz-shop *::after{box-sizing:border-box}
.mz-shop img{max-width:100%;height:auto}
.mz-shop a{color:inherit}
.mz-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mz-hide{display:none!important}

/* כותרת */
.mz-hdr{background:var(--night);color:#fff}
.mz-hdr-in{max-width:1120px;margin:0 auto;padding:8px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}
.mz-brand img{height:44px;width:auto;display:block}
.mz-secure,.mz-back{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;color:#c9cdf5;text-decoration:none}
.mz-secure svg,.mz-back svg{width:16px;height:16px;flex:none}
.mz-back:hover{color:var(--moon)}
@media (max-width:420px){.mz-secure{display:none}}

.mz-main{max-width:1120px;margin:0 auto;padding:22px var(--gutter) 44px}
.mz-title{font:600 1.6rem/1.2 "Fredoka","Rubik",sans-serif;color:var(--night);margin:0 0 14px}
.mz-foot{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 20px;padding:20px var(--gutter) 28px;border-top:1px solid var(--line);font-size:.88rem;color:var(--ink-soft)}
.mz-foot a{text-decoration:none}
.mz-foot a:hover{text-decoration:underline}

/* הודעות */
.mz-shop .woocommerce-error,.mz-shop .woocommerce-message,.mz-shop .woocommerce-info,.mz-shop .woocommerce-NoticeGroup{grid-column:1/-1}
.mz-shop .woocommerce-error,.mz-shop .woocommerce-message,.mz-shop .woocommerce-info{list-style:none;margin:0 0 16px;padding:12px 16px;border-radius:12px;background:var(--mist);border-inline-start:4px solid var(--violet);font-size:.95rem}
.mz-shop .woocommerce-error{border-color:var(--err);background:#fdf0ef}
.mz-shop .woocommerce-error li{margin:2px 0}
.mz-shop .woocommerce-message{border-color:var(--ok)}
.mz-shop .woocommerce-form-coupon-toggle,.mz-shop form.checkout_coupon,.mz-shop .woocommerce-form-login-toggle{display:none!important}

/* כפתורים */
.mz-shop .button,.mz-shop button.button,.mz-shop #place_order,.mz-shop .checkout-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border:0;border-radius:99px;
  font:600 1rem "Fredoka","Rubik",sans-serif;background:var(--night);color:#fff;cursor:pointer;text-decoration:none;transition:transform .15s}
.mz-shop .button:hover{transform:translateY(-1px)}
.mz-shop #place_order,.mz-shop .checkout-button{width:100%;min-height:58px;font-size:1.15rem;background:var(--moon);color:var(--night);box-shadow:0 8px 22px -8px rgba(255,214,107,.85)}
.mz-shop :focus-visible{outline:3px solid var(--violet);outline-offset:2px}

/* שדות */
.mz-shop .form-row{margin:0;padding:0}
.mz-shop .form-row label{display:block;font-size:.88rem;font-weight:500;color:var(--ink-soft);margin:0 0 4px}
.mz-shop .form-row .required{color:var(--err);text-decoration:none}
.mz-shop .form-row .optional{display:none}
.mz-shop input.input-text,.mz-shop textarea,.mz-shop select{
  display:block;width:100%;font:400 1rem "Rubik",sans-serif;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;min-height:50px}
.mz-shop textarea{min-height:90px;resize:vertical}
.mz-shop input.input-text:focus,.mz-shop textarea:focus{outline:none;border-color:var(--violet);box-shadow:0 0 0 3px rgba(123,92,196,.18)}
.mz-shop .woocommerce-invalid input.input-text{border-color:var(--err)}
.mz-shop #billing_phone,.mz-shop #billing_email{direction:ltr;text-align:right}

/* ---------- קופה ---------- */
.mz-shop form.checkout{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.mz-shop #order_review_heading{display:none}
.mz-shop #customer_details{order:1}
.mz-shop form.checkout > .mz-pay-h{order:2}
.mz-shop #payment{order:3}
.mz-shop #order_review{order:0;background:var(--mist);border-radius:18px;padding:18px 16px;margin-bottom:8px}
.mz-shop .col2-set .col-1,.mz-shop .col2-set .col-2{width:auto;float:none;padding:0;margin:0}
.mz-shop .woocommerce-shipping-fields{display:none}
.mz-shop .woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mz-shop .woocommerce-billing-fields__field-wrapper > *{grid-column:1/-1}
.mz-shop #billing_first_name_field{grid-column:1}
.mz-shop #billing_last_name_field{grid-column:2}
.mz-step{display:flex;align-items:center;gap:10px;font:600 1.12rem "Fredoka","Rubik",sans-serif;color:var(--night);margin:22px 0 4px}
.mz-step small{font:400 .85rem "Rubik";color:var(--ink-soft)}
.woocommerce-billing-fields__field-wrapper > .mz-step:first-child{margin-top:8px}
.mz-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--moon);color:var(--night);font:700 .9rem "Rubik"}
.mz-shop .woocommerce-additional-fields__field-wrapper{display:grid;gap:10px}

.mz-ship{display:grid;gap:8px}
.mz-ch{display:flex;align-items:center;gap:12px;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;min-height:56px}
.mz-ch input{accent-color:var(--night);width:20px;height:20px;margin:0;flex:none}
.mz-lbl{flex:1;line-height:1.3}
.mz-lbl small{display:block;color:var(--ink-soft);font-size:.82rem}
.mz-pr{font-weight:500;white-space:nowrap}
.mz-ch.on{border-color:var(--night);box-shadow:inset 0 0 0 1px var(--night)}

/* תשלום */
.mz-shop #payment{background:none;border-radius:0;margin-top:0}
.mz-shop #payment ul.payment_methods{list-style:none;margin:0;padding:0;display:grid;gap:8px;border:0}
.mz-shop #payment li.wc_payment_method{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;margin:0}
.mz-shop #payment li.wc_payment_method:has(input:checked){border-color:var(--night);box-shadow:inset 0 0 0 1px var(--night)}
.mz-shop #payment li.wc_payment_method > input{accent-color:var(--night);width:20px;height:20px;margin:0 0 0 10px;vertical-align:middle}
.mz-shop #payment li.wc_payment_method > label{display:inline;font-weight:500;cursor:pointer}
.mz-shop #payment li.wc_payment_method > label img{display:inline-block;max-height:24px;width:auto;vertical-align:middle;margin-inline-start:6px}
.mz-shop #payment .about_paypal{font-size:.82rem;margin-inline-start:6px}
.mz-shop #payment .payment_box{margin:10px 0 0;padding:10px 12px;background:var(--mist);border-radius:10px;font-size:.9rem;color:var(--ink-soft)}
.mz-shop #payment .payment_box::before{display:none}
.mz-shop #payment .payment_box p:last-child{margin-bottom:0}
.mz-shop #payment div.form-row.place-order{padding:0;margin-top:18px}
.mz-shop .woocommerce-privacy-policy-text{font-size:.82rem;color:var(--ink-soft);text-align:center;margin-bottom:12px}
.mz-shop .woocommerce-privacy-policy-text p{margin:0}
.mz-shop .woocommerce-terms-and-conditions-wrapper{margin-bottom:12px}

/* סיכום ההזמנה */
.mz-sum-title{font:600 1.25rem "Fredoka","Rubik",sans-serif;color:var(--night);margin:0 0 10px}
.mz-shop table.woocommerce-checkout-review-order-table{width:100%;border-collapse:collapse;border:0;margin:0;font-size:.95rem}
.mz-shop .woocommerce-checkout-review-order-table thead{display:none}
.mz-shop .woocommerce-checkout-review-order-table td,.mz-shop .woocommerce-checkout-review-order-table th{border:0;padding:6px 0;background:none;text-align:right;font-weight:400;vertical-align:middle}
.mz-shop .woocommerce-checkout-review-order-table td:last-child{text-align:left;white-space:nowrap;font-weight:500}
.mz-shop .woocommerce-checkout-review-order-table .cart_item td{padding:8px 0}
.mz-shop .woocommerce-checkout-review-order-table .product-name{display:flex;align-items:center;gap:12px;line-height:1.3}
.mz-thumb{flex:none;position:relative}
.mz-thumb img{width:56px;height:56px;object-fit:cover;display:block;background:#fff}
.mz-nm{flex:1}
.mz-shop .product-quantity{font-weight:400;color:var(--ink-soft);white-space:nowrap}
.mz-shop .woocommerce-checkout-review-order-table tfoot tr:first-child th,.mz-shop .woocommerce-checkout-review-order-table tfoot tr:first-child td{border-top:1px solid var(--line);padding-top:12px}
.mz-shop .woocommerce-checkout-review-order-table .order-total th,.mz-shop .woocommerce-checkout-review-order-table .order-total td{border-top:1px solid var(--line);padding-top:12px;font:600 1.3rem "Fredoka","Rubik",sans-serif;color:var(--night)}
.mz-shop .woocommerce-checkout-review-order-table .order-total small{display:block;font:400 .78rem "Rubik";color:var(--ink-soft)}
/* שיטת המשלוח נבחרת בטור הפרטים. כאן רואים רק את המחיר */
.mz-shop #shipping_method{list-style:none;margin:0;padding:0}
.mz-shop #shipping_method li{display:none;margin:0}
.mz-shop #shipping_method li:has(input:checked),.mz-shop #shipping_method li:only-child{display:block}
.mz-shop #shipping_method input{display:none}
.mz-shop .woocommerce-shipping-totals td{font-weight:400}
.mz-shop .woocommerce-shipping-totals td label{display:inline}
.mz-shop .woocommerce-shipping-destination,.mz-shop .woocommerce-shipping-calculator{display:none}

.mz-upsell{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:12px;border:1.5px dashed var(--violet);border-radius:12px;margin-top:14px}
.mz-upsell[hidden]{display:none}
.mz-upsell img{width:48px;height:48px;object-fit:cover;display:block;background:#fff}
.mz-up-txt{font-size:.92rem;line-height:1.3}
.mz-up-txt b{font-weight:500}
.mz-up-txt small{display:block;color:var(--ink-soft)}
.mz-add{border:0;border-radius:99px;padding:9px 16px;font:600 .9rem "Fredoka","Rubik";background:var(--night);color:#fff;cursor:pointer}
.mz-coupon{margin-top:12px;font-size:.9rem}
.mz-link{background:none;border:0;padding:0;color:var(--dusk);text-decoration:underline;cursor:pointer;font:inherit}
.mz-cbox{display:flex;gap:8px;margin-top:8px}
.mz-cbox[hidden]{display:none}
.mz-cbox input{flex:1;min-width:0;font:inherit;border-radius:10px;border:1.5px solid var(--line);padding:9px 12px;background:#fff}
.mz-cbtn{border:1.5px solid var(--night);background:#fff;color:var(--night);border-radius:10px;padding:0 14px;font:500 .9rem "Rubik";cursor:pointer}
.mz-cmsg:empty{display:none}
.mz-cmsg{margin-top:8px}
.mz-cmsg .woocommerce-error,.mz-cmsg .woocommerce-message{margin:0}

/* טעינה ברקע של WooCommerce */
.mz-shop .blockUI.blockOverlay{background:rgba(251,250,255,.6)!important}

@media (min-width:900px){
  .mz-main{padding:34px var(--gutter) 60px}
  .mz-title{font-size:1.9rem;margin-bottom:20px}
  .mz-shop form.checkout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:48px;align-items:start}
  .mz-shop #customer_details{grid-column:1;grid-row:1}
  .mz-shop form.checkout > .mz-pay-h{grid-column:1;grid-row:2}
  .mz-shop #payment{grid-column:1;grid-row:3}
  .mz-shop #order_review{grid-column:2;grid-row:1/span 3;position:sticky;top:20px;padding:26px 26px 22px;margin:0}
  .mz-shop #billing_phone_field,.mz-shop #billing_address_1_field{grid-column:1}
  .mz-shop #billing_email_field,.mz-shop #billing_city_field{grid-column:2}
  .mz-thumb img{width:64px;height:64px}
}

/* ---------- עגלה ---------- */
.mz-shop .woocommerce-cart-form{margin:0}
.mz-shop table.shop_table.cart{width:100%;border-collapse:collapse;border:0}
.mz-shop table.cart thead{display:none}
.mz-shop table.cart td{border:0;border-bottom:1px solid var(--line);padding:12px 6px;vertical-align:middle;background:none}
.mz-shop table.cart .product-thumbnail img{width:72px;height:72px;object-fit:cover;display:block}
.mz-shop table.cart .product-name a{text-decoration:none;font-weight:500}
.mz-shop table.cart .product-remove a{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--mist);text-decoration:none;color:var(--ink-soft);font-size:1.2rem}
.mz-shop table.cart .quantity{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:99px;background:#fff}
.mz-shop table.cart .quantity input{width:46px;min-height:42px;text-align:center;padding:6px 0;border:0;background:none;-moz-appearance:textfield;font-weight:700}
.mz-shop table.cart .quantity input::-webkit-inner-spin-button,.mz-shop table.cart .quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.mz-shop .mz-step-btn{width:38px;height:42px;border:0;background:none;font-size:1.25rem;line-height:1;cursor:pointer;color:var(--night)}
.mz-shop .mz-sum-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.mz-shop .mz-edit-cart{font:500 .92rem "Rubik",sans-serif;color:var(--violet)}
.mz-shop table.cart td.actions{border:0;padding-top:16px}
.mz-shop table.cart td.actions .coupon{display:flex;gap:8px;margin-bottom:10px}
.mz-shop table.cart td.actions .coupon label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.mz-shop table.cart td.actions .coupon input{flex:1;min-width:0;min-height:48px}
.mz-shop button[name="update_cart"]{background:#fff;color:var(--night);box-shadow:inset 0 0 0 1.5px var(--night)}
.mz-shop button[name="update_cart"]:disabled{opacity:.5}
.mz-shop form.mz-auto button[name="update_cart"]{display:none}
.mz-shop .cart-collaterals{margin-top:22px}
.mz-shop .cart_totals{background:var(--mist);border-radius:18px;padding:20px 18px;width:auto;float:none}
.mz-shop .cart_totals h2{font:600 1.25rem "Fredoka","Rubik",sans-serif;color:var(--night);margin:0 0 8px}
.mz-shop .cart_totals table{width:100%;border:0;border-collapse:collapse}
.mz-shop .cart_totals th,.mz-shop .cart_totals td{border:0;padding:6px 0;text-align:right;background:none;font-weight:400}
.mz-shop .cart_totals td{text-align:left}
.mz-shop .cart_totals .order-total th,.mz-shop .cart_totals .order-total td{border-top:1px solid var(--line);padding-top:12px;font:600 1.3rem "Fredoka","Rubik",sans-serif;color:var(--night)}
.mz-shop .wc-proceed-to-checkout{padding:14px 0 0}
.mz-shop .cart-empty{font-size:1.1rem}
.mz-shop .return-to-shop .button{margin-top:10px}
@media (max-width:640px){
  .mz-shop table.cart .product-price{display:none}
  .mz-shop table.cart td{padding:10px 4px}
  .mz-shop table.cart .product-thumbnail img{width:56px;height:56px}
}
@media (min-width:900px){
  .mz-shop .woocommerce:has(.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:48px;align-items:start}
  .mz-shop .cart-collaterals{margin-top:0;position:sticky;top:20px}
  .mz-shop .woocommerce-notices-wrapper{grid-column:1/-1}
}

/* עמוד תודה */
.mz-shop .woocommerce-order-overview{list-style:none;padding:16px;margin:0 0 20px;background:var(--mist);border-radius:14px;display:grid;gap:6px}
.mz-shop .woocommerce-thankyou-order-received{font-size:1.1rem;font-weight:500}
.mz-shop .woocommerce-order-details table,.mz-shop .woocommerce-customer-details address{width:100%;border-collapse:collapse;border:0;font-style:normal}
.mz-shop .woocommerce-order-details td,.mz-shop .woocommerce-order-details th{border:0;border-bottom:1px solid var(--line);padding:8px 0;text-align:right}

/* תשלום אחד בלבד: בורר התשלומים של Morning מוסתר (ברירת המחדל שלו היא 1) */
.mz-shop .greeninvoice-installments-wrapper,.mz-shop .morning-installments-wrapper{display:none!important}

/* אישור התקנון ליד כפתור התשלום */
.mz-shop .woocommerce-privacy-policy-text{font-size:.85rem;color:var(--ink-soft);margin:14px 0 6px}
.mz-shop .woocommerce-terms-and-conditions-wrapper .form-row{margin:6px 0 14px}
.mz-shop .woocommerce-terms-and-conditions-wrapper label.checkbox{display:flex;gap:10px;align-items:flex-start;font-size:.95rem;line-height:1.45;cursor:pointer}
.mz-shop .woocommerce-terms-and-conditions-wrapper input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:var(--night)}
.mz-shop .woocommerce-terms-and-conditions-wrapper a,.mz-shop .woocommerce-privacy-policy-text a{color:var(--violet);font-weight:500}
.mz-shop .woocommerce-terms-and-conditions-wrapper .required{color:#b4426a;text-decoration:none}
