/*
 * Tarot Arabi — digital commerce UI v2.
 *
 * Loaded after the P12 commerce layer on cart, checkout, order confirmation and
 * My Account. The storefront is digital-only: no shipping, no address fields,
 * no physical delivery language.
 */

/* ============================================================== Cart page */

.ta-commerce--cart .ta-commerce__wrap {
	max-inline-size: 1120px;
}

.ta-commerce--cart .ta-commerce__content {
	margin-block-start: 8px;
}

.wc-block-cart {
	gap: 32px;
}

.wc-block-cart-items {
	border-block-start: 1px solid var(--color-border);
}

.wc-block-cart-items__row {
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 18px;
	padding-block: 20px;
	border-block-end: 1px solid var(--color-border);
}

.wc-block-cart-item__image img {
	inline-size: 88px;
	block-size: 88px;
	border-radius: 14px;
	object-fit: cover;
}

.wc-block-components-product-name {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.wc-block-cart-item__product .wc-block-components-product-metadata,
.wc-block-cart-item__product .wc-block-components-product-details {
	display: none;
}

.wc-block-cart-item__prices {
	color: var(--color-text-muted);
	font-size: 14px;
}

.wc-block-cart-item__total {
	color: var(--color-green-900);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: var(--weight-bold);
}

.wc-block-components-quantity-selector {
	border: 1px solid var(--color-border);
	border-radius: 10px;
}

.wc-block-cart-item__remove-link {
	color: var(--color-text-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper {
	border-color: var(--color-border);
}

.wc-block-cart__totals-title {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: var(--weight-bold);
}

.wc-block-cart__submit-button,
.wc-block-cart__submit .wc-block-components-button {
	inline-size: 100%;
	min-block-size: 52px;
	border-radius: var(--radius-pill);
	background-color: var(--color-green-900);
	color: var(--color-surface);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--weight-bold);
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover {
	background-color: var(--color-green-800);
}

/* Empty cart */

.ta-commerce-empty {
	max-inline-size: 760px;
	margin-inline: auto;
	padding-block: clamp(32px, 5vw, 64px);
	text-align: center;
}

.ta-commerce-empty__title {
	margin: 10px 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(30px, 3vw, 40px);
}

.ta-commerce-empty__text {
	margin: 12px auto 0;
	max-inline-size: 54ch;
	color: var(--color-text-muted);
}

.ta-commerce-empty .ta-commerce-destinations {
	margin-block-start: 28px;
	text-align: start;
}

/* ============================================================== Checkout */

.ta-commerce--checkout .ta-commerce__wrap {
	max-inline-size: 1080px;
}

.ta-commerce--checkout .ta-commerce__head {
	padding-block-end: 18px;
}

.ta-commerce--checkout .ta-commerce__title {
	font-size: clamp(32px, 3.2vw, 44px);
}

.wc-block-components-sidebar-layout.wc-block-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.95fr);
	gap: 34px;
	align-items: start;
}

.wc-block-checkout__main,
.wc-block-checkout__sidebar {
	inline-size: auto;
	max-inline-size: none;
	float: none;
}

.wc-block-checkout__sidebar {
	position: sticky;
	inset-block-start: 104px;
}

.wc-block-components-checkout-step {
	margin-block-end: 26px;
	padding: 0;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title.wc-block-components-checkout-step__title {
	margin: 0 0 14px;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

/* One visible heading per step: the legend is the screen-reader equivalent. */
.ta-commerce--checkout .wc-block-components-checkout-step__heading .wc-block-components-title {
	font-size: 21px;
}

.wc-block-components-text-input input,
.wc-blocks-components-select__select,
.wc-block-components-text-input select {
	min-block-size: 48px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background-color: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 15px;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
	border-color: var(--color-green-900);
	box-shadow: 0 0 0 3px rgba(23, 79, 58, 0.12);
	outline: none;
}

.wc-block-components-text-input {
	margin-block-end: 14px;
}

.wc-block-components-text-input label,
.wc-blocks-components-select label {
	color: var(--color-text-muted);
	font-size: 13px;
}

.wc-block-checkout__contact-fields,
.wc-block-checkout__billing-fields {
	margin-block-end: 24px;
}

/* Digital checkout: no physical copy. */
.ta-commerce--checkout .wc-block-components-checkout-step__description {
	color: var(--color-text-muted);
	font-size: 14px;
}

/* Order summary */

.wc-block-components-checkout-order-summary__title {
	padding-block-end: 14px;
	border-block-end: 1px solid var(--color-border);
}

.wc-block-components-checkout-order-summary__title-text {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: var(--weight-bold);
}

.wc-block-components-checkout-order-summary__title-price {
	color: var(--color-green-900);
	font-weight: var(--weight-bold);
}

.wc-block-components-order-summary-item {
	padding-block: 12px;
}

.wc-block-components-order-summary-item__image img {
	inline-size: 54px;
	block-size: 54px;
	border-radius: 10px;
	object-fit: cover;
}

/* The customer already chose the product: no marketing excerpt in the summary. */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__description .wc-block-components-product-details {
	display: none;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-size: 15px;
	line-height: 1.4;
}

.wc-block-components-order-summary-item__quantity {
	background-color: var(--color-green-900);
	border-color: var(--color-green-900);
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	color: var(--color-text);
	font-size: 15px;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: var(--weight-bold);
}

/* Payment */

.wc-block-checkout__payment-method {
	margin-block-start: 8px;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	background-color: var(--color-surface);
}

.wc-block-components-radio-control__option {
	padding-block: 14px;
}

.wc-block-components-radio-control__label {
	color: var(--color-heading);
	font-weight: var(--weight-bold);
}

.wc-block-checkout__terms {
	margin-block-start: 18px;
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.8;
}

.wc-block-checkout__terms a {
	color: var(--color-green-900);
	text-underline-offset: 3px;
}

.wc-block-components-checkout-place-order-button {
	inline-size: 100%;
	min-block-size: 54px;
	margin-block-start: 20px;
	border-radius: var(--radius-pill);
	background-color: var(--color-green-900);
	color: var(--color-surface);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: var(--weight-bold);
}

.wc-block-components-checkout-place-order-button:hover {
	background-color: var(--color-green-800);
}

.wc-block-components-checkout-place-order-button:disabled {
	opacity: 0.65;
}

.wc-block-checkout__express-payment {
	margin-block-end: 18px;
}

/* ======================================================= Confirmation */

.ta-commerce--order-received .ta-commerce__wrap {
	max-inline-size: 980px;
}

.ta-confirmation {
	padding-block-start: clamp(20px, 3vw, 36px);
}

.ta-confirmation__head {
	max-inline-size: 760px;
}

.ta-confirmation__title {
	margin: 8px 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: var(--weight-bold);
	line-height: 1.18;
}

.ta-confirmation__lead {
	margin: 14px 0 0;
	color: var(--color-text);
	font-size: 17px;
	line-height: 1.8;
}

.ta-confirmation__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 20px;
}

.ta-confirmation__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
	gap: 18px;
	margin-block-start: 30px;
}

.ta-confirmation__card {
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	background-color: var(--color-surface);
}

.ta-confirmation__card-title {
	margin: 0 0 14px;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: var(--weight-bold);
}

.ta-confirmation__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin: 0;
}

