/*
 * Tarot Arabi — P12-B commerce
 *
 * The customer-facing commerce shell: cart, checkout, my account, order
 * received, and the `/shop/` routing surface.
 *
 * WooCommerce owns the behaviour and the markup; this layer only dresses it in
 * the site's own language — Warm Ivory, Deep Green, Soft Sage, brass accents,
 * Janna LT Bold headings and the canonical section rhythm. It loads exclusively
 * on commerce surfaces, so no WooCommerce-specific rule ever reaches the
 * editorial families.
 *
 * Every selector is scoped under `.ta-commerce` and outranks WooCommerce's own
 * single-class rules, so the block stylesheets can load after this file without
 * taking the design back.
 */

/* ============================================================== Foundation */

.ta-commerce {
	--ta-commerce-wrap: 1200px;

	background-color: var(--color-bg);
	color: var(--color-text);
	overflow-x: clip;
}

.ta-commerce__wrap {
	inline-size: 100%;
	max-inline-size: 1264px; /* ~1200px of content at 1440 */
	margin-inline: auto;
	padding-inline: clamp(20px, 2.2vw, 32px);
	padding-block-end: var(--ta-section-gap);
}

/*
 * The shell head. WooCommerce's utility page titles are English labels, so the
 * shell prints the site's own Arabic title instead and leaves the blocks to
 * carry their own section headings.
 */
.ta-commerce__head {
	padding-block: clamp(32px, 3.6vw, 56px) clamp(24px, 2.6vw, 36px);
	max-inline-size: 820px;
}

.ta-commerce__head .ta-eyebrow {
	margin: 0 0 10px;
	color: var(--color-gold-action);
	font-size: clamp(14px, 1.05vw, 16px);
	font-weight: var(--weight-bold);
	line-height: 1.45;
}

.ta-commerce__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(34px, 3.4vw, 46px);
	font-weight: var(--weight-bold);
	line-height: 1.16;
	text-wrap: balance;
}

.ta-commerce__lead {
	margin: 14px 0 0;
	max-inline-size: 64ch;
	color: var(--color-text-muted);
	font-size: clamp(16px, 1.2vw, 18px);
	line-height: 1.8;
}

/*
 * The polished surfaces share the site's inner-page H1 scale, and their heading
 * cluster sits close to the composition it introduces. Checkout keeps its own
 * head until its dedicated QA pass.
 */
.ta-commerce--cart .ta-commerce__title,
.ta-commerce--shop .ta-commerce__title,
.ta-commerce--account .ta-commerce__title {
	font-size: clamp(36px, 3.7vw, 52px);
}

.ta-commerce--cart .ta-commerce__head,
.ta-commerce--shop .ta-commerce__head,
.ta-commerce--account .ta-commerce__head {
	padding-block: clamp(32px, 3.6vw, 56px) clamp(18px, 2vw, 26px);
}

/* The order-received state prints WooCommerce's own heading, so the head is
   absent there and the block starts the page. */
.ta-commerce--order-received .ta-commerce__content {
	padding-block-start: clamp(32px, 3.6vw, 56px);
}

/* Type inside the WooCommerce surfaces. */
.ta-commerce h2,
.ta-commerce h3 {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
	line-height: 1.24;
}

.ta-commerce h1 {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
}

.ta-commerce p {
	color: var(--color-text);
	font-size: 16px;
	line-height: 1.85;
}

.ta-commerce a {
	color: var(--color-gold-action);
}

.ta-commerce a:focus-visible,
.ta-commerce button:focus-visible,
.ta-commerce input:focus-visible,
.ta-commerce select:focus-visible,
.ta-commerce textarea:focus-visible,
.ta-commerce summary:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-gold-action);
	outline-offset: var(--focus-outline-offset);
}

/* ========================================================== Destinations */

/*
 * ONE destination component for the routing page and the empty cart: two equal
 * columns separated by a hairline, each a text-led action — descriptor, real
 * page title, one affordance. There is no second card inside the surface: the
 * destination itself is the action.
 */
