/* M10c shared Woo Blocks transaction guards/foundation moved out of the route artifact. These selectors intentionally keep cart/checkout scope where the original CSS did. */

.wcts-transaction-empty-state {
	display: none;
}

.wcts-transaction-empty-state__back {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1.5rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--wcts-color-muted);
	text-decoration: none;
}

.wcts-transaction-empty-state__back:hover,
.wcts-transaction-empty-state__back:focus-visible {
	color: var(--wcts-color-ink);
}

.wcts-transaction-empty-state__title,
.wcts-transaction-empty-state__heading,
.wcts-transaction-empty-state__copy {
	margin: 0;
}

.wcts-transaction-empty-state__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--wcts-color-ink);
}

.wcts-transaction-empty-state__card {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: clamp(2rem, 5vw, 3rem);
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: var(--wcts-color-white);
	text-align: center;
}

.wcts-transaction-empty-state__icon {
	display: grid;
	place-items: center;
	width: 5rem;
	height: 5rem;
	border-radius: 999px;
	background: #f3f4f6;
	color: #5f6673;
}

.wcts-transaction-empty-state__icon svg {
	width: 2.25rem;
	height: 2.25rem;
}

.wcts-transaction-empty-state__heading {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wcts-color-ink);
}

.wcts-transaction-empty-state__copy {
	max-width: 32rem;
	color: var(--wcts-color-muted);
}

.wcts-transaction-empty-state__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding-inline: 1.5rem;
	border: 1px solid var(--wcts-color-black);
	background: var(--wcts-color-black);
	color: var(--wcts-color-white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.wcts-transaction-empty-state__cta:hover,
.wcts-transaction-empty-state__cta:focus-visible {
	background: #111827;
	border-color: #111827;
	color: var(--wcts-color-white);
}

.wcts-transaction-content :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
	margin: 0;
}

.wcts-transaction-content .wc-block-components-notice-banner,
.wcts-transaction-content .wc-block-store-notice,
.wcts-order-confirmation .wc-block-components-notice-banner,
.wcts-order-confirmation .woocommerce-error,
.wcts-order-confirmation .woocommerce-info,
.wcts-order-confirmation .woocommerce-message {
	margin: 0 0 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0;
	background: var(--wcts-color-white);
	box-shadow: none;
}