.ta-confirmation__facts dt {
	color: var(--color-text-muted);
	font-size: 12px;
}

.ta-confirmation__facts dd {
	margin: 4px 0 0;
	color: var(--color-heading);
	font-size: 15px;
	font-weight: var(--weight-bold);
}

.ta-confirmation__items {
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-block-start: 1px solid var(--color-border);
	list-style: none;
}

.ta-confirmation__items li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 6px;
	color: var(--color-text);
	font-size: 14px;
}

.ta-confirmation__qty {
	color: var(--color-text-muted);
}

.ta-confirmation__next p {
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.8;
}

.ta-confirmation__account-link {
	display: inline-block;
	margin-block-start: 10px;
	color: var(--color-green-900);
	font-weight: var(--weight-bold);
	text-underline-offset: 3px;
}

/* The existing fulfilment panel, once, after the confirmation cards. */
.ta-commerce-next {
	margin-block-start: 18px;
	padding: 22px 24px;
	border-radius: 18px;
	background-color: var(--color-sage-100);
}

.ta-commerce-next__title {
	margin: 6px 0 0;
	font-size: 20px;
}

.ta-commerce-next__list {
	margin: 10px 0 0;
	padding-inline-start: 18px;
	color: var(--color-text);
	font-size: 14px;
	line-height: 1.8;
}

