/* Mood & Crunch Core — ألوان قابلة للتعديل لاحقاً من القالب الفرعي */
:root {
	--mcc-accent: #e8590c;
	--mcc-wa: #25d366;
	--mcc-radius: 14px;
	--mcc-border: rgba(0, 0, 0, .1);
}

/* طريقة الاستلام */
.mcc-fulfillment { margin-bottom: 24px; }
.mcc-fulfillment h3 { margin-bottom: 12px; }
.mcc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mcc-card {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 16px 10px; border: 2px solid var(--mcc-border); border-radius: var(--mcc-radius);
	cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.mcc-card input { position: absolute; opacity: 0; pointer-events: none; }
.mcc-card-icon { font-size: 28px; line-height: 1; }
.mcc-card small { opacity: .7; font-size: 12px; }
.mcc-card.is-active { border-color: var(--mcc-accent); background: rgba(232, 89, 12, .06); }
.mcc-pickup-only { display: none; margin-top: 12px; }
.mcc-pickup-only select { width: 100%; min-height: 44px; }

/* صناديق صفحة الشكر */
.mcc-box { border: 1px solid var(--mcc-border); border-radius: var(--mcc-radius); padding: 18px; margin: 0 0 20px; }
.mcc-box h3 { margin-top: 0; }
.mcc-wa-box { text-align: center; background: rgba(37, 211, 102, .06); border-color: rgba(37, 211, 102, .4); }

/* أزرار واتساب */
.mcc-wa-btn, .mcc-wa-quick, .mcc-wa-loop {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--mcc-wa); color: #fff !important; border: 0; border-radius: 999px;
	padding: 12px 22px; font-weight: 700; text-decoration: none !important; cursor: pointer;
	min-height: 44px; transition: transform .1s, filter .15s;
}
.mcc-wa-btn:hover, .mcc-wa-quick:hover, .mcc-wa-loop:hover { filter: brightness(.95); }
.mcc-wa-btn:active, .mcc-wa-quick:active { transform: scale(.98); }
.mcc-wa-box .mcc-wa-btn { width: 100%; max-width: 360px; font-size: 17px; }
.mcc-wa-quick { width: 100%; flex-basis: 100%; margin-top: 10px; }
.mcc-wa-loop { display: flex; width: 100%; margin-top: 6px; padding: 8px 12px; font-size: .9em; min-height: 40px; box-sizing: border-box; }
.mcc-wa-msg:empty { display: none; }
.mcc-wa-msg { display: block; color: #dc2626; font-size: 13px; margin-top: 6px; }

/* المحافظ */
.mcc-wallets ul { list-style: none; margin: 8px 0; padding: 0; }
.mcc-wallets li {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
	border: 1px dashed var(--mcc-border); border-radius: 10px;
}
.mcc-wallet-name { font-weight: 700; }
.mcc-wallet-number { margin-inline-start: auto; font-family: monospace; font-size: 15px; }
.mcc-copy { background: none; border: 1px solid var(--mcc-border); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.mcc-wallet-account { font-size: 13px; opacity: .8; }

/* الإيصال */
.mcc-receipt-form { display: grid; gap: 8px; margin-top: 12px; }
.mcc-receipt-thumb { max-width: 180px; border-radius: 10px; display: block; margin: 8px 0; }
.mcc-ok { color: #16a34a; font-weight: 700; }
.mcc-error { color: #dc2626; }

/* ملاحظات المنتج */
.mcc-product-note { margin: 12px 0; width: 100%; }
.mcc-product-note label { display: block; font-weight: 600; margin-bottom: 6px; }
.mcc-product-note textarea { width: 100%; resize: vertical; border-radius: 10px; }

.mcc-order-fulfillment { font-weight: 700; font-size: 1.05em; }

@media (max-width: 480px) {
	.mcc-choice { gap: 8px; }
	.mcc-card { padding: 12px 6px; }
}

/* تحديد الموقع */
.mcc-locate {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 14px;
	border: 1px solid var(--mcc-accent); color: var(--mcc-accent); background: transparent;
	border-radius: 999px; cursor: pointer; font-weight: 600; min-height: 40px;
}
.mcc-locate[disabled] { opacity: .6; cursor: wait; }
.mcc-location-map { display: inline-flex; align-items: center; margin: 8px 8px 0 0; color: var(--mcc-accent); font-size: 13px; text-decoration: underline; }
.mcc-location-map[hidden] { display: none; }
.mcc-locate-msg { display: block; font-size: 13px; margin-top: 6px; }
.mcc-locate-msg.is-ok { color: #16a34a; }
.mcc-locate-msg.is-error { color: #dc2626; }
.mcc-address-edit { display: inline-flex; align-items: center; gap: 4px; margin: 6px 8px 0 0; padding: 4px 9px; border: 1px solid var(--mcc-accent); border-radius: 8px; color: var(--mcc-accent); background: transparent; font-size: 12px; cursor: pointer; }
.mcc-address-help { display: block; color: #9b8f84; font-size: 11px; margin-top: 3px; }
.mcc-address-edit[hidden], .mcc-address-help[hidden] { display: none; }
.mcc-hidden, .mcc-account-only { display: none; }

/* اختيار المحفظة + رفع الإيصال أثناء الطلب */
.mcc-wallet-pick li { padding: 0; }
.mcc-wallet-pick label { display: flex; align-items: center; gap: 10px; flex: 1; padding: 10px 12px; cursor: pointer; margin: 0; }
.mcc-wallet-pick li:has(input:checked) { border-style: solid; border-color: var(--mcc-accent); background: rgba(232, 89, 12, .06); }
.mcc-wallet-pick .mcc-copy { margin-inline-end: 10px; }
.mcc-upload { display: grid; gap: 6px; margin-top: 12px; padding: 12px; border: 1px dashed var(--mcc-border); border-radius: 10px; }
.mcc-upload label { font-weight: 600; }
.mcc-upload-status { font-size: 13px; }
.mcc-upload-status.is-ok { color: #16a34a; font-weight: 700; }
.mcc-upload-status.is-error { color: #dc2626; }
.woocommerce-NoticeGroup-checkout { scroll-margin-top: 160px; }

/* خيار السلة / المنتج */
.mcc-wa-choice { flex-basis: 100%; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid rgba(37, 211, 102, .5); border-radius: var(--mcc-radius); background: rgba(37, 211, 102, .06); display: grid; gap: 8px; }
.mcc-wa-choice[hidden] { display: none; }
.mcc-wa-choice p { margin: 0; font-weight: 600; }
.mcc-wa-alt { display: inline-flex; justify-content: center; padding: 10px 16px; border: 1px solid var(--mcc-wa); color: #128c4a !important; border-radius: 999px; text-decoration: none !important; font-weight: 600; }
.mcc-wa-cart { width: 100%; margin-top: 10px; }
.mcc-wa-cart-hint { font-size: 12px; opacity: .7; margin: 6px 0 0; text-align: center; }

/* لا مربعات ولا شروط أسفل طرق الدفع */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { display: none !important; }
.mcc-order-no { font-size: 1.15em; }
.mcc-order-no strong { font-size: 1.3em; letter-spacing: .5px; }
#mcc_zone { width: 100%; min-height: 44px; }

/* السلة تتحدث تلقائياً — لا حاجة لزر «تحديث السلة» */
.woocommerce-cart-form [name="update_cart"] { display: none !important; }

/* حقل الكوبون الصغير */
.mcc-coupon { display: flex; gap: 8px; margin: 14px 0; }
.mcc-coupon input { flex: 1; min-height: 42px; border-radius: 10px; }
.mcc-coupon .button { min-height: 42px; border-radius: 10px; white-space: nowrap; }
.woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout form.checkout_coupon { display: none !important; }

/* ===== خطوات صفحة الدفع ===== */
.mz-stepbar { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: none; }
.mz-stepbar li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 14px; background: #1f1510; border: 1px solid #3a281d; color: #b9a796; font-weight: 700; cursor: default; }
.mz-stepbar li b { width: 26px; height: 26px; border-radius: 50%; background: #2a1c14; display: inline-flex; align-items: center; justify-content: center; }
.mz-stepbar li.is-on { color: #f8efe4; border-color: var(--mz-accent, #d6a446); }
.mz-stepbar li.is-on b { background: var(--mz-accent, #d6a446); color: #1a0f08; }
.mz-stepbar li[data-go="1"] { cursor: pointer; }
.mz-step1-actions { margin: 14px 0 6px; }
.mz-step1-actions .mz-next { width: 100%; min-height: 52px; font-size: 17px !important; }
.mz-back { background: none; border: 0; color: var(--mz-accent, #d6a446); font: inherit; font-weight: 700; padding: 6px 0; margin-bottom: 8px; cursor: pointer; }
.mz-ferr { display: block; color: #f87171; font-size: 13px; font-weight: 700; margin-top: 4px; }
.mz-fhint { display: block; color: #f3d08a; font-size: 13px; margin-top: 4px; }
.mz-place-errors { list-style: none; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fca5a5; font-weight: 700; font-size: 14px; }
.woocommerce-checkout #order_comments { min-height: 64px !important; height: 64px; }
.woocommerce-additional-fields > h3:empty { display: none; }

/* ===== السلة: زر واتساب ثانوي هادئ ===== */
a.mcc-wa-btn.mcc-wa-cart { background: transparent !important; color: #8fd1a7 !important; border: 1px solid #2f5d3f !important; font-weight: 600 !important; min-height: 40px !important; font-size: 14px; opacity: .85; }
a.mcc-wa-btn.mcc-wa-cart:hover { opacity: 1; }

/* ===== صفحة الشكر ===== */
.woocommerce-order .woocommerce-thankyou-order-received {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px !important; margin: 0 0 18px !important;
	border-radius: 18px; background: rgba(74, 222, 128, .08) !important; border: 1px solid rgba(74, 222, 128, .35) !important;
	color: #e9f8ee !important; font-size: 17px; font-weight: 800;
}
.woocommerce-order .woocommerce-thankyou-order-received::before {
	content: "✓"; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #16a34a; color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900;
}
details.mcc-receipt { padding: 0 !important; }
details.mcc-receipt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; font-weight: 800; }
details.mcc-receipt > summary::-webkit-details-marker { display: none; }
details.mcc-receipt > summary::after { content: "⌄"; font-size: 20px; transition: transform .2s; }
details.mcc-receipt[open] > summary::after { transform: rotate(180deg); }
details.mcc-receipt > summary em { font-style: normal; font-weight: 600; font-size: 13px; color: #b9a796; margin-inline-start: auto; }
details.mcc-receipt > *:not(summary) { margin-inline: 18px; }
details.mcc-receipt > form { margin-bottom: 18px; }

/* ملخص صفحة الدفع: المنتجات ← التوصيل ← الإجمالي (بدون المجموع) */
.woocommerce-checkout-review-order-table tr.cart-subtotal { display: none; }
/* الإجمالي فقط مع رابط لعرض التفاصيل */
body.mz-sum-total .woocommerce-checkout-review-order-table:not(.is-open) thead,
body.mz-sum-total .woocommerce-checkout-review-order-table:not(.is-open) tbody,
body.mz-sum-total .woocommerce-checkout-review-order-table:not(.is-open) tfoot tr:not(.order-total):not(.mz-offer-row) { display: none; }
.mz-sum-toggle { background: none; border: 0; color: var(--mz-accent, #d6a446); font: inherit; font-weight: 700; font-size: 13px; padding: 4px 0; cursor: pointer; }
/* زر النسخ أوضح */
.mcc-copy { background: #2a1c14 !important; color: #f3d08a !important; border: 1px solid #6b4a2a !important; font-weight: 700; padding: 6px 12px !important; border-radius: 9px !important; }
.mcc-copy:hover { background: #3a281d !important; }
