/**
 * FAZ 5 — Sepetim & Güvenli Ödeme (WooCommerce Cart / Checkout Blocks).
 *
 * Presentation only: restyles the Blocks markup with the theme tokens. Layout is
 * driven by viewport media queries (≤767 mobile, 768–1023 tablet, ≥1024 desktop)
 * and scoped to body.mt-commerce-page so other WooCommerce blocks are untouched.
 * Raw hex/px values are avoided except for component dimensions.
 */

/* ==========================================================================
   Page chrome
   ========================================================================== */

.mt-commerce {
	--mt-co-sidebar-w: 400px;
	--mt-co-gap: var(--mt-space-6);
	--mt-co-card-pad: var(--mt-space-6);
	--mt-co-card: var(--mt-bg-surface);
	--mt-co-line: var(--mt-border-subtle);
	padding-block: var(--mt-space-4) var(--mt-space-12);
}

.mt-commerce-head {
	margin-bottom: var(--mt-space-6);
}

.mt-commerce-head .mt-breadcrumb {
	margin-bottom: var(--mt-space-4);
}

.mt-commerce-head__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mt-space-3);
}

.mt-commerce-head__title {
	margin: 0;
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-4xl);
	font-weight: var(--mt-fw-extrabold);
	letter-spacing: var(--mt-ls-tight);
	line-height: var(--mt-lh-tight);
	color: var(--mt-text-heading);
}

.mt-commerce--checkout .mt-commerce-head__title,
.mt-commerce--received .mt-commerce-head__title {
	position: relative;
	padding-left: var(--mt-space-4);
}

.mt-commerce--checkout .mt-commerce-head__title::before,
.mt-commerce--received .mt-commerce-head__title::before {
	content: "";
	position: absolute;
	top: 0.12em;
	bottom: 0.12em;
	left: 0;
	width: 5px;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary);
}

.mt-commerce-head__count {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 var(--mt-space-3);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary-strong);
	color: var(--mt-color-on-primary);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-bold);
}

.mt-commerce-head__count[hidden],
.mt-commerce-head__text[hidden] {
	display: none;
}

.mt-commerce-head__text {
	margin: var(--mt-space-2) 0 0;
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-md);
}

/* Shared card look ------------------------------------------------------- */

.mt-commerce .wc-block-cart-items,
.mt-commerce .wc-block-cart__sidebar,
.mt-commerce .wc-block-checkout__sidebar,
.mt-commerce .wc-block-components-checkout-step,
.mt-freeship,
.mt-cart-empty {
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-xl);
	background: var(--mt-co-card);
	box-shadow: var(--mt-shadow-xs);
}

/* Section titles with the green bar (C§20.2) ---------------------------- */

.mt-commerce .wc-block-cart__totals-title,
.mt-commerce .wc-block-components-checkout-step__title,
.mt-commerce .wc-block-components-checkout-order-summary__title-text {
	position: relative;
	margin: 0;
	padding-left: var(--mt-space-3);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
	font-weight: var(--mt-fw-bold);
	letter-spacing: var(--mt-ls-tight);
	line-height: var(--mt-lh-snug);
	text-transform: none;
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-cart__totals-title::before,
.mt-commerce .wc-block-components-checkout-step__title::before,
.mt-commerce .wc-block-components-checkout-order-summary__title-text::before {
	content: "";
	position: absolute;
	top: 0.15em;
	bottom: 0.15em;
	left: 0;
	width: 4px;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary);
}

/* Prices: "349,90 TL" — keep the symbol the same weight/colour as the amount */
.mt-commerce .wc-block-components-formatted-money-amount__currency-symbol {
	font: inherit;
	color: inherit;
}

/* ==========================================================================
   Layout (main + sticky sidebar)
   ========================================================================== */

.mt-commerce .wp-block-woocommerce-cart.alignwide,
.mt-commerce .wp-block-woocommerce-checkout.alignwide {
	margin: 0;
	max-width: none;
}

.mt-commerce .wc-block-components-sidebar-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--mt-co-gap);
	margin: 0;
}

.mt-commerce .wc-block-components-sidebar-layout > [aria-hidden="true"]:empty {
	display: none;
}

.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-main,
.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-main {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
}

.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	flex: 0 0 var(--mt-co-sidebar-w);
	width: var(--mt-co-sidebar-w);
	padding: var(--mt-co-card-pad);
}

@media (min-width: 1024px) {
	.mt-commerce .wc-block-cart__sidebar,
	.mt-commerce .wc-block-checkout__sidebar {
		position: sticky;
		top: calc(var(--mt-header-h-compact) + var(--mt-space-4));
	}
}

@media (max-width: 1023px) {
	.mt-commerce .wc-block-components-sidebar-layout {
		flex-direction: column;
		align-items: stretch;
	}

	.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-main,
	.mt-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.mt-commerce {
		--mt-co-card-pad: var(--mt-space-4);
		--mt-co-gap: var(--mt-space-4);
	}

	.mt-commerce-head__title {
		font-size: var(--mt-fs-3xl);
	}
}

/* ==========================================================================
   Free-shipping progress (only when WooCommerce has a real threshold)
   ========================================================================== */

