/* Soloteche My Account polish: shared shell, endpoints and CEV 2FA. */

.logged-in.woocommerce-account .soloteche-account-page__inner,
.logged-in.woocommerce-account .soloteche-account-page .wp-block-post-content {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

body.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
	grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
	grid-template-areas:
		"notices notices"
		"context context"
		"navigation content";
	column-gap: var(--wp--preset--spacing--space-8);
	row-gap: var(--wp--preset--spacing--space-6);
}

.logged-in.woocommerce-account .soloteche-account-auth {
	width: 100%;
	max-width: none;
}

.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-notices-wrapper {
	grid-area: notices;
	width: 100%;
}

.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-navigation {
	grid-area: navigation;
	float: none;
	width: 100%;
	margin: 0;
}

.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-content {
	grid-area: content;
	float: none;
	width: 100%;
	min-width: 0;
}

.logged-in.woocommerce-account .soloteche-account-context {
	grid-area: context;
	display: grid;
	gap: var(--wp--preset--spacing--space-1);
	margin: 0;
}

.logged-in.woocommerce-account .soloteche-account-context h1 {
	margin: 0;
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: 500;
	line-height: 1.08;
}

.logged-in.woocommerce-account .soloteche-account-context p {
	max-width: 64ch;
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 var(--wp--preset--spacing--space-3);
	line-height: 1.35;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
	padding-left: calc(var(--wp--preset--spacing--space-3) - 2px);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a {
	color: var(--wp--preset--color--muted);
}

.woocommerce-account .woocommerce-MyAccount-content {
	font-size: var(--wp--preset--font-size--base);
}

.woocommerce-account .soloteche-account-dashboard__title {
	display: none;
}

.woocommerce-account .soloteche-account-dashboard__intro {
	gap: var(--wp--preset--spacing--space-1);
}

.woocommerce-account .soloteche-account-dashboard__welcome {
	font-size: var(--wp--preset--font-size--3-xl);
}

.woocommerce-account .soloteche-account-dashboard__empty {
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-Addresses {
	align-items: stretch;
	gap: var(--wp--preset--spacing--space-4);
	margin-top: var(--wp--preset--spacing--space-4);
}

.woocommerce-account .woocommerce-Addresses > :is(.woocommerce-Address, .u-column1, .u-column2) {
	float: none !important;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	padding: var(--wp--preset--spacing--space-3);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-Addresses .u-column1 {
	grid-column: 1;
}

.woocommerce-account .woocommerce-Addresses .u-column2 {
	grid-column: 2;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--space-2);
	margin-bottom: var(--wp--preset--spacing--space-3);
}

.woocommerce-account .woocommerce-Address-title h2 {
	max-width: 16ch;
	font-size: var(--wp--preset--font-size--2-xl);
}

.woocommerce-account .woocommerce-Address-title .edit {
	display: inline-flex;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	margin-bottom: 0;
	text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-Address address {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-style: normal;
	line-height: 1.6;
}

.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields {
	max-width: 820px;
}

.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-EditAccountForm, .woocommerce-address-fields) {
	box-sizing: border-box;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-EditAccountForm, .woocommerce-address-fields) .form-row {
	box-sizing: border-box;
	margin: 0 0 var(--wp--preset--spacing--space-3);
}

.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-EditAccountForm, .woocommerce-address-fields) label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--space-1);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--space-2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.woocommerce-account .woocommerce-MyAccount-content select {
	display: block;
	height: 48px;
	min-height: 48px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 46px;
	vertical-align: middle;
}

body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"] {
	height: 48px;
	padding: 0 var(--wp--preset--spacing--space-2);
	background: var(--wp--preset--color--surface, #fff);
}

