/**
 * WooCommerce Blocks — Cart & Checkout
 * Force two-column layout + polished i3D Mobility UI.
 */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
	background: linear-gradient(180deg, #f7f7f5 0%, #fff 220px);
}

body.woocommerce-cart .terea-wc-container,
body.woocommerce-checkout .terea-wc-container {
	padding-top: 12px;
	padding-bottom: 56px;
	max-width: 1180px;
	width: 100%;
}

.terea-wc-flow-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 8px 0 24px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
}

.terea-wc-flow-header__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: #111;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.terea-wc-flow-header__eyebrow svg {
	width: 14px;
	height: 14px;
	color: var(--tx-accent, #c8102e);
}

.terea-wc-flow-header__title {
	margin: 0;
	font-family: var(--tx-font-heading, Syne, sans-serif);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111;
	line-height: 1.25;
}

.terea-wc-flow-header__meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f6f6f6;
	border: 1px solid #e8e8e6;
	color: #374151;
	font-size: 13px;
	font-weight: 650;
}

.terea-wc-flow-header__meta svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--tx-accent, #c8102e);
}

/* Hide duplicate page titles */
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
	display: none;
}

/* --------------------------------------------------------------------------
   CRITICAL: mobile-first stack, desktop two-column.
   Never force minmax(280px, …) on small screens — that crushed the form column.
   -------------------------------------------------------------------------- */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout.wc-block-cart,
.wc-block-components-sidebar-layout.wc-block-checkout {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 18px !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	grid-template-columns: none !important;
	container-type: normal !important;
	container-name: none !important;
}

body.woocommerce-cart .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-main,
.wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.wc-block-components-sidebar-layout > .wc-block-components-sidebar {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
	padding: 0 !important;
	margin: 0 !important;
	grid-column: auto !important;
	grid-row: auto !important;
	position: static !important;
	box-sizing: border-box !important;
}

/* Cart: order summary first on mobile. Checkout: form (contact) first. */
body.woocommerce-cart .wc-block-components-sidebar {
	order: -1;
}

body.woocommerce-checkout .wc-block-components-main {
	order: -1 !important;
}

body.woocommerce-checkout .wc-block-components-sidebar {
	order: 0 !important;
}

/* Nested wrappers must not become extra grids */
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block > * {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	grid-template-columns: none !important;
}

@media (min-width: 901px) {
	body.woocommerce-cart .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout,
	.wc-block-components-sidebar-layout.wc-block-cart,
	.wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid !important;
		grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr) !important;
		gap: 24px !important;
		column-gap: 24px !important;
		row-gap: 20px !important;
		align-items: start !important;
		flex-direction: unset !important;
	}

	body.woocommerce-cart .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-main,
	.wc-block-components-sidebar-layout > .wc-block-components-main {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		order: 0 !important;
	}

	body.woocommerce-cart .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.wc-block-components-sidebar-layout > .wc-block-components-sidebar {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		order: 0 !important;
		position: sticky !important;
		top: calc(var(--tx-header-offset, 88px) + 16px) !important;
		align-self: start !important;
	}
}