.mt-freeship {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--mt-space-4);
	margin-bottom: var(--mt-space-6);
	padding: var(--mt-space-5) var(--mt-space-6);
	border-color: var(--mt-green-100);
	background: var(--mt-bg-soft-green);
}

.mt-freeship[hidden] {
	display: none;
}

.mt-freeship__icon {
	color: var(--mt-color-primary);
}

.mt-freeship__title {
	margin: 0;
	font-family: var(--mt-font-heading);
	font-weight: var(--mt-fw-bold);
	color: var(--mt-text-heading);
}

.mt-freeship__text {
	margin: 2px 0 var(--mt-space-3);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-base);
}

.mt-freeship__track {
	height: 8px;
	overflow: hidden;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-green-100);
}

.mt-freeship__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--mt-color-primary);
	transition: width var(--mt-dur-slow) var(--mt-ease-out);
}

.mt-freeship__amount {
	margin: 0;
	align-self: end;
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-base);
	white-space: nowrap;
}

.mt-freeship__amount strong {
	color: var(--mt-text-heading);
}

.mt-freeship.is-reached .mt-freeship__text {
	color: var(--mt-success);
	font-weight: var(--mt-fw-semibold);
}

@media (max-width: 767px) {
	.mt-freeship {
		grid-template-columns: auto minmax(0, 1fr);
		padding: var(--mt-space-4);
		margin-bottom: var(--mt-space-4);
	}

	.mt-freeship__amount {
		grid-column: 2;
		margin-top: calc(-1 * var(--mt-space-2));
		font-size: var(--mt-fs-sm);
	}
}

/* ==========================================================================
   Cart — line items
   ========================================================================== */