body.woocommerce-account .woocommerce-MyAccount-content select.country_to_state--single {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 var(--wp--preset--spacing--space-2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface, #fff);
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single {
	height: 48px;
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--space-2);
	background: var(--wp--preset--color--surface, #fff);
}

.woocommerce-account .woocommerce-MyAccount-content :is(input, select, textarea):focus,
.woocommerce-account .woocommerce-MyAccount-content .select2-container--focus .select2-selection--single,
.woocommerce-account .woocommerce-MyAccount-content .select2-container--open .select2-selection--single {
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 1px var(--wp--preset--color--contrast);
	outline: none;
}

.woocommerce-account .woocommerce-MyAccount-content .select2-container {
	display: block;
	width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single {
	display: flex !important;
	align-items: center !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 var(--wp--preset--spacing--space-2) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__rendered {
	display: block;
	width: 100%;
	padding: 0 32px 0 0 !important;
	line-height: normal !important;
}

.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0 !important;
	right: var(--wp--preset--spacing--space-2);
	height: 48px !important;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
	margin: var(--wp--preset--spacing--space-4) 0;
	padding: var(--wp--preset--spacing--space-3);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-EditAccountForm legend {
	padding: 0 var(--wp--preset--spacing--space-1);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 500;
}

.woocommerce-account .woocommerce-EditAccountForm em {
	display: block;
	margin-top: var(--wp--preset--spacing--space-1);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-style: normal;
}

.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--space-3);
	min-height: 64px;
	background: var(--wp--preset--color--surface);
}

.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before {
	color: var(--wp--preset--color--contrast);
}

.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) .button {
	flex: 0 0 auto;
	order: 2;
}

/* Orders: keep the WooCommerce past-orders email confirmation notice on one line. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info {
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	width: 100%;
	max-width: none;
	min-height: 64px;
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3) !important;
	gap: var(--wp--preset--spacing--space-2);
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info::before {
	position: static !important;
	inset: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-alt);
	line-height: 1;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button {
	flex: 0 0 auto;
	order: 2;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--muted) !important;
	min-height: auto !important;
	line-height: 1.4 !important;
	text-decoration: underline !important;
	text-underline-offset: .18em;
}

@media (max-width: 720px) {
	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info {
		align-items: flex-start;
		flex-wrap: wrap;
		white-space: normal;
	}

	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button {
		margin-left: 48px !important;
	}
}

body.woocommerce-account .wc-block-components-notice-banner {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 64px;
	margin: 0 0 var(--wp--preset--spacing--space-3);
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 0;
	background: var(--wp--preset--color--surface) !important;
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
}

body.woocommerce-account .wc-block-components-notice-banner > svg {
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 7px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface-alt) !important;
	fill: var(--wp--preset--color--contrast) !important;
}

body.woocommerce-account .wc-block-components-notice-banner__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--space-3);
	min-width: 0;
	padding: 0;
}

body.woocommerce-account .wc-block-components-notice-banner__content .button {
	flex: 0 0 auto;
	order: 2;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--muted) !important;
	min-height: auto !important;
	line-height: 1.4 !important;
	text-decoration: underline !important;
	text-underline-offset: .18em;
	white-space: nowrap;
}

body.soloteche-orders-list .wc-block-components-notice-banner {
	border-color: color-mix(in srgb, var(--wp--preset--color--warning) 55%, var(--wp--preset--color--border)) !important;
	background: color-mix(in srgb, var(--wp--preset--color--warning) 8%, var(--wp--preset--color--surface)) !important;
}

body.soloteche-orders-list .wc-block-components-notice-banner > svg {
	border-color: color-mix(in srgb, var(--wp--preset--color--warning) 55%, var(--wp--preset--color--border));
	background: color-mix(in srgb, var(--wp--preset--color--warning) 12%, var(--wp--preset--color--surface)) !important;
	fill: var(--wp--preset--color--warning) !important;
}

body.soloteche-orders-list .wc-block-components-notice-banner__content .button {
	color: var(--wp--preset--color--warning) !important;
	font-weight: 500;
}

@media (max-width: 720px) {
	body.woocommerce-account .wc-block-components-notice-banner {
		grid-template-columns: 32px minmax(0, 1fr);
		align-items: start;
		padding: var(--wp--preset--spacing--space-2);
	}

	body.woocommerce-account .wc-block-components-notice-banner__content {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--space-1);
	}

	body.woocommerce-account .wc-block-components-notice-banner__content .button {
		order: 2;
		white-space: normal;
	}
}


/* Orders endpoint: use the wide account canvas so the verification banner and table share one width. */
body.soloteche-orders-list .soloteche-account-page__inner,
body.soloteche-orders-list .soloteche-account-page .wp-block-post-content,
body.soloteche-orders-list .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
	box-sizing: border-box;
	width: min(calc(100vw - 80px), var(--wp--style--global--wide-size)) !important;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto !important;
}

