/* محزم — سلة ودفع بأسلوب سلّة. Scoped to body.mhzm-sc (cart, checkout, order received). */
.mhzm-sc {
	--sc-navy: #192655;
	--sc-blue: #3876BF;
	--sc-caramel: #E1AA74;
	--sc-cream: #F3F0CA;
	--sc-sky: #47C5FB;
	--sc-bg: #F4F5F8;
	--sc-card: #fff;
	--sc-text: #1d2233;
	--sc-muted: #6b7183;
	--sc-line: #E3E6EE;
	--sc-err: #C62828;
	--sc-err-bg: #FDECEC;
	--sc-ok: #1E7F4F;
	--sc-ok-bg: #E8F6EE;
	--sc-r: 14px;
}
body.mhzm-sc { background: var(--sc-bg); }

/* Theme chrome these pages don't need */
.mhzm-sc .page-title, .mhzm-sc .wd-page-title, .mhzm-sc .woocommerce-breadcrumb,
.mhzm-sc .wd-checkout-steps, .mhzm-sc .checkout-steps,
.mhzm-sc-checkout .woocommerce-form-coupon-toggle, .mhzm-sc-checkout form.checkout_coupon,
.mhzm-sc-checkout .woocommerce-form-login-toggle, .mhzm-sc-checkout .woocommerce-form-login,
.mhzm-sc-checkout .wd-footer, .mhzm-sc-checkout .footer-container, .mhzm-sc-checkout footer.main-footer,
.mhzm-sc-cart .wd-footer, .mhzm-sc-cart .footer-container, .mhzm-sc-cart footer.main-footer,
.mhzm-sc-checkout .mhzm-floating, .mhzm-sc-checkout .wd-sticky-social, .mhzm-sc-checkout .floating-content-box,
.mhzm-sc-thanks .woocommerce-thankyou-order-received,
.mhzm-sc-hidden { display: none !important; }

.mhzm-sc .main-page-wrapper, .mhzm-sc .site-content { background: transparent; }
.mhzm-sc main.wd-content-layout { padding-top: 8px !important; padding-bottom: 0 !important; }
.mhzm-sc-wrap {
	max-width: 1080px; margin: 0 auto; padding: 16px 16px 120px;
	color: var(--sc-text); font-size: 16px; line-height: 1.6; direction: rtl;
}
.mhzm-sc-wrap *, .mhzm-sc-wrap *::before, .mhzm-sc-wrap *::after { box-sizing: border-box; }
.mhzm-sc-wrap svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mhzm-sc-h1 { font-size: 22px; font-weight: 800; margin: 0; color: var(--sc-navy); }
.mhzm-sc-h1-count { font-size: 15px; font-weight: 500; color: var(--sc-muted); }
.mhzm-sc-muted { color: var(--sc-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.mhzm-sc .mhzm-sc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
	font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
	transition: background-color .15s, opacity .15s, transform .1s;
}
.mhzm-sc .mhzm-sc-btn:active { transform: scale(.985); }
.mhzm-sc .mhzm-sc-btn-primary { background: var(--sc-navy); color: #fff; }
.mhzm-sc .mhzm-sc-btn-primary:hover { background: #22336f; color: #fff; }
.mhzm-sc .mhzm-sc-btn-ghost { background: #fff; color: var(--sc-navy); border-color: var(--sc-line); }
.mhzm-sc .mhzm-sc-btn[disabled], .mhzm-sc .mhzm-sc-btn.is-busy { opacity: .65; pointer-events: none; }
.mhzm-sc .is-busy { position: relative; color: transparent !important; }
.mhzm-sc .is-busy::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
	border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: mhzm-sc-spin .7s linear infinite;
}
.mhzm-sc .mhzm-sc-btn-ghost.is-busy::after { border-color: rgba(25,38,85,.25); border-top-color: var(--sc-navy); }
@keyframes mhzm-sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mhzm-sc .is-busy::after { animation-duration: 2s; } }
.mhzm-sc .mhzm-sc-link {
	background: none; border: 0; padding: 8px 0; color: var(--sc-blue); font: inherit; font-size: 15px;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
}
.mhzm-sc-msg { margin: 6px 0 0; font-size: 14px; min-height: 0; }
.mhzm-sc-msg:empty { display: none; }
.mhzm-sc-msg.is-error { color: var(--sc-err); }
.mhzm-sc-msg.is-ok { color: var(--sc-ok); }

/* Inputs */
.mhzm-sc-wrap input.input-text, .mhzm-sc-wrap input[type="text"], .mhzm-sc-wrap input[type="tel"], .mhzm-sc-wrap input[type="email"],
.mhzm-sc-wrap input[type="search"], .mhzm-sc-wrap select, .mhzm-sc-wrap textarea {
	width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--sc-line); border-radius: 12px;
	background: #fff; color: var(--sc-text); font: inherit; font-size: 16px; box-shadow: none; outline: none;
}
.mhzm-sc-wrap input:focus, .mhzm-sc-wrap select:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(56,118,191,.15); }
.mhzm-sc-wrap [aria-invalid="true"], .mhzm-sc-wrap .woocommerce-invalid input, .mhzm-sc-wrap .woocommerce-invalid select { border-color: var(--sc-err) !important; }
.mhzm-sc-label, .mhzm-sc-wrap .form-row label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--sc-text); }
.mhzm-sc-label span, .mhzm-sc-wrap .form-row label .optional { color: var(--sc-muted); font-weight: 400; }
.mhzm-sc-wrap .form-row { margin: 0 0 14px; padding: 0; width: 100% !important; float: none !important; }
.mhzm-sc-wrap .form-row .required { color: var(--sc-err); text-decoration: none; }

/* ======================================================= CHECKOUT */
.mhzm-sc-checkout .mhzm-sc-wrap { max-width: 640px; }