.wcts-transaction-content :is(.wc-block-components-notice-banner, .wc-block-store-notice, .wc-block-components-validation-error, .wc-block-components-validation-error p) {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.wcts-transaction-content--checkout .wc-block-components-validation-error {
	margin-top: 0.45rem;
	color: #8a1f11;
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1.4;
}

.wcts-transaction-content--checkout .wc-block-components-validation-error p {
	margin: 0;
}

.wcts-transaction-content .wc-block-components-main,
.wcts-transaction-content .wc-block-components-sidebar,
.wcts-transaction-content .wc-block-cart__main,
.wcts-transaction-content .wc-block-checkout__main {
	min-width: 0;
}

.wcts-transaction-content .wc-block-components-sidebar,
.wcts-transaction-content .wp-block-woocommerce-cart-order-summary-block,
.wcts-transaction-content .wc-block-components-order-summary {
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

.wcts-transaction-content .wc-block-components-sidebar,
.wcts-transaction-content .wp-block-woocommerce-cart-order-summary-block,
.wcts-transaction-content .wc-block-components-order-summary,
.wcts-order-confirmation__summary,
.wcts-order-confirmation__panel {
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: var(--wcts-color-white);
	box-shadow: none;
}

.wcts-transaction-content--cart .wc-block-cart-items,
.wcts-transaction-content--cart .wc-block-components-totals-wrapper,
.wcts-transaction-content--checkout .wc-block-components-checkout-step,
.wcts-transaction-content--checkout .wc-block-components-order-summary,
.wcts-transaction-content--checkout .wc-block-checkout__actions_row {
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: var(--wcts-color-white);
	box-shadow: none;
}

.wcts-transaction-content--cart .wc-block-cart-items,
.wcts-transaction-content--checkout .wc-block-components-checkout-step,
.wcts-transaction-content--checkout .wc-block-checkout__actions_row {
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

.wcts-transaction-content--cart .wc-block-cart__empty-cart__title,
.wcts-transaction-content--checkout .wc-block-checkout__empty-cart__title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--wcts-color-ink);
}

.wcts-transaction-content--cart .wc-block-cart__empty-cart p,
.wcts-transaction-content--checkout .wc-block-checkout__empty-cart p {
	max-width: 32rem;
	margin-inline: auto;
	color: var(--wcts-color-muted);
}

.wcts-transaction-content--cart .wc-block-cart__submit-button,
.wcts-transaction-content--cart .wc-block-components-button,
.wcts-transaction-content--checkout .wc-block-components-button,
.wcts-order-confirmation .wc-block-components-button,
.wcts-order-confirmation .woocommerce-verify-email button,
.wcts-order-confirmation .wc-block-components-checkout-return-to-cart-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	border: 1px solid var(--wcts-color-black);
	border-radius: 0;
	background: var(--wcts-color-black);
	color: var(--wcts-color-white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.wcts-transaction-content :is(a, button, input, select, textarea, [role="button"]):focus-visible,
.wcts-order-confirmation :is(a, button, input, select, textarea, [role="button"]):focus-visible,
.wcts-checkout-header a:focus-visible,
.wcts-checkout-footer a:focus-visible {
	outline: 2px solid var(--wcts-color-black);
	outline-offset: 3px;
}

.wcts-transaction-content--cart .wc-block-cart__submit-button:hover,
.wcts-transaction-content--cart .wc-block-cart__submit-button:focus-visible,
.wcts-transaction-content--cart .wc-block-components-button:hover,
.wcts-transaction-content--cart .wc-block-components-button:focus-visible,
.wcts-transaction-content--checkout .wc-block-components-button:hover,
.wcts-transaction-content--checkout .wc-block-components-button:focus-visible,
.wcts-order-confirmation .wc-block-components-button:hover,
.wcts-order-confirmation .wc-block-components-button:focus-visible,
.wcts-order-confirmation .woocommerce-verify-email button:hover,
.wcts-order-confirmation .woocommerce-verify-email button:focus-visible,
.wcts-order-confirmation .wc-block-components-checkout-return-to-cart-button:hover,
.wcts-order-confirmation .wc-block-components-checkout-return-to-cart-button:focus-visible {
	background: #111827;
	border-color: #111827;
	color: var(--wcts-color-white);
}

.wcts-transaction-content--cart .wc-block-components-quantity-selector,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector {
	border-radius: 0;
	min-height: 3rem;
	overflow: visible;
}

.wcts-transaction-content--cart .wc-block-components-quantity-selector input,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector input {
	min-width: 2.75rem;
	min-height: 2.75rem;
}

.wcts-transaction-content--cart .wc-block-components-quantity-selector button,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector button,
.wcts-transaction-content--cart .wc-block-components-quantity-selector__button,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector__button {
	min-width: 2.75rem;
	min-height: 2.75rem;
	color: var(--wcts-color-ink);
	transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.wcts-transaction-content--cart .wc-block-components-quantity-selector button:hover,
.wcts-transaction-content--cart .wc-block-components-quantity-selector button:focus-visible,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector button:hover,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector button:focus-visible,
.wcts-transaction-content--cart .wc-block-components-quantity-selector__button:hover,
.wcts-transaction-content--cart .wc-block-components-quantity-selector__button:focus-visible,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector__button:hover,
.wcts-transaction-content--checkout .wc-block-components-quantity-selector__button:focus-visible {
	background: #f3f4f6;
	color: var(--wcts-color-black);
	box-shadow: inset 0 0 0 1px var(--wcts-color-black);
}

.wcts-transaction-content--cart .wc-block-cart-item__image img,
.wcts-transaction-content--checkout .wc-block-components-order-summary-item__image img {
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: var(--wcts-color-white);
}

.wcts-transaction-content--cart .wc-block-components-product-name,
.wcts-transaction-content--checkout .wc-block-components-product-name,
.wcts-order-confirmation .wc-block-order-confirmation-summary-list-item__value {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 700;
	color: var(--wcts-color-ink);
	text-decoration: none;
}

.wcts-transaction-content--cart .wc-block-components-product-name:hover,
.wcts-transaction-content--cart .wc-block-components-product-name:focus-visible,
.wcts-transaction-content--checkout .wc-block-components-product-name:hover,
.wcts-transaction-content--checkout .wc-block-components-product-name:focus-visible {
	color: var(--wcts-color-ink);
	text-decoration: underline;
}

.wcts-transaction-content--cart .wc-block-components-product-price,
.wcts-transaction-content--cart .wc-block-components-formatted-money-amount,
.wcts-transaction-content--checkout .wc-block-components-product-price,
.wcts-transaction-content--checkout .wc-block-components-formatted-money-amount,
.wcts-order-confirmation .wc-block-order-confirmation-summary-list-item__key,
.wcts-order-confirmation .wc-block-order-confirmation-summary-list-item__value {
	font-size: 0.95rem;
}

.wcts-transaction-content--cart .wc-block-components-totals-item__label,
.wcts-transaction-content--checkout .wc-block-components-totals-item__label,
.wcts-transaction-content--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wcts-transaction-content--checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wcts-color-text-muted);
}

.wcts-transaction-content--cart .wc-block-components-totals-item__value,
.wcts-transaction-content--checkout .wc-block-components-totals-item__value,
.wcts-transaction-content--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wcts-transaction-content--checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--wcts-color-ink);
}