.mt-commerce .wc-block-cart .wc-block-cart-items {
	display: block;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-collapse: separate;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items thead,
.mt-commerce .wc-block-cart table.wc-block-cart-items tbody {
	display: block;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header,
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	--_cols: 88px minmax(0, 1fr) 112px;
	position: relative;
	display: grid;
	grid-template-columns: var(--_cols);
	align-items: center;
	column-gap: var(--mt-space-4);
	padding: var(--mt-space-4) calc(var(--mt-space-6) + 40px) var(--mt-space-4) var(--mt-space-6);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header {
	padding-block: var(--mt-space-3);
	border-bottom: 1px solid var(--mt-co-line);
	background: var(--mt-bg-subtle);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header th {
	padding: 0;
	border: 0;
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-bold);
	letter-spacing: 0;
	text-transform: none;
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-image {
	white-space: nowrap;
}

/* Column labels for the unit price / quantity columns. The "/ ''" alt text keeps
   them out of the accessibility tree (rows already expose labelled controls). */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px 128px;
	column-gap: var(--mt-space-4);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-product::before {
	content: "Birim Fiyat" / "";
	grid-column: 2;
	text-align: center;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-product::after {
	content: "Adet" / "";
	grid-column: 3;
	text-align: center;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-total {
	text-align: center;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	border-top: 1px solid var(--mt-co-line);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row:first-child {
	border-top: 0;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row td {
	display: block;
	padding: 0;
	border: 0;
	vertical-align: middle;
}

/* Image */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
	align-self: start;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--mt-radius-lg);
	background: var(--mt-bg-muted);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

/* Product cell = name / details / badges + unit price + quantity */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px 128px;
	grid-template-areas:
		"name  price qty"
		"meta  price qty"
		"badge price qty"
		"fav   price qty";
	grid-template-rows: auto auto auto 1fr;
	align-items: center;
	column-gap: var(--mt-space-4);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity {
	display: contents;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-components-product-name {
	grid-area: name;
	align-self: end;
	margin: 0;
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-bold);
	line-height: var(--mt-lh-snug);
	color: var(--mt-text-heading);
	text-decoration: none;
	max-width: none;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-components-product-name:hover {
	color: var(--mt-text-link);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__prices {
	grid-area: price;
	text-align: center;
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-components-product-metadata {
	grid-area: meta;
	align-self: start;
	margin: var(--mt-space-1) 0 0;
	font-size: var(--mt-fs-sm);
	color: var(--mt-text-secondary);
}

.mt-commerce .wc-block-components-product-metadata__description {
	display: none; /* Short description: not part of the approved cart/summary design. */
}

.mt-commerce .wc-block-components-product-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mt-space-1) var(--mt-space-3);
	margin: 0;
}

.mt-commerce .wc-block-components-product-details > span {
	display: inline-flex;
	gap: 0.25em;
}

.mt-commerce .wc-block-components-product-details__name {
	font-weight: var(--mt-fw-regular);
}

.mt-commerce .wc-block-components-product-details__value {
	color: var(--mt-text-body);
}

/* "Stokta Var" chip (cart item data from megaticaret-core) */
.mt-commerce .wc-block-components-product-details__stok-durumu {
	flex-basis: 100%;
	order: 2;
}

.mt-commerce .wc-block-components-product-details__stok-durumu .wc-block-components-product-details__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mt-commerce .wc-block-components-product-details__stok-durumu .wc-block-components-product-details__value {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px var(--mt-space-2);
	border-radius: var(--mt-radius-sm);
	background: var(--mt-success-bg);
	color: var(--mt-success);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
}

.mt-commerce .wc-block-components-product-details__stok-durumu .wc-block-components-product-details__value::before {
	content: "";
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mt-commerce .wc-block-components-order-summary .wc-block-components-product-details__stok-durumu {
	display: none; /* Stock chip is a cart-page affordance only. */
}

/* WooCommerce stock badges ("Stokta yalnızca X kaldı", "Ön sipariş") */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-components-product-badge {
	grid-area: badge;
	justify-self: start;
	margin: var(--mt-space-2) 0 0;
	padding: 2px var(--mt-space-2);
	border: 0;
	border-radius: var(--mt-radius-sm);
	background: var(--mt-warning-bg);
	color: var(--mt-warning);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
	text-transform: none;
}

/* Quantity selector (C§14) */
.mt-commerce .wc-block-components-quantity-selector {
	grid-area: qty;
	justify-self: center;
	display: inline-flex;
	align-items: stretch;
	width: 120px;
	min-width: 0;
	height: 44px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-bg-surface);
}

.mt-commerce .wc-block-components-quantity-selector::after {
	display: none;
}

.mt-commerce .wc-block-components-quantity-selector:focus-within {
	border-color: var(--mt-border-focus);
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-components-quantity-selector__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 40px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-semibold);
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

.mt-commerce .wc-block-components-quantity-selector__input:focus {
	outline: none;
	box-shadow: none;
}

.mt-commerce .wc-block-components-quantity-selector__button {
	flex: 0 0 40px;
	min-width: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-xl);
	line-height: 1;
	opacity: 1;
	cursor: pointer;
}

.mt-commerce .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary-strong);
}

.mt-commerce .wc-block-components-quantity-selector__button:disabled {
	color: var(--mt-text-disabled);
	cursor: not-allowed;
}

/* Remove (×) — absolutely placed at the row end */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link {
	position: absolute;
	top: 50%;
	right: var(--mt-space-6);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-round);
	background: var(--mt-bg-surface);
	color: var(--mt-text-secondary);
	font-size: 0;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--mt-dur-fast), border-color var(--mt-dur-fast), background var(--mt-dur-fast);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link svg {
	display: none;
}

/* "×" as in the approved design (WooCommerce ships a trash icon). */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link:hover {
	border-color: var(--mt-danger);
	background: var(--mt-danger-bg);
	color: var(--mt-danger);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link:focus-visible,
.mt-ci-fav:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

/* Favorilere taşı (signed-in only, injected by megaticaret-core) */
.mt-ci-fav {
	grid-area: fav;
	justify-self: start;
	align-self: start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: var(--mt-space-2) 0 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-medium);
	cursor: pointer;
}

.mt-ci-fav:hover {
	color: var(--mt-color-primary-strong);
}

.mt-ci-fav .mt-icon {
	width: 16px;
	height: 16px;
}

.mt-ci-fav.is-loading {
	opacity: 0.6;
	cursor: progress;
}

/* Line total */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
	text-align: center;
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-lg);
	font-weight: var(--mt-fw-bold);
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.mt-commerce .wc-block-components-sale-badge {
	margin: 0;
	padding: 2px var(--mt-space-2);
	border: 0;
	border-radius: var(--mt-radius-sm);
	background: var(--mt-danger-bg);
	color: var(--mt-danger);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
	text-transform: none;
}

/* Updating state (WooCommerce adds is-disabled while the Store API request runs) */
.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row.is-disabled {
	opacity: 0.55;
	transition: opacity var(--mt-dur-base);
}

/* Tablet / mobile: vertical product cards ------------------------------- */
@media (max-width: 899px) {
	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header {
		display: none;
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		--_cols: 88px minmax(0, 1fr);
		align-items: start;
		padding: var(--mt-space-4) calc(var(--mt-space-4) + 40px) var(--mt-space-4) var(--mt-space-4);
		row-gap: var(--mt-space-3);
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__wrap {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"name"
			"meta"
			"badge"
			"price"
			"fav"
			"qty";
		grid-template-rows: none;
		row-gap: 0;
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-components-product-name {
		align-self: start;
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__prices {
		margin-top: var(--mt-space-2);
		text-align: left;
		font-size: var(--mt-fs-base);
		color: var(--mt-text-secondary);
	}

	.mt-commerce .wc-block-components-quantity-selector {
		justify-self: start;
		margin-top: var(--mt-space-3);
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
		position: absolute;
		right: var(--mt-space-4);
		bottom: calc(var(--mt-space-4) + 10px);
		text-align: right;
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__remove-link {
		top: var(--mt-space-4);
		right: var(--mt-space-4);
		margin: 0;
	}
}

@media (max-width: 479px) {
	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		--_cols: 72px minmax(0, 1fr);
		column-gap: var(--mt-space-3);
	}

	.mt-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
		font-size: var(--mt-fs-md);
	}
}

/* Cross-sells ("Sizin İçin Önerilenler") — only when products have cross-sells */
.mt-commerce .wp-block-woocommerce-cart-cross-sells-block,
.mt-commerce .wc-block-cart__main .wp-block-woocommerce-product-collection {
	margin-top: var(--mt-space-10);
}

.mt-commerce .wc-block-cart__main .wp-block-woocommerce-product-collection h2 {
	position: relative;
	padding-left: var(--mt-space-3);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-2xl);
}

.mt-commerce .wc-block-cart__main .wp-block-woocommerce-product-collection h2::before {
	content: "";
	position: absolute;
	top: 0.15em;
	bottom: 0.15em;
	left: 0;
	width: 4px;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary);
}

/* ==========================================================================
   Sidebar — order summary (cart + checkout)
   ========================================================================== */

.mt-commerce .wc-block-cart__totals-title {
	display: block;
	margin-bottom: var(--mt-space-4);
}

.mt-commerce .wc-block-components-totals-wrapper {
	padding: var(--mt-space-3) 0;
	border-top: 1px solid var(--mt-co-line);
}

.mt-commerce .wc-block-components-totals-wrapper:empty {
	display: none;
}

.mt-commerce .wp-block-woocommerce-cart-order-summary-totals-block .wc-block-components-totals-wrapper,
.mt-commerce .wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper {
	border-top: 0;
	padding-block: var(--mt-space-1);
}

.mt-commerce .wp-block-woocommerce-cart-order-summary-totals-block,
.mt-commerce .wp-block-woocommerce-checkout-order-summary-totals-block {
	padding-block: var(--mt-space-2);
	border-top: 1px solid var(--mt-co-line);
}

.mt-commerce .wc-block-components-totals-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--mt-space-2);
	padding: var(--mt-space-1) 0;
	font-size: var(--mt-fs-md);
	color: var(--mt-text-body);
}