/* Summary card */
.mhzm-sc-summary {
	background: var(--sc-card); border-radius: var(--sc-r); padding: 16px 16px 0; margin-bottom: 14px;
	box-shadow: 0 1px 2px rgba(17,24,39,.04); position: relative;
}
.mhzm-sc-summary-head { display: flex; align-items: center; gap: 12px; }
.mhzm-sc-thumbs { display: flex; flex: none; }
.mhzm-sc-thumbs img, .mhzm-sc-thumb {
	width: 46px !important; height: 46px !important; object-fit: contain; border-radius: 50%; background: #fff;
	border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sc-line); margin-inline-start: -14px;
}
.mhzm-sc-thumbs img:first-child { margin-inline-start: 0; }
.mhzm-sc-summary-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mhzm-sc-summary-label { font-size: 17px; font-weight: 800; color: var(--sc-navy); }
.mhzm-sc-count { font-size: 14px; color: var(--sc-muted); }
.mhzm-sc-grand { font-size: 20px; font-weight: 800; color: var(--sc-navy); white-space: nowrap; }
.mhzm-sc-grand small, .mhzm-sc-grand .includes_tax { display: none; }
.mhzm-sc-coupon-toggle { color: #C2410C !important; padding: 6px 0 0 !important; min-height: 36px !important; font-size: 14px !important; }
.mhzm-sc-coupon { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.mhzm-sc-coupon[hidden] { display: none; }
.mhzm-sc-coupon input { flex: 1 1 160px; }
.mhzm-sc-coupon .mhzm-sc-btn { width: auto; flex: 0 0 auto; min-width: 96px; }
.mhzm-sc-coupon .mhzm-sc-msg { flex-basis: 100%; }
.mhzm-sc-pill {
	display: flex; align-items: center; gap: 6px; margin: 12px auto -18px; position: relative; z-index: 1;
	background: #fff; border: 1px solid #cfd4de; border-radius: 999px; padding: 8px 18px; min-height: 40px;
	font: inherit; font-size: 15px; color: var(--sc-text); cursor: pointer;
}
.mhzm-sc-pill svg { transition: transform .2s; }
.mhzm-sc-pill.is-open svg { transform: rotate(180deg); }
.mhzm-sc-details { padding: 30px 0 14px; }
.mhzm-sc-details[hidden] { display: none; }
.mhzm-sc-review-copy { width: 100%; border-collapse: collapse; font-size: 15px; }
.mhzm-sc-review-copy th, .mhzm-sc-review-copy td { padding: 8px 0; border: 0; border-bottom: 1px dashed var(--sc-line); text-align: start; vertical-align: top; background: none !important; }
.mhzm-sc-review-copy td:last-child, .mhzm-sc-review-copy th:last-child { text-align: end; white-space: nowrap; }
.mhzm-sc-review-copy thead { display: none; }
.mhzm-sc-review-copy .order-total th, .mhzm-sc-review-copy .order-total td { font-weight: 800; color: var(--sc-navy); border-bottom: 0; }
.mhzm-sc-review-copy .product-quantity { color: var(--sc-muted); }
.mhzm-sc-review-copy ul#shipping_method { list-style: none; margin: 0; padding: 0; }

/* Steps */
.mhzm-sc-form { margin: 0; }
.mhzm-sc-step {
	background: var(--sc-card); border-radius: var(--sc-r); margin-bottom: 12px; padding: 18px 16px;
	box-shadow: 0 1px 2px rgba(17,24,39,.04); transition: opacity .2s;
}
.mhzm-sc-step-head { display: flex; align-items: flex-start; gap: 12px; }
.mhzm-sc-step-head > div { flex: 1; min-width: 0; }
.mhzm-sc-ico { width: 40px; height: 40px; border-radius: 12px; background: #EEF3FB; color: var(--sc-navy); display: flex; align-items: center; justify-content: center; flex: none; }
.mhzm-sc-ico svg { width: 22px; height: 22px; }
.mhzm-sc-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--sc-navy); line-height: 1.4; }
.mhzm-sc-sub { margin: 2px 0 0; font-size: 14px; color: var(--sc-muted); overflow-wrap: anywhere; }
.mhzm-sc-sub b { color: var(--sc-text); }
.mhzm-sc-sub [dir="ltr"] { display: inline-block; color: var(--sc-blue); }
.mhzm-sc-pin { width: 16px !important; height: 16px !important; color: var(--sc-blue); vertical-align: -3px; margin-inline-end: 3px; }
.mhzm-sc-edit {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sc-line); background: #fff; color: var(--sc-text);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.mhzm-sc-edit[hidden] { display: none; }
.mhzm-sc-body { margin-top: 16px; }
.mhzm-sc-step:not(.is-current) .mhzm-sc-body { display: none; }
.mhzm-sc-step.is-locked { opacity: .55; }
.mhzm-sc-step.is-locked .mhzm-sc-ico { background: #F1F2F5; color: var(--sc-muted); }
.mhzm-sc-step.is-done .mhzm-sc-ico { background: var(--sc-ok-bg); color: var(--sc-ok); }
.mhzm-sc-hint { font-size: 13px; color: var(--sc-muted); margin: 10px 0 0; text-align: center; }

/* Phone */
.mhzm-sc-phone { display: flex; direction: ltr; border: 1px solid var(--sc-line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 4px; }
.mhzm-sc-phone:focus-within { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(56,118,191,.15); }
.mhzm-sc-cc { order: -1; display: flex; align-items: center; padding: 0 14px; border-inline-end: 1px solid var(--sc-line); color: var(--sc-text); font-weight: 600; background: #FAFBFC; }
.mhzm-sc-wrap .mhzm-sc-phone input { border: 0 !important; box-shadow: none !important; border-radius: 0; font-size: 18px; letter-spacing: .04em; text-align: left; }
.mhzm-sc-pane .mhzm-sc-btn { margin-top: 12px; }

/* OTP */
.mhzm-sc-otp-head { display: flex; align-items: center; gap: 12px; text-align: center; }
.mhzm-sc-otp-head p { flex: 1; margin: 0; color: var(--sc-muted); font-size: 15px; }
.mhzm-sc-otp-head strong { color: var(--sc-text); font-size: 17px; }
.mhzm-sc-back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F1F3F7; color: var(--sc-text); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mhzm-sc-otp { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; }
.mhzm-sc-wrap .mhzm-sc-otp input { min-height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; }
.mhzm-sc-resend { text-align: center; margin: 8px 0 0; font-size: 14px; color: var(--sc-muted); }
.mhzm-sc-resend b { color: var(--sc-text); }
.mhzm-sc-resend [hidden] { display: none; }

/* Address */
.mhzm-sc-search { position: relative; margin-bottom: 10px; }
.mhzm-sc-wrap .mhzm-sc-search input { padding-inline-end: 52px; }
.mhzm-sc-search-go { position: absolute; inset-inline-end: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--sc-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mhzm-sc-map { position: relative; border-radius: 12px; overflow: hidden; background: #EEF1F5; min-height: 120px; }
.mhzm-sc-map #lpac-map-container { margin: 0 !important; padding: 0 !important; display: block !important; }
.mhzm-sc-map .lpac-map { height: 300px !important; border-radius: 12px; }
.mhzm-sc-map .lpac-map-controls { display: none !important; } /* Kikote's own button and text: replaced by ours */
.mhzm-sc-locate {
	position: absolute; inset-inline-start: 10px; bottom: 34px; width: 46px; height: 46px; border-radius: 10px; border: 0;
	background: #fff; color: var(--sc-navy); box-shadow: 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mhzm-sc-map-off { padding: 18px; text-align: center; }
.mhzm-sc-map-off[hidden] { display: none; }
.mhzm-sc-map-addr { margin: 8px 0 0; font-size: 14px; color: var(--sc-muted); }
.mhzm-sc-map-addr:empty { display: none; }
.mhzm-sc-step[data-step="address"].is-manual .mhzm-sc-map-mode { display: none; }
.mhzm-sc-step[data-step="address"].is-map .mhzm-sc-address-fields { display: none; }
.mhzm-sc-address-fields { margin-top: 4px; }
.mhzm-sc-address-fields h3, .mhzm-sc-address-fields .woocommerce-billing-fields > h3 { display: none; }
.mhzm-sc-house { margin-top: 14px; }
.mhzm-sc-step[data-step="address"] .mhzm-sc-btn { margin-top: 14px; }
.mhzm-sc-mode-switch { display: block; margin: 4px auto 0; text-decoration: none !important; color: var(--sc-muted) !important; }
.mhzm-sc-mode-switch[hidden] { display: none; }
.mhzm-sc-shipping-fields { display: none !important; }

/* Payment — builds on production snippet 46 (logo grid, badges, radio dot) with Salla's layout:
   radio dot on the right, brand marks on the left, the selected method's fields below the grid. */
.mhzm-sc-checkout #order_review { background: none; padding: 0; margin: 0; border: 0; box-shadow: none; }
.mhzm-sc-checkout #order_review .woocommerce-checkout-review-order-table { display: none; }
.mhzm-sc-checkout #payment { background: none !important; border: 0; padding: 0; margin: 0; border-radius: 0; }
.mhzm-sc-checkout #payment ul.wc_payment_methods.payment_methods { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 !important; }
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
	display: block !important; min-height: 0; border: 1.5px solid var(--sc-line) !important; border-radius: 12px; box-shadow: none; overflow: visible; transform: none !important;
}
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method.is-selected,
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) {
	border: 1.5px solid var(--sc-blue) !important; box-shadow: 0 0 0 3px rgba(56,118,191,.15) !important;
}
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label {
	justify-content: flex-end !important; min-height: 76px !important; padding: 22px 14px 12px !important; padding-inline-start: 46px !important;
	border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 12px !important;
	font-size: 14px !important; color: var(--sc-text) !important; text-align: end !important;
}
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label.has-logos { font-size: 0 !important; color: transparent !important; }
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label > img,
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label > span:not(.mhzm-sc-logos),
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label .mhzm-gw-icon { display: none !important; }
/* radio dot: vertically centred on the right */
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label::after {
	top: 50% !important; transform: translateY(-50%); inset-inline-start: 14px !important; width: 22px !important; height: 22px !important;
}
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) > label::after {
	border-color: var(--sc-blue) !important; background: #fff !important; box-shadow: inset 0 0 0 5px var(--sc-blue) !important;
}
/* badges: small, top-left */
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label::before {
	top: 6px !important; inset-inline-end: 8px !important; font-size: 11px !important; padding: 0 8px !important;
}
.mhzm-sc-logos { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; letter-spacing: normal; }
.mhzm-sc-checkout #payment .mhzm-sc-logos img {
	display: block !important; height: 26px !important; min-height: 0 !important; max-height: 26px !important; width: auto !important; max-width: 92px !important; margin: 0 !important;
}
.mhzm-sc-checkout #payment li[data-gw="moyasar_cc"], .mhzm-sc-checkout #payment li[data-gw="mhzm_dev_sim"] { grid-column: 1 / -1; }
.mhzm-sc-checkout #payment li[data-gw="moyasar_cc"] .mhzm-sc-logos img { height: 22px !important; max-height: 22px !important; }
.mhzm-sc-checkout #payment li[data-gw="tabby_installments"] .mhzm-sc-logos img,
.mhzm-sc-checkout #payment li[data-gw="tamara-gateway"] .mhzm-sc-logos img { height: 30px !important; max-height: 30px !important; }
.mhzm-sc-checkout #payment li[data-gw="moyasar_apple_pay"] .mhzm-sc-logos img { height: 30px !important; max-height: 30px !important; }
.mhzm-sc-payboxes { margin-top: 12px; }
.mhzm-sc-payboxes:empty { display: none; }
.mhzm-sc-checkout #payment .mhzm-sc-payboxes .payment_box {
	margin: 0 !important; padding: 14px !important; background: #F8FAFC !important; border-radius: 12px; border: 1px solid var(--sc-line);
	font-size: 14px; color: var(--sc-text);
}
.mhzm-sc-checkout #payment .payment_box::before { display: none !important; }
.mhzm-sc-checkout #payment .payment_box p:last-child { margin-bottom: 0; }
.mhzm-sc-checkout #payment .payment_box fieldset { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.mhzm-sc-checkout #payment .payment_box .form-row { margin-bottom: 10px; }
.mhzm-sc-checkout #payment .moyasar-cc-expiry-cvc-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mhzm-sc-checkout #payment .moyasar-payment-footer { display: none; }
.mhzm-sc-checkout #payment .form-row.place-order { padding: 0 !important; margin: 16px 0 0; background: none; }
.mhzm-sc-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 8px; }
.mhzm-sc-checkout .woocommerce-privacy-policy-text { display: none; }
.mhzm-sc-checkout #place_order, .mhzm-sc-checkout .mhzm-sc-pay {
	display: flex !important; align-items: center; justify-content: space-between; gap: 10px; width: 100%; float: none;
	min-height: 56px; padding: 12px 20px; border-radius: 14px; border: 0; background: var(--sc-navy) !important; color: #fff !important;
	font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.mhzm-sc-checkout #place_order[data-gw="moyasar_apple_pay"] { background: #000 !important; justify-content: center; }
.mhzm-sc-checkout #place_order .mhzm-sc-pay-total { font-weight: 700; opacity: .92; white-space: nowrap; }
.mhzm-sc-checkout #place_order .mhzm-sc-pay-total:empty { display: none; }
.mhzm-sc-checkout #place_order.is-busy > * { visibility: hidden; }
.mhzm-sc-legal { font-size: 13px; color: var(--sc-muted); margin: 12px 0 0; text-align: center; }
.mhzm-sc-legal a { color: var(--sc-blue); }
.mhzm-sc-step[data-step="payment"] .blockUI.blockOverlay { border-radius: 12px; }

/* WooCommerce notices on these pages */
.mhzm-sc .woocommerce-error, .mhzm-sc .woocommerce-message, .mhzm-sc .woocommerce-info,
.mhzm-sc .wc-block-components-notice-banner {
	border-radius: 12px !important; font-size: 15px; margin: 0 0 12px !important; list-style: none;
}
.mhzm-sc-checkout .woocommerce-NoticeGroup-checkout { max-width: 640px; margin: 0 auto 12px; }

/* ========================================================== CART */
.mhzm-sc-cart-head { margin: 4px 0 14px; }
.mhzm-sc-cart-grid { display: block; }
.mhzm-sc-items { display: flex; flex-direction: column; gap: 12px; }
.mhzm-sc-item {
	display: grid; grid-template-columns: 88px 1fr; gap: 12px 14px; padding: 14px; background: var(--sc-card);
	border-radius: var(--sc-r); box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.mhzm-sc-item-img img { width: 88px !important; height: 88px !important; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #F0F1F4; }
.mhzm-sc-item-info { min-width: 0; }
.mhzm-sc-item-name { display: block; color: var(--sc-text) !important; font-weight: 700; font-size: 15px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.mhzm-sc-item-info dl.variation { margin: 4px 0 0; font-size: 13px; color: var(--sc-muted); display: flex; flex-wrap: wrap; gap: 0 6px; }
.mhzm-sc-item-info dl.variation dt, .mhzm-sc-item-info dl.variation dd { margin: 0; float: none; padding: 0; }
.mhzm-sc-item-info dl.variation dd p { margin: 0; }
.mhzm-sc-item-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--sc-err); font-weight: 800; }
.mhzm-sc-item-price .amount { color: var(--sc-navy); }
.mhzm-sc-was { color: var(--sc-muted); font-weight: 400; font-size: 13px; }
.mhzm-sc-was .amount { color: var(--sc-muted) !important; }
.mhzm-sc-stock { margin: 4px 0 0; font-size: 13px; color: #B45309; }
.mhzm-sc-item-foot {
	grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	border-top: 1px solid #F0F1F4; padding-top: 12px;
}
.mhzm-sc-qty { flex: none; }
.mhzm-sc-qty .quantity { display: inline-flex !important; align-items: center; border: 1px solid var(--sc-line); border-radius: 12px; overflow: hidden; background: #fff; margin: 0 !important; }
.mhzm-sc-qty .quantity input.qty { width: 46px !important; min-height: 44px; border: 0 !important; text-align: center; font-weight: 700; padding: 0; -moz-appearance: textfield; background: #fff; }
.mhzm-sc-qty .quantity input.qty::-webkit-outer-spin-button, .mhzm-sc-qty .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mhzm-sc-qty .quantity .minus, .mhzm-sc-qty .quantity .plus { width: 44px !important; height: 44px !important; min-height: 44px; border: 0 !important; background: #fff !important; font-size: 20px; color: var(--sc-navy); }
.mhzm-sc-item-sub { flex: 1; font-size: 14px; color: var(--sc-muted); white-space: nowrap; }
.mhzm-sc-item-sub .amount { color: var(--sc-blue); font-weight: 800; font-size: 15px; }
.mhzm-sc-remove a.remove {
	display: inline-flex !important; align-items: center; gap: 4px; width: auto !important; height: 36px !important; padding: 0 12px;
	border-radius: 10px; background: var(--sc-err-bg) !important; color: var(--sc-err) !important; font-size: 14px !important; font-weight: 600; line-height: 1;
	text-indent: 0 !important; text-decoration: none; border: 0;
}
.mhzm-sc-remove a.remove svg { width: 16px; height: 16px; }
.mhzm-sc-remove a.remove::before, .mhzm-sc-remove a.remove::after { display: none !important; }
.mhzm-sc-actions { background: var(--sc-card); border-radius: var(--sc-r); padding: 14px; }
.mhzm-sc-inline { display: flex; gap: 8px; }
.mhzm-sc-inline input { flex: 1; min-width: 0; }
.mhzm-sc-inline .mhzm-sc-btn { width: auto; min-width: 96px; }
.mhzm-sc-cart-coupon { margin: 0; float: none !important; width: 100% !important; }
.mhzm-sc-cart-wrap .actions .mhzm-sc-update { display: none !important; }

.mhzm-sc-free {
	display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; align-items: center; margin-top: 12px; padding: 14px;
	background: var(--sc-card); border-radius: var(--sc-r);
}
.mhzm-sc-free-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--sc-blue); color: #fff; display: flex; align-items: center; justify-content: center; grid-row: span 2; }
.mhzm-sc-free-ico svg { width: 24px; height: 24px; }
.mhzm-sc-free-text { display: flex; flex-direction: column; font-size: 14px; color: var(--sc-muted); }
.mhzm-sc-free-text strong { color: var(--sc-navy); font-size: 16px; }
.mhzm-sc-bar { height: 8px; border-radius: 99px; background: #E8ECF3; overflow: hidden; }
.mhzm-sc-bar i { display: block; height: 100%; background: var(--sc-blue); border-radius: inherit; transition: width .4s; }
.mhzm-sc-free.is-done .mhzm-sc-bar i, .mhzm-sc-free.is-done .mhzm-sc-free-ico { background: var(--sc-ok); }

/* Cart summary (desktop card, mobile bottom sheet) */
.mhzm-sc-cart-wrap .cart-collaterals { width: 100%; float: none; margin: 0; }
.mhzm-sc-cart-wrap .cart-collaterals .cross-sells { display: none; }
.mhzm-sc-totals { background: var(--sc-card); border-radius: var(--sc-r); padding: 16px; width: 100% !important; float: none !important; }
.mhzm-sc-totals-toggle { display: none; }
.mhzm-sc-side-title { font-size: 18px; font-weight: 800; color: var(--sc-navy); margin: 0 0 8px; }
.mhzm-sc-rows { width: 100%; border: 0 !important; margin: 0 0 12px !important; border-collapse: collapse; }
.mhzm-sc-rows th, .mhzm-sc-rows td { padding: 9px 0 !important; border: 0 !important; border-bottom: 1px dashed var(--sc-line) !important; font-size: 15px; background: none !important; }
.mhzm-sc-rows th { font-weight: 500; color: var(--sc-muted); text-align: start; }
.mhzm-sc-rows td { text-align: end; font-weight: 700; }
.mhzm-sc-rows .order-total th, .mhzm-sc-rows .order-total td { border-bottom: 0 !important; color: var(--sc-navy); font-size: 17px; font-weight: 800; }
.mhzm-sc-rows .order-total small, .mhzm-sc-rows .includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--sc-muted); }
.mhzm-sc-rows .woocommerce-remove-coupon { font-size: 13px; color: var(--sc-err); }
.mhzm-sc-free-tag { color: var(--sc-ok); }
.mhzm-sc-totals .wc-proceed-to-checkout { padding: 0 !important; margin: 0; }
.mhzm-sc-totals .wc-proceed-to-checkout a.checkout-button {
	display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0 0 6px !important;
	border-radius: 12px; background: var(--sc-navy) !important; color: #fff !important; font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0; padding: 12px;
}
.mhzm-sc-empty { text-align: center; padding-top: 48px; padding-bottom: 64px; max-width: 420px; }
.mhzm-sc-empty-ico { width: 88px; height: 88px; border-radius: 50%; background: #E9ECF2; color: var(--sc-muted); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mhzm-sc-empty-ico svg { width: 40px; height: 40px; }
.mhzm-sc-empty .cart-empty, .mhzm-sc-empty .wc-empty-cart-message { display: none; }
.mhzm-sc-empty .return-to-shop { margin-top: 18px; }

@media (max-width: 767px) {
	.mhzm-sc-cart .mhzm-sc-wrap { padding-bottom: 170px; }
	.mhzm-sc-cart-wrap .cart-collaterals {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 9990; padding: 0;
	}
	.mhzm-sc-totals {
		border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(17,24,39,.12); padding: 6px 16px calc(12px + env(safe-area-inset-bottom));
	}
	.mhzm-sc-totals-toggle {
		display: flex; align-items: center; gap: 8px; width: 100%; background: transparent !important; border: 0; box-shadow: none; padding: 10px 0; min-height: 48px;
		font: inherit; color: var(--sc-text); cursor: pointer; text-align: start;
	}
	.mhzm-sc-totals-label { flex: 1; font-weight: 700; font-size: 16px; }
	.mhzm-sc-totals-label small { color: var(--sc-muted); font-weight: 400; }
	.mhzm-sc-totals-amount { font-weight: 800; font-size: 18px; color: var(--sc-navy); }
	.mhzm-sc-totals-amount small, .mhzm-sc-totals-amount .includes_tax { display: none; }
	.mhzm-sc-caret { transition: transform .2s; }
	.mhzm-sc-totals.is-open .mhzm-sc-caret { transform: rotate(180deg); }
	.mhzm-sc-breakdown { display: none; max-height: 50vh; overflow: auto; }
	.mhzm-sc-totals.is-open .mhzm-sc-breakdown { display: block; }
	.mhzm-sc-side-title { display: none; }
	/* Floating chat buttons sit above the sheet instead of on top of the button */
	.mhzm-sc-cart .floating-btn { transform: translateY(-140px); }
	.mhzm-sc-cart.mhzm-sc-sheet-open .floating-btn { opacity: 0; pointer-events: none; }
}

@media (min-width: 768px) {
	.mhzm-sc-wrap { padding: 28px 24px 64px; }
	.mhzm-sc-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
	.mhzm-sc-cart-side { position: sticky; top: 100px; }
	.mhzm-sc-item { grid-template-columns: 110px 1fr auto; }
	.mhzm-sc-item-img img { width: 110px !important; height: 110px !important; }
	.mhzm-sc-item-foot { grid-column: 2 / -1; }
	.mhzm-sc-h1 { font-size: 26px; }
	.mhzm-sc-checkout .mhzm-sc-wrap { max-width: 640px; }
	.mhzm-sc-map .lpac-map { height: 380px !important; }
}

/* ===================================================== ORDER RECEIVED */
.mhzm-sc-thanks .mhzm-sc-wrap { max-width: 640px; }
.mhzm-sc-hero { background: var(--sc-card); border-radius: var(--sc-r); padding: 26px 18px; text-align: center; margin-bottom: 14px; }
.mhzm-sc-hero-ico { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; background: var(--sc-ok-bg); color: var(--sc-ok); }
.mhzm-sc-hero-ico svg { width: 40px; height: 40px; }
.mhzm-sc-hero.is-pending .mhzm-sc-hero-ico { background: #FFF6E5; color: #B45309; }
.mhzm-sc-hero.is-failed .mhzm-sc-hero-ico { background: var(--sc-err-bg); color: var(--sc-err); }
.mhzm-sc-hero .mhzm-sc-h1 { margin-bottom: 6px; }
.mhzm-sc-hero .woocommerce-notice { background: none !important; border: 0 !important; padding: 0 !important; color: var(--sc-muted) !important; }
.mhzm-sc-hero .woocommerce-notice::before { display: none !important; }
.mhzm-sc-thanks-wrap .woocommerce-thankyou-order-failed-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mhzm-sc-facts { list-style: none !important; margin: 18px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: start; border: 0 !important; }
.mhzm-sc-facts li { margin: 0 !important; padding: 10px 12px !important; border: 1px solid var(--sc-line) !important; border-radius: 12px; display: flex; flex-direction: column; font-size: 13px !important; color: var(--sc-muted); text-transform: none !important; float: none !important; }
.mhzm-sc-facts li::before { display: none !important; }
.mhzm-sc-facts strong { color: var(--sc-text); font-size: 15px !important; margin-top: 2px; overflow-wrap: anywhere; }
.mhzm-sc-thanks-wrap .woocommerce-order-details, .mhzm-sc-thanks-wrap .woocommerce-customer-details { background: var(--sc-card); border-radius: var(--sc-r); padding: 16px; margin-bottom: 14px; }
.mhzm-sc-thanks-wrap .woocommerce-order-details table { margin: 0; }
.mhzm-sc-thanks-more { margin-top: 8px; }

/* Tuning */
.mhzm-sc-totals-amount .amount, .mhzm-sc-totals-amount bdi { color: var(--sc-navy) !important; }
.mhzm-sc-item-foot { flex-wrap: nowrap; }
.mhzm-sc-qty .quantity .minus, .mhzm-sc-qty .quantity .plus { width: 40px !important; }
.mhzm-sc-qty .quantity input.qty { width: 40px !important; }
.mhzm-sc-item-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 419px) {
	.mhzm-sc-remove a.remove { width: 40px !important; padding: 0; justify-content: center; }
	.mhzm-sc-remove a.remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mhzm-sc-item-sub .mhzm-sc-sub-label { display: none; }
}
.mhzm-sc .mhzm-sc-pill, .mhzm-sc .mhzm-sc-back, .mhzm-sc .mhzm-sc-edit, .mhzm-sc .mhzm-sc-locate, .mhzm-sc .mhzm-sc-search-go { box-shadow: none; text-transform: none; letter-spacing: 0; }
.mhzm-sc .mhzm-sc-pill { background: #fff !important; color: var(--sc-text) !important; }
.mhzm-sc .mhzm-sc-locate { background: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mhzm-sc .mhzm-sc-back { background: #F1F3F7 !important; color: var(--sc-text) !important; }
.mhzm-sc .mhzm-sc-edit { background: #fff !important; color: var(--sc-text) !important; }
.mhzm-sc .mhzm-sc-search-go { background: transparent !important; color: var(--sc-navy) !important; }
.mhzm-sc .mhzm-sc-link { background: none !important; box-shadow: none !important; }
/* Gateways that hide their own card (e.g. Apple Pay outside Safari) stay hidden */
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method[style*="display: none"],
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method[style*="display:none"],
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method[hidden] { display: none !important; }
.mhzm-sc-thanks-wrap ul.mhzm-sc-facts { display: grid !important; grid-template-columns: 1fr 1fr !important; }
.mhzm-sc-thanks-wrap ul.mhzm-sc-facts li { width: auto !important; text-align: start !important; align-items: flex-start; }
.mhzm-sc-thanks-wrap ul.mhzm-sc-facts li.mhzm-sc-fact-phone strong { direction: ltr; }
.mhzm-sc-rows .amount, .mhzm-sc-rows bdi, .mhzm-sc-review-copy .amount { color: inherit !important; }
.mhzm-sc-rows td { color: var(--sc-text); }
.mhzm-sc-rows .cart-discount td { color: var(--sc-ok); white-space: normal; }
.mhzm-sc-rows .cart-discount th { white-space: normal; }
.mhzm-sc-rows .woocommerce-remove-coupon { display: inline-block; margin-inline-start: 6px; font-size: 12px; font-weight: 600; color: var(--sc-err) !important; text-decoration: underline; }
.mhzm-sc-rows .order-total td .amount { font-size: 18px; }
@media (min-width: 768px) {
	.mhzm-sc .mhzm-sc-totals-toggle { display: none !important; }
	.mhzm-sc-breakdown { display: block !important; max-height: none !important; overflow: visible !important; }
}
.mhzm-sc-rows { table-layout: auto; }
.mhzm-sc-rows th { white-space: nowrap; padding-inline-end: 12px !important; width: auto !important; }
.mhzm-sc-rows td { width: auto !important; }
.mhzm-sc-rows .order-total td small, .mhzm-sc-rows .order-total td .includes_tax { white-space: normal; }
/* Payment grid never wider than the screen */
.mhzm-sc-checkout #payment ul.wc_payment_methods.payment_methods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method, .mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label { min-width: 0 !important; }
.mhzm-sc-logos { min-width: 0; max-width: 100%; flex-shrink: 1; }
.mhzm-sc-checkout #payment .mhzm-sc-logos img { flex: 0 1 auto; min-width: 0 !important; object-fit: contain; }
@media (max-width: 359px) {
	.mhzm-sc-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label { padding-inline-start: 40px !important; padding-inline-end: 10px !important; }
	.mhzm-sc-checkout #payment .mhzm-sc-logos { gap: 5px; }
	.mhzm-sc-checkout #payment .mhzm-sc-logos img { height: 20px !important; max-height: 20px !important; }
}
/* Woodmart prints its own empty-cart title/text on the same hook; ours replaces them */
.mhzm-sc-empty > .wd-empty-block-title, .mhzm-sc-empty > .wd-empty-block-text { display: none !important; }
.mhzm-sc-empty .return-to-shop .mhzm-sc-btn { background: var(--sc-navy) !important; color: #fff !important; }
/* Order-details drawer: rows as flex lines so nothing spills off a phone screen */
.mhzm-sc-review-copy, .mhzm-sc-review-copy tbody, .mhzm-sc-review-copy tfoot { display: block; width: 100%; }
.mhzm-sc-review-copy thead { display: none; }
.mhzm-sc-review-copy tr { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px dashed var(--sc-line); padding: 8px 0; }
.mhzm-sc-review-copy tr:last-child { border-bottom: 0; }
.mhzm-sc-review-copy th, .mhzm-sc-review-copy td { display: block; border: 0 !important; padding: 0 !important; width: auto !important; min-width: 0; }
.mhzm-sc-review-copy .product-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mhzm-sc-review-copy td:last-child, .mhzm-sc-review-copy th + td { text-align: end; flex: none; max-width: 55%; }
.mhzm-sc-review-copy img { width: 44px !important; height: 44px !important; object-fit: contain; border-radius: 8px; }
.mhzm-sc-review-copy .order-total td small, .mhzm-sc-review-copy .includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--sc-muted); white-space: normal; }
.mhzm-sc-review-copy .woocommerce-remove-coupon { font-size: 12px; color: var(--sc-err); margin-inline-start: 4px; }
/* room for the "تفاصيل الطلب" pill that overlaps the summary card's edge */
.mhzm-sc-summary { margin-bottom: 30px; }
/* Moyasar's own "Pay with your Credit/Debit Card." line repeats what the card already says */
.mhzm-sc-checkout #payment .payment_box.payment_method_moyasar_cc > p:first-child { display: none; }
/* Coupon: small blue link; the field and apply button appear on tap */
.mhzm-sc .mhzm-sc-coupon-open, .mhzm-sc .mhzm-sc-coupon-toggle {
	color: var(--sc-blue) !important; font-size: 14px !important; font-weight: 600; padding: 4px 0 !important; min-height: 36px !important;
	text-decoration: underline; text-underline-offset: 3px;
}
.mhzm-sc-actions { padding: 6px 14px; }
.mhzm-sc-inline[hidden] { display: none !important; }
.mhzm-sc-cart-coupon .mhzm-sc-inline { margin: 4px 0 8px; }
.mhzm-sc-inline .mhzm-sc-btn { flex: 0 0 auto; min-width: 80px; width: auto; padding-inline: 16px; }

/* Address step, round 2 (2026-10-26) */
.mhzm-sc-search { position: relative; display: flex; align-items: center; border: 1px solid var(--sc-line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.mhzm-sc-search:focus-within { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(56,118,191,.15); }
.mhzm-sc-wrap .mhzm-sc-search input#mhzm-sc-search { flex: 1 1 auto; min-width: 0; width: auto; border: 0 !important; box-shadow: none !important; background: transparent; padding-inline-end: 8px; }
.mhzm-sc .mhzm-sc-search .mhzm-sc-search-go { position: static; flex: none; width: 48px; height: 48px; margin: 0; }
.mhzm-sc-suggest { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 30; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(17,24,39,.12); max-height: 280px; overflow: auto; }
.mhzm-sc-suggest[hidden] { display: none; }
.mhzm-sc-suggest li { display: flex; flex-direction: column; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #F2F3F6; font-size: 15px; line-height: 1.4; }
.mhzm-sc-suggest li:last-child { border-bottom: 0; }
.mhzm-sc-suggest li:hover, .mhzm-sc-suggest li:focus { background: #F4F7FC; }
.mhzm-sc-suggest li span { font-size: 13px; color: var(--sc-muted); }
.mhzm-sc .mhzm-sc-step[data-step="address"] .mhzm-sc-mode-switch {
	display: block; width: 100%; text-align: center; margin: 10px auto 0; color: #111 !important; font-weight: 800; font-size: 15px; text-decoration: none !important;
}
.mhzm-sc .mhzm-sc-step[data-step="address"] .mhzm-sc-mode-switch[hidden] { display: none; }
.mhzm-sc-map .gm-style-mtc, .mhzm-sc-map .gm-svpc { display: none !important; }

/* Checkout: fixed yellow notice instead of the moving top bar */
.mhzm-sc-checkout .whb-top-bar { display: none !important; }
.mhzm-sc-topnote {
	background: #E1AA74; color: #1C2652; /* كراميلي محزم، بطلب مشاري 2026-10-29 (كان أصفر #FFD84D) */ text-align: center; font-weight: 700; font-size: 14px; line-height: 1.6;
	padding: 9px 16px; direction: rtl; position: relative; z-index: 5;
}
@media (min-width: 768px) { .mhzm-sc-topnote { font-size: 15px; } }

/* Payment round 4 (2026-10-26) */
.mhzm-sc-checkout #payment .mhzm-sc-payboxes .payment_box.payment_method_moyasar_apple_pay { background: none !important; border: 0 !important; padding: 0 !important; }
.mhzm-sc-checkout #payment .payment_box.payment_method_moyasar_apple_pay > p { display: none !important; }
.mhzm-sc-grand-inner { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mhzm-sc-was-total { color: #D32F2F; font-size: 15px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; }
.mhzm-sc-was-total .amount, .mhzm-sc-was-total bdi { color: #D32F2F !important; }
.mhzm-sc-now-total .amount { color: var(--sc-navy); }

/* Yellow notice: one line, pinned to the top while scrolling; the site header sits under it */
.mhzm-sc-checkout { --sc-note-h: 32px; padding-top: var(--sc-note-h) !important; }
.mhzm-sc-topnote {
	position: fixed; top: 0; inset-inline: 0; z-index: 99999; height: var(--sc-note-h); padding: 0 10px;
	display: flex; align-items: center; justify-content: center;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font-size: clamp(10px, 3vw, 15px); line-height: 1;
}
.mhzm-sc-checkout .whb-sticked .whb-main-header { top: var(--sc-note-h) !important; }
.admin-bar.mhzm-sc-checkout .mhzm-sc-topnote { top: var(--wp-admin--admin-bar--height, 32px); }

/* Spacing round 5: the theme lays the checkout form out as a grid with its own gap */
.mhzm-sc-checkout form.mhzm-sc-form { display: block !important; gap: 0 !important; }
.mhzm-sc-checkout .mhzm-sc-step { margin-bottom: 10px; }
.mhzm-sc-checkout .mhzm-sc-wrap { padding-bottom: 20px; }
.mhzm-sc-checkout .mhzm-sc-step[data-step="payment"] { margin-bottom: 0; }
.mhzm-sc-checkout .mhzm-sc-legal { margin-bottom: 0; }
.mhzm-sc-checkout .mhzm-sc-summary { margin-bottom: 28px; }

/* Savings: red struck price before, price after, «وفّرت X ريال» under them */
.mhzm-sc-grand-inner { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mhzm-sc-grand-prices { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mhzm-sc-saved { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--sc-ok); background: var(--sc-ok-bg); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.mhzm-sc-item-info .mhzm-sc-saved { margin-top: 4px; }
.mhzm-sc-was, .mhzm-sc-was .amount { color: #D32F2F !important; text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 600; }
.mhzm-sc-save-row th { text-align: center !important; border-bottom: 0 !important; padding-top: 0 !important; }
.mhzm-sc-totals-amount .mhzm-sc-saved { font-size: 11px; }
.mhzm-sc-totals-amount .mhzm-sc-was-total { font-size: 13px; }

/* Yellow bar: block line so iOS never wraps it */
.mhzm-sc-topnote { display: block !important; line-height: var(--sc-note-h) !important; text-align: center; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 430px) { .mhzm-sc-topnote { font-size: 10.5px !important; letter-spacing: -.1px; padding: 0 6px; } }
@media (max-width: 360px) { .mhzm-sc-topnote { font-size: 9.5px !important; } }
.mhzm-sc-summary-label { white-space: nowrap; }
@media (max-width: 430px) {
	.mhzm-sc-thumbs img:nth-child(n+3) { display: none; }
	.mhzm-sc-summary-head { gap: 8px; }
	.mhzm-sc-summary-label { font-size: 16px; }
	.mhzm-sc-grand { font-size: 18px; }
}
@media (max-width: 430px) {
	.mhzm-sc-summary .mhzm-sc-grand-prices { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.25; }
	.mhzm-sc-summary .mhzm-sc-was-total { font-size: 13px; }
	.mhzm-sc-summary .mhzm-sc-saved { font-size: 11.5px; padding: 0 8px; }
}
/* iPhone: the page can draw under the status bar; keep the bar's text below it and push the header by the same amount */
.mhzm-sc-checkout { --sc-note-h: calc(32px + env(safe-area-inset-top, 0px)); }
.mhzm-sc-topnote { padding-top: env(safe-area-inset-top, 0px) !important; line-height: 32px !important; box-sizing: border-box; }

/* 2026-10-26: the theme's mobile category bar overflows the header by ~13px and its bottom border
   cut across the top of cart notices ("تم تحديث سلة المشتريات") — push notices below it. */
.mhzm-sc-cart .woocommerce-notices-wrapper:not(:empty) { padding-top: 22px; }

/* 2026-10-26: Tamara's summary widget renders its badge as a black box on iPhone Safari and repeats
   the description above it — the card already shows the Tamara logo, so hide the widget here. */
.mhzm-sc-checkout #payment .payment_box tamara-widget { display: none !important; }
.mhzm-sc-checkout #payment .payment_box .tamara-gateway-description > p:has(> tamara-widget) { display: none !important; }

/* 2026-11-03: Tabby rejection — icon, text and «رقمك في تابي مختلف؟» stacked and centred.
   mhzm-notices makes the notice a no-wrap row, so the button's <li> sat beside the text and covered it. */
html body .woocommerce-error:has(> li > .mhzm-sc-tabby-phone) {
	flex-direction: column !important; align-items: stretch !important; gap: 10px !important; padding: 16px !important;
	border: 1px solid #F2C9C9 !important; border-radius: 14px !important; text-align: center !important;
}
html body .woocommerce-error:has(> li > .mhzm-sc-tabby-phone)::before { align-self: center; }
html body .woocommerce-error:has(> li > .mhzm-sc-tabby-phone) > li {
	flex: 0 0 auto !important; width: 100%; margin: 0 !important; padding: 0 !important; text-align: center !important; list-style: none;
}
html body .woocommerce-error li:has(> .mhzm-sc-tabby-phone)::before { display: none !important; }
.mhzm-sc .mhzm-sc-tabby-phone {
	display: block !important; width: 100% !important; margin: 4px 0 0 !important; padding: 11px 14px !important; min-height: 0 !important;
	border: 1px solid #C9D9F2 !important; border-radius: 10px !important; background: #EEF3FC !important; color: var(--sc-text, #192655) !important;
	font: inherit; font-weight: 700 !important; font-size: 14px !important; line-height: 1.5 !important; text-align: center;
	white-space: normal; cursor: pointer; text-transform: none !important; letter-spacing: 0; box-shadow: none !important;
}

/* 2026-10-26: «تغيير رقم الجوال» under the name form (the pencil now edits the name). */
.mhzm-sc .mhzm-sc-change-phone { display: block; margin: 12px auto 0; font-size: 14px; }
