/* ==========================================================================
   MB-Pori: Ostoskori (/ostoskori) + Kassa (/kassa) styling
   Loaded only on cart + checkout (see functions.php, mbp_cart_checkout_assets).
   Colours/fonts follow the Elementor kit:
     BG #0F0F0F, BG Light #242425, text #F5F5F5, secondary #A8B6CE,
     accent gold #D7B741, CTA blue #1A76D3, borders #707880 / #A0ADC2.
   ========================================================================== */

body.woocommerce-cart,
body.woocommerce-checkout {
	--mb-bg: #0f0f0f;
	--mb-panel: #1b1b1c;
	--mb-panel-2: #242425;
	--mb-line: rgba(160, 173, 194, 0.22);
	--mb-line-strong: #707880;
	--mb-text: #f5f5f5;
	--mb-muted: #a8b6ce;
	--mb-gold: #d7b741;
	--mb-blue: #1a76d3;
	--mb-blue-hi: #4aa4ff;
	--mb-red: #e73536;
	--mb-radius: 10px;
	--mb-head: "Armata", sans-serif;
	--mb-ui: "Inter", sans-serif;
	--mb-num: "Fira Code", "Inter", monospace;
}

/* --------------------------------------------------------------------------
   Shared: page title + progress steps (markup from functions.php)
   -------------------------------------------------------------------------- */
.mb-checkout-head {
	max-width: 1240px;
	margin: 1.5rem auto 2rem;
	padding: 0 16px;
	text-align: center;
}
.mb-checkout-head__title {
	margin: 0 0 1.1rem;
	font-family: var(--mb-head);
	font-weight: 600;
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mb-text);
}
.mb-steps {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--mb-ui);
	font-size: 0.9rem;
	color: var(--mb-muted);
}
.mb-steps li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}
.mb-steps li + li::before {
	content: "";
	width: clamp(1.25rem, 5vw, 3.5rem);
	height: 1px;
	background: var(--mb-line-strong);
}
.mb-steps__num {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--mb-line-strong);
	border-radius: 50%;
	font-family: var(--mb-head);
	font-size: 0.85rem;
	line-height: 1;
}
.mb-steps li.is-done { color: var(--mb-text); }
.mb-steps li.is-done .mb-steps__num {
	border-color: var(--mb-gold);
	color: var(--mb-gold);
}
.mb-steps li.is-current { color: var(--mb-text); font-weight: 600; }
.mb-steps li.is-current .mb-steps__num {
	border-color: var(--mb-gold);
	background: var(--mb-gold);
	color: #0f0f0f;
}
.mb-steps a { color: inherit; text-decoration: none; }
.mb-steps a:hover { color: var(--mb-gold); }

/* The checkout page already has its own Elementor "Kassa" heading; our
   head block replaces it there. */
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-4201111751198 .elementor-widget-heading {
	display: none;
}

/* --------------------------------------------------------------------------
   Shared: primary call-to-action (same look as "Lisää ostoskoriin")
   -------------------------------------------------------------------------- */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit-button.wc-block-components-button,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #place_order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.85rem 1.5rem;
	border: 2px solid var(--mb-blue-hi);
	border-radius: 4px;
	background: var(--mb-blue);
	color: var(--mb-gold);
	font-family: var(--mb-head);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	box-shadow: 0 6px 18px rgba(26, 118, 211, 0.25);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit-button.wc-block-components-button:hover,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #place_order:hover {
	background: #2286ea;
	color: var(--mb-gold);
	box-shadow: 0 8px 24px rgba(26, 118, 211, 0.4);
	transform: translateY(-1px);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit-button .wc-block-components-button__text {
	text-decoration: none;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout #place_order:focus-visible {
	outline: 2px solid var(--mb-gold);
	outline-offset: 3px;
}

/* ==========================================================================
   OSTOSKORI  (WooCommerce Cart block)
   ========================================================================== */
body.woocommerce-cart .page-content > .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
	max-width: 1240px;
	margin: 0 auto 4rem;
	padding: 0 16px;
	font-family: var(--mb-ui);
	color: var(--mb-text);
}