/* --------------------------------------------------------------------------
   Typography / prices
   -------------------------------------------------------------------------- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
	font-family: var(--tx-font, Manrope, system-ui, sans-serif);
	color: #111;
}

.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__heading,
h2.wc-block-components-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
	font-family: var(--tx-font-heading, Syne, sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #111 !important;
}

.wc-block-components-product-name {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111 !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
}

.wc-block-components-product-name:hover {
	color: var(--tx-accent, #c8102e) !important;
}

.wc-block-components-product-price,
.wc-block-components-product-price .price,
.wc-block-formatted-money-amount,
.wc-block-components-totals-item__value,
.wc-block-components-order-summary-item__total-price {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wc-block-components-product-price__value,
.wc-block-components-product-price .price {
	color: #111 !important;
	font-weight: 800 !important;
}

.wc-block-components-product-price del,
.wc-block-components-product-price__regular {
	color: #9ca3af !important;
	font-weight: 500 !important;
}

.wc-block-components-sale-badge,
.wc-block-components-product-badge {
	background: #ecfdf5 !important;
	color: #047857 !important;
	border: 1px solid #a7f3d0 !important;
	border-radius: 999px !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	padding: 3px 8px !important;
}

.wc-block-components-product-metadata__description,
.wc-block-cart-item__product .wc-block-components-product-details,
.wc-block-components-order-summary-item__description {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
.wc-block-components-text-input,
.wc-block-components-textarea,
.wc-block-components-combobox,
.wc-block-components-select,
.wc-block-components-address-form .wc-block-components-text-input,
.wc-block-components-address-form .wc-block-components-combobox,
.wc-block-components-address-form .wc-block-components-state-input,
.wc-block-components-address-form .wc-block-components-country-input {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.wc-block-components-address-form {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 12px !important;
	width: 100% !important;
}

@media (min-width: 640px) {
	body.woocommerce-checkout .wc-block-components-address-form {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 14px !important;
		row-gap: 12px !important;
	}

	body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1,
	body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2,
	body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-country-input,
	body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__company,
	body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__phone {
		grid-column: 1 / -1 !important;
	}
}

.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-combobox input,
.wc-block-components-select select,
.wc-block-components-form .wc-block-components-text-input input {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	padding: 11px 12px !important;
	min-height: 44px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #111 !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-select select:focus {
	border-color: #111 !important;
	border-width: 1px !important;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08) !important;
	outline: none !important;
}

/* Standard labels above fields (not cramped floating labels) */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-select {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-combobox label,
body.woocommerce-checkout .wc-block-components-select label {
	position: static !important;
	transform: none !important;
	top: auto !important;
	left: auto !important;
	order: -1 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #374151 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.01em !important;
	pointer-events: auto !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-select select {
	padding: 10px 12px !important;
	min-height: 42px !important;
}

body.woocommerce-checkout .wc-block-components-text-input.is-active input,
body.woocommerce-checkout .wc-block-components-combobox.is-active input {
	padding: 10px 12px !important;
}

.wc-block-components-checkbox label {
	font-size: 14px !important;
	color: #111 !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: #111 !important;
	border-color: #111 !important;
}

/* --------------------------------------------------------------------------
   Quantity selector
   -------------------------------------------------------------------------- */
.wc-block-components-quantity-selector {
	border: 1px solid #e5e5e5 !important;
	border-radius: 10px !important;
	overflow: hidden;
	background: #fff !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	border: 0 !important;
	background: transparent !important;
	color: #111 !important;
	min-height: 36px;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	background: #f4f4f2 !important;
}

/* --------------------------------------------------------------------------
   Cart line items
   -------------------------------------------------------------------------- */
.wc-block-cart-items,
table.wc-block-cart-items {
	border: 1px solid #ececec !important;
	border-radius: 16px !important;
	overflow: hidden;
	background: #fff;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	width: 100% !important;
}

.wc-block-cart-items__header,
.wc-block-cart-items thead {
	background: #fafafa;
}

.wc-block-cart-items__header th,
.wc-block-cart-items__header .wc-block-cart-items__header-product,
.wc-block-cart-items__header .wc-block-cart-items__header-total {
	font-size: 11px !important;
	font-weight: 750 !important;
	letter-spacing: 0.07em !important;
	text-transform: uppercase !important;
	color: #6b7280 !important;
	padding: 12px 16px !important;
	border-bottom: 1px solid #ececec !important;
}

.wc-block-cart-items__row,
.wc-block-cart-items tbody td {
	padding: 18px 16px !important;
	border-bottom: 1px solid #f0f0ee !important;
	vertical-align: top !important;
}

.wc-block-cart-items__row:last-child td {
	border-bottom: 0 !important;
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img,
.wc-block-components-product-image img {
	border-radius: 10px !important;
	border: 1px solid #ececec;
	background: #fff;
}

.wc-block-cart-item__remove-link {
	color: #9ca3af !important;
	font-size: 12.5px !important;
	text-decoration: none !important;
}

.wc-block-cart-item__remove-link:hover {
	color: #dc2626 !important;
}

/* --------------------------------------------------------------------------
   Sidebar cards (cart totals / order summary)
   -------------------------------------------------------------------------- */
.wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-sidebar > .wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-sidebar > .wp-block-woocommerce-checkout-order-summary-block {
	background: #fff !important;
	border: 1px solid #ececec !important;
	border-radius: 16px !important;
	padding: 20px !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04) !important;
}

.wc-block-checkout__sidebar {
	border: 0 !important;
}

.wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
	border: 0 !important;
	border-radius: 5px !important;
}

/* Avoid double-boxing every child */
.wc-block-components-sidebar > * + * {
	margin-top: 12px;
}

.wc-block-cart__sidebar .wc-block-cart__totals-title,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title,
.wc-block-components-order-summary .wc-block-components-panel__button,
.wp-block-woocommerce-cart-order-summary-heading-block {
	font-size: 1.1rem !important;
	margin: 0 0 14px !important;
	padding: 0 0 12px !important;
	border-bottom: 1px solid #eeeeee !important;
}

.wc-block-components-totals-wrapper {
	border-top: 1px solid #eeeeee !important;
	padding-top: 8px !important;
	margin-top: 8px !important;
}

.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
	padding: 12px 0 !important;
}