/* ========================================================== My Account */

.ta-commerce--account .ta-commerce__wrap {
	max-inline-size: 1180px;
}

.ta-commerce--account .woocommerce {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.woocommerce-MyAccount-navigation {
	inline-size: auto;
	float: none;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	background-color: var(--color-surface);
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation a:focus-visible {
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background-color: var(--color-green-900);
	color: var(--color-surface);
}

.woocommerce-MyAccount-content {
	inline-size: auto;
	float: none;
	min-inline-size: 0;
}

.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content > .woocommerce-info,
.woocommerce-MyAccount-content > .woocommerce-message {
	margin-block: 0 18px;
}

.ta-account-dashboard__title {
	margin: 8px 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: var(--weight-bold);
}

.ta-account-dashboard__lead {
	margin: 10px 0 0;
	max-inline-size: 60ch;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.8;
}

.ta-account-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-block-start: 24px;
}

.ta-account-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background-color: var(--color-surface);
}

.ta-account-card__label {
	margin: 0;
	color: var(--color-gold-action);
	font-size: 12px;
	font-weight: var(--weight-bold);
}

.ta-account-card__value {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: var(--weight-bold);
}

.ta-account-card__value--small {
	font-size: 16px;
	overflow-wrap: anywhere;
}

.ta-account-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	color: var(--color-text-muted);
	font-size: 13px;
}

.ta-account-card__empty {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.7;
}

.ta-account-card__link {
	margin-block-start: auto;
	padding-block-start: 8px;
	color: var(--color-green-900);
	font-size: 13px;
	font-weight: var(--weight-bold);
	text-underline-offset: 3px;
}

/* Orders */

.ta-orders {
	display: grid;
	gap: 14px;
}

.ta-order-card {
	padding: 20px;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background-color: var(--color-surface);
}

.ta-order-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ta-order-card__label {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 12px;
}

.ta-order-card__number {
	margin: 2px 0 0;
	font-family: var(--font-heading);
	font-size: 22px;
}

.ta-order-card__number a {
	color: var(--color-heading);
	text-decoration: none;
}

.ta-order-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-block-start: 12px;
	color: var(--color-text-muted);
	font-size: 13px;
}

.ta-order-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 14px;
}

.ta-account-pagination {
	display: flex;
	gap: 10px;
	margin-block-start: 18px;
}

/* Status */

.ta-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--radius-pill);
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
	font-size: 12px;
	font-weight: var(--weight-bold);
	line-height: 1.4;
	white-space: nowrap;
}

.ta-status--completed,
.ta-status--processing {
	background-color: rgba(23, 79, 58, 0.12);
	color: var(--color-green-900);
}

.ta-status--pending,
.ta-status--on-hold {
	background-color: rgba(176, 132, 66, 0.16);
	color: #6f4d16;
}

.ta-status--failed,
.ta-status--cancelled,
.ta-status--refunded {
	background-color: rgba(122, 45, 45, 0.12);
	color: #7a2d2d;
}

/* Empty account states */

.ta-account-empty {
	max-inline-size: 680px;
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	background-color: var(--color-surface);
}

.ta-account-empty h2 {
	margin: 8px 0 0;
	font-size: 26px;
}

.ta-account-empty p {
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.8;
}

.ta-account-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 16px;
}

/* Downloads */

.ta-downloads .woocommerce-table--order-downloads,
.ta-downloads table {
	inline-size: 100%;
	border-collapse: collapse;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background-color: var(--color-surface);
	overflow: hidden;
}

.ta-downloads th,
.ta-downloads td {
	padding: 14px 16px;
	border-block-end: 1px solid var(--color-border);
	text-align: start;
	font-size: 14px;
}

.ta-downloads th {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: var(--weight-bold);
}