body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-sidebar-layout.wc-block-cart {
	gap: 2rem;
	margin: 0;
	flex-wrap: nowrap;
	align-items: flex-start;
}
@media (max-width: 1024px) {
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-sidebar-layout.wc-block-cart { flex-wrap: wrap; }
}

/* Panels */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__main,
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar {
	box-sizing: border-box;
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__main {
	padding: 0.5rem 1.5rem 1.5rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar {
	padding: 1.5rem;
	position: sticky;
	top: 1.5rem;
}
@media (max-width: 1024px) {
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__main,
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar {
		width: 100%;
		position: static;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* Items table */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) table.wc-block-cart-items {
	margin: 0;
	border: 0;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items__header th {
	padding: 1rem 0 0.75rem;
	border-bottom: 1px solid var(--mb-line);
	font-family: var(--mb-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items__row {
	border-bottom: 1px solid var(--mb-line);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items__row:last-child {
	border-bottom: 0;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items td {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	border: 0;
	background: transparent;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__image img {
	width: 100%;
	max-width: 110px;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--mb-line);
	border-radius: 8px;
	background: #fff;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items .wc-block-components-product-name {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-family: var(--mb-head);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mb-text);
	text-decoration: none;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items .wc-block-components-product-name:hover {
	color: var(--mb-gold);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__prices,
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__total {
	font-family: var(--mb-num);
	color: var(--mb-gold);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__prices { font-size: 0.95rem; }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__total {
	font-size: 1.1rem;
	font-weight: 600;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-product-metadata {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--mb-muted);
}

/* Quantity + remove */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-quantity-selector {
	width: 8.5rem;
	margin: 0;
	border: 1px solid var(--mb-line-strong);
	border-radius: 8px;
	background: var(--mb-bg);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-quantity-selector::after { border: 0; }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	border: 0;
	background: transparent;
	color: var(--mb-text);
	font-family: var(--mb-num);
	font-size: 1rem;
	box-shadow: none;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 2.5rem;
	color: var(--mb-muted);
	font-size: 1.1rem;
	opacity: 1;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: var(--mb-gold);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__remove-link {
	color: var(--mb-muted) !important;
	opacity: 1;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__remove-link:hover {
	color: var(--mb-red) !important;
}

/* Sidebar: totals */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__totals-title {
	display: block;
	margin: 0 0 0.75rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--mb-line);
	font-family: var(--mb-head);
	font-size: 1.1rem !important;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding: 0.85rem 0;
	border-top: 1px solid var(--mb-line);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block {
	border-top: 0;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__sidebar .wc-block-components-totals-wrapper:empty { display: none; }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-item {
	padding: 0.2rem 0;
	font-size: 0.95rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-item__label { color: var(--mb-muted); }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-item__value {
	font-family: var(--mb-num);
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-item__description,
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-shipping__via {
	margin-top: 0.25rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--mb-head);
	font-size: 1.15rem;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--mb-num);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--mb-gold);
}

/* Coupon accordion */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-coupon .wc-block-components-panel__button {
	padding: 0.25rem 0;
	color: var(--mb-muted);
	font-size: 0.9rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-coupon .wc-block-components-panel__button:hover { color: var(--mb-gold); }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-text-input input,
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-coupon__input input {
	background: var(--mb-bg) !important;
	border: 1px solid var(--mb-line-strong) !important;
	border-radius: 8px !important;
	color: var(--mb-text) !important;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-text-input label { color: var(--mb-muted) !important; }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-coupon__button {
	border: 1px solid var(--mb-gold);
	border-radius: 8px;
	background: var(--mb-bg);
	color: var(--mb-text);
	font-family: var(--mb-head);
}

/* Proceed button area */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit { margin: 1.25rem 0 0; }
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__submit-container { padding: 0; }

/* Cross-sells under the items */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-product-collection {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mb-line);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-product-collection h2 {
	font-family: var(--mb-head);
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-product-collection .wc-block-product {
	padding: 0.75rem;
	border: 1px solid var(--mb-line);
	border-radius: 8px;
	background: var(--mb-bg);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-product-collection .wp-block-post-title a {
	color: var(--mb-text);
	text-decoration: none;
	font-size: 0.95rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-product-collection .wc-block-components-product-price { color: var(--mb-gold); font-family: var(--mb-num); }

/* Empty cart */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart__empty-cart__title {
	font-family: var(--mb-head);
	font-size: 1.6rem;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-empty-cart-block h2 {
	font-family: var(--mb-head);
	color: var(--mb-text);
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wp-block-woocommerce-empty-cart-block .wp-block-separator { color: var(--mb-line-strong); }

/* Mobile cart: WooCommerce's fixed 80/132px grid overflows inside our padded panel */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 72px minmax(0, 1fr);
	column-gap: 0.9rem;
}
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-item__product {
	grid-column: 2;
}
/* Line total moves under the product details */
body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-item__total {
	grid-column: 2;
	grid-row: 2;
	padding-top: 0;
	padding-left: 0;
	text-align: left;
}
@media (max-width: 600px) {
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-items .wc-block-components-product-name { font-size: 1rem; }
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-cart-item__image img { max-width: 72px; }
	body.woocommerce-cart :is(.wp-block-woocommerce-cart, #mb-x) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.3rem; }
}

/* ==========================================================================
   KASSA  (Elementor Pro "Checkout" widget, global widget 4201111751215)
   Elementor Pro's checkout CSS uses ID selectors (#customer_details,
   #order_review). The never-matching "#mb-x#mb-y" inside :is() gives our
   prefix the weight of two IDs, so these rules win without !important.
   ========================================================================== */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 16px 4rem;
	box-sizing: border-box;
	font-family: var(--mb-ui);
}

/* Two columns on desktop: form left, summary + payment right */
@media (min-width: 1025px) {
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout__container {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout__column {
		width: auto;
		max-width: none;
		margin: 0;
		padding: 0;
	}
}

/* Sections (login, billing, shipping, notes, summary, payment) */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-woocommerce-login-section,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #customer_details .col-1,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .shipping_address,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-additional-fields,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout__order_review,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment {
	box-sizing: border-box;
	margin: 0 0 1.25rem;
	padding: 1.5rem;
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #customer_details .col-1,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #customer_details .col-2 {
	float: none;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-woocommerce-login-section {
	padding: 1rem 1.5rem;
	text-align: center;
}
@media (max-width: 600px) {
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-woocommerce-login-section,
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #customer_details .col-1,
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .shipping_address,
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-additional-fields,
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout__order_review,
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment {
		padding: 1.1rem;
	}
}

/* Section titles */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-billing-fields > h3,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-additional-fields > h3,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #order_review_heading,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #carrier-agent-heading {
	margin: 0 0 1.25rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--mb-line);
	font-family: var(--mb-head);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	color: var(--mb-text);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout-secondary-title,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout-secondary-title a {
	font-family: var(--mb-ui);
	font-size: 0.95rem;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .e-checkout-secondary-title a,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-privacy-policy-text a,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions-link,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .checkout-terms-link a {
	color: var(--mb-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* "Luo asiakkuus" / "Toimitus eri osoitteeseen" checkboxes */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #ship-to-different-address {
	margin: 0 0 1.25rem;
	padding: 1rem 1.5rem;
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #ship-to-different-address label,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-account-fields label,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--mb-ui);
	font-size: 1rem;
	font-weight: 500;
	color: var(--mb-text);
	cursor: pointer;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) input[type="checkbox"],
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	flex: none;
	accent-color: var(--mb-gold);
}

/* Form fields */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row {
	margin: 0 0 1rem;
	padding: 0;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row label:not(.woocommerce-form__label-for-checkbox):not(.checkbox) {
	display: block;
	margin: 0 0 0.35rem;
	font-family: var(--mb-ui);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row .required {
	color: var(--mb-gold);
	text-decoration: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row input.input-text,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row textarea,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row select,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .select2-container .select2-selection--single,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woo-carrier-agents-postcode-input-wrapper input {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	background: var(--mb-bg);
	border: 1px solid var(--mb-line-strong);
	border-radius: 8px;
	box-shadow: none;
	color: var(--mb-text);
	font-family: var(--mb-ui);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row textarea {
	min-height: 6rem;
	resize: vertical;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row input.input-text::placeholder,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row textarea::placeholder,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woo-carrier-agents-postcode-input-wrapper input::placeholder {
	color: #6c7684;
	opacity: 1;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row input.input-text:focus,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row textarea:focus,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woo-carrier-agents-postcode-input-wrapper input:focus {
	outline: none;
	border-color: var(--mb-gold);
	box-shadow: 0 0 0 3px rgba(215, 183, 65, 0.2);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .form-row.woocommerce-invalid input.input-text {
	border-color: var(--mb-red);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.6;
	color: var(--mb-text);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
}
body.woocommerce-checkout .select2-dropdown {
	background: var(--mb-panel-2);
	border-color: var(--mb-line-strong);
	color: var(--mb-text);
}

/* Order summary table */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-family: var(--mb-ui);
	font-size: 0.95rem;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table td {
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--mb-line);
	background: transparent;
	vertical-align: top;
	color: var(--mb-text);
	font-weight: 400;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table thead th {
	padding-top: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table td:last-child,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table thead th:last-child,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .cart-subtotal td,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total td {
	text-align: right;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .product-name {
	padding-right: 1rem;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .product-quantity {
	color: var(--mb-muted);
	font-weight: 400;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .amount {
	font-family: var(--mb-num);
	color: var(--mb-text);
	white-space: nowrap;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table tfoot th {
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total td {
	padding-top: 1rem;
	border-bottom: 0;
	vertical-align: baseline;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total th {
	font-family: var(--mb-head);
	font-size: 1.15rem;
	color: var(--mb-text);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total .amount {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--mb-gold);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total .includes_tax {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table .order-total .includes_tax .amount {
	font-size: inherit;
	font-weight: 400;
	color: inherit;
}

/* Summary table as flex rows: label left, amount right, shipping full width */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table :is(thead, tbody, tfoot) {
	display: block;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table tr {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 1px solid var(--mb-line);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table tr.order-total {
	border-bottom: 0;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table :is(th, td) {
	width: auto;
	max-width: none;
	min-width: 0;
	padding: 0.7rem 0;
	border-bottom: 0;
	font-size: 0.95rem;
	line-height: 1.4;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table :is(th, td):first-child {
	flex: 1;
	min-width: 0;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td {
	width: 100%;
	padding-top: 0;
	text-align: left;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li {
	text-align: left;
}

/* Checkbox label text + empty notes heading */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) :is(.woocommerce-account-fields, #ship-to-different-address, .woocommerce-terms-and-conditions-wrapper) label span {
	color: inherit;
	font-size: inherit;
	font-family: inherit;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-additional-fields > h3:empty {
	display: none;
}

/* Shipping options: stacked as selectable cards */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) tr.woocommerce-shipping-totals > th {
	display: block;
	padding-bottom: 0.5rem;
	border-bottom: 0;
	font-family: var(--mb-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) tr.woocommerce-shipping-totals > td {
	display: block;
	padding-top: 0;
	text-align: left;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.8rem 0.9rem;
	background: var(--mb-bg);
	border: 1px solid var(--mb-line);
	border-radius: 8px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li:hover {
	border-color: var(--mb-line-strong);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li:has(input:checked) {
	border-color: var(--mb-gold);
	background: rgba(215, 183, 65, 0.07);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li label {
	display: flex;
	flex: 1;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0;
	font-family: var(--mb-ui);
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--mb-text);
	cursor: pointer;
}
@media (max-width: 600px) {
	body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li label {
		font-size: 0.85rem;
	}
}
/* Make the whole card clickable */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li label::after {
	content: "";
	position: absolute;
	inset: 0;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #shipping_method li label .amount {
	flex: none;
	font-family: var(--mb-num);
	font-weight: 600;
	color: var(--mb-gold);
}

/* Pickup point search (Shipit / carrier agents) */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .carrier-agents-postcode-search {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mb-line);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woo-carrier-agents-postcode-input-wrapper {
	display: flex;
	gap: 0.5rem;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #woo-carrier-agents-search-button {
	display: inline-flex;
	align-items: center;
	padding: 0 1.25rem;
	border: 1px solid var(--mb-gold);
	border-radius: 8px;
	background: var(--mb-bg);
	color: var(--mb-text);
	font-family: var(--mb-head);
	text-decoration: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #woo-carrier-agents-search-button:hover {
	background: var(--mb-gold);
	color: #0f0f0f;
}

/* Payment (Paytrail) */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment li.wc_payment_method > label {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-family: var(--mb-head);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--mb-text);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment li.wc_payment_method > input.input-radio:only-of-type {
	display: none;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .payment_box {
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--mb-muted);
	font-size: 0.85rem;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .payment_box::before { display: none; }
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .checkout-terms-link {
	margin-bottom: 0.75rem;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-provider-group {
	margin: 0 0 0.5rem;
	padding: 0.85rem 1rem;
	background: var(--mb-bg);
	border: 1px solid var(--mb-line);
	border-radius: 8px;
	color: var(--mb-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-provider-group:hover {
	border-color: var(--mb-line-strong);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-provider-group.selected {
	border-color: var(--mb-gold);
	background: rgba(215, 183, 65, 0.07);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-provider-group-title {
	font-family: var(--mb-ui);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--mb-text);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-provider-group .provider-list {
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .paytrail-woocommerce-payment-fields {
	margin: 0.25rem 0 0.75rem;
	padding: 0.75rem;
	background: #fff;
	border-radius: 8px;
}

/* Terms + place order */
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) #payment .place-order {
	margin: 1.25rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--mb-line);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-privacy-policy-text,
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-privacy-policy-text p {
	margin: 0 0 0.9rem;
	font-family: var(--mb-ui);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions-wrapper .form-row {
	margin-bottom: 1.25rem;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
	align-items: flex-start;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions {
	max-height: 260px;
	margin-bottom: 1rem;
	padding: 1rem;
	overflow: auto;
	background: var(--mb-bg) !important;
	border: 1px solid var(--mb-line) !important;
	border-radius: 8px;
	font-size: 0.85rem;
	color: var(--mb-muted);
}
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions h1 { font-size: 1.1rem; }
body.woocommerce-checkout :is(.elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .woocommerce-terms-and-conditions h2 { font-size: 1rem; }
.mb-checkout-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0.9rem 0 0;
	font-family: var(--mb-ui);
	font-size: 0.8rem;
	color: var(--mb-muted);
}
.mb-checkout-secure svg { width: 14px; height: 14px; fill: currentColor; }

/* Notices on both pages */
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error {
	border-radius: var(--mb-radius);
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-left: 3px solid var(--mb-gold);
	color: var(--mb-text);
	font-family: var(--mb-ui);
}
body.woocommerce-checkout .woocommerce-error { border-left-color: var(--mb-red); }

/* ==========================================================================
   OSTOSKORI  (Elementor Pro "Cart" widget)
   Same panels, fields and buttons as the checkout widget above. Elementor
   Pro's cart CSS is fairly specific, so the same "#mb-x#mb-y" weight is used.
   ========================================================================== */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 16px 4rem;
	box-sizing: border-box;
	font-family: var(--mb-ui);
	color: var(--mb-text);
}

/* Two columns on desktop: products + coupon left, totals right */
@media (min-width: 1025px) {
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart__container {
		display: grid;
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart__column {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Panels */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart-section {
	box-sizing: border-box;
	margin: 0 0 1.25rem;
	padding: 1.5rem;
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	color: var(--mb-text);
}

/* Product table */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart thead th {
	padding: 0 0.75rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--mb-line);
	background: transparent;
	font-family: var(--mb-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td {
	padding: 1rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--mb-line);
	background: transparent;
	vertical-align: middle;
	color: var(--mb-text);
	font-size: 0.95rem;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-thumbnail img {
	display: block;
	width: 76px;
	max-width: 76px;
	height: auto;
	border: 1px solid var(--mb-line);
	border-radius: 8px;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-name a {
	font-family: var(--mb-head);
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--mb-text);
	text-decoration: none;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-name a:hover { color: var(--mb-gold); }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-price,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-subtotal {
	font-family: var(--mb-num);
	white-space: nowrap;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-subtotal { color: var(--mb-gold); font-weight: 600; }
/* Elementor colours every .amount black; let prices follow their cell colour */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) :is(td.product-price, td.product-subtotal, .cart_totals td) .amount { color: inherit; }

/* Remove (x) */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.product-remove { width: 2.5rem; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) a.remove {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--mb-line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--mb-muted) !important;
	font-size: 1.2rem;
	line-height: 1;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) a.remove:hover {
	background: transparent;
	border-color: var(--mb-red);
	color: var(--mb-red) !important;
}

/* Fields: quantity, coupon, shipping calculator */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) input.qty,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon input.input-text,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form input.input-text,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form select,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form .select2-selection--single {
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.6rem 0.9rem;
	background: var(--mb-bg);
	border: 1px solid var(--mb-line-strong);
	border-radius: 8px;
	box-shadow: none;
	color: var(--mb-text);
	font-family: var(--mb-ui);
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) input.qty {
	width: 4.5rem;
	padding: 0.5rem;
	text-align: center;
	font-family: var(--mb-num);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) input.qty:focus,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon input.input-text:focus,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form input.input-text:focus {
	outline: none;
	border-color: var(--mb-gold);
	box-shadow: 0 0 0 3px rgba(215, 183, 65, 0.2);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon input.input-text::placeholder { color: #6c7684; opacity: 1; }

/* Coupon row */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon .coupon-col {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	margin: 0;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon .coupon-col-start { flex: 1 1 auto; min-width: 0; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon .coupon-col-start input { width: 100%; height: 100%; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon .coupon-col-end { flex: none; }

/* Secondary buttons: update cart, apply coupon, calculator update */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions button.button,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon button.button,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form button.button {
	min-height: 2.75rem;
	padding: 0.6rem 1.25rem;
	background: transparent;
	border: 1px solid var(--mb-line-strong);
	border-radius: 8px;
	color: var(--mb-text);
	font-family: var(--mb-head);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions button.button:hover:not(:disabled),
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon button.button:hover,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form button.button:hover {
	background: transparent;
	border-color: var(--mb-gold);
	color: var(--mb-gold);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions button.button:disabled {
	opacity: 0.4;
	cursor: default;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions { padding: 1rem 0 0; text-align: right; }

/* Totals */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals { width: 100%; float: none; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals h2 {
	margin: 0 0 1rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--mb-line);
	font-family: var(--mb-head);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals table th,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals table td {
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--mb-line);
	background: transparent;
	vertical-align: top;
	font-size: 0.95rem;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals table th {
	width: 38%;
	padding-right: 1rem;
	font-weight: 500;
	text-align: left;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals table td {
	text-align: right;
	color: var(--mb-text);
	font-family: var(--mb-num);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.shipping td { font-family: var(--mb-ui); text-align: left; }
/* Elementor hides the shipping <th> and shows its data-title as a full-width
   floated ::before; the first (flex) shipping option then shrinks to 0 px.
   Turn the label into a normal block above the list. */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.shipping td::before {
	float: none;
	display: block;
	margin: 0 0 0.6rem;
	font-family: var(--mb-ui);
	font-size: 0.95rem;
	font-weight: 500;
	text-align: left;
	color: var(--mb-muted);
}

/* Shipping methods */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) #shipping_method li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 0.6rem;
	padding: 0;
	text-indent: 0;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) #shipping_method input[type="radio"] {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0.15rem 0 0;
	accent-color: var(--mb-gold);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) #shipping_method label {
	margin: 0;
	font-family: var(--mb-ui);
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--mb-text);
	cursor: pointer;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) #shipping_method label .amount {
	font-family: var(--mb-num);
	color: var(--mb-gold);
	white-space: nowrap;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .woocommerce-shipping-destination,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .woocommerce-shipping-contents {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	text-align: left;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-button {
	display: inline-block;
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: var(--mb-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form { margin-top: 0.75rem; text-align: left; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form p { margin: 0 0 0.6rem; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .shipping-calculator-form :is(input.input-text, select) { width: 100%; }

/* Grand total */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total th,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total td {
	padding-top: 1rem;
	border-bottom: 0;
	vertical-align: baseline;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total th {
	font-family: var(--mb-head);
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mb-text);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total td strong .amount {
	font-size: 1.5rem;
	color: var(--mb-gold);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total .includes_tax {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--mb-ui);
	font-size: 0.75rem;
	color: var(--mb-muted);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.order-total .includes_tax .amount { font-size: inherit; color: inherit; }

/* Primary CTA "Siirry kassalle" (same as "Lähetä tilaus") */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .wc-proceed-to-checkout { margin: 1.25rem 0 0; padding: 0; }
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 3.5rem;
	margin: 0;
	padding: 0.85rem 1.5rem;
	border: 2px solid var(--mb-blue-hi);
	border-radius: 4px;
	background: var(--mb-blue);
	color: var(--mb-gold);
	font-family: var(--mb-head);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(26, 118, 211, 0.25);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) a.checkout-button:hover {
	background: #2286ea;
	color: var(--mb-gold);
	box-shadow: 0 8px 24px rgba(26, 118, 211, 0.4);
	transform: translateY(-1px);
}
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) a.checkout-button:focus-visible {
	outline: 2px solid var(--mb-gold);
	outline-offset: 3px;
}

/* Empty cart */
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart-empty,
body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .wc-empty-cart-message {
	margin: 0 0 1.25rem;
	padding: 2rem 1.5rem;
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	text-align: center;
	color: var(--mb-text);
}

/* Phones: WooCommerce turns table rows into stacked blocks with data-title labels */
@media (max-width: 767px) {
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart-section { padding: 1.1rem; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart thead { display: none; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart tr.cart_item {
		display: block;
		position: relative;
		padding: 0.25rem 0 0.75rem;
		border-bottom: 1px solid var(--mb-line);
	}
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart tr.cart_item td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0.45rem 0;
		border: 0;
		text-align: right;
	}
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart tr.cart_item td::before {
		float: none;
		color: var(--mb-muted);
		font-size: 0.8rem;
		font-weight: 500;
	}
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-remove {
		position: absolute;
		top: 0.5rem;
		right: 0;
		width: auto;
		padding: 0;
	}
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-remove::before,
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-name::before { display: none; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-name { padding-right: 2.75rem; text-align: left; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions { display: block; text-align: center; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) td.actions button.button,
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon button.button { width: 100%; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .coupon .coupon-col { flex-direction: column; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals table th { width: auto; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .cart_totals tr.shipping td { display: block; width: 100%; }
}

/* Notices on the cart widget page */
body.woocommerce-cart .elementor-widget-woocommerce-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border-radius: var(--mb-radius);
	background: var(--mb-panel);
	border: 1px solid var(--mb-line);
	border-left: 3px solid var(--mb-gold);
	color: var(--mb-text);
	font-family: var(--mb-ui);
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce-message a { color: var(--mb-gold); }

/* --------------------------------------------------------------------------
   Elementor Cart + Checkout widgets: duplicate title, phone spacing
   -------------------------------------------------------------------------- */
/* The page has its own Elementor heading -> keep only the steps from functions.php */
.e-con:has(> :is(.e-heading-base, .elementor-widget-heading)) > :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page) .mb-checkout-head__title { display: none; }
.e-con:has(> :is(.e-heading-base, .elementor-widget-heading)) > :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page) .mb-checkout-head { margin-top: 0.5rem; }

/* The grid columns must be allowed to shrink below their content width */
body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) :is(.e-cart__column, .e-checkout__column) { min-width: 0; }

@media (max-width: 767px) {
	/* The page container already has 12px side padding; the widget's own 16px + 6px made the panels narrow */
	body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) { padding-left: 0; padding-right: 0; }
	body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) > .elementor-widget-container { padding: 0; }
	body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout-page, #mb-x#mb-y) .mb-checkout-head { padding: 0; margin-bottom: 1.25rem; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart__container { display: block; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) .e-cart__column { width: 100%; }
	/* Thumbnail has an empty data-title -> no ":" label, picture on the left */
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-thumbnail { justify-content: flex-start; padding-right: 2.75rem; }
	body.woocommerce-cart :is(.elementor-widget-woocommerce-cart, #mb-x#mb-y) table.cart td.product-thumbnail::before { display: none; }
	/* Smaller step labels so 1-2-3 fits on 320px phones */
	.mb-steps { gap: 0.35rem; font-size: 0.8rem; }
	.mb-steps li { gap: 0.35rem; }
	.mb-steps li + li::before { width: 0.9rem; }
}