.mt-commerce .wc-block-components-totals-item__label {
	flex: 1 1 auto;
}

.mt-commerce .wc-block-components-totals-item__value {
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
	white-space: nowrap;
}

.mt-commerce .wc-block-components-totals-item__description {
	flex-basis: 100%;
	font-size: var(--mt-fs-xs);
	color: var(--mt-text-muted);
}

.mt-commerce .wc-block-components-totals-discount .wc-block-components-totals-item__value,
.mt-commerce .wc-block-components-totals-discount .wc-block-components-totals-item__label {
	color: var(--mt-success);
}

.mt-commerce .wc-block-components-totals-discount .wc-block-components-chip,
.mt-commerce .wc-block-components-totals-discount__coupon-list-item {
	border: 1px solid var(--mt-green-200);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-success-bg);
	color: var(--mt-success);
	font-size: var(--mt-fs-xs);
}

/* Grand total */
.mt-commerce .wc-block-components-totals-footer-item {
	align-items: center;
	margin-top: var(--mt-space-1);
	padding: var(--mt-space-4);
	border-radius: var(--mt-radius-lg);
	background: var(--mt-bg-soft-green);
}

.mt-commerce .wc-block-components-totals-wrapper:has(> .wc-block-components-totals-footer-item) {
	border-top: 0;
}

.mt-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-lg);
	font-weight: var(--mt-fw-bold);
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-2xl);
	font-weight: var(--mt-fw-extrabold);
	color: var(--mt-color-primary);
}

.mt-commerce .wc-block-components-totals-footer-item-tax {
	margin: 0;
	text-align: right;
}

/* Coupon panel */
.mt-commerce .wc-block-components-totals-coupon .wc-block-components-panel__button {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	margin: 0;
	padding: var(--mt-space-2) 0;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-semibold);
}

.mt-commerce .wc-block-components-totals-coupon .wc-block-components-panel__button::before {
	content: "";
	flex: 0 0 18px;
	height: 18px;
	background: var(--mt-color-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mt-commerce .wc-block-components-totals-coupon__form {
	display: flex;
	gap: var(--mt-space-2);
	margin-top: var(--mt-space-2);
}

.mt-commerce .wc-block-components-totals-coupon__form .wc-block-components-text-input {
	flex: 1 1 auto;
	margin: 0;
}

.mt-commerce .wc-block-components-totals-coupon__button {
	flex: 0 0 auto;
	min-height: 48px;
	margin: 0;
	padding: 0 var(--mt-space-5);
	border: 1.5px solid var(--mt-btn-outline-border);
	border-radius: var(--mt-radius-md);
	background: var(--mt-bg-surface);
	color: var(--mt-btn-outline-text);
	font-weight: var(--mt-fw-bold);
}

.mt-commerce .wc-block-components-totals-coupon__button:hover:not(:disabled) {
	background: var(--mt-color-primary-soft);
}

/* Primary actions: "Ödemeye Geç" / "Siparişi Tamamla" */
.mt-commerce .wc-block-cart__submit {
	margin: var(--mt-space-4) 0 0;
}

.mt-commerce .wc-block-cart__submit-button,
.mt-commerce .wc-block-components-checkout-place-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mt-space-2);
	width: 100%;
	min-height: var(--mt-btn-h-xl);
	padding: 0 var(--mt-space-6);
	border: 0;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-btn-primary-bg);
	color: var(--mt-btn-primary-text);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
	font-weight: var(--mt-fw-bold);
	text-decoration: none;
	box-shadow: var(--mt-shadow-green);
	transition: background var(--mt-dur-fast);
}

.mt-commerce .wc-block-cart__submit-button:hover,
.mt-commerce .wc-block-components-checkout-place-order-button:hover:not(:disabled) {
	background: var(--mt-btn-primary-bg-hover);
	color: var(--mt-btn-primary-text);
}

