/*
 * FTF&M My Account presentation
 * Loaded only on WooCommerce account pages, logged in and out, including
 * lost/reset password (inc/account.php). WooCommerce's own CSS is not loaded
 * on these pages (functions.php), so this is the whole account look.
 * Every rule is scoped to body.woocommerce-account; tokens and values mirror
 * css/cart-checkout.css. Display only: templates, fields, nonces, endpoints
 * and behaviour are WooCommerce's own.
 *
 * Login/register fields and buttons belong to the ftfm-my-room-edit plugin
 * and are left alone; only the page heading, column alignment, section
 * headings and notices are aligned here.
 */

body.woocommerce-account {
	--cc-ink: #101d2a;
	--cc-blue: #506884;
	--cc-ox: #6c3348;
	--cc-ox-dark: #5a2a3c;
	--cc-paper: #f8f5f1;
	--cc-line: #d9d4cf;
	--cc-field: #c9c3bc;
	--cc-muted: #697075;
	--cc-serif: "Literata", Georgia, "Times New Roman", serif;
	--cc-sans: "Manrope", "proxima-nova", Arial, sans-serif;
}

/* ---------- Page frame (page.php centres everything) ---------- */

body.woocommerce-account .faq-top.text-center {
	text-align: left !important;
	padding-bottom: 72px;
}

body.woocommerce-account h1.page-title {
	font-family: var(--cc-serif);
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--cc-ink);
	text-align: left;
	margin: 48px 0 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cc-ink);
}

body.woocommerce-account .faq-top > .woocommerce {
	font-family: var(--cc-sans);
	font-size: 15px;
	line-height: 1.6;
	color: var(--cc-ink);
	text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account form.lost_reset_password p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--cc-ink);
	margin: 0 0 16px;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button),
body.woocommerce-account form.lost_reset_password a:not(.button) {
	color: var(--cc-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover,
body.woocommerce-account form.lost_reset_password a:not(.button):hover {
	color: var(--cc-ink);
}

body.woocommerce-account .faq-top > .woocommerce a:focus-visible,
body.woocommerce-account .faq-top > .woocommerce button:focus-visible {
	outline: 2px solid var(--cc-ox) !important; /* the theme removes :focus outlines with !important */
	outline-offset: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-family: var(--cc-serif);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--cc-ink);
	text-align: left;
	text-transform: none;
	margin: 0 0 16px;
}

/* ---------- Logged-in layout: navigation beside the content ---------- */

body.woocommerce-account .faq-top > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	column-gap: 56px;
	align-items: start;
}

body.woocommerce-account .faq-top > .woocommerce:has(> .woocommerce-MyAccount-navigation) > * {
	grid-column: 2;
	min-width: 0;
}

body.woocommerce-account .faq-top > .woocommerce > .woocommerce-MyAccount-navigation {
	grid-column: 1;
	grid-row: 1 / span 20;
	float: none;
	width: auto;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	max-width: 820px;
}

/* ---------- Account navigation ---------- */

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--cc-line);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--cc-line);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 14px;
	border-left: 3px solid transparent;
	font-family: var(--cc-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cc-ink);
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--cc-paper);
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible {
	outline: 2px solid var(--cc-ox) !important; /* the theme removes :focus outlines with !important */
	outline-offset: -2px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--cc-paper);
	border-left-color: var(--cc-ink);
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--cc-muted);
}

/* ---------- Notices (also replaces the logged-out pink notices) ---------- */

body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-message,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-info,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-error,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-error {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	background: var(--cc-paper);
	color: var(--cc-ink);
	border: 0;
	border-left: 3px solid var(--cc-blue);
	border-radius: 0;
	font-family: var(--cc-sans);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	list-style: none;
	padding: 14px 20px;
	margin: 0 0 20px;
}

body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-error,
body.woocommerce-account.woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-error {
	border-left-color: var(--cc-ox);
}

body.woocommerce-account .woocommerce .woocommerce-message::before,
body.woocommerce-account .woocommerce .woocommerce-info::before,
body.woocommerce-account .woocommerce .woocommerce-error::before {
	display: none;
}

