/*
 * My Account: sign in, create an account, orders, addresses, account details.
 *
 * Matthew, 2026-10-18: "significant work on the styling on the account pages.
 * Fonts need a lot of work. Everything must work on mobile." The designer's
 * build has no account pages, so these follow its own pieces: the checkout's
 * fields (#0a0a0a on a 1px #1e1e1e hairline, blue on focus, square), its small
 * spaced uppercase labels, and the theme's blue square buttons. The account
 * pages used the general page template, whose title is the site's largest type
 * (12vw, 160px on a desktop), so "ADDRESSES" broke mid-word; WooCommerce's own
 * headings inherited the 4.5rem section size and ran into each other.
 *
 * Everything is scoped to body.woocommerce-account, which WooCommerce puts on
 * every My Account screen, signed in or out. Phone first; the two-column layout
 * starts at 900px.
 */

/* ---------- Page title: big, but a word never breaks ---------- */
body.woocommerce-account .wp-block-post-title {
	font-size: clamp(2.25rem, 9vw, 4.5rem);
	line-height: .95;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

/* ---------- Type inside the account area ---------- */
body.woocommerce-account .woocommerce {
	color: #F5F0E8;
	font-size: 1rem;
	line-height: 1.6;
}
body.woocommerce-account .woocommerce :is(h2, h3) {
	font-size: clamp(1.125rem, 3.6vw, 1.5rem);
	letter-spacing: .02em;
	line-height: 1.15;
	margin: 0 0 1rem;
	overflow-wrap: normal;
	word-break: normal;
}
body.woocommerce-account .woocommerce p { margin: 0 0 1rem; }
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.wp-element-button),
body.woocommerce-account .woocommerce-LostPassword a,
body.woocommerce-account .woocommerce-privacy-policy-text a {
	color: #CADCFC;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.wp-element-button):hover { color: #fff; }
body.woocommerce-account .woocommerce mark { background: transparent; color: #fff; font-weight: 700; }
body.woocommerce-account .woocommerce address {
	font-style: normal;
	line-height: 1.6;
	color: #F5F0E8;
}

/* ---------- Layout: menu above on phones, beside from 900px ---------- */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}
body.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 2rem; }
@media (min-width: 900px) {
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 190px minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}
	/* WooCommerce clears its floats with ::before and ::after, which a grid
	   would count as cells and push the menu into the wide column. */
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { content: none; }
	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 0;
		position: sticky;
		top: 110px;
	}
}