.ta-commerce-destinations {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ta-commerce-destination {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-inline-size: 0;
	padding-block: clamp(2px, 0.4vw, 4px);
	text-decoration: none;
}

.ta-commerce-destination + .ta-commerce-destination {
	padding-inline-start: clamp(24px, 2.4vw, 36px);
	border-inline-start: 1px solid var(--color-border);
}

.ta-commerce-destination__label {
	color: var(--color-gold-action);
	font-size: 13px;
	font-weight: var(--weight-bold);
	line-height: 1.4;
}

.ta-commerce-destination__title {
	margin-block-start: 8px;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(24px, 2vw, 29px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
	text-wrap: balance;
}

.ta-commerce-destination__text {
	margin-block-start: 10px;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.8;
}

.ta-commerce-destination__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-block-start: 14px;
	color: var(--color-gold-action);
	font-size: 15px;
	font-weight: var(--weight-bold);
}

.ta-commerce-destination:hover .ta-icon--directional {
	transform: translateX(-4px);
}

html[dir="ltr"] .ta-commerce-destination:hover .ta-icon--directional {
	transform: translateX(4px);
}

.ta-commerce-destination:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-gold-action);
	outline-offset: 4px;
}

/*
 * The routing page's single decision surface: both destinations inside one
 * contained panel, so the choice reads as one composition with the heading.
 */
.ta-commerce-panel {
	padding: clamp(32px, 3vw, 48px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-3xl);
	background-color: var(--color-surface);
	box-shadow: 0 4px 18px rgba(23, 79, 58, 0.06);
}

/* ============================================================ Empty cart */

/*
 * ONE surface for the whole empty state: the heading and guidance, a hairline,
 * then the two destinations. 880–960px at desktop, aligned to the reading edge.
 */
.ta-commerce-empty {
	max-inline-size: 920px;
	padding: clamp(32px, 3.4vw, 52px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-2xl);
	background-color: var(--color-surface);
	box-shadow: 0 4px 18px rgba(23, 79, 58, 0.06);
}

.ta-commerce-empty .ta-eyebrow {
	margin: 0 0 10px;
	color: var(--color-gold-action);
	font-size: clamp(14px, 1.05vw, 16px);
	font-weight: var(--weight-bold);
	line-height: 1.45;
}

.ta-commerce-empty__title {
	margin: 0;
	font-size: clamp(26px, 2.4vw, 32px);
}

.ta-commerce-empty__text {
	margin: 12px 0 0;
	max-inline-size: 58ch;
	color: var(--color-text-muted);
}

.ta-commerce-empty .ta-commerce-destinations {
	margin-block-start: clamp(24px, 2.4vw, 32px);
	padding-block-start: clamp(24px, 2.4vw, 32px);
	border-block-start: 1px solid var(--color-border);
}

/* ============================================================ Primitives */

/*
 * Buttons. WooCommerce ships blue/purple defaults; every commerce action is the
 * site's deep green here, and a bordered variant stays quiet.
 */
.ta-commerce .wc-block-components-button,
.ta-commerce .wc-block-cart__submit-button,
.ta-commerce .woocommerce-Button,
.ta-commerce button.button,
.ta-commerce input[type="submit"],
.ta-commerce .wc-block-components-checkout-place-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-block-size: 48px;
	padding: 12px 26px;
	border: 1px solid var(--color-green-900);
	border-radius: var(--radius-sm);
	background-color: var(--color-action);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--weight-bold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ta-commerce .wc-block-components-button:hover,
.ta-commerce .wc-block-cart__submit-button:hover,
.ta-commerce .woocommerce-Button:hover,
.ta-commerce button.button:hover,
.ta-commerce input[type="submit"]:hover,
.ta-commerce .wc-block-components-checkout-place-order-button:hover {
	background-color: var(--color-action-hover);
	border-color: var(--color-action-hover);
	color: var(--color-white);
}

.ta-commerce .wc-block-components-button:focus-visible,
.ta-commerce .woocommerce-Button:focus-visible,
.ta-commerce button.button:focus-visible,
.ta-commerce input[type="submit"]:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-gold-action);
	outline-offset: var(--focus-outline-offset);
}

.ta-commerce .wc-block-components-button.is-outline,
.ta-commerce .wc-block-components-button--outline,
.ta-commerce .wc-block-components-button.wc-block-components-button--outline {
	background-color: transparent;
	border-color: var(--color-border);
	color: var(--color-green-900);
}