body.woocommerce-account .woocommerce ul.woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce ul.woocommerce-error li + li {
	margin-top: 6px;
}

body.woocommerce-account .woocommerce .woocommerce-message a:not(.button),
body.woocommerce-account .woocommerce .woocommerce-info a:not(.button),
body.woocommerce-account .woocommerce .woocommerce-error a:not(.button) {
	color: var(--cc-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Notices that carry an action (e.g. "No order has been made yet. Browse products") */
body.woocommerce-account .woocommerce .woocommerce-message:has(> a.button),
body.woocommerce-account .woocommerce .woocommerce-info:has(> a.button) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

/* Logged out: line the login/register column and notices up with the
   left-aligned page heading (fields/buttons stay as the plugin styles them) */
body.woocommerce-account:not(.logged-in) .faq-top .woocommerce #customer_login {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce > .woocommerce-message,
body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce > .woocommerce-info,
body.woocommerce-account:not(.logged-in).woocommerce-page .woocommerce > .woocommerce-error {
	max-width: 32rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-login h2,
body.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register h2,
body.woocommerce-account:not(.logged-in) .woocommerce #customer_login h2 {
	font-family: var(--cc-serif);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--cc-ink);
	text-align: left;
	margin: 0 0 20px;
}

/* ---------- Buttons (account content and lost/reset forms) ---------- */

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account form.lost_reset_password .button,
body.woocommerce-account .woocommerce .woocommerce-message a.button,
body.woocommerce-account .woocommerce .woocommerce-info a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	margin: 0;
	border: 1px solid var(--cc-ink);
	border-radius: 0;
	background: #fff;
	color: var(--cc-ink);
	font-family: var(--cc-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account form.lost_reset_password .button:hover,
body.woocommerce-account .woocommerce .woocommerce-message a.button:hover,
body.woocommerce-account .woocommerce .woocommerce-info a.button:hover {
	background: var(--cc-ink);
	border-color: var(--cc-ink);
	color: #fff;
	text-decoration: none;
}

/* Primary actions: saving forms, resetting a password, paying, ordering again */
body.woocommerce-account .woocommerce-MyAccount-content form button.button[type="submit"],
body.woocommerce-account form.lost_reset_password button.button[type="submit"],
body.woocommerce-account .woocommerce-MyAccount-content a.button.pay,
body.woocommerce-account .woocommerce-MyAccount-content .order-again a.button {
	background: var(--cc-ox);
	border-color: var(--cc-ox);
	color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content form button.button[type="submit"]:hover,
body.woocommerce-account form.lost_reset_password button.button[type="submit"]:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button.pay:hover,
body.woocommerce-account .woocommerce-MyAccount-content .order-again a.button:hover {
	background: var(--cc-ox-dark);
	border-color: var(--cc-ox-dark);
	color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content form button.button[type="submit"],
body.woocommerce-account form.lost_reset_password button.button[type="submit"] {
	min-height: 52px;
	padding: 12px 28px;
	font-size: 15px;
}

/* ---------- Form fields (account details, addresses, lost/reset password) ---------- */

body.woocommerce-account .woocommerce-MyAccount-content .form-row,
body.woocommerce-account form.lost_reset_password .form-row {
	float: none;
	width: auto;
	margin: 0 0 16px;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row label,
body.woocommerce-account form.lost_reset_password .form-row label {
	display: block;
	font-family: var(--cc-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cc-ink);
	text-align: left;
	margin: 0 0 6px;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row .required,
body.woocommerce-account form.lost_reset_password .form-row .required {
	color: var(--cc-ox);
	text-decoration: none;
	border: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row .optional {
	font-weight: 400;
	color: var(--cc-muted);
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content .form-row select,
body.woocommerce-account .woocommerce-MyAccount-content .form-row textarea,
body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single,
body.woocommerce-account form.lost_reset_password input.input-text {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--cc-field);
	border-radius: 0;
	background: #fff;
	font-family: var(--cc-sans);
	font-size: 16px;
	line-height: 1.4;
	color: var(--cc-ink);
	box-shadow: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row textarea {
	height: auto;
	min-height: 104px;
	padding: 12px 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row input.input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content .form-row select:focus,
body.woocommerce-account .woocommerce-MyAccount-content .form-row textarea:focus,
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--focus .select2-selection--single,
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--open .select2-selection--single,
body.woocommerce-account form.lost_reset_password input.input-text:focus {
	border-color: var(--cc-ink);
	outline: none;
	box-shadow: 0 0 0 1px var(--cc-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--cc-ox);
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding: 0;
	color: var(--cc-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 8px;
}

body.woocommerce-account .select2-dropdown {
	border-color: var(--cc-ink);
	border-radius: 0;
	font-family: var(--cc-sans);
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row em,
body.woocommerce-account .woocommerce-MyAccount-content #account_display_name_description {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-style: normal;
	line-height: 1.5;
	color: var(--cc-muted);
}

body.woocommerce-account .woocommerce-MyAccount-content .clear,
body.woocommerce-account form.lost_reset_password .clear {
	display: none;
}

/* Two-column field rows on wider screens, like the checkout */
body.woocommerce-account .woocommerce-address-fields__field-wrapper,
body.woocommerce-account form.woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper > *,
body.woocommerce-account form.woocommerce-EditAccountForm > * {
	grid-column: 1 / -1;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first,
body.woocommerce-account form.woocommerce-EditAccountForm > .form-row-first {
	grid-column: 1;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last,
body.woocommerce-account form.woocommerce-EditAccountForm > .form-row-last {
	grid-column: 2;
}

body.woocommerce-account .woocommerce-address-fields > p:last-child,
body.woocommerce-account form.woocommerce-EditAccountForm > p:last-of-type {
	margin: 12px 0 0;
}

/* Password change group */
body.woocommerce-account form.woocommerce-EditAccountForm fieldset {
	min-width: 0;
	margin: 12px 0 0;
	padding: 24px 0 0;
	border: 0;
	border-top: 1px solid var(--cc-line);
}

body.woocommerce-account form.woocommerce-EditAccountForm legend {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 16px;
	font-family: var(--cc-serif);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--cc-ink);
}

body.woocommerce-account form.woocommerce-EditAccountForm legend + * {
	clear: both;
}

/* Password strength meter (WooCommerce's own script) */
body.woocommerce-account .woocommerce-password-strength {
	margin: 8px 0 0;
	padding: 8px 12px;
	border-left: 3px solid var(--cc-line);
	background: var(--cc-paper);
	font-size: 13px;
	font-weight: 600;
	color: var(--cc-ink);
	text-align: left;
}

body.woocommerce-account .woocommerce-password-strength.short,
body.woocommerce-account .woocommerce-password-strength.bad {
	border-left-color: var(--cc-ox);
}

body.woocommerce-account .woocommerce-password-strength.good,
body.woocommerce-account .woocommerce-password-strength.strong {
	border-left-color: var(--cc-blue);
}

body.woocommerce-account .woocommerce-password-hint {
	display: block;
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cc-muted);
}

/* ---------- Lost / reset password ---------- */

/* WooCommerce's show/hide password button: its icon CSS isn't loaded here,
   so give it a text label like the plugin's login toggle (aria-label kept) */
body.woocommerce-account form.lost_reset_password .password-input,
body.woocommerce-account .woocommerce-MyAccount-content .password-input {
	display: block;
}

body.woocommerce-account form.lost_reset_password .show-password-input,
body.woocommerce-account .woocommerce-MyAccount-content .show-password-input {
	display: inline-block;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--cc-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cc-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

body.woocommerce-account form.lost_reset_password .show-password-input::after,
body.woocommerce-account .woocommerce-MyAccount-content .show-password-input::after {
	content: "Show password";
}

body.woocommerce-account form.lost_reset_password .show-password-input.display-password::after,
body.woocommerce-account .woocommerce-MyAccount-content .show-password-input.display-password::after {
	content: "Hide password";
}

body.woocommerce-account form.lost_reset_password {
	max-width: 32rem;
	margin: 0;
	text-align: left;
}

body.woocommerce-account form.lost_reset_password > p:first-child {
	margin-bottom: 24px;
}

body.woocommerce-account form.lost_reset_password button.button[type="submit"] {
	width: 100%;
	margin-top: 8px;
}

/* ---------- Orders and downloads tables ---------- */

body.woocommerce-account table.woocommerce-orders-table,
body.woocommerce-account table.woocommerce-table--order-downloads {
	width: 100%;
	margin: 0 0 24px;
	border: 0;
	border-collapse: collapse;
	background: none;
	font-size: 14px;
}

body.woocommerce-account table.woocommerce-orders-table th,
body.woocommerce-account table.woocommerce-orders-table td,
body.woocommerce-account table.woocommerce-table--order-downloads th,
body.woocommerce-account table.woocommerce-table--order-downloads td {
	padding: 14px 16px 14px 0;
	border: 0;
	border-top: 1px solid var(--cc-line);
	background: none;
	font-family: var(--cc-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--cc-ink);
	text-align: left;
	vertical-align: middle;
}

body.woocommerce-account table.woocommerce-orders-table thead th,
body.woocommerce-account table.woocommerce-table--order-downloads thead th {
	padding-top: 0;
	padding-bottom: 10px;
	border-top: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cc-muted);
	white-space: nowrap;
}

body.woocommerce-account table.woocommerce-orders-table tbody tr:last-child > *,
body.woocommerce-account table.woocommerce-table--order-downloads tbody tr:last-child > * {
	border-bottom: 1px solid var(--cc-line);
}

body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--cc-ink);
	text-decoration: none;
}

body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The theme sets dates in bold serif site-wide; keep table dates in the table's type */
body.woocommerce-account table.woocommerce-orders-table time,
body.woocommerce-account .woocommerce-MyAccount-content mark time {
	font: inherit;
	color: inherit;
	letter-spacing: 0;
}

body.woocommerce-account table.woocommerce-orders-table .woocommerce-Price-amount {
	font-weight: 700;
}

/* The theme colours table prices blue site-wide (style.css, !important);
   account prices follow the text */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Price-amount {
	color: inherit !important;
}

/* Statuses that need the customer's attention */
body.woocommerce-account .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status,
body.woocommerce-account .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
body.woocommerce-account .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status {
	color: var(--cc-ox);
	font-weight: 700;
}

body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
	padding-right: 0;
	text-align: right;
}

body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__header-order-actions {
	padding-right: 0;
	text-align: right;
}

/* Pay / View / Cancel as distinct compact actions */
body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account table.woocommerce-table--order-downloads .button {
	min-height: 36px;
	padding: 6px 14px;
	margin: 3px 0 3px 6px;
	font-size: 13px;
}

body.woocommerce-account .woocommerce-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* ---------- View order (same language as the Thank you page) ---------- */

body.woocommerce-account .woocommerce-MyAccount-content mark {
	padding: 0;
	background: none;
	color: var(--cc-ink);
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:has(> mark.order-number) {
	margin: 0 0 28px;
	padding: 16px 20px;
	background: var(--cc-paper);
	border-left: 3px solid var(--cc-blue);
}

body.woocommerce-account .woocommerce-order-details {
	background: var(--cc-paper);
	padding: 28px;
	margin: 0 0 40px;
	container-type: inline-size;
}

body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-customer-details > h2 {
	font-family: var(--cc-serif);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--cc-ink);
	margin: 0 0 16px;
}

body.woocommerce-account table.woocommerce-table--order-details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: none;
}

body.woocommerce-account table.woocommerce-table--order-details th,
body.woocommerce-account table.woocommerce-table--order-details td {
	padding: 14px 0;
	border: 0;
	border-top: 1px solid var(--cc-line);
	background: none;
	font-family: var(--cc-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--cc-ink);
	text-align: left;
	vertical-align: top;
}

body.woocommerce-account table.woocommerce-table--order-details thead th {
	padding-top: 0;
	padding-bottom: 10px;
	border-top: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

body.woocommerce-account table.woocommerce-table--order-details thead th.product-total {
	width: 170px;
}

body.woocommerce-account table.woocommerce-table--order-details .product-total,
body.woocommerce-account table.woocommerce-table--order-details tfoot td {
	text-align: right;
	padding-left: 16px;
}

body.woocommerce-account table.woocommerce-table--order-details td.product-name {
	font-size: 16px;
}

body.woocommerce-account table.woocommerce-table--order-details td.product-name > a {
	display: inline;
	margin: 0;
	color: var(--cc-ink);
	text-decoration: none;
}

body.woocommerce-account table.woocommerce-table--order-details td.product-name > a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.woocommerce-account table.woocommerce-table--order-details .product-quantity {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cc-muted);
}

body.woocommerce-account ul.wc-item-meta {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cc-muted);
}

body.woocommerce-account ul.wc-item-meta li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account ul.wc-item-meta li strong.wc-item-meta-label {
	float: none;
	display: inline;
	margin-right: 4px;
	font-weight: 600;
	color: var(--cc-ink);
}

body.woocommerce-account ul.wc-item-meta li p {
	display: inline;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

body.woocommerce-account table.woocommerce-table--order-details tfoot th {
	font-weight: 600;
}

body.woocommerce-account table.woocommerce-table--order-details small {
	font-size: 12px;
	color: var(--cc-muted);
}

/* Order total: the totals row carrying the tax line, else the last scoped row */
body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(small.includes_tax) > *,
body.woocommerce-account table.woocommerce-table--order-details tfoot:not(:has(small.includes_tax)) tr:has(> th[scope]):not(:has(~ tr > th[scope])) > * {
	border-top-color: var(--cc-ink);
	padding-top: 18px;
	font-family: var(--cc-serif);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: -0.02em;
}

body.woocommerce-account table.woocommerce-table--order-details small.includes_tax {
	display: block;
	font-family: var(--cc-sans);
	letter-spacing: 0;
}

/* Customer note row (WooCommerce prints its <th> without scope): full width */
body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(> th:not([scope])) {
	display: block;
	width: 100cqw;
}

body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(> th:not([scope])) > th,
body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(> th:not([scope])) > td {
	display: block;
	width: auto;
	padding-left: 0;
	text-align: left;
}

body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(> th:not([scope])) > th {
	padding: 20px 0 4px;
	border-top: 0;
}

body.woocommerce-account table.woocommerce-table--order-details tfoot tr:has(> th:not([scope])) > td {
	padding-top: 0;
	border-top: 0;
	color: var(--cc-muted);
}

/* Order actions WooCommerce adds to the totals (Pay / Cancel) */
body.woocommerce-account table.woocommerce-table--order-details tfoot td .button {
	min-height: 36px;
	padding: 6px 14px;
	margin: 3px 0 3px 6px;
	font-family: var(--cc-sans);
	font-size: 13px;
	letter-spacing: 0;
}

body.woocommerce-account table.woocommerce-table--order-details tfoot td .button:first-child,
body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:first-child {
	margin-left: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .order-again {
	margin: -16px 0 40px;
}

/* Order updates (notes added by the shop) */
body.woocommerce-account ol.woocommerce-OrderUpdates {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	border-top: 1px solid var(--cc-line);
}

body.woocommerce-account ol.woocommerce-OrderUpdates li {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--cc-line);
}

body.woocommerce-account ol.woocommerce-OrderUpdates .woocommerce-OrderUpdate-meta {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--cc-muted);
}

/* ---------- Addresses (view order customer details and the Addresses page) ---------- */

body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses,
body.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	float: none;
	margin: 0 0 24px;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses::before,
body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses::after,
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after {
	display: none;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-column,
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-column__title,
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	font-family: var(--cc-serif);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--cc-ink);
	margin: 0 0 12px;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0 0 12px;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	margin: 0;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
	font-size: 13px;
	font-weight: 600;
}

body.woocommerce-account .woocommerce-customer-details address,
body.woocommerce-account .woocommerce-Addresses address {
	flex: 1 1 auto;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--cc-line);
	border-radius: 0;
	background: #fff;
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: var(--cc-ink);
	text-align: left;
	overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-customer-details address p {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Tablet / mobile ---------- */

@media (max-width: 991px) {
	body.woocommerce-account .faq-top > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .faq-top > .woocommerce:has(> .woocommerce-MyAccount-navigation) > *,
	body.woocommerce-account .faq-top > .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: auto;
	}

	body.woocommerce-account .faq-top > .woocommerce > .woocommerce-MyAccount-navigation {
		margin: 0 0 32px;
	}

	/* Navigation as a tidy two-column grid of links */
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-left: 1px solid var(--cc-line);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		border-right: 1px solid var(--cc-line);
	}

	/* An odd last link (usually Log out) takes the full row */
	body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li a {
		padding: 12px;
		min-height: 46px;
		display: flex;
		align-items: center;
	}
}

@media (max-width: 767px) {
	body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses,
	body.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	/* Orders/downloads: stacked, labelled rows (CSS only; WooCommerce's data-title labels) */
	body.woocommerce-account table.woocommerce-orders-table,
	body.woocommerce-account table.woocommerce-orders-table tbody,
	body.woocommerce-account table.woocommerce-orders-table tr,
	body.woocommerce-account table.woocommerce-table--order-downloads,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody,
	body.woocommerce-account table.woocommerce-table--order-downloads tr {
		display: block;
		width: 100%;
	}

	body.woocommerce-account table.woocommerce-orders-table thead,
	body.woocommerce-account table.woocommerce-table--order-downloads thead {
		display: none;
	}

	body.woocommerce-account table.woocommerce-orders-table tbody tr,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody tr {
		margin: 0 0 12px;
		padding: 2px 16px;
		border: 1px solid var(--cc-line);
	}

	body.woocommerce-account table.woocommerce-orders-table tbody tr > *,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody tr > * {
		display: block;
		padding: 10px 0;
		border-top: 1px solid var(--cc-line);
		border-bottom: 0;
		text-align: right;
	}

	body.woocommerce-account table.woocommerce-orders-table tbody tr > *:first-child,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody tr > *:first-child {
		border-top: 0;
	}

	body.woocommerce-account table.woocommerce-orders-table tbody tr:last-child > *,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody tr:last-child > * {
		border-bottom: 0;
	}

	body.woocommerce-account table.woocommerce-orders-table tbody tr > *::before,
	body.woocommerce-account table.woocommerce-table--order-downloads tbody tr > *::before {
		content: attr(data-title);
		float: left;
		margin-right: 16px;
		font-size: 12px;
		font-weight: 600;
		color: var(--cc-muted);
		text-align: left;
	}

	body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions,
	body.woocommerce-account table.woocommerce-table--order-downloads .download-file {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
		padding: 12px 0 14px;
		text-align: left;
	}

	body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before,
	body.woocommerce-account table.woocommerce-table--order-downloads .download-file::before {
		display: none;
	}

	body.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button,
	body.woocommerce-account table.woocommerce-table--order-downloads .download-file .button {
		flex: 1 1 0;
		min-width: 72px;
		min-height: 40px;
		margin: 0;
	}
}

@media (max-width: 575px) {
	body.woocommerce-account .woocommerce-address-fields__field-wrapper,
	body.woocommerce-account form.woocommerce-EditAccountForm {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .woocommerce-address-fields__field-wrapper > *,
	body.woocommerce-account form.woocommerce-EditAccountForm > * {
		grid-column: 1 / -1 !important;
	}

	body.woocommerce-account .woocommerce-order-details {
		padding: 22px 18px;
	}

	body.woocommerce-account table.woocommerce-table--order-details thead th.product-total {
		width: 136px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content form button.button[type="submit"] {
		width: 100%;
	}
}