/* ---------- The account menu ---------- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
@media (min-width: 600px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; display: flex; }
body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 14px;
	border: 1px solid #1e1e1e;
	background: #0a0a0a;
	color: #F5F0E8;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none !important;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { border-color: #1B4FBF; color: #fff; }
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: #1B4FBF;
	border-color: #1B4FBF;
	color: #fff;
}
@media (min-width: 900px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		justify-content: flex-start;
		text-align: left;
		background: transparent;
		border: 0;
		border-left: 2px solid #1e1e1e;
		padding: 13px 0 13px 18px;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { border-left-color: #CADCFC; }
	body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
		background: transparent;
		border-left-color: #1B4FBF;
		color: #fff;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: #777; margin-top: 12px; }
}

/* ---------- Cards: addresses, sign in, create account ---------- */
body.woocommerce-account .woocommerce .col2-set {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	width: auto;
	margin: 0 0 2rem;
}
body.woocommerce-account .woocommerce .col2-set::before,
body.woocommerce-account .woocommerce .col2-set::after { content: none; }
body.woocommerce-account .woocommerce .col2-set > :is(.col-1, .col-2) {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	background: #111;
	border: 1px solid #1e1e1e;
	padding: clamp(20px, 4vw, 32px);
}
@media (min-width: 640px) {
	body.woocommerce-account .woocommerce .col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
/* Sign in and create account sit side by side only where both fit. */
body.woocommerce-account #customer_login.col2-set { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) {
	body.woocommerce-account #customer_login.col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 1rem;
}
body.woocommerce-account .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-Address-title::after { content: none; }
body.woocommerce-account .woocommerce-Address-title :is(h2, h3) { margin: 0; float: none; text-align: left; }
body.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---------- Forms ---------- */
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.lost_reset_password {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
}
/* Sign in alone (no create-account column): the same card as the columns. */
body.woocommerce-account .woocommerce > form.login,
body.woocommerce-account .woocommerce > form.lost_reset_password {
	background: #111;
	border: 1px solid #1e1e1e;
	padding: clamp(20px, 4vw, 32px);
	max-width: 520px;
}
body.woocommerce-account .woocommerce form .form-row {
	padding: 0;
	margin: 0 0 18px;
}
body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-account .woocommerce form fieldset legend {
	display: block;
	margin: 0 0 8px;
	color: #9a9a9a;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}
body.woocommerce-account .woocommerce form .form-row label .required { color: #C4253A; text-decoration: none; border: 0; }
body.woocommerce-account .woocommerce form .form-row label .optional { color: #666; text-transform: none; letter-spacing: 0; font-weight: 400; }
/* 16px text so a phone does not zoom the page when a field is tapped. */
body.woocommerce-account .woocommerce form .form-row :is(input.input-text, textarea, select),
body.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single {
	min-height: 50px;
	padding: 12px 14px !important;
	font-size: 16px;
	line-height: 1.4;
	color: #fff !important;
	background: #0a0a0a !important;
	border: 1px solid #1e1e1e !important;
	border-radius: 0 !important;
	box-shadow: none;
	width: 100%;
}
body.woocommerce-account .woocommerce form .form-row :is(input.input-text, textarea, select):focus {
	border-color: #1B4FBF !important;
	outline: none;
}
body.woocommerce-account .woocommerce form .form-row select option { background: #0a0a0a; color: #fff; }
body.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection__rendered {
	color: #fff;
	line-height: 24px;
	padding: 0;
}
body.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection__arrow { height: 48px; right: 8px; }
body.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection__arrow b { border-top-color: #777; }
body.woocommerce-account .select2-dropdown {
	background: #0a0a0a;
	border: 1px solid #1B4FBF;
	border-radius: 0;
	color: #fff;
}
body.woocommerce-account .select2-search--dropdown .select2-search__field {
	background: #111;
	border: 1px solid #1e1e1e;
	color: #fff;
	font-size: 16px;
	padding: 10px;
}
body.woocommerce-account .select2-results__option { padding: 10px 14px; }
body.woocommerce-account .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-account .select2-container--default .select2-results__option--highlighted[data-selected] { background: #1B4FBF; color: #fff; }
body.woocommerce-account .select2-container--default .select2-results__option[aria-selected="true"],
body.woocommerce-account .select2-container--default .select2-results__option[data-selected="true"] { background: #111; color: #CADCFC; }
body.woocommerce-account .woocommerce form .password-input { display: block; position: relative; }
body.woocommerce-account .woocommerce form .show-password-input {
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	filter: invert(1);
	opacity: .55;
}
body.woocommerce-account .woocommerce form .form-row .description,
body.woocommerce-account .woocommerce form em {
	display: block;
	margin-top: 6px;
	color: #777;
	font-size: .8125rem;
	font-style: normal;
}
body.woocommerce-account .woocommerce form fieldset {
	border: 1px solid #1e1e1e;
	margin: 8px 0 24px;
	padding: clamp(16px, 4vw, 24px);
}
body.woocommerce-account .woocommerce form fieldset legend { padding: 0 8px; margin-left: -8px; }
/* First and last name side by side only where both fit. */
body.woocommerce-account .woocommerce form .form-row-first,
body.woocommerce-account .woocommerce form .form-row-last { float: none; width: 100%; }
@media (min-width: 600px) {
	body.woocommerce-account .woocommerce :is(form .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) {
		display: flex;
		flex-wrap: wrap;
		column-gap: 16px;
	}
	body.woocommerce-account .woocommerce :is(form .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) > * { flex: 1 1 100%; }
	body.woocommerce-account .woocommerce :is(form .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) > :is(.form-row-first, .form-row-last) { flex: 1 1 calc(50% - 8px); }
	body.woocommerce-account .woocommerce form.woocommerce-EditAccountForm > .clear { display: none; }
}
body.woocommerce-account .woocommerce form .form-row label.woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: #F5F0E8;
	font-size: .875rem;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}
body.woocommerce-account .woocommerce form input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1B4FBF; margin: 0; }
body.woocommerce-account .woocommerce-privacy-policy-text p {
	color: #9a9a9a;
	font-size: .8125rem;
	line-height: 1.55;
}
body.woocommerce-account .woocommerce-LostPassword { margin: 16px 0 0; font-size: .875rem; }
/* Password strength (create account, change password): WooCommerce's colours
   are for a white page. */
body.woocommerce-account .woocommerce-password-strength {
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px solid #1e1e1e;
	border-left: 3px solid #777;
	background: #0a0a0a !important;
	color: #F5F0E8;
	font-size: .8125rem;
	font-weight: 700;
	text-align: left;
}
body.woocommerce-account .woocommerce-password-strength.short,
body.woocommerce-account .woocommerce-password-strength.bad { border-left-color: #C4253A; }
body.woocommerce-account .woocommerce-password-strength.good { border-left-color: #CADCFC; }
body.woocommerce-account .woocommerce-password-strength.strong { border-left-color: #1B4FBF; }
body.woocommerce-account .woocommerce-password-hint { display: block; margin-top: 6px; color: #9a9a9a; font-size: .8125rem; line-height: 1.5; }

/* ---------- Buttons ---------- */
body.woocommerce-account .woocommerce :is(.button, button.button, .wp-element-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 24px;
	background: #1B4FBF;
	color: #fff;
	border: 0;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
}
body.woocommerce-account .woocommerce :is(.button, button.button, .wp-element-button):hover { background: #0f2d7a !important; color: #fff; }
/* The form's own submit fills the width on a phone. */
body.woocommerce-account .woocommerce form :is(button[type="submit"], .woocommerce-Button) { width: 100%; }
@media (min-width: 600px) {
	body.woocommerce-account .woocommerce form :is(button[type="submit"], .woocommerce-Button) { width: auto; min-width: 220px; }
	body.woocommerce-account #customer_login form :is(button[type="submit"], .woocommerce-Button) { width: 100%; }
}

/* ---------- Orders table ---------- */
body.woocommerce-account .woocommerce table.shop_table {
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	width: 100%;
	margin: 0 0 2rem;
	font-size: .9375rem;
}
body.woocommerce-account .woocommerce table.shop_table :is(th, td) {
	padding: 14px 12px;
	border: 0;
	border-bottom: 1px solid #1e1e1e;
	vertical-align: middle;
	background: transparent;
}
body.woocommerce-account .woocommerce table.shop_table thead th {
	color: #9a9a9a;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-bottom-color: #2a2a2a;
}
body.woocommerce-account .woocommerce table.shop_table tfoot :is(th, td) { font-weight: 400; }
body.woocommerce-account .woocommerce table.shop_table tfoot tr:last-child :is(th, td) { color: #fff; font-weight: 700; }
/* Actions in a table are secondary: outlined, compact. */
body.woocommerce-account .woocommerce table.shop_table :is(.button, .wp-element-button) {
	min-height: 40px;
	padding: 10px 14px;
	background: transparent !important;
	border: 1px solid #2a2a2a !important;
	color: #fff !important;
	font-size: .6875rem;
	margin: 2px 4px 2px 0;
}
body.woocommerce-account .woocommerce table.shop_table :is(.button, .wp-element-button):hover { border-color: #1B4FBF !important; background: #1B4FBF !important; }
body.woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-number a { font-weight: 700; }
/* Phones: each order is a card of label and value rows (WooCommerce's
   shop_table_responsive turns the table into rows below 768px). */
@media (max-width: 767px) {
	body.woocommerce-account .woocommerce table.shop_table_responsive tbody tr {
		border: 1px solid #1e1e1e;
		background: #111;
		margin: 0 0 12px;
		padding: 4px 16px;
	}
	body.woocommerce-account .woocommerce table.shop_table_responsive tbody tr td {
		padding: 10px 0;
		background: transparent !important;
		border-bottom: 1px solid #1a1a1a;
	}
	body.woocommerce-account .woocommerce table.shop_table_responsive tbody tr td:last-child { border-bottom: 0; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td::before {
		color: #9a9a9a;
		font-size: .6875rem;
		letter-spacing: .14em;
		text-transform: uppercase;
		padding-right: 12px;
	}
	body.woocommerce-account .woocommerce table.my_account_orders tr td.woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
	body.woocommerce-account .woocommerce table.my_account_orders tr td.woocommerce-orders-table__cell-order-actions::before { display: none; }
	body.woocommerce-account .woocommerce table.my_account_orders tr td.woocommerce-orders-table__cell-order-actions .button { flex: 1 1 auto; margin: 0; }
}

/* ---------- Notices ---------- */
body.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner) {
	background: #111 !important;
	color: #F5F0E8 !important;
	border: 1px solid #1e1e1e !important;
	border-left: 3px solid #1B4FBF !important;
	border-radius: 0 !important;
	padding: 16px 18px !important;
	margin: 0 0 1.5rem !important;
	font-size: .9375rem;
	line-height: 1.5;
	list-style: none;
}
body.woocommerce-account :is(.woocommerce-error, .wc-block-components-notice-banner.is-error) { border-left-color: #C4253A !important; }
body.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before { display: none; }
body.woocommerce-account .wc-block-components-notice-banner { display: flex; align-items: flex-start; gap: 12px; }
body.woocommerce-account .wc-block-components-notice-banner > svg { fill: #CADCFC; background: transparent; flex: 0 0 auto; margin-top: 1px; }
/* WooCommerce puts the button before the sentence and floats it; on a narrow
   card it sat on top of the words. Sentence first, button below. */
body.woocommerce-account .wc-block-components-notice-banner__content {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 12px;
}
body.woocommerce-account :is(.woocommerce-info, .woocommerce-message, .wc-block-components-notice-banner) :is(.button, .wp-element-button) {
	min-height: 40px;
	padding: 10px 14px !important;
	margin: 0 !important;
	float: none !important;
	font-size: .6875rem;
	color: #fff !important;
	opacity: 1;
}

/* ---------- View order ---------- */
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details,
body.woocommerce-account .knead-credit-notes { margin: 0 0 2.5rem; }
body.woocommerce-account .woocommerce-customer-details address { background: transparent; border: 0; padding: 0; }
body.woocommerce-account .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) { margin: 6px 0 0; padding: 0; }
body.woocommerce-account .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before { display: none; }
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type mark { color: #fff; }