.ta-commerce .wc-block-components-button.is-outline:hover,
.ta-commerce .wc-block-components-button--outline:hover {
	background-color: var(--color-sage-100);
	border-color: var(--color-green-900);
	color: var(--color-green-900);
}

/*
 * Anchored actions (notice links, order and download row actions) keep the same
 * shape as the primary buttons but stay quiet: bordered, no fill.
 */
.ta-commerce .woocommerce a.button,
.ta-commerce .woocommerce a.woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-block-size: 44px;
	padding: 10px 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: transparent;
	color: var(--color-green-900);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: var(--weight-bold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ta-commerce .woocommerce a.button:hover,
.ta-commerce .woocommerce a.woocommerce-Button:hover {
	border-color: var(--color-green-900);
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
}

.ta-commerce .woocommerce a.button:focus-visible,
.ta-commerce .woocommerce a.woocommerce-Button:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-gold-action);
	outline-offset: var(--focus-outline-offset);
}

/*
 * WooCommerce's classic forms (login, edit account, addresses) draw their
 * controls from these variables; point them at the theme tokens so every
 * native field matches the commerce surfaces without fighting specificity.
 */
.ta-commerce {
	--wc-form-border-color: var(--color-border);
	--wc-form-border-radius: var(--radius-sm);
	--wc-form-border-width: 1px;
}

/* Text inputs, selects and textareas. */
.ta-commerce .wc-block-components-text-input input,
.ta-commerce .wc-block-components-text-input input[type="text"],
.ta-commerce .wc-block-components-text-input input[type="email"],
.ta-commerce .wc-block-components-text-input input[type="tel"],
.ta-commerce .wc-block-components-text-input input[type="password"],
.ta-commerce .wc-block-components-select select,
.ta-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.ta-commerce .woocommerce-Input,
.ta-commerce input.input-text,
.ta-commerce textarea,
.ta-commerce select {
	inline-size: 100%;
	min-block-size: 48px;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
	color: var(--color-heading);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
}

.ta-commerce .wc-block-components-text-input input:focus,
.ta-commerce .wc-block-components-select select:focus,
.ta-commerce .woocommerce-Input:focus,
.ta-commerce input.input-text:focus,
.ta-commerce textarea:focus,
.ta-commerce select:focus {
	border-color: var(--color-gold-action);
	outline: var(--focus-outline-width) solid var(--color-gold-action);
	outline-offset: 1px;
}

.ta-commerce .wc-block-components-text-input label,
.ta-commerce .wc-block-components-select label,
.ta-commerce label {
	color: var(--color-heading);
	font-size: 14px;
	font-weight: var(--weight-bold);
	line-height: 1.5;
}

.ta-commerce .wc-block-components-text-input input::placeholder {
	color: var(--color-text-muted);
}

/* Notices: one quiet sage surface for information, the site's error colour for
   failures, never WooCommerce's blue/purple. */
.ta-commerce .wc-block-components-notice-banner,
.ta-commerce .woocommerce-info,
.ta-commerce .woocommerce-message {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
}

.ta-commerce .wc-block-components-notice-banner__content,
.ta-commerce .woocommerce-info,
.ta-commerce .woocommerce-message {
	font-size: 15px;
	line-height: 1.75;
}

.ta-commerce .wc-block-components-notice-banner.is-error,
.ta-commerce .woocommerce-error {
	border-color: var(--color-error);
	background-color: var(--color-error-surface);
	color: var(--color-error);
}

.ta-commerce .woocommerce-error {
	margin: 0 0 20px;
	padding: 18px 22px;
	list-style: none;
	border-radius: var(--radius-lg);
}

/* =============================================================== Cart */

/*
 * Cart rows read as one contained list: dividers instead of nested cards, the
 * product name in the heading face, and the totals kept on the reading side.
 */
.ta-commerce .wc-block-cart {
	max-inline-size: 1100px;
}

