/* Mishkan CRO round 2 (2026-11-16). All rules gated by body.mtc2-<id>; state classes are added by cro-1116.js only
   (no JS = original layout). Kill: wp option update mishkan_cro_1116_off 1 */

/* ---------- co_lean ---------- */
body.mtc2-co-lean .form-row.mt2-collapsed { display: none !important; }
.mt2-more { display: flex; flex-wrap: wrap; gap: 0 18px; clear: both; width: 100%; flex: 0 0 100%; margin: 2px 0 6px; }
.mt2-more[hidden], .mt2-link[hidden] { display: none !important; }
.mt2-link {
	appearance: none; background: none; border: 0; padding: 6px 0; margin: 0; min-height: 32px;
	font: inherit; font-size: 13.5px; line-height: 1.3; color: #1e3a5f; text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer; text-align: start;
}
body.mt-mode-pickup .mt2-link--addr { display: none !important; }
.mt2-link:hover, .mt2-link:focus-visible { color: #0f2540; }
.mt2-link:focus-visible { outline: 2px solid #1e3a5f; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 767px) {
	body.mtc2-co-lean.woocommerce-checkout .woocommerce-billing-fields.mt2-ready,
	body.mtc2-co-lean.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper.mt2-ready {
		display: flex; flex-wrap: wrap; column-gap: 10px; align-items: flex-end;
	}
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > .form-row {
		flex: 0 0 100%; width: 100% !important; max-width: 100%; float: none !important; margin-inline: 0 !important; min-width: 0;
	}
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #billing_first_name_field,
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #billing_last_name_field,
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #shipping_first_name_field,
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #shipping_last_name_field {
		flex: 1 1 calc(50% - 5px); width: auto !important; align-self: flex-start;
	}
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #billing_address_1_field,
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #shipping_address_1_field { flex: 1 1 calc(57% - 5px); width: auto !important; }
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #billing_address_2_field,
	body.mtc2-co-lean.woocommerce-checkout .mt2-ready > #shipping_address_2_field { flex: 1 1 calc(43% - 5px); width: auto !important; }
}

/* ---------- co_notes ---------- */
body.mtc2-co-notes #additional-section.mt2-notes-closed {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 4px !important; margin-block: 0 10px !important;
}
body.mtc2-co-notes #additional-section.mt2-notes-closed .checkout-section__title,
body.mtc2-co-notes #additional-section.mt2-notes-closed #order_comments_field { display: none !important; }
body.mtc2-co-notes #additional-section:not(.mt2-notes-closed) .mt2-notes-toggle { display: none; }

/* ---------- co_compact ---------- */
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	background: none; border: 0; box-shadow: none; padding: 5px 2px !important; margin: 0 !important; min-height: 0; font-size: 13.5px; line-height: 1.4;
}
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-login-toggle,
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-coupon-toggle { margin: 0 0 2px; }
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 10px; }
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-login-toggle a,
body.mtc2-co-compact.woocommerce-checkout .woocommerce-form-coupon-toggle a { display: inline; padding: 0; }

/* shipping section: one slim checkbox row until "ship to a different address" is ticked */
body.mtc2-co-compact #shipping-section:not(:has(#ship-to-different-address-checkbox:checked)) {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 4px !important; margin-block: 0 4px !important;
}
body.mtc2-co-compact #shipping-section:not(:has(#ship-to-different-address-checkbox:checked)) .checkout-section__title { display: none; }
body.mtc2-co-compact #shipping-section #ship-to-different-address label { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; }

@media (max-width: 767px) {
	/* product rows already live in the collapsible summary at the top of the page */
	body.mtc2-co-compact.mtc-co-sticky:has(.mt-co-summary) .woocommerce-checkout-review-order-table thead,
	body.mtc2-co-compact.mtc-co-sticky:has(.mt-co-summary) .woocommerce-checkout-review-order-table tr.cart_item { display: none; }
	body.mtc2-co-compact .payment_box .payment-method-description { font-size: 12.5px; line-height: 1.45; margin: 4px 0 0; padding: 0; }
	body.mtc2-co-compact #payplus-checkout-image-div img { max-height: 22px; width: auto; }
}

/* ---------- co_prefill ---------- */
.mt2-prefill-note {
	display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 12px; padding: 8px 12px;
	background: #f3f6fa; border-radius: 10px; font-size: 13px; line-height: 1.4; color: #24364d;
}
.mt2-prefill-note .mt2-link { padding: 4px 0; min-height: 28px; font-size: 13px; }

/* ---------- pdp_buynow ---------- */
.mt2-buynow[hidden] { display: none !important; }
body.mtc2-pdp-buynow .mt2-buynow {
	appearance: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; flex: 0 0 100%;
	min-height: 48px; margin: 10px 0 0 !important; padding: 10px 16px; clear: both;
	background: #fff; color: #1e3a5f; border: 1.5px solid #1e3a5f; border-radius: 12px;
	font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
body.mtc2-pdp-buynow .mt2-buynow:hover, body.mtc2-pdp-buynow .mt2-buynow:focus-visible { background: #1e3a5f; color: #fff; }
body.mtc2-pdp-buynow .mt2-buynow:focus-visible { outline: 2px solid #1e3a5f; outline-offset: 2px; }
body.mtc2-pdp-buynow .mt2-buynow.is-busy { opacity: .7; pointer-events: none; }
body.mtc2-pdp-buynow form.cart.mishkan-wizard-has-cta .mt2-buynow { display: none !important; }
@media (prefers-reduced-motion: reduce) { body.mtc2-pdp-buynow .mt2-buynow { transition: none; } }