body.soloteche-orders-list.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr) !important;
	grid-template-areas:
		"notices notices"
		"context context"
		"navigation content" !important;
	column-gap: var(--wp--preset--spacing--space-6) !important;
	row-gap: var(--wp--preset--spacing--space-4) !important;
	width: 100% !important;
	max-width: none !important;
}

body.soloteche-orders-list.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-navigation {
	grid-area: navigation !important;
	width: 100% !important;
	min-width: 0;
}

body.soloteche-orders-list.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-content {
	grid-area: content !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

body.soloteche-orders-list .woocommerce-MyAccount-content > .wc-block-components-notice-banner,
body.soloteche-orders-list .woocommerce-MyAccount-content > .woocommerce-orders-table {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

@media (max-width: 1023px) {
	body.soloteche-orders-list .soloteche-account-page__inner,
	body.soloteche-orders-list .soloteche-account-page .wp-block-post-content,
	body.soloteche-orders-list .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
		width: min(calc(100vw - 48px), var(--wp--style--global--wide-size)) !important;
	}

	body.soloteche-orders-list.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: 190px minmax(0, 1fr) !important;
		column-gap: var(--wp--preset--spacing--space-4) !important;
	}
}

@media (max-width: 900px) {
	body.soloteche-orders-list .soloteche-account-page__inner,
	body.soloteche-orders-list .soloteche-account-page .wp-block-post-content,
	body.soloteche-orders-list .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
		width: min(calc(100vw - 32px), var(--wp--style--global--wide-size)) !important;
	}

	body.soloteche-orders-list.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"context"
			"navigation"
			"content" !important;
		column-gap: 0 !important;
	}
}

.woocommerce-account .woocommerce-MyAccount-content > .button,
.woocommerce-account .woocommerce-MyAccount-content > p > .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	line-height: 1.2;
}