.ta-downloads .button,
.ta-downloads a.button {
	display: inline-flex;
	align-items: center;
	min-block-size: 40px;
	padding-inline: 16px;
	border-radius: var(--radius-pill);
	background-color: var(--color-green-900);
	color: var(--color-surface);
	font-weight: var(--weight-bold);
	text-decoration: none;
}

/* Order contact panel */

.ta-order-contact {
	margin-block-start: 24px;
	padding: 22px;
	border-radius: 18px;
	background-color: var(--color-sage-100);
}

.ta-order-contact__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: var(--weight-bold);
}

.ta-order-contact__text {
	margin: 6px 0 0;
	color: var(--color-text);
	font-size: 14px;
	line-height: 1.7;
}

.ta-order-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 14px;
}

/* ============================================================ Auth cards */

.ta-auth {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-inline-size: 920px;
	margin-inline: auto;
	padding-block: clamp(8px, 2vw, 24px);
}

.ta-auth--single {
	grid-template-columns: minmax(0, 460px);
	justify-content: center;
}

.ta-auth__card {
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--color-border);
	border-radius: 22px;
	background-color: var(--color-surface);
}

.ta-auth__title {
	margin: 6px 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: var(--weight-bold);
}

.ta-auth__lead {
	margin: 8px 0 0;
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.8;
}

.ta-auth__form {
	margin-block-start: 18px;
}

.ta-field {
	margin: 0 0 14px;
}

.ta-field__label {
	display: block;
	margin-block-end: 5px;
	color: var(--color-text-muted);
	font-size: 13px;
}

.ta-field__required {
	margin-inline-start: 3px;
	color: var(--color-gold-action);
}

.ta-field__input {
	inline-size: 100%;
	min-block-size: 48px;
	padding-inline: 14px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background-color: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 15px;
}

.ta-field__input:focus {
	border-color: var(--color-green-900);
	box-shadow: 0 0 0 3px rgba(23, 79, 58, 0.12);
	outline: none;
}

.ta-auth__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: 6px;
}

.ta-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text);
	font-size: 13px;
}

.ta-auth__submit {
	min-block-size: 48px;
	padding-inline: 24px;
}

.ta-auth__lost {
	margin: 14px 0 0;
	font-size: 13px;
}

.ta-auth__lost a {
	color: var(--color-green-900);
	text-underline-offset: 3px;
}

.ta-auth__note {
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.7;
}

/* ============================================================== Notices */

.ta-commerce .woocommerce-message,
.ta-commerce .woocommerce-info,
.ta-commerce .woocommerce-error,
.ta-commerce .wc-block-components-notice-banner {
	margin-block: 0 18px;
	padding: 14px 18px;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	background-color: var(--color-sage-100);
	color: var(--color-text);
	font-size: 14px;
	line-height: 1.7;
}

.ta-commerce .woocommerce-error,
.ta-commerce .wc-block-components-notice-banner.is-error {
	border-color: rgba(122, 45, 45, 0.28);
	background-color: rgba(122, 45, 45, 0.08);
	color: #6f2424;
}

.ta-commerce .woocommerce-message,
.ta-commerce .wc-block-components-notice-banner.is-success {
	border-color: rgba(23, 79, 58, 0.2);
	background-color: var(--color-sage-100);
}

.ta-commerce .woocommerce-info {
	border-color: rgba(23, 79, 58, 0.16);
	background-color: var(--color-surface-warm);
}

/* ============================================================ Responsive */