.mt-commerce .wc-block-cart__submit-button:focus-visible,
.mt-commerce .wc-block-components-checkout-place-order-button:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-cart__submit-button .wc-block-components-button__text,
.mt-commerce .wc-block-components-checkout-place-order-button__text {
	display: inline-flex;
	align-items: center;
	gap: var(--mt-space-2);
}

.mt-commerce .wc-block-cart__submit-button .wc-block-components-button__text::before,
.mt-commerce .wc-block-components-checkout-place-order-button__text::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mt-commerce .wc-block-cart__submit-button .wc-block-components-button__text::after,
.mt-commerce .wc-block-components-checkout-place-order-button__text::after {
	content: "→" / "";
	font-family: var(--mt-font-body);
}

/* WooCommerce's own mobile sticky container is replaced by .mt-cart-bar */
.mt-commerce .wc-block-cart__submit-container--sticky {
	display: none;
}

/* Trust panel (megaticaret/cart-trust, megaticaret/checkout-trust) ------- */
.mt-co-trust {
	display: grid;
	gap: var(--mt-space-5);
	margin-top: var(--mt-space-4);
}

.mt-co-continue {
	min-height: var(--mt-btn-h-lg);
	border-radius: var(--mt-radius-pill);
	text-decoration: none;
}

.mt-co-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.mt-co-icon svg {
	display: block;
}

.mt-co-benefits {
	display: grid;
	gap: var(--mt-space-4);
	margin: 0;
	padding: var(--mt-space-4) 0 0;
	border-top: 1px solid var(--mt-co-line);
	list-style: none;
}

.mt-co-benefit {
	display: flex;
	align-items: flex-start;
	gap: var(--mt-space-3);
}

.mt-co-benefit__icon {
	color: var(--mt-color-primary);
}

.mt-co-benefit__title {
	margin: 0;
	font-weight: var(--mt-fw-bold);
	font-size: var(--mt-fs-base);
	color: var(--mt-text-heading);
}

.mt-co-benefit__text {
	margin: 2px 0 0;
	font-size: var(--mt-fs-sm);
	color: var(--mt-text-secondary);
}

.mt-co-payments {
	padding-top: var(--mt-space-4);
	border-top: 1px solid var(--mt-co-line);
}

.mt-co-payments__title {
	margin: 0 0 var(--mt-space-3);
	font-weight: var(--mt-fw-bold);
	font-size: var(--mt-fs-base);
	color: var(--mt-text-heading);
}

.mt-co-payments__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-co-payments__list .mt-pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 40px;
	padding: 0 var(--mt-space-2);
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-md);
	background: var(--mt-bg-surface);
}

.mt-co-payments__list .mt-pay svg,
.mt-co-payments__list .mt-pay img {
	height: 26px;
	width: auto;
}

.mt-co-payments__list .mt-pay--3ds {
	gap: 6px;
	font-size: var(--mt-fs-sm);
	color: var(--mt-text-heading);
}

.mt-co-payments__list .mt-pay--3ds .mt-co-icon {
	color: var(--mt-color-primary);
}

/* Accepted payment methods block (only shows gateways that have icons) */
.mt-commerce .wc-block-cart__payment-options:empty {
	display: none;
}

/* ==========================================================================
   Mobile sticky "Genel Toplam / Ödemeye Geç" bar (cart)
   ========================================================================== */

.mt-cart-bar {
	display: none;
}

@media (max-width: 767px) {
	.mt-cart-bar:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: var(--mt-z-sticky);
		display: flex;
		align-items: center;
		gap: var(--mt-space-3);
		padding: var(--mt-space-3) var(--mt-gutter) calc(var(--mt-space-3) + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--mt-co-line);
		background: var(--mt-bg-surface);
		box-shadow: var(--mt-shadow-bottom-nav);
		transition: transform var(--mt-dur-base) var(--mt-ease-out);
	}

	/* On-screen keyboard open: never cover the focused field. */
	.mt-input-focus .mt-cart-bar {
		transform: translateY(110%);
	}

	.mt-cart-has-items .mt-commerce--cart {
		padding-bottom: calc(var(--mt-sticky-bar-h) + var(--mt-space-12) + env(safe-area-inset-bottom, 0px));
	}

	.mt-cart-bar__total {
		display: flex;
		flex-direction: column;
		min-width: 0;
		line-height: 1.2;
	}

	.mt-cart-bar__label {
		font-size: var(--mt-fs-xs);
		color: var(--mt-text-secondary);
	}

	.mt-cart-bar__amount {
		font-family: var(--mt-font-heading);
		font-size: var(--mt-fs-xl);
		color: var(--mt-color-primary);
		white-space: nowrap;
	}

	.mt-cart-bar__cta {
		flex: 1 1 auto;
		min-height: var(--mt-btn-h-lg);
		border-radius: var(--mt-radius-pill);
		text-decoration: none;
	}
}

/* ==========================================================================
   Empty cart (megaticaret/cart-empty)
   ========================================================================== */

.mt-commerce .wp-block-woocommerce-empty-cart-block {
	margin: 0;
}

.mt-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
	padding: var(--mt-space-12) var(--mt-space-6);
	text-align: center;
}

.mt-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: var(--mt-space-5);
	border-radius: var(--mt-radius-round);
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary);
}