.wcts-transaction-content--cart .wc-block-components-totals-footer-item,
.wcts-transaction-content--checkout .wc-block-components-totals-footer-item {
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid #e5e7eb;
}

/* Transaction presentation: keep Woo behavior, tighten only the theme layer. */
.wcts-transaction-content {
	--wcts-transaction-border: #dfe5e2;
	--wcts-transaction-subtle: #f4f7f5;
	--wcts-transaction-soft: #f9fbfa;
	--wcts-transaction-sidebar: clamp(21rem, 28vw, 24rem);
	--wcts-transaction-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
	--wcts-transaction-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.055);
}

.wcts-transaction-content :is(.wc-block-cart, .wp-block-woocommerce-cart, .wc-block-checkout, .wp-block-woocommerce-checkout) {
	width: 100%;
	max-width: none;
}

.wcts-transaction-content :is(.wc-block-components-sidebar-layout, .is-large.wc-block-components-sidebar-layout) {
	display: grid;
	align-items: start;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	width: 100%;
}

.wcts-transaction-content--checkout :is(.wc-block-components-sidebar-layout, .is-large.wc-block-components-sidebar-layout) {
	grid-template-columns: minmax(0, 1fr) clamp(19rem, 27vw, 23rem);
}

.wcts-transaction-content :is(.wc-block-components-main, .wc-block-components-sidebar, .wc-block-cart__main, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar) {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	padding-inline: 0 !important;
}

.wcts-transaction-content :is(.wc-block-cart, .wc-block-checkout) {
	transition: opacity 180ms ease;
}

.wcts-transaction-content :is(.wc-block-cart-items, .wc-block-components-sidebar, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar, .wc-block-components-order-summary, .wc-block-components-totals-wrapper) {
	transition: opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.wcts-transaction-content :is(.wc-block-cart-items__row, .wc-block-components-order-summary-item) {
	min-height: 6.75rem;
}

.wcts-transaction-content :is(.wc-block-components-totals-wrapper, .wp-block-woocommerce-cart-order-summary-block) {
	min-height: 2.8rem;
}

.wcts-transaction-content--checkout :is(.wc-block-components-checkout-step, .wc-block-components-order-summary) {
	position: relative;
}

.wcts-transaction-content :is(.is-loading, [aria-busy="true"]) {
	cursor: progress;
}

.wcts-transaction-content :is(.wc-block-components-spinner, .wc-block-components-loading-mask) {
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(1px);
}

.wcts-transaction-content :is(.wc-block-components-button[aria-disabled="true"], .wc-block-components-button:disabled) {
	opacity: 0.74;
}

.wcts-transaction-content :is(.wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-totals-wrapper) {
	position: static !important;
	top: auto !important;
	min-height: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wcts-transaction-content :is(.wc-block-components-totals-wrapper, .wc-block-components-totals-item) {
	padding: 0;
}

.wcts-transaction-content .wc-block-components-totals-wrapper {
	border: 0;
}

.wcts-transaction-content .wc-block-components-totals-item {
	padding-block: 0.56rem;
	border-bottom: 0;
}

.wcts-transaction-content .wc-block-components-totals-item__label,
.wcts-transaction-content .wc-block-components-totals-item__value {
	color: #3f4752;
	font-size: 0.86rem;
	font-weight: 600 !important;
	letter-spacing: 0;
	text-transform: none;
}

.wcts-transaction-content .wc-block-components-totals-item:not(.wc-block-components-totals-footer-item) :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value, .wc-block-components-formatted-money-amount) {
	font-weight: 600 !important;
}

.wcts-transaction-content .wc-block-components-totals-footer-item {
	margin-top: 0.55rem;
	padding: 0.95rem 0 0;
	border-top: 1px solid #d9dde3;
	border-bottom: 0;
}

.wcts-transaction-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wcts-transaction-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #111111;
	font-size: 1.05rem;
	font-weight: 900 !important;
	letter-spacing: 0;
	text-transform: none;
}

.wcts-transaction-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.2rem;
}

.wcts-transaction-content :is(.wc-block-components-order-summary, .wc-block-components-order-summary__content) {
	border: 0;
	box-shadow: none;
}

.wcts-transaction-content :is(.wc-block-components-totals-wrapper:empty, .wp-block-woocommerce-checkout-order-summary-discount-block:empty, .wp-block-woocommerce-checkout-order-summary-fee-block:empty) {
	display: none !important;
}

.wcts-transaction-content :is(.wc-block-components-totals-item__description:empty, .wc-block-components-totals-wrapper:has(.wc-block-components-totals-item__description:empty) .wc-block-components-totals-item__description) {
	display: none;
}

.wcts-transaction-content :is(.wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-totals-wrapper) {
	border-bottom: 0;
}

.wcts-transaction-content :is(.wc-block-components-totals-footer-item .wc-block-components-totals-item__label) {
	text-transform: uppercase;
}