/* Orders endpoint: mobile order cards. */
@media (max-width: 767px) {
	body.soloteche-orders-list .woocommerce-orders-table {
		display: block !important;
		width: 100% !important;
		border: 0 !important;
		background: transparent !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table thead {
		display: none !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table tbody {
		display: grid !important;
		gap: var(--wp--preset--spacing--space-2);
		width: 100%;
	}

	body.soloteche-orders-list .woocommerce-orders-table tr.order {
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-areas:
			"preview number"
			"preview date"
			"preview status"
			"preview total"
			"actions actions";
		column-gap: var(--wp--preset--spacing--space-2);
		row-gap: var(--wp--preset--spacing--space-1);
		box-sizing: border-box;
		width: 100%;
		padding: var(--wp--preset--spacing--space-2);
		border: 1px solid var(--wp--preset--color--border);
		background: var(--wp--preset--color--surface);
	}

	body.soloteche-orders-list .woocommerce-orders-table tr.order > :where(th, td) {
		display: flex !important;
		align-items: center;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		text-align: left !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table tr.order > :where(th, td)::before {
		display: none !important;
		content: none !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-number {
		grid-area: number;
		align-self: end;
		font-size: var(--wp--preset--font-size--lg) !important;
		font-weight: 500;
		line-height: 1.2;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-number a {
		color: var(--wp--preset--color--contrast);
		text-underline-offset: .2em;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-preview {
		grid-area: preview;
		align-self: start;
		justify-content: flex-start !important;
	}

	body.soloteche-orders-list .soloteche-order-preview,
	body.soloteche-orders-list .soloteche-order-preview__image {
		width: 72px !important;
		height: 72px !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-date {
		grid-area: date;
		color: var(--wp--preset--color--muted);
		font-size: var(--wp--preset--font-size--sm) !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-date::after {
		content: "Data";
		order: -1;
		margin-right: var(--wp--preset--spacing--space-1);
		color: var(--wp--preset--color--muted);
		font-size: var(--wp--preset--font-size--xs);
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-status {
		grid-area: status;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-status::after {
		content: "Stato";
		order: -1;
		margin-right: var(--wp--preset--spacing--space-1);
		color: var(--wp--preset--color--muted);
		font-size: var(--wp--preset--font-size--xs);
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-total {
		grid-area: total;
		font-weight: 500;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-total::after {
		content: "Totale";
		order: -1;
		margin-right: var(--wp--preset--spacing--space-1);
		color: var(--wp--preset--color--muted);
		font-size: var(--wp--preset--font-size--xs);
		font-weight: 400;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-actions {
		grid-area: actions;
		display: flex !important;
		align-items: stretch;
		justify-content: flex-start;
		flex-wrap: nowrap !important;
		gap: 5px !important;
		margin-top: var(--wp--preset--spacing--space-1);
		padding-top: var(--wp--preset--spacing--space-2) !important;
		border-top: 1px solid var(--wp--preset--color--border) !important;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-actions :where(.view, .return-request, .track-order) {
		box-sizing: border-box;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		flex: 1 1 0 !important;
		inline-size: auto !important;
		width: auto !important;
		min-inline-size: 0 !important;
		min-width: 0 !important;
		max-inline-size: none !important;
		max-width: none !important;
		min-height: 40px !important;
		margin: 0 !important;
		padding-inline: 5px !important;
		gap: 4px !important;
		font-size: 11px !important;
		line-height: 1.1 !important;
		white-space: nowrap;
	}

	body.soloteche-orders-list .woocommerce-orders-table__cell-order-actions :where(.view, .return-request, .track-order)::before {
		flex: 0 0 13px !important;
		width: 13px !important;
		height: 13px !important;
	}
}

/* CEV 2FA inherits the Soloteche design system without changing its behavior. */
body.woocommerce-account .cev-2fa-card {
	--cev2-primary: var(--wp--preset--color--contrast);
	--cev2-primary-hover: var(--wp--preset--color--contrast);
	--cev2-primary-soft: var(--wp--preset--color--surface-alt);
	--cev2-text: var(--wp--preset--color--contrast);
	--cev2-muted: var(--wp--preset--color--muted);
	--cev2-border: var(--wp--preset--color--border);
	--cev2-border-strong: var(--wp--preset--color--border);
	--cev2-bg-soft: var(--wp--preset--color--surface-alt);
	--cev2-radius: 0;
	--cev2-radius-sm: 0;
	--cev2-shadow: none;
	border-radius: 0;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--base);
}

body.woocommerce-account .cev-2fa-card__header {
	gap: var(--wp--preset--spacing--space-2);
	padding: var(--wp--preset--spacing--space-3);
}

body.woocommerce-account .cev-2fa-card__icon {
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

body.woocommerce-account .cev-2fa-card__title h3 {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 500;
}

body.woocommerce-account .cev-2fa-card__subtitle {
	font-size: var(--wp--preset--font-size--sm);
}

body.woocommerce-account .cev-2fa-card__status {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

body.woocommerce-account .cev-2fa-card__status.is-off {
	color: var(--wp--preset--color--danger);
}

body.woocommerce-account .cev-2fa-card__status.is-on {
	color: var(--wp--preset--color--success);
}

body.woocommerce-account .cev-2fa-card__body {
	padding: var(--wp--preset--spacing--space-3);
}

body.woocommerce-account .cev-2fa-steps {
	gap: var(--wp--preset--spacing--space-2);
	font-size: var(--wp--preset--font-size--base);
}

body.woocommerce-account .cev-2fa-steps li {
	padding-left: 34px;
}

body.woocommerce-account .cev-2fa-steps li::before {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

body.woocommerce-account .cev-2fa-card :is(.cev-2fa-btn, .button, .button-primary),
body.woocommerce-account .cev-2fa-verify__submit {
	min-height: 48px;
	height: 48px;
	padding-inline: var(--wp--preset--spacing--space-3);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
	box-shadow: none;
	font: inherit;
	font-weight: 500;
}

body.woocommerce-account .cev-2fa-card :is(.cev-2fa-btn, .button, .button-primary):hover,
body.woocommerce-account .cev-2fa-verify__submit:hover {
	background: transparent;
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

body.woocommerce-account .cev-2fa-card :is(button, input):focus-visible,
body.woocommerce-account .cev-modal button:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
	box-shadow: none;
}

body.woocommerce-account .cev-2fa-frontend .cev-2fa-add {
	display: grid;
	grid-template-columns: 242px 1px minmax(0, 1fr);
	gap: 0 var(--wp--preset--spacing--space-4);
	align-items: start;
	margin-bottom: var(--wp--preset--spacing--space-4);
}

body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider {
	width: 1px;
	height: 100%;
	min-height: 242px;
	margin: 0;
}

body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider::before {
	inset: 0;
	width: 1px;
	height: auto;
	transform: none;
}

body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider span {
	top: 50%;
	padding: var(--wp--preset--spacing--space-1) 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	transform: translate(-50%, -50%);
}

body.woocommerce-account .cev-2fa-qr,
body.woocommerce-account .cev-2fa-key-row,
body.woocommerce-account .cev-2fa-card input.cev-2fa-verify__input,
body.woocommerce-account .cev-2fa-recovery-info,
body.woocommerce-account .cev-2fa-codes-panel,
body.woocommerce-account .cev-2fa-codes-list {
	border-radius: 0;
	box-shadow: none;
}

body.woocommerce-account .cev-2fa-qr {
	box-sizing: border-box;
	width: 220px;
	height: 220px;
	padding: 8px;
}

body.woocommerce-account .cev-2fa-key-row:focus-within,
body.woocommerce-account .cev-2fa-verify__input:focus {
	border-color: var(--wp--preset--color--focus);
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 1px;
	box-shadow: none;
}

body.woocommerce-account .cev-2fa-icon-btn:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
}

body.woocommerce-account .cev-2fa-verify {
	max-width: 420px;
}

body.woocommerce-account .cev-2fa-cancel,
body.woocommerce-account .cev-2fa-card .cev-2fa-cancel {
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.woocommerce-account .cev-2fa-codes-panel {
	border-color: var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-alt);
}

body.woocommerce-account .cev-modal-dialog {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--primary);
}

body.woocommerce-account .cev-modal-header,
body.woocommerce-account .cev-modal-header.cev-modal-warning,
body.woocommerce-account .cev-modal-footer {
	border-color: var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

body.woocommerce-account .cev-modal-footer button {
	min-height: 48px;
	height: 48px;
	border-radius: 0;
	box-shadow: none;
}

@media (max-width: 900px) {
	.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"notices"
			"context"
			"navigation"
			"content";
		column-gap: 0;
		row-gap: var(--wp--preset--spacing--space-4);
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.logged-in.woocommerce-account .soloteche-account-auth,
	.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-navigation,
	.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-content,
	.logged-in.woocommerce-account .soloteche-account-context {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		display: block !important;
		overflow: visible;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		min-height: 48px;
		padding-inline: var(--wp--preset--spacing--space-2);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
	.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
		padding-left: var(--wp--preset--spacing--space-2);
	}
}

@media (max-width: 720px) {
	.woocommerce-account .woocommerce-Addresses > :is(.woocommerce-Address, .u-column1, .u-column2) {
		grid-column: 1;
	}

	body.woocommerce-account .cev-2fa-frontend .cev-2fa-add {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--space-3);
	}

	body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider {
		width: 100%;
		height: 1px;
		min-height: 1px;
	}

	body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider::before {
		width: 100%;
		height: 1px;
	}

	body.woocommerce-account .cev-2fa-frontend .cev-2fa-add__divider span {
		top: 50%;
		left: 50%;
		padding-inline: var(--wp--preset--spacing--space-1);
	}

	body.woocommerce-account .cev-2fa-card__header {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	body.woocommerce-account .cev-2fa-card__status {
		margin-left: 56px;
	}
}

@media (max-width: 600px) {
	.logged-in.woocommerce-account .soloteche-account-context h1 {
		font-size: var(--wp--preset--font-size--3-xl);
	}

	body.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"context"
			"navigation"
			"content" !important;
		column-gap: 0 !important;
	}

	body.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-navigation,
	body.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		display: block !important;
		margin: 0 !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 6px;
		width: max-content;
		min-width: 100%;
		max-width: none;
		padding: 0 0 var(--wp--preset--spacing--space-1);
		overflow: visible;
		border: 0;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		box-sizing: border-box;
		height: 44px;
		min-height: 44px;
		width: auto;
		margin: 0 !important;
		gap: 8px;
		padding: 0 14px !important;
		border: 1px solid var(--wp--preset--color--border) !important;
		white-space: nowrap;
		background: var(--wp--preset--color--surface-alt) !important;
		color: var(--wp--preset--color--contrast) !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a::before {
		display: block;
		flex-basis: 18px;
		width: 18px;
		height: 18px;
		opacity: .72;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
	.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
		border-color: var(--wp--preset--color--contrast) !important;
		background: var(--wp--preset--color--contrast) !important;
		color: var(--wp--preset--color--surface) !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before,
	.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"]::before {
		opacity: 1;
	}

	.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
		align-items: flex-start;
		flex-direction: column;
	}

	.woocommerce-account .woocommerce-Addresses > :is(.woocommerce-Address, .u-column1, .u-column2),
	body.woocommerce-account .cev-2fa-card__header,
	body.woocommerce-account .cev-2fa-card__body {
		padding: var(--wp--preset--spacing--space-2);
	}

	body.woocommerce-account .cev-2fa-qr {
		width: min(220px, 100%);
		height: auto;
		aspect-ratio: 1;
	}
}

/* View order: editorial detail layout. */
body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
	grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--space-6);
}

body.soloteche-view-order .woocommerce-MyAccount-content {
	width: 100% !important;
	max-width: none !important;
}

body.soloteche-view-order .woocommerce-MyAccount-content > p:first-child {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--space-1);
	margin: 0 0 var(--wp--preset--spacing--space-4) !important;
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	border-block: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

body.soloteche-view-order .woocommerce-MyAccount-content > p:first-child mark {
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

body.soloteche-view-order .woocommerce-order-details {
	box-sizing: border-box;
	margin: 0 0 var(--wp--preset--spacing--space-6) !important;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

body.soloteche-view-order .woocommerce-order-details__title {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--space-3);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--2-xl) !important;
	font-weight: 500;
	line-height: 1.15;
}

body.soloteche-view-order .woocommerce-table--order-details {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	table-layout: auto;
	background: transparent;
}

body.soloteche-view-order .woocommerce-table--order-details :where(th, td) {
	padding: var(--wp--preset--spacing--space-3) !important;
	border-right: 0 !important;
	border-left: 0 !important;
	border-color: var(--wp--preset--color--border) !important;
	vertical-align: top;
	line-height: 1.5;
}

body.soloteche-view-order .woocommerce-table--order-details thead th {
	background: var(--wp--preset--color--surface-alt) !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

body.soloteche-view-order .woocommerce-table--order-details .product-name {
	width: 70%;
}

body.soloteche-view-order .woocommerce-table--order-details .product-total {
	width: 30%;
	text-align: right;
	white-space: nowrap;
}

body.soloteche-view-order .woocommerce-table--order-details tbody .product-name > a,
body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-detail-product__name > a {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	text-underline-offset: .2em;
}

body.soloteche-view-order .woocommerce-table--order-details .wc-item-meta {
	margin-top: var(--wp--preset--spacing--space-2);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

body.soloteche-view-order .woocommerce-table--order-details .wc-item-meta li {
	grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
	gap: var(--wp--preset--spacing--space-2);
	margin-bottom: var(--wp--preset--spacing--space-1);
}

body.soloteche-view-order .woocommerce-table--order-details .wc-item-meta strong {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

body.soloteche-view-order .woocommerce-table--order-details .wc-item-meta p {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

body.soloteche-view-order .woocommerce-table--order-details tfoot tr {
	border-top: 1px solid var(--wp--preset--color--border);
}

body.soloteche-view-order .woocommerce-table--order-details tfoot th {
	width: 50%;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

body.soloteche-view-order .woocommerce-table--order-details tfoot td {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	text-align: right;
}

body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row {
	background: var(--wp--preset--color--surface-alt);
}

body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row > :where(th, td) {
	padding-top: var(--wp--preset--spacing--space-2) !important;
	padding-bottom: var(--wp--preset--spacing--space-2) !important;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading {
	vertical-align: middle;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading + td {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--space-1);
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions-button,
body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 var(--wp--preset--spacing--space-2) !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm) !important;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions-button {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
}

body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--surface) !important;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions-button:hover,
body.soloteche-view-order .woocommerce-table--order-details .order-actions-button:focus-visible {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--surface) !important;
}

body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary:hover,
body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary:focus-visible {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
}

body.soloteche-view-order .woocommerce-order-details > .order-again {
	display: none !important;
}

body.soloteche-view-order .woocommerce-customer-details {
	margin: 0 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--space-3);
	margin: 0 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-column {
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--space-3);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--2-xl) !important;
	font-weight: 500;
	line-height: 1.15;
}

body.soloteche-view-order .woocommerce-customer-details address {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--space-3) !important;
	border: 0 !important;
	background: transparent !important;
}

body.soloteche-view-order .soloteche-customer-fields__row {
	grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr) !important;
	gap: var(--wp--preset--spacing--space-2);
	padding: var(--wp--preset--spacing--space-1) 0;
}

body.soloteche-view-order .soloteche-customer-fields dt {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
}

body.soloteche-view-order .soloteche-customer-fields dd {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading + td {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	body.soloteche-view-order .woocommerce-order-details__title,
	body.soloteche-view-order .woocommerce-customer-details .woocommerce-column__title {
		padding: var(--wp--preset--spacing--space-2);
		font-size: var(--wp--preset--font-size--xl) !important;
	}

	body.soloteche-view-order .woocommerce-table--order-details :where(th, td),
	body.soloteche-view-order .woocommerce-customer-details address {
		padding: var(--wp--preset--spacing--space-2) !important;
	}

	body.soloteche-view-order .woocommerce-table--order-details .wc-item-meta li,
	body.soloteche-view-order .soloteche-customer-fields__row {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: var(--wp--preset--spacing--space-0-5);
	}

	body.soloteche-view-order .woocommerce-customer-details .woocommerce-columns--addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row > :where(th, td) {
		display: block !important;
		box-sizing: border-box;
		width: 100% !important;
		text-align: left;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading + td {
		flex-direction: column;
		align-items: stretch;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions-button,
	body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary {
		width: 100% !important;
	}
}

@media (max-width: 560px) {
	body.soloteche-view-order .woocommerce-table--order-details {
		table-layout: fixed;
	}

	body.soloteche-view-order .woocommerce-table--order-details .product-name {
		width: 68%;
	}

	body.soloteche-view-order .woocommerce-table--order-details .product-total {
		width: 32%;
	}

	body.soloteche-view-order .woocommerce-table--order-details :where(th, td) {
		padding-inline: var(--wp--preset--spacing--space-1) !important;
	}

	body.soloteche-view-order .woocommerce-table--order-details tfoot th,
	body.soloteche-view-order .woocommerce-table--order-details tfoot td {
		font-size: var(--wp--preset--font-size--xs);
	}
}


/* View order v2: authoritative wide layout and aligned order sections. */
body.soloteche-view-order .soloteche-account-page__inner,
body.soloteche-view-order .soloteche-account-page .wp-block-post-content,
body.soloteche-view-order .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
	box-sizing: border-box;
	width: min(calc(100vw - 80px), var(--wp--style--global--wide-size)) !important;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto !important;
}

body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr) !important;
	grid-template-areas:
		"notices notices"
		"context context"
		"navigation content" !important;
	column-gap: var(--wp--preset--spacing--space-6) !important;
	row-gap: var(--wp--preset--spacing--space-4) !important;
	width: 100% !important;
	max-width: none !important;
}

body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-navigation {
	grid-area: navigation !important;
	width: 100% !important;
	min-width: 0;
}

body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce > .woocommerce-MyAccount-content {
	grid-area: content !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

body.soloteche-view-order .woocommerce-order-details,
body.soloteche-view-order .soloteche-tracking,
body.soloteche-view-order .woocommerce-customer-details {
	width: 100%;
	max-width: none;
}

body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row {
	display: grid !important;
	grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1.6fr);
	align-items: center;
	width: 100%;
}

body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row > :where(th, td) {
	display: block !important;
	box-sizing: border-box;
	width: 100% !important;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading + td {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: nowrap !important;
	gap: var(--wp--preset--spacing--space-1) !important;
}

body.soloteche-view-order .woocommerce-table--order-details .order-actions-button,
body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 0 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: auto !important;
	align-items: stretch !important;
	gap: var(--wp--preset--spacing--space-3) !important;
	width: 100% !important;
	margin: 0 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-column--billing-address {
	grid-column: 1 !important;
	grid-row: 1 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-column--shipping-address {
	grid-column: 2 !important;
	grid-row: 1 !important;
}

body.soloteche-view-order .woocommerce-customer-details .woocommerce-column {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

@media (max-width: 1023px) {
	body.soloteche-view-order .soloteche-account-page__inner,
	body.soloteche-view-order .soloteche-account-page .wp-block-post-content,
	body.soloteche-view-order .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
		width: min(calc(100vw - 48px), var(--wp--style--global--wide-size)) !important;
	}

	body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: 190px minmax(0, 1fr) !important;
		column-gap: var(--wp--preset--spacing--space-4) !important;
	}
}

@media (max-width: 900px) {
	body.soloteche-view-order .soloteche-account-page__inner,
	body.soloteche-view-order .soloteche-account-page .wp-block-post-content,
	body.soloteche-view-order .soloteche-account-page .wp-block-post-content > .soloteche-account-auth {
		width: min(calc(100vw - 32px), var(--wp--style--global--wide-size)) !important;
	}

	body.soloteche-view-order.logged-in.woocommerce-account .soloteche-account-auth > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"context"
			"navigation"
			"content" !important;
		column-gap: 0 !important;
	}

	body.soloteche-view-order .woocommerce-customer-details .woocommerce-columns--addresses {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.soloteche-view-order .woocommerce-customer-details .woocommerce-column--billing-address,
	body.soloteche-view-order .woocommerce-customer-details .woocommerce-column--shipping-address {
		grid-column: 1 !important;
		grid-row: auto !important;
	}
}

@media (max-width: 600px) {
	body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row {
		display: block !important;
		width: 100% !important;
	}

	body.soloteche-view-order .woocommerce-table--order-details tr.soloteche-order-actions-row > .order-actions--heading {
		display: block !important;
		box-sizing: border-box;
		width: 100% !important;
		padding: var(--wp--preset--spacing--space-2) !important;
		text-align: left;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions--heading + td {
		display: grid !important;
		box-sizing: border-box;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		width: 100% !important;
		padding: 0 var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-2) !important;
		gap: 5px !important;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions-button,
	body.soloteche-view-order .woocommerce-table--order-details .soloteche-order-action--primary {
		box-sizing: border-box;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		grid-column: auto !important;
		width: 100% !important;
		min-width: 0 !important;
		min-height: 40px !important;
		padding-inline: 5px !important;
		gap: 4px !important;
		font-size: 11px !important;
		line-height: 1.1 !important;
		white-space: nowrap;
	}

	body.soloteche-view-order .woocommerce-table--order-details .order-actions-button::before {
		flex: 0 0 12px !important;
		width: 12px !important;
		height: 12px !important;
		margin: 0 !important;
	}
}


/* View order v3: actions live outside the table so the band spans the full order card. */
body.soloteche-view-order .soloteche-order-actions {
	display: grid;
	grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1.6fr);
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-alt);
}

body.soloteche-view-order .soloteche-order-actions__label {
	padding: var(--wp--preset--spacing--space-3);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

body.soloteche-view-order .soloteche-order-actions__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--space-2);
	padding: var(--wp--preset--spacing--space-3);
}

body.soloteche-view-order .soloteche-order-actions__controls .button {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--space-1);
	width: auto !important;
	min-width: 0;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 var(--wp--preset--spacing--space-3) !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 500;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
}

body.soloteche-view-order .soloteche-order-actions__controls .soloteche-order-action--primary {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--surface) !important;
}

body.soloteche-view-order .soloteche-order-actions__controls .order-actions-button {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
}

body.soloteche-view-order .soloteche-order-actions__controls .order-actions-button::before {
	content: "";
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	background: currentColor;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

body.soloteche-view-order .soloteche-order-actions__controls .return-request::before {
	-webkit-mask-image: url("../icons/order-return.svg");
	mask-image: url("../icons/order-return.svg");
}

body.soloteche-view-order .soloteche-order-actions__controls .track-order::before {
	-webkit-mask-image: url("../icons/order-track.svg");
	mask-image: url("../icons/order-track.svg");
}

@media (max-width: 600px) {
	body.soloteche-view-order .soloteche-order-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	body.soloteche-view-order .soloteche-order-actions__label {
		padding-bottom: var(--wp--preset--spacing--space-1);
	}

	body.soloteche-view-order .soloteche-order-actions__controls {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		padding: 0 var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-2);
	}

	body.soloteche-view-order .soloteche-order-actions__controls .button {
		width: 100% !important;
		min-width: 0 !important;
		min-height: 40px;
		padding-inline: 5px !important;
		font-size: 11px !important;
	}
}