.mt-cart-empty__title {
	margin: 0;
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-2xl);
	font-weight: var(--mt-fw-extrabold);
	color: var(--mt-text-heading);
}

.mt-cart-empty__text {
	max-width: 46ch;
	margin: var(--mt-space-2) 0 var(--mt-space-6);
	color: var(--mt-text-secondary);
}

.mt-cart-empty__actions {
	margin: 0;
}

.mt-cart-empty__actions .mt-btn {
	border-radius: var(--mt-radius-pill);
	text-decoration: none;
}

.mt-cart-empty__cats {
	width: 100%;
	margin-top: var(--mt-space-8);
	padding-top: var(--mt-space-6);
	border-top: 1px solid var(--mt-co-line);
}

.mt-cart-empty__cats-title {
	margin: 0 0 var(--mt-space-3);
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
}

.mt-cart-empty__cats ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--mt-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--mt-space-4);
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-bg-surface);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-medium);
	text-decoration: none;
}

.mt-chip:hover {
	border-color: var(--mt-color-primary);
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary-strong);
}

@media (max-width: 767px) {
	.mt-cart-empty {
		padding: var(--mt-space-10) var(--mt-space-4);
	}
}

/* ==========================================================================
   Checkout — form steps
   ========================================================================== */

.mt-commerce .wc-block-checkout__form {
	margin: 0;
}

.mt-commerce .wc-block-components-checkout-step {
	margin: 0 0 var(--mt-space-4);
	padding: var(--mt-co-card-pad);
}

.mt-commerce .wc-block-components-checkout-step::after {
	display: none; /* step connector line */
}

.mt-commerce .wc-block-components-checkout-step__heading-container {
	margin-bottom: var(--mt-space-4);
}

.mt-commerce .wc-block-components-checkout-step__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-2);
	margin: 0;
}

.mt-commerce .wc-block-components-checkout-step__heading-content,
.mt-commerce .wc-block-checkout__login-prompt {
	font-size: var(--mt-fs-sm);
	color: var(--mt-text-link);
}

.mt-commerce .wc-block-components-checkout-step__description {
	margin: calc(-1 * var(--mt-space-2)) 0 var(--mt-space-4);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-base);
}

.mt-commerce .wc-block-components-checkout-step__container,
.mt-commerce .wc-block-components-checkout-step__content {
	padding: 0;
	margin: 0;
}

/* Order note: a plain card without a title */
.mt-commerce .wc-block-checkout__order-notes.wc-block-components-checkout-step {
	padding-block: var(--mt-space-4);
}

/* Fields ------------------------------------------------------------------ */
.mt-commerce .wc-block-components-text-input input,
.mt-commerce .wc-block-components-textarea,
.mt-commerce .wc-blocks-components-select .wc-blocks-components-select__select {
	min-height: var(--mt-input-h);
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-md);
	background-color: var(--mt-bg-surface);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	box-shadow: none;
}

.mt-commerce .wc-block-components-textarea {
	min-height: 96px;
	padding: var(--mt-space-3);
}

.mt-commerce .wc-block-components-text-input input:hover,
.mt-commerce .wc-blocks-components-select__select:hover {
	border-color: var(--mt-border-strong);
}

.mt-commerce .wc-block-components-text-input input:focus,
.mt-commerce .wc-block-components-textarea:focus,
.mt-commerce .wc-blocks-components-select__select:focus {
	border-color: var(--mt-border-focus);
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-components-text-input label,
.mt-commerce .wc-blocks-components-select__label {
	color: var(--mt-text-secondary);
}

.mt-commerce .wc-block-components-text-input.has-error input,
.mt-commerce .wc-blocks-components-select.has-error .wc-blocks-components-select__select {
	border-color: var(--mt-danger);
	background-color: var(--mt-danger-bg);
}

.mt-commerce .wc-block-components-validation-error,
.mt-commerce .wc-block-components-text-input.has-error label {
	color: var(--mt-danger);
}

.mt-commerce .wc-block-components-validation-error > p {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: var(--mt-fs-sm);
}

/* Address grid: two columns on desktop (WooCommerce controls which fields are half width) */
.mt-commerce .wc-block-components-address-form {
	column-gap: var(--mt-space-4);
}

/* Checkboxes & radios ------------------------------------------------------ */
.mt-commerce .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1.5px solid var(--mt-border-strong);
	border-radius: var(--mt-radius-xs);
	background: var(--mt-bg-surface);
}

.mt-commerce .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--mt-color-primary-strong);
	background: var(--mt-color-primary-strong);
}

.mt-commerce .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--mt-white);
	width: 16px;
	height: 16px;
	margin-left: 2px;
}

.mt-commerce .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-components-checkbox__label {
	color: var(--mt-text-body);
	font-size: var(--mt-fs-base);
	line-height: var(--mt-lh-normal);
}

.mt-commerce .wc-block-components-radio-control__option,
.mt-commerce .wc-block-components-radio-control-accordion-option {
	border-radius: var(--mt-radius-lg);
}

.mt-commerce .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option,
.mt-commerce .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option {
	margin: 0 0 var(--mt-space-2);
	border: 1px solid var(--mt-co-line);
	box-shadow: none;
}

.mt-commerce .wc-block-components-radio-control--highlight-checked::after {
	display: none;
}

