/* =========================================================================
   Metal Universe Shop – checkboxes & radios on every page.
   The Elementor kit gives every <input> 15px padding and a border, which turns
   checkboxes and radios into 32px boxes. These rules bring them back to 18px:
   dark box, red when checked (white tick / white dot).
   ========================================================================= */

body input[type="checkbox"],
body input[type="radio"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	flex: none;
	width: 18px !important;
	min-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	margin: 0;
	padding: 0 !important;
	border: 1.5px solid #5A5A5A !important;
	border-radius: 3px !important;
	background: #111111 no-repeat center / 12px 12px !important;
	box-shadow: none !important;
	vertical-align: middle;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

body input[type="radio"] { border-radius: 50% !important; }

body input[type="checkbox"]:hover,
body input[type="radio"]:hover { border-color: #8F8F8F !important; }

body input[type="checkbox"]:checked {
	border-color: var(--e-global-color-primary, #E83324) !important;
	background-color: var(--e-global-color-primary, #E83324) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body input[type="radio"]:checked {
	border-color: var(--e-global-color-primary, #E83324) !important;
	background-color: #111111 !important;
	background-image: radial-gradient(circle, var(--e-global-color-primary, #E83324) 0 4px, transparent 4.5px) !important;
	background-size: 100% 100% !important;
}

body input[type="checkbox"]:focus-visible,
body input[type="radio"]:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #E83324) !important;
	outline-offset: 2px;
}

/* WooCommerce blocks draw their own tick/dot on top – ours replaces them. */
body .wc-block-components-checkbox .wc-block-components-checkbox__mark { display: none !important; }
body .wc-block-components-radio-control__input::before,
body .wc-block-components-radio-control__input:checked::before { display: none !important; }

/* Block checkbox rows: label text centred on the 18px box. */
body .wc-block-components-checkbox label { display: flex !important; align-items: center; gap: 10px; }
body .wc-block-components-checkbox .wc-block-components-checkbox__input { position: relative !important; margin: 0 !important; }

/* Block radio cards (shipping / payment): the radio sits in the left padding. */
body .wc-block-components-radio-control__option { padding-left: 46px !important; }
body .wc-block-components-radio-control__input {
	position: absolute !important;
	top: 50% !important;
	left: 16px !important;
	transform: translateY(-50%) !important;
}
body .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { padding-left: 46px !important; }
body .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__input { top: 28px !important; }

/* =========================================================================
   Phones: every call-to-action button full width, stacked.
   ========================================================================= */
@media (max-width: 767px) {
	/* Home sections, brand section, page sections (DI Site Kit) */
	.muh-btns, .dks-btns, .dks-form__foot { flex-direction: column; align-items: stretch !important; }
	.muh a.muh-btn, .dks a.dks-btn, .dks button.dks-btn { justify-content: center; width: 100%; }
	.muh-store .muh-btns, .muh-spot .muh-btns { width: 100%; }
	.muh-spot__txt .muh-btn { display: flex !important; }

	/* Rack (Metal Universe Rack) */
	.mur-cta { flex-direction: column; align-items: stretch; padding-left: 16px; padding-right: 16px; }
	.mur .mur-cta a.mur-btn { justify-content: center; width: 100%; }

	/* Elementor button widgets */
	.elementor-widget-button .elementor-button-wrapper { width: 100%; }
	.elementor-widget-button .elementor-button { display: flex; justify-content: center; width: 100%; }

	/* WooCommerce: product page add to cart on its own line under the quantity */
	body.single-product .site-main div.product form.cart:not(.variations_form) ,
	body.single-product .site-main div.product form.cart .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
	body.single-product .site-main div.product form.cart .single_add_to_cart_button { flex: 1 1 100% !important; width: 100%; }
	.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
	.wc-block-components-button:not(.wc-block-components-checkout-return-to-cart-button):not(.wc-block-components-totals-coupon__button) { width: 100%; justify-content: center; text-align: center; }

	/* Newsletter + contact form buttons (DI Site Kit) */
	.dift .dift-news__row { flex-direction: column; gap: 10px; }
	.dift .dift-news__row input[type="email"] { border-right: 1.5px solid var(--ft-line) !important; border-radius: 3px !important; }
	.dift .dift-news__row button { justify-content: center; border-radius: 3px !important; }
}

/* Sale prices everywhere: old price red + struck through, new price white */
body .price del, body .muh-card__price del, body .oc-sticky__price del, body .dihd-best__price del, body .oc-fbt__price del,
body.oc-archive :is(.elementor-location-archive .elementor-widget-woocommerce-products, .site-main) ul.products li.product .price del {
	margin-right: 6px !important; font-weight: 500 !important; color: #E83324 !important; opacity: 1 !important;
	text-decoration: line-through !important; text-decoration-color: currentColor !important; text-decoration-thickness: 1.5px !important;
}
body .price del *, body .muh-card__price del *, body .oc-sticky__price del *, body .dihd-best__price del * { color: inherit !important; }
body .price ins, body .muh-card__price ins, body .oc-sticky__price ins, body .dihd-best__price ins, body .oc-fbt__price ins,
body.oc-archive :is(.elementor-location-archive .elementor-widget-woocommerce-products, .site-main) ul.products li.product .price ins {
	text-decoration: none !important; color: #FFFFFF !important; background: none !important; font-weight: 700 !important;
}
body .price ins *, body .muh-card__price ins *, body .oc-sticky__price ins *, body .dihd-best__price ins * { color: inherit !important; }
body .oc-price-from { font-weight: 600; }

/* Sale badge "−20%" (replaces any green "ПРОМО" badge) */
body .onsale.mu-onsale, body.oc-archive .sh-results ul.products li.product .onsale.mu-onsale, body.single-product span.onsale.mu-onsale {
	top: 10px !important; left: 10px !important; right: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
	padding: 5px 9px !important; border: 0 !important; border-radius: 2px !important; background: #E83324 !important; color: #fff !important;
	font-size: 12px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: .02em; text-transform: none !important; box-shadow: none !important;
}