.ta-commerce .wc-block-cart-items {
	margin-block-end: clamp(20px, 2vw, 28px);
	padding: clamp(4px, 0.6vw, 8px) clamp(18px, 1.8vw, 26px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	background-color: var(--color-surface);
}

.ta-commerce .wc-block-cart-items__row {
	padding-block: clamp(16px, 1.6vw, 22px);
	border-block-start: 1px solid var(--color-border);
}

.ta-commerce .wc-block-cart-items__row:first-child {
	border-block-start: 0;
}

.ta-commerce .wc-block-cart-item__image img {
	border-radius: var(--radius-md);
	background-color: var(--color-sage-100);
}

.ta-commerce .wc-block-components-product-name {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: var(--weight-bold);
	line-height: 1.35;
	text-decoration: none;
}

.ta-commerce .wc-block-cart-item__product .wc-block-components-product-price,
.ta-commerce .wc-block-cart-item__totals .wc-block-components-product-price {
	color: var(--color-heading);
	font-size: 16px;
	font-weight: var(--weight-bold);
}

.ta-commerce .wc-block-components-quantity-selector {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
}

.ta-commerce .wc-block-components-quantity-selector__input {
	color: var(--color-heading);
	font-size: 16px;
	font-weight: var(--weight-bold);
}

.ta-commerce .wc-block-cart-item__remove-link,
.ta-commerce .wc-block-components-cart-item__remove-link {
	color: var(--color-text-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ta-commerce .wc-block-cart-item__remove-link:hover {
	color: var(--color-error);
}

/* Totals. */
.ta-commerce .wc-block-components-totals-item {
	font-size: 16px;
	line-height: 1.7;
}

.ta-commerce .wc-block-components-totals-item__label,
.ta-commerce .wc-block-components-totals-item__value {
	color: var(--color-text);
}

.ta-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.ta-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--color-heading);
	font-size: 19px;
	font-weight: var(--weight-bold);
}

.ta-commerce .wc-block-components-totals-item__description {
	color: var(--color-text-muted);
	font-size: 13px;
}

/* The cart's action row: one primary action, kept at the reading edge. */
.ta-commerce .wc-block-cart__submit {
	margin-block-start: clamp(20px, 2vw, 28px);
}

.ta-commerce .wc-block-cart__submit-container {
	display: flex;
	justify-content: flex-start;
}

/* ============================================================= Checkout */

/*
 * Checkout steps are contained panels with a hairline border — the site's
 * editorial module language — and the order summary stays a quiet sidebar.
 */
.ta-commerce .wc-block-checkout__main {
	max-inline-size: 760px;
}

.ta-commerce .wc-block-components-checkout-step {
	margin-block-end: clamp(16px, 1.6vw, 22px);
	padding: clamp(20px, 2vw, 28px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	background-color: var(--color-surface);
}

.ta-commerce .wc-block-components-checkout-step__title,
.ta-commerce .wc-block-components-checkout-step__heading h2,
.ta-commerce .wc-block-components-title {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.ta-commerce .wc-block-components-checkout-step__description {
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.7;
}

.ta-commerce .wc-block-checkout__sidebar,
.ta-commerce .wc-block-components-sidebar {
	inline-size: 100%;
	max-inline-size: 420px;
}

.ta-commerce .wc-block-components-sidebar-layout .wc-block-components-main {
	padding-inline-end: clamp(20px, 2vw, 36px);
}

.ta-commerce .wc-block-components-order-summary {
	padding: clamp(20px, 2vw, 26px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	background-color: var(--color-surface);
}

.ta-commerce .wc-block-components-order-summary-item {
	padding-block: 14px;
	border-block-start: 1px solid var(--color-border);
}

.ta-commerce .wc-block-components-order-summary-item:first-child {
	border-block-start: 0;
}

.ta-commerce .wc-block-components-order-summary-item__description,
.ta-commerce .wc-block-components-order-summary-item__quantity {
	color: var(--color-text-muted);
	font-size: 14px;
}

.ta-commerce .wc-block-components-checkout-place-order-button {
	inline-size: 100%;
	min-block-size: 52px;
	font-size: 17px;
}

.ta-commerce .wc-block-components-radio-control__option,
.ta-commerce .wc-block-components-checkbox {
	font-size: 15px;
	line-height: 1.6;
}

.ta-commerce .wc-block-components-radio-control__label,
.ta-commerce .wc-block-components-checkbox__label {
	color: var(--color-text);
}

.ta-commerce .wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

/* WooCommerce's own "there are no payment methods" notice stays visible and
   readable; it is the honest state until a gateway is configured. */
.ta-commerce .wc-block-checkout__no-payment-methods-notice,
.ta-commerce .wc-block-components-express-payment--checkout {
	border-radius: var(--radius-lg);
}

/* =========================================================== My account */

/*
 * ONE contained account shell: a calm vertical menu at the reading side and the
 * native WooCommerce endpoint content beside it, separated by a hairline.
 * WooCommerce keeps every endpoint, form, hook and URL; this is layout and type.
 */
.ta-commerce--account .woocommerce {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-areas: "menu content";
	/* The shell wraps whichever column is genuinely taller; neither column is
	   stretched to the other's height and nothing imposes a minimum. */
	align-items: start;
	align-content: start;
	min-block-size: 0;
	padding: clamp(24px, 2.4vw, 36px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-3xl);
	background-color: var(--color-surface);
	box-shadow: 0 4px 18px rgba(23, 79, 58, 0.06);
}

/* WooCommerce's global clearfix pseudo-elements would otherwise become grid
   items: a phantom second row and an empty cell overlapping the menu. */
.ta-commerce--account .woocommerce::before,
.ta-commerce--account .woocommerce::after {
	display: none;
}

/* Logged out there is no account menu, so the shell becomes one focused column. */
body:not(.logged-in) .ta-commerce--account .woocommerce {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "content";
	max-inline-size: 640px;
}

/* WooCommerce's own 30% / 68% widths predate this grid; named areas own the
   placement now, so neither column can be squeezed by the legacy rule. */
.ta-commerce--account .woocommerce-MyAccount-navigation {
	grid-area: menu;
	width: auto;
	float: none;
}

.ta-commerce--account .woocommerce-MyAccount-content {
	grid-area: content;
	width: auto;
	float: none;
}

.ta-commerce .woocommerce-MyAccount-navigation {
	margin: 0;
	padding-inline-end: clamp(20px, 2vw, 28px);
	border-inline-end: 1px solid var(--color-border);
}

.ta-commerce .woocommerce-MyAccount-navigation ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-commerce .woocommerce-MyAccount-navigation-link {
	margin: 0;
}

.ta-commerce .woocommerce-MyAccount-navigation-link + .woocommerce-MyAccount-navigation-link {
	border-block-start: 1px solid var(--color-border);
}

.ta-commerce .woocommerce-MyAccount-navigation-link a {
	display: flex;
	align-items: center;
	min-block-size: 48px;
	padding: 10px 14px;
	border: 0;
	border-inline-start: 3px solid transparent;
	border-radius: 0;
	background-color: transparent;
	color: var(--color-heading);
	font-size: 15px;
	font-weight: var(--weight-bold);
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.ta-commerce .woocommerce-MyAccount-navigation-link a:hover {
	background-color: var(--color-sage-100);
}

.ta-commerce .woocommerce-MyAccount-navigation-link.is-active a {
	border-inline-start-color: var(--color-green-900);
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
}

.ta-commerce .woocommerce-MyAccount-content {
	min-inline-size: 0;
	max-inline-size: none;
	padding-inline-start: clamp(20px, 2vw, 28px);
	font-size: 16px;
	line-height: 1.85;
}

.ta-commerce .woocommerce-MyAccount-content > p:first-child {
	margin-block-start: 0;
}

.ta-commerce .woocommerce-MyAccount-content h2,
.ta-commerce .woocommerce-MyAccount-content h3 {
	margin-block-start: 0;
}

.ta-commerce .woocommerce-MyAccount-content p {
	color: var(--color-text);
}

/* Dashboard prose keeps a readable measure on the wide column. */
.ta-commerce .woocommerce-MyAccount-content > p {
	max-inline-size: 720px;
}

.ta-commerce .woocommerce-MyAccount-content a {
	color: var(--color-gold-action);
}

/* Inside the shell a form must not add a second card of its own. */
.ta-commerce--account .woocommerce .woocommerce-form-login,
.ta-commerce--account .woocommerce .woocommerce-form-register,
.ta-commerce--account .woocommerce .woocommerce-EditAccountForm,
.ta-commerce .woocommerce-MyAccount-content .woocommerce-form-login,
.ta-commerce .woocommerce-MyAccount-content .woocommerce-form-register {
	max-inline-size: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
}

.ta-commerce .woocommerce-orders-table,
.ta-commerce .woocommerce-table--order-downloads {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ta-commerce .woocommerce-orders-table th,
.ta-commerce .woocommerce-orders-table td,
.ta-commerce .woocommerce-table--order-downloads th,
.ta-commerce .woocommerce-table--order-downloads td {
	padding: 12px 14px;
	border-block-end: 1px solid var(--color-border);
	text-align: start;
}

.ta-commerce .woocommerce-orders-table thead th,
.ta-commerce .woocommerce-table--order-downloads thead th {
	color: var(--color-heading);
	font-weight: var(--weight-bold);
}

.ta-commerce .woocommerce-orders-table a.button,
.ta-commerce .woocommerce-MyAccount-downloads a.button {
	min-block-size: 38px;
	padding: 8px 16px;
	font-size: 14px;
}

/*
 * Addresses are two reading columns separated by a hairline, not two cards
 * inside the shell.
 */
.ta-commerce .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 2vw, 28px);
}

.ta-commerce .woocommerce-Address {
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
}

.ta-commerce .woocommerce-Address + .woocommerce-Address {
	padding-inline-start: clamp(20px, 2vw, 28px);
	border-inline-start: 1px solid var(--color-border);
}

.ta-commerce .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.ta-commerce .woocommerce-Address-title h3,
.ta-commerce .woocommerce-Address-title h2 {
	margin: 0;
	font-size: 20px;
}

.ta-commerce .woocommerce-Address address {
	margin-block-start: 10px;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.8;
	font-style: normal;
}

.ta-commerce .woocommerce-form-login .form-row,
.ta-commerce .woocommerce-form-register .form-row,
.ta-commerce .woocommerce-EditAccountForm .form-row {
	margin-block-end: 16px;
}

.ta-commerce .woocommerce form .form-row label {
	color: var(--color-heading);
	font-size: 14px;
	font-weight: var(--weight-bold);
}

.ta-commerce .woocommerce-form-login__rememberme {
	color: var(--color-text-muted);
	font-size: 14px;
}

/* WooCommerce's breadcrumb is the only navigation cue on these pages. */
.ta-commerce .woocommerce-breadcrumb {
	margin: 0 0 clamp(18px, 1.8vw, 24px);
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.6;
}

.ta-commerce .woocommerce-breadcrumb a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.ta-commerce .woocommerce-breadcrumb a:hover {
	color: var(--color-gold-action);
}

/* ========================================================= Order received */

.ta-commerce .woocommerce-order {
	max-inline-size: 980px;
}

.ta-commerce .woocommerce-thankyou-order-received {
	margin: 0 0 8px;
	color: var(--color-heading);
}

.ta-commerce .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 1.6vw, 24px);
	margin: 0 0 clamp(24px, 2.4vw, 32px);
	padding: clamp(20px, 2vw, 26px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	background-color: var(--color-surface);
	list-style: none;
}

.ta-commerce .woocommerce-order-overview li {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.6;
	text-transform: none;
}

.ta-commerce .woocommerce-order-overview li strong {
	display: block;
	margin-block-start: 4px;
	color: var(--color-heading);
	font-size: 15px;
	font-weight: var(--weight-bold);
}

.ta-commerce .woocommerce-table--order-details {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ta-commerce .woocommerce-table--order-details th,
.ta-commerce .woocommerce-table--order-details td {
	padding: 12px 14px;
	border-block-end: 1px solid var(--color-border);
	text-align: start;
}

.ta-commerce .woocommerce-table--order-details thead th {
	color: var(--color-heading);
	font-weight: var(--weight-bold);
}

/* The "what happens next" panel derived from the real order items. */
.ta-commerce-next {
	margin-block: clamp(24px, 2.4vw, 32px);
	padding: clamp(22px, 2.2vw, 30px);
	border-radius: var(--radius-xl);
	background-color: var(--color-sage-100);
}

.ta-commerce-next .ta-eyebrow {
	margin: 0 0 10px;
	color: var(--color-gold-action);
	font-size: clamp(14px, 1.05vw, 16px);
	font-weight: var(--weight-bold);
	line-height: 1.45;
}

.ta-commerce-next__title {
	margin: 0;
	font-size: clamp(22px, 1.9vw, 28px);
}

.ta-commerce-next__list {
	margin: 14px 0 0;
	padding-inline-start: 1.2em;
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.85;
}

.ta-commerce-next__item + .ta-commerce-next__item {
	margin-block-start: 8px;
}

/* =============================================================== Admin */

/*
 * The order screen's fulfillment panel exists outside `.ta-commerce` (the admin),
 * so it is stated here for its own scope only.
 */
.ta-commerce-admin {
	margin-block-start: 20px;
	padding: 16px 18px;
	border: 1px solid #dddcd7;
	border-radius: 12px;
	background: #faf8f3;
}

.ta-commerce-admin h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.ta-commerce-admin__group {
	margin: 12px 0 4px;
}

.ta-commerce-admin__items {
	margin: 0;
	padding-inline-start: 18px;
}

.ta-commerce-admin__items li {
	margin-block-end: 6px;
	font-size: 13px;
	line-height: 1.6;
}

/* ============================================================ Responsive */

@media (max-width: 899px) {
	/* Account: the menu sits above the endpoint content in one column. */
	.ta-commerce--account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "menu" "content";
	}

	.ta-commerce .woocommerce-MyAccount-navigation {
		padding-inline-end: 0;
		padding-block-end: 16px;
		border-inline-end: 0;
		border-block-end: 1px solid var(--color-border);
	}

	.ta-commerce .woocommerce-MyAccount-content {
		padding-inline-start: 0;
		padding-block-start: 20px;
	}

	.ta-commerce .wc-block-components-sidebar-layout .wc-block-components-main {
		padding-inline-end: 0;
	}

	.ta-commerce .wc-block-checkout__sidebar,
	.ta-commerce .wc-block-components-sidebar {
		max-inline-size: none;
	}

	.ta-commerce .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-commerce .woocommerce-Address + .woocommerce-Address {
		padding-inline-start: 0;
		padding-block-start: 20px;
		border-inline-start: 0;
		border-block-start: 1px solid var(--color-border);
	}
}

/* Two destinations become one column, and the divider follows. */
@media (max-width: 767px) {
	.ta-commerce-destinations {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-commerce-destination + .ta-commerce-destination {
		margin-block-start: clamp(20px, 2vw, 24px);
		padding-inline-start: 0;
		padding-block-start: clamp(20px, 2vw, 24px);
		border-inline-start: 0;
		border-block-start: 1px solid var(--color-border);
	}
}

@media (max-width: 559px) {
	.ta-commerce__title {
		font-size: clamp(30px, 9vw, 36px);
	}

	.ta-commerce-empty,
	.ta-commerce-panel,
	.ta-commerce .wc-block-components-checkout-step,
	.ta-commerce .wc-block-components-order-summary {
		padding-inline: clamp(14px, 4vw, 18px);
		border-radius: var(--radius-lg);
	}

	.ta-commerce .wc-block-cart-items {
		padding-inline: clamp(12px, 3.5vw, 16px);
	}

	/* At the narrowest width every form control takes the full row. */
	.ta-commerce .woocommerce form .form-row-first,
	.ta-commerce .woocommerce form .form-row-last {
		float: none;
		inline-size: 100%;
	}

	/* Order summary tables and the downloads table scroll inside themselves. */
	.ta-commerce .woocommerce-orders-table,
	.ta-commerce .woocommerce-table--order-details,
	.ta-commerce .woocommerce-table--order-downloads {
		display: block;
		max-inline-size: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ================================================================= Motion */

@media (prefers-reduced-motion: reduce) {
	.ta-commerce .wc-block-components-button,
	.ta-commerce .woocommerce-Button,
	.ta-commerce button.button,
	.ta-commerce .woocommerce-MyAccount-navigation-link a {
		transition: none;
	}

	.ta-commerce-destination:hover .ta-icon--directional {
		transform: none;
	}
}

/* P19: Woo password visibility control must meet the WCAG 2.2 24px target. */
.woocommerce-form-login .show-password-input,
.woocommerce-ResetPassword .show-password-input,
.woocommerce-EditAccountForm .show-password-input {
	min-inline-size: 24px;
	min-block-size: 24px;
	padding: 1px;
}