.mt-commerce .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked,
.mt-commerce .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--mt-color-primary);
	background: var(--mt-color-primary-soft);
	box-shadow: none;
}

.mt-commerce .wc-block-components-radio-control-accordion-option--checked-option-highlighted .wc-block-components-radio-control__option {
	margin: 0;
	border: 0;
	background: transparent;
}

.mt-commerce .wc-block-components-radio-control__input {
	border: 1.5px solid var(--mt-border-strong);
	background: var(--mt-bg-surface);
}

.mt-commerce .wc-block-components-radio-control__input:checked {
	border: 6px solid var(--mt-color-primary-strong);
}

.mt-commerce .wc-block-components-radio-control__input:checked::before {
	display: none;
}

.mt-commerce .wc-block-components-radio-control__input:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-components-radio-control__label {
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-components-radio-control__secondary-label {
	font-weight: var(--mt-fw-bold);
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-components-radio-control__description,
.mt-commerce .wc-block-components-radio-control-accordion-content {
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

/* "No shipping method" / notices inside steps */
.mt-commerce .wc-block-components-notice-banner {
	border-radius: var(--mt-radius-lg);
	font-size: var(--mt-fs-base);
}

/* Consents (megaticaret/checkout-consents) -------------------------------- */
.mt-co-consents {
	display: grid;
	gap: var(--mt-space-3);
	margin: 0 0 var(--mt-space-4);
	padding: var(--mt-co-card-pad);
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-xl);
	background: var(--mt-bg-surface);
}

.mt-co-consent .wc-block-components-checkbox {
	margin: 0;
}

.mt-co-consent .wc-block-components-checkbox label {
	align-items: flex-start;
}

.mt-co-consent a {
	color: var(--mt-text-link);
	font-weight: var(--mt-fw-semibold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mt-co-consent a.is-draft {
	text-decoration-style: dashed;
}

.mt-co-required {
	color: var(--mt-danger);
}

.mt-co-consent.has-error .wc-block-components-checkbox__input[type="checkbox"] {
	border-color: var(--mt-danger);
	box-shadow: 0 0 0 3px var(--mt-danger-bg);
}

.mt-co-consent__error {
	margin: var(--mt-space-1) 0 0 32px;
	color: var(--mt-danger);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-medium);
}

.mt-co-consent--optional .wc-block-components-checkbox__label {
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-co-notice {
	display: flex;
	gap: var(--mt-space-2);
	margin: 0;
	padding-top: var(--mt-space-3);
	border-top: 1px solid var(--mt-co-line);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-co-notice .mt-co-icon svg {
	width: 18px;
	height: 18px;
	color: var(--mt-info);
}

.mt-co-notice a {
	color: var(--mt-text-link);
}

.mt-co-admin-note {
	display: flex;
	gap: var(--mt-space-2);
	padding: var(--mt-space-3);
	border: 1px dashed var(--mt-warning);
	border-radius: var(--mt-radius-md);
	background: var(--mt-warning-bg);
	color: var(--mt-warning);
	font-size: var(--mt-fs-sm);
}

.mt-co-admin-note p {
	margin: 0;
}

.mt-co-admin-note svg {
	width: 18px;
	height: 18px;
}

/* Place order row ---------------------------------------------------------- */
.mt-commerce .wc-block-checkout__actions {
	padding: 0;
}

.mt-commerce .wc-block-checkout__actions_row {
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: var(--mt-space-3);
}

.mt-commerce .wc-block-components-checkout-return-to-cart-button {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--mt-space-2);
	color: var(--mt-text-secondary);
	font-weight: var(--mt-fw-semibold);
	text-decoration: none;
}

.mt-commerce .wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--mt-text-link);
}

.mt-commerce .wc-block-components-checkout-place-order-button:disabled,
.mt-commerce .wc-block-components-checkout-place-order-button.wc-block-components-button--loading {
	opacity: 0.7;
	cursor: progress;
}

/* Checkout sidebar (order summary) ---------------------------------------- */
.mt-commerce .wc-block-components-checkout-order-summary__title {
	margin: 0 0 var(--mt-space-3);
	padding: 0;
	border: 0;
}

.mt-commerce .wc-block-components-checkout-order-summary__title-price {
	font-weight: var(--mt-fw-bold);
	color: var(--mt-color-primary);
}

.mt-commerce .wc-block-components-order-summary {
	padding: 0;
}

.mt-commerce .wc-block-components-order-summary .wc-block-components-order-summary__content {
	display: grid;
	gap: var(--mt-space-3);
}

.mt-commerce .wc-block-components-order-summary-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: start;
	gap: var(--mt-space-3);
	padding: 0;
}

.mt-commerce .wc-block-components-order-summary-item__image {
	position: relative;
	width: 64px;
	margin: 0;
	padding: 0;
}

.mt-commerce .wc-block-components-order-summary-item__image > img {
	width: 64px;
	height: 64px;
	max-width: none;
	border-radius: var(--mt-radius-md);
	background: var(--mt-bg-muted);
	object-fit: contain;
}

.mt-commerce .wc-block-components-order-summary-item__quantity {
	min-width: 22px;
	height: 22px;
	border: 2px solid var(--mt-white);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary-strong);
	color: var(--mt-white);
	font-size: var(--mt-fs-2xs);
	font-weight: var(--mt-fw-bold);
	box-shadow: none;
}