.wc-block-components-totals-item__label {
	color: #6b7280 !important;
	font-weight: 500 !important;
	font-size: 14px !important;
}

.wc-block-components-totals-item__value {
	color: #111 !important;
	font-weight: 700 !important;
}

.wc-block-components-totals-footer-item {
	border-top: 1px solid #eeeeee !important;
	margin-top: 4px !important;
	padding-top: 16px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #111 !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
}

.wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #111 !important;
	font-size: 1.4rem !important;
	font-weight: 800 !important;
}

.wc-block-components-totals-coupon {
	border: 1.5px dashed #d4d4d4 !important;
	border-radius: 12px !important;
	padding: 12px 14px !important;
	margin: 10px 0 14px !important;
	background: #fafafa !important;
}

.wc-block-components-panel__button {
	font-weight: 700 !important;
	color: #111 !important;
}

/* --------------------------------------------------------------------------
   Primary CTAs
   -------------------------------------------------------------------------- */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-button.contained,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-button.contained {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	background: var(--tx-accent, #c8102e) !important;
	border: 0 !important;
	border-radius: 12px !important;
	color: #fff !important;
	font-family: var(--tx-font, Manrope, system-ui, sans-serif) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	font-stretch: normal !important;
	font-style: normal !important;
	letter-spacing: 0.02em !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	text-decoration: none !important;
	padding: 12px 18px !important;
	min-height: 48px !important;
	height: auto !important;
	max-height: none !important;
	box-shadow: none !important;
	transform: none !important;
	transition: background 0.15s ease, transform 0.15s ease !important;
	width: 100% !important;
	box-sizing: border-box !important;
	white-space: normal !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-button.contained:hover,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-button.contained:hover {
	background: #a50d25 !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-button__text {
	display: inline !important;
	line-height: 1.25 !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-family: inherit !important;
	font-stretch: normal !important;
	letter-spacing: inherit !important;
	text-transform: none !important;
	transform: none !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	white-space: normal !important;
}

.wc-block-cart__submit-container,
.wc-block-cart__submit,
.wc-block-checkout__actions_row {
	margin-top: 14px !important;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Checkout steps
   -------------------------------------------------------------------------- */
.wc-block-checkout__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.woocommerce-checkout .wc-block-components-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wc-block-components-checkout-step {
	background: #fff;
	border: 1px solid #e8e8e6;
	border-radius: 12px;
	padding: 20px 20px 22px;
	margin: 0 !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wc-block-components-checkout-step__heading {
	font-size: 1.05rem !important;
	margin: 0 0 2px !important;
	line-height: 1.3 !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #f0f0ee !important;
}

.wc-block-components-checkout-step__title {
	font-family: var(--tx-font-heading, Syne, sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
}

.wc-block-components-checkout-step__description {
	color: #6b7280 !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	margin: 10px 0 14px !important;
}

.wc-block-components-checkout-step__title::after {
	display: none !important;
}

.wc-block-components-address-form {
	gap: 14px !important;
}

/* --------------------------------------------------------------------------
   Mobile typography + spacing (beats global h1/h2 mobile clamps)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	body.woocommerce-cart .terea-wc-container,
	body.woocommerce-checkout .terea-wc-container,
	body.woocommerce-cart .entry-content,
	body.woocommerce-checkout .entry-content,
	body.woocommerce-cart .wp-block-woocommerce-cart,
	body.woocommerce-checkout .wp-block-woocommerce-checkout {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		overflow-x: clip;
	}

	body.woocommerce-cart h1,
	body.woocommerce-checkout h1,
	body.woocommerce-cart h2,
	body.woocommerce-checkout h2,
	body.woocommerce-cart .wc-block-components-title,
	body.woocommerce-checkout .wc-block-components-title,
	body.woocommerce-cart .wc-block-components-checkout-step__title,
	body.woocommerce-checkout .wc-block-components-checkout-step__title,
	body.woocommerce-cart .wc-block-components-checkout-step__heading,
	body.woocommerce-checkout .wc-block-components-checkout-step__heading,
	body.woocommerce-cart .wc-block-cart__totals-title,
	body.woocommerce-checkout .wp-block-woocommerce-cart-order-summary-heading-block {
		font-size: 1.15rem !important;
		line-height: 1.3 !important;
		letter-spacing: -0.02em !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none !important;
		max-width: 100% !important;
	}

	body.woocommerce-cart .wc-block-components-checkout-step,
	body.woocommerce-checkout .wc-block-components-checkout-step {
		padding: 16px !important;
		border-radius: 14px !important;
	}

	body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
	body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
	body.woocommerce-cart .wc-block-cart-items,
	body.woocommerce-checkout .wc-block-components-panel {
		padding: 16px !important;
		border-radius: 14px !important;
	}

	/* Stack all billing fields on small screens */
	body.woocommerce-checkout .wc-block-components-address-form {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-cart .wc-block-cart-items,
	body.woocommerce-cart table.wc-block-cart-items,
	body.woocommerce-cart .wc-block-cart-items thead {
		display: block !important;
		width: 100% !important;
	}

	body.woocommerce-cart .wc-block-cart-items thead {
		display: none !important;
	}

	body.woocommerce-cart .wc-block-cart-items tbody,
	body.woocommerce-cart .wc-block-cart-items__row {
		display: block !important;
		width: 100% !important;
	}

	body.woocommerce-cart .wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr) !important;
		gap: 12px !important;
		padding: 14px !important;
		border-bottom: 1px solid #f0f0ee !important;
	}

	body.woocommerce-cart .wc-block-cart-items__row td {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	body.woocommerce-cart .wc-block-cart-item__product {
		grid-column: 2;
	}

	body.woocommerce-cart .wc-block-cart-item__quantity,
	body.woocommerce-cart .wc-block-cart-item__total {
		grid-column: 2;
	}
}

@media (max-width: 781px) {
	.terea-wc-flow-header {
		padding: 14px 16px;
		border-radius: 14px;
	}

	.wc-block-components-checkout-step,
	.wc-block-cart-items,
	.wc-block-components-sidebar > .wp-block-woocommerce-cart-order-summary-block,
	.wc-block-components-sidebar > .wp-block-woocommerce-checkout-order-summary-block {
		border-radius: 14px !important;
	}
}

/* --------------------------------------------------------------------------
   Shipping / payment radios
   -------------------------------------------------------------------------- */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
	border: 1px solid #e5e5e5 !important;
	border-radius: 12px !important;
	padding: 12px 14px !important;
	margin: 0 0 10px !important;
	background: #fff !important;
}

.wc-block-components-radio-control__option:hover {
	border-color: #c4c4c4 !important;
	background: #fafafa !important;
}

.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control-accordion-option:has(input:checked) {
	border-color: #111 !important;
	background: #f7f7f5 !important;
}

.wc-block-components-radio-control__label {
	font-weight: 700 !important;
	color: #111 !important;
	padding-left: 30px !important;
}

.wc-block-components-radio-control__description,
.wc-block-components-radio-control__secondary-label {
	color: #6b7280 !important;
	font-size: 13px !important;
}

.wc-block-components-order-summary-item {
	padding: 12px 0 !important;
	border-bottom: 1px solid #f0f0ee !important;
}

.wc-block-components-order-summary-item:last-child {
	border-bottom: 0 !important;
}

.wc-block-components-order-summary-item__quantity {
	background: #111 !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	box-shadow: none !important;
	font-weight: 800 !important;
	min-width: 22px !important;
	height: 22px !important;
	border-radius: 999px !important;
}

.wc-block-components-notice-banner {
	border-radius: 12px !important;
}

.wc-block-components-validation-error {
	color: #dc2626 !important;
	font-size: 12.5px !important;
}

.wc-block-checkout__terms,
.wc-block-components-checkout-policies {
	font-size: 12.5px !important;
	color: #6b7280 !important;
}

.wc-block-checkout__terms a {
	color: var(--tx-accent, #c8102e) !important;
}

/* --------------------------------------------------------------------------
   Blocks checkout — payment + place order in right rail
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .wc-block-components-sidebar {
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .i3d-checkout-complete {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	overflow: hidden;
	padding: 0;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-payment-block,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__payment-method,
body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-order-note-block,
body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-terms-block,
body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-actions-block,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__actions {
	margin: 0 !important;
	width: 100% !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-step {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 18px 20px 8px !important;
	margin: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-step__title {
	font-family: var(--tx-font-heading, Syne, sans-serif) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #111 !important;
	margin: 0 0 6px !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-step__description {
	display: none !important;
}

/* Flatten nested payment boxes — one clean method card */
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control__option-layout {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control__option,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control-accordion-option {
	border: 1px solid #e8e8e6 !important;
	border-radius: 12px !important;
	padding: 14px !important;
	margin: 0 0 10px !important;
	background: #fafafa !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control__option:has(input:checked),
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control-accordion-option:has(input:checked) {
	border-color: #111 !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px #111;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-radio-control__description {
	margin-top: 8px !important;
	padding-top: 0 !important;
	border: 0 !important;
	color: #6b7280 !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-order-note-block,
body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-terms-block {
	padding: 4px 20px 0 !important;
	border-top: 1px solid #f0f0ee;
}

body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-order-note-block {
	padding-top: 14px !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__add-note,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkbox {
	margin: 0 0 10px !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkbox__label {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #111 !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wp-block-woocommerce-checkout-actions-block,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__actions {
	padding: 8px 20px 20px !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__actions_row {
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-place-order-button {
	min-height: 52px !important;
	border-radius: 8px !important;
	font-family: var(--tx-font-body, Manrope, sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-policies,
body.woocommerce-checkout .i3d-checkout-complete .wc-block-checkout__terms {
	margin: 0 0 4px !important;
	line-height: 1.5 !important;
}

@media (max-width: 900px) {
	body.woocommerce-checkout .wc-block-components-sidebar .i3d-checkout-complete,
	body.woocommerce-checkout .terea-checkout-payment-card {
		order: 2;
	}
}

/* --------------------------------------------------------------------------
   Polish pass — standard e-commerce scale (blocks + shared)
   -------------------------------------------------------------------------- */
body.woocommerce-cart,
body.woocommerce-checkout {
	font-size: 15px;
}

body.woocommerce-cart .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	display: block !important;
	font-size: 12px !important;
	color: #6b7280 !important;
	margin-top: 2px !important;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-product-metadata {
	font-size: 12px !important;
	color: #6b7280 !important;
}

body.woocommerce-cart .wc-block-components-form-token-field-wrapper,
body.woocommerce-checkout .wc-block-components-form-token-field-wrapper {
	margin-bottom: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__container {
	margin-top: 4px !important;
}

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
	color: #374151 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
}

body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	padding: 18px !important;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	border-radius: 8px !important;
	min-height: 46px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
}

body.woocommerce-checkout .i3d-checkout-complete .wc-block-components-checkout-place-order-button {
	text-transform: none !important;
	letter-spacing: 0.01em !important;
	font-weight: 600 !important;
}

/* Order summary line items — compact product row */
body.woocommerce-checkout .wc-block-components-order-summary-item__image {
	width: 56px !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__product {
	font-size: 14px !important;
	font-weight: 600 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
	font-size: 14px !important;
	font-weight: 700 !important;
}

/* Contact step — single column, tight spacing */
body.woocommerce-checkout .wc-block-components-checkout-step .wc-block-components-text-input {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-components-combobox .components-base-control,
body.woocommerce-checkout .wc-block-components-select .components-base-control {
	width: 100%;
}

body.woocommerce-checkout .wc-block-components-combobox .components-form-token-field__input-container,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input {
	min-height: 42px !important;
	border-radius: 8px !important;
}

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
	display: inline-block;
	margin: 2px 0 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #374151 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

body.woocommerce-checkout .wc-block-components-validation-error {
	margin-top: 4px !important;
	font-size: 12px !important;