@media (max-width: 1023px) {
	.wc-block-components-sidebar-layout.wc-block-checkout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.wc-block-checkout__sidebar {
		position: static;
		order: -1;
	}

	.ta-commerce--account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.woocommerce-MyAccount-navigation {
		padding: 8px;
		overflow-x: auto;
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		gap: 6px;
		min-inline-size: max-content;
	}

	.woocommerce-MyAccount-navigation a {
		white-space: nowrap;
		padding: 10px 14px;
	}

	.ta-auth {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.wc-block-cart-items,
	.wc-block-cart-items tbody {
		display: block;
		inline-size: 100%;
	}

	.wc-block-cart-items thead {
		display: none;
	}

	.wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 76px minmax(0, 1fr) !important;
		gap: 10px 12px !important;
		align-items: start;
	}

	.wc-block-cart-items__row > td {
		display: block;
	}

	.wc-block-cart-item__image img {
		inline-size: 68px;
		block-size: 68px;
	}

	.wc-block-cart-item__total {
		grid-column: 1 / -1;
		font-size: 16px;
		white-space: nowrap;
		text-align: start;
	}

	.ta-confirmation__grid,
	.ta-confirmation__facts,
	.ta-account-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-confirmation__card,
	.ta-account-card,
	.ta-account-empty {
		padding: 18px;
	}

	.ta-order-card__head {
		flex-direction: column;
	}

	.ta-auth__row {
		align-items: flex-start;
		flex-direction: column;
	}

	.ta-auth__submit,
	.ta-auth__submit.ta-button {
		inline-size: 100%;
	}

	.ta-downloads table,
	.ta-downloads thead,
	.ta-downloads tbody,
	.ta-downloads tr,
	.ta-downloads th,
	.ta-downloads td {
		display: block;
	}

	.ta-downloads thead {
		display: none;
	}

	.ta-downloads tr {
		padding: 12px;
		border-block-end: 1px solid var(--color-border);
	}

	.ta-downloads td {
		padding: 6px 4px;
		border: 0;
	}
}

/* Logged-out account/auth shell: one focused panel, centred. */
body:not(.logged-in) .ta-commerce--account .woocommerce {
	margin-inline: auto;
	max-inline-size: 720px;
}

body:not(.logged-in) .ta-commerce--account .ta-auth--single {
	max-inline-size: 520px;
}

/* Cart is a two-column review, not a wrapping flex row. */
.wc-block-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
}

.wc-block-cart > div:empty {
	display: none;
}

.wc-block-cart__main,
.wc-block-cart__sidebar {
	inline-size: auto;
	max-inline-size: none;
}

.wc-block-cart__sidebar {
	position: sticky;
	inset-block-start: 104px;
}

@media (max-width: 1023px) {
	.wc-block-cart {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.wc-block-cart__sidebar {
		position: static;
	}
}

/* Grid children must fill their assigned column, not shrink to content. */
.ta-commerce--checkout .wc-block-checkout__main,
.ta-commerce--checkout .wc-block-checkout__sidebar {
	inline-size: 100%;
	justify-self: stretch;
}

/* The legacy account nav draws its own divider; the card owns the frame now. */
.ta-commerce .woocommerce-MyAccount-navigation {
	padding-inline-end: 12px;
	border-inline-end: 0;
}

.ta-commerce .woocommerce-MyAccount-navigation li.is-active > a,
.ta-commerce .woocommerce-MyAccount-navigation a[aria-current="page"] {
	background-color: var(--color-green-900);
	color: var(--color-surface);
}


@media (max-width: 1023px) {
	.ta-commerce .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-direction: row;
		gap: 6px;
		min-inline-size: max-content;
	}

	.ta-commerce .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	.wc-block-cart-item__total {
		display: none !important;
	}

	.wc-block-cart-item__prices,
	.wc-block-cart-item__quantity {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	.wc-block-cart-item__product .wc-block-components-product-name {
		font-size: 16px;
		line-height: 1.45;
	}
}

@media (max-width: 1023px) {
	.ta-commerce .woocommerce-MyAccount-navigation {
		scrollbar-width: none;
	}

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

/* Auth is one card, not a card inside a card. */
body:not(.logged-in) .ta-commerce--account .woocommerce {
	max-inline-size: 520px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* The cart table must fill its grid column. */
.wc-block-cart-items {
	inline-size: 100%;
}

.ta-commerce--cart .wc-block-cart__main {
	inline-size: 100%;
	justify-self: stretch;
}

.ta-commerce--cart .wp-block-woocommerce-cart-items-block,
.ta-commerce--cart .wc-block-cart-items-block {
	inline-size: 100%;
}

/* [hidden] must win over Woo's flex display rules. */
.wc-block-components-express-payment[hidden],
.wc-block-components-express-payment-continue-rule[hidden] {
	display: none !important;
}