.mt-commerce .wc-block-components-order-summary-item__description {
	padding: 0;
	font-size: var(--mt-fs-sm);
}

.mt-commerce .wc-block-components-order-summary-item .wc-block-components-product-name {
	margin: 0;
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
}

.mt-commerce .wc-block-components-order-summary-item__individual-prices {
	font-size: var(--mt-fs-xs);
	color: var(--mt-text-muted);
}

.mt-commerce .wc-block-components-order-summary-item__total-price {
	font-weight: var(--mt-fw-bold);
	color: var(--mt-color-primary);
	white-space: nowrap;
}

@media (max-width: 1023px) {
	/* Mobile/tablet: WooCommerce shows the summary as an accordion; keep it compact */
	.mt-commerce .wc-block-checkout__sidebar {
		order: -1;
	}
}

/* Order received / thank-you (classic WooCommerce template) --------------- */
.mt-commerce--received .woocommerce-order {
	display: grid;
	gap: var(--mt-space-6);
}

.mt-commerce--received .woocommerce-notice--success {
	margin: 0;
	padding: var(--mt-space-4) var(--mt-space-5);
	border: 1px solid var(--mt-green-200);
	border-radius: var(--mt-radius-lg);
	background: var(--mt-success-bg);
	color: var(--mt-success);
	font-weight: var(--mt-fw-semibold);
}

.mt-commerce--received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--mt-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-commerce--received .woocommerce-order-overview li {
	padding: var(--mt-space-4);
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-lg);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-commerce--received .woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
}

.mt-commerce--received .woocommerce-order-details,
.mt-commerce--received .woocommerce-customer-details,
.mt-commerce--received .woocommerce-bacs-bank-details,
.mt-commerce--received .wc-block-order-confirmation-summary {
	padding: var(--mt-co-card-pad);
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-xl);
}

.mt-commerce--received h2 {
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
}

.mt-commerce--received table {
	width: 100%;
	border-collapse: collapse;
}

.mt-commerce--received th,
.mt-commerce--received td {
	padding: var(--mt-space-2) 0;
	border-bottom: 1px solid var(--mt-co-line);
	text-align: left;
}

.mt-commerce--received tfoot tr:last-child td {
	color: var(--mt-color-primary);
	font-weight: var(--mt-fw-bold);
}

@media (prefers-reduced-motion: reduce) {
	.mt-freeship__fill,
	.mt-cart-bar {
		transition: none;
	}
}

/* ---- Checkout refinements ---------------------------------------------- */
.mt-commerce .wc-block-components-checkout-return-to-cart-button {
	position: relative;
	padding-left: calc(var(--mt-space-2) + 20px);
}

.mt-commerce .wc-block-components-checkout-return-to-cart-button svg {
	position: absolute;
	top: 50%;
	left: 0;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	fill: currentColor;
}

.mt-commerce .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	border-radius: 0;
}

.mt-commerce .wc-block-components-checkout-order-summary__content {
	padding: 0;
}

@media (max-width: 1023px) {
	/* Mobile summary is an accordion at the top: keep it short. Benefits stay in the footer band. */
	.mt-co-trust--checkout .mt-co-benefits {
		display: none;
	}

	.mt-co-trust--checkout:not(:has(.mt-co-payments, .mt-placeholder)) {
		display: none;
	}
}

/* Variation attributes first, then the "Stokta Var" chip (WooCommerce renders two lists). */
.mt-commerce .wc-block-components-product-metadata {
	display: flex;
	flex-direction: column;
	gap: var(--mt-space-1);
}

.mt-commerce .wc-block-components-product-details:has(.wc-block-components-product-details__stok-durumu) {
	order: 2;
}

/* Order received: status + continue shopping */
.mt-received-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-3);
	padding: var(--mt-space-4) var(--mt-space-5);
	border: 1px solid var(--mt-co-line);
	border-radius: var(--mt-radius-xl);
}

.mt-received-actions__status {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	margin: 0;
	font-weight: var(--mt-fw-semibold);
	color: var(--mt-text-heading);
}

.mt-received-actions__continue {
	border-radius: var(--mt-radius-pill);
	text-decoration: none;
}

.mt-commerce--received .woocommerce-order-overview {
	margin-inline: 0;
}

/* Field borders: WooCommerce's form selectors are more specific than the generic rule above. */
.mt-commerce .wc-block-components-form .wc-block-components-text-input input[type],
.mt-commerce .wc-block-components-form .wc-block-components-textarea,
.mt-commerce .wc-block-components-totals-coupon .wc-block-components-text-input input[type],
.mt-commerce .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-md);
}

.mt-commerce .wc-block-components-form .wc-block-components-text-input input[type]:focus,
.mt-commerce .wc-block-components-form .wc-block-components-textarea:focus,
.mt-commerce .wc-block-components-totals-coupon .wc-block-components-text-input input[type]:focus,
.mt-commerce .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--mt-border-focus);
	box-shadow: var(--mt-focus-ring);
}

.mt-commerce .wc-block-components-form .wc-block-components-text-input.has-error input[type],
.mt-commerce .wc-block-components-form .wc-blocks-components-select.has-error .wc-blocks-components-select__select {
	border-color: var(--mt-danger);
}
