/**
 * Logged-in account and order-received presentation.
 *
 * Loaded only on the relevant WooCommerce account/confirmation routes.
 */

/* Logged-in account: clear navigation and one calm working surface. */
body.woocommerce-account.logged-in .meem-info-shell {
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}

body.woocommerce-account.logged-in .meem-info-card {
	width: min(100%, 1180px);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none;
}

body.woocommerce-account.logged-in .meem-info-card > h1 {
	max-width: none;
	margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
	font-size: clamp(2.8rem, 5vw, 4.7rem);
}

body.woocommerce-account.logged-in .meem-info-content,
body.woocommerce-account.logged-in .meem-info-content > .woocommerce {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
}

body.woocommerce-account.logged-in .meem-info-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
	gap: clamp(1.1rem, 2.5vw, 2rem);
	align-items: start;
}

body.woocommerce-account.logged-in .woocommerce-notices-wrapper,
body.woocommerce-account.logged-in .woocommerce-message,
body.woocommerce-account.logged-in .woocommerce-error,
body.woocommerce-account.logged-in .woocommerce-info {
	grid-column: 1 / -1;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0.65rem;
	border: 1px solid rgba(30, 25, 23, 0.12);
	border-radius: 16px;
	background: var(--meem-polish-commerce-surface);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 0.22rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0.72rem 0.9rem;
	border: 1px solid transparent;
	border-radius: 9px;
	color: var(--meem-polish-ink);
	font-size: 0.84rem;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a:focus-visible {
	border-color: rgba(156, 81, 77, 0.32);
	background: rgba(255, 255, 255, 0.72);
	outline: none;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation .is-active a {
	border-color: rgba(156, 81, 77, 0.42);
	background: #fff;
	color: var(--meem-polish-label);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid rgba(30, 25, 23, 0.12);
	border-radius: 16px;
	background: #fff;
	color: var(--meem-polish-ink);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content p {
	color: var(--meem-polish-muted);
	line-height: 1.68;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content a:not(.button) {
	color: var(--meem-polish-label);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content h2,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content h3,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content legend {
	color: var(--meem-polish-ink);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content h2,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content legend {
	font-size: clamp(1.45rem, 2vw, 1.85rem);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 1.2rem 0 0;
	border: 1px solid var(--meem-polish-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td {
	padding: 0.9rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--meem-polish-line);
	text-align: left;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table th {
	background: var(--meem-polish-commerce-surface);
	color: var(--meem-polish-ink);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table tr:last-child td {
	border-bottom: 0;
}

body.woocommerce-account.logged-in .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}

body.woocommerce-account.logged-in .woocommerce-Addresses::before,
body.woocommerce-account.logged-in .woocommerce-Addresses::after {
	display: none;
	content: none;
}

body.woocommerce-account.logged-in .woocommerce-Address {
	float: none !important;
	width: auto !important;
	margin: 0;
	padding: 1.15rem;
	border: 1px solid var(--meem-polish-line);
	border-radius: 12px;
	background: var(--meem-polish-surface);
}

body.woocommerce-account.logged-in .woocommerce-Address address {
	font-style: normal;
	line-height: 1.65;
}

body.woocommerce-account.logged-in .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

body.woocommerce-account.logged-in .woocommerce-Address-title h3 {
	float: none;
	margin: 0 0 0.8rem;
}

body.woocommerce-account.logged-in .woocommerce-Address-title .edit {
	float: none;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content fieldset {
	margin: 1.5rem 0 0;
	padding: 1.2rem;
	border: 1px solid var(--meem-polish-line);
	border-radius: 12px;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content .form-row {
	margin-bottom: 1rem;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content label {
	display: block;
	margin: 0 0 0.4rem;
	color: var(--meem-polish-ink);
	font-size: 0.78rem;
	font-weight: 800;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content select,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.72rem 0.85rem;
	border: 1px solid rgba(30, 25, 23, 0.26);
	border-radius: 12px;
	background: #fff;
	color: var(--meem-polish-ink);
	font: inherit;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content input.input-text:focus,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content select:focus,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content textarea:focus {
	border-color: rgba(156, 81, 77, 0.72);
	box-shadow: 0 0 0 3px rgba(156, 81, 77, 0.13);
	outline: none;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.72rem 1rem;
	border: 1px solid var(--meem-polish-ink);
	border-radius: 12px;
	background: var(--meem-polish-ink);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

/* Order received: make success and order facts easy to scan without hiding Woo data. */
body.woocommerce-order-received .meem-commerce-content {
	border: 0;
	background: #fff;
	box-shadow: none;
}

body.woocommerce-order-received .meem-commerce-heading p {
	color: var(--meem-polish-label);
}

body.woocommerce-order-received .woocommerce-order {
	display: grid;
	gap: clamp(1rem, 2.4vw, 1.5rem);
}

body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-notice--success {
	position: relative;
	margin: 0;
	padding: 1.2rem 1.25rem 1.2rem 3.8rem;
	border: 1px solid rgba(83, 116, 87, 0.24);
	border-radius: 14px;
	background: #eef4ef;
	color: #24452d;
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	font-weight: 750;
	line-height: 1.45;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received::before,
body.woocommerce-order-received .woocommerce-notice--success::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1.25rem;
	width: 1.15rem;
	height: 0.62rem;
	border-bottom: 3px solid #3f724c;
	border-left: 3px solid #3f724c;
	transform: translateY(-65%) rotate(-45deg);
}

body.woocommerce-order-received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--meem-polish-line);
	border-radius: 14px;
	background: #fff;
	list-style: none;
	overflow: hidden;
}

body.woocommerce-order-received .woocommerce-order-overview li {
	float: none;
	min-width: 0;
	margin: 0;
	padding: 1rem;
	border: 0;
	border-right: 1px solid var(--meem-polish-line);
	color: var(--meem-polish-muted);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
	word-break: break-word;
}

body.woocommerce-order-received .woocommerce-order-overview li:last-child {
	border-right: 0;
}

body.woocommerce-order-received .woocommerce-order-overview strong {
	display: block;
	margin-top: 0.35rem;
	color: var(--meem-polish-ink);
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: normal;
	line-height: 1.35;
	text-transform: none;
}

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
	margin: 0;
	padding: clamp(1.1rem, 2.5vw, 1.6rem);
	border: 1px solid var(--meem-polish-line);
	border-radius: 14px;
	background: #fff;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
	margin: 0 0 1rem;
	color: var(--meem-polish-ink);
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	font-weight: 750;
	letter-spacing: -0.02em;
}

body.woocommerce-order-received table.woocommerce-table--order-details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

body.woocommerce-order-received table.woocommerce-table--order-details th,
body.woocommerce-order-received table.woocommerce-table--order-details td {
	padding: 0.85rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--meem-polish-line);
	text-align: left;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead th {
	color: var(--meem-polish-muted);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-customer-details address {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--meem-polish-line);
	border-radius: 12px;
	background: var(--meem-polish-surface);
	font-style: normal;
	line-height: 1.65;
}

@media (max-width: 820px) {
	body.woocommerce-account.logged-in .meem-info-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
		padding: 0.5rem;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
		min-height: 44px;
		padding: 0.65rem 0.72rem;
		font-size: 0.78rem;
	}

	body.woocommerce-order-received .woocommerce-order-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-order-received .woocommerce-order-overview li:nth-child(2n) {
		border-right: 0;
	}

	body.woocommerce-order-received .woocommerce-order-overview li:nth-child(-n + 2) {
		border-bottom: 1px solid var(--meem-polish-line);
	}
}

@media (max-width: 560px) {
	body.woocommerce-account.logged-in .meem-info-card {
		padding: 0;
		border-radius: 0;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		padding: 1.1rem;
		border-radius: 12px;
	}

	body.woocommerce-account.logged-in .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table {
		display: table;
		overflow: hidden;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive thead {
		display: none;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive tbody,
	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive tr,
	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive td {
		display: block;
		width: 100%;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive tr {
		padding: 0.45rem 0;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.72rem 0.9rem;
		text-align: right !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table_responsive td::before {
		content: attr(data-title);
		flex: 0 0 auto;
		color: var(--meem-polish-muted);
		font-size: 0.7rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-align: left;
		text-transform: uppercase;
	}

	body.woocommerce-order-received .woocommerce-thankyou-order-received,
	body.woocommerce-order-received .woocommerce-notice--success {
		padding: 1rem 1rem 1rem 3.35rem;
	}

	body.woocommerce-order-received .woocommerce-thankyou-order-received::before,
	body.woocommerce-order-received .woocommerce-notice--success::before {
		left: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
		transition: none;
	}
}
