/* My account and login pages. Layout and styling only. */
body.woocommerce-account {
	--ffu-blue: #0057b7;
	--ffu-blue-dark: #00408a;
	--ffu-yellow: #ffd500;
	--ffu-ink: #1a1f36;
	--ffu-muted: #5b6275;
	--ffu-line: #e4e7ee;
	--ffu-soft: #f3f6fb;
	--ffu-error: #b3261e;
	background: #faf5ef;
}

body.woocommerce-account .site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	color: var(--ffu-ink);
}

body.woocommerce-account .page-header {
	margin: 0 0 20px;
	padding: 0;
}

body.woocommerce-account .page-header .entry-title {
	margin: 0;
	color: var(--ffu-ink);
	font-size: clamp(30px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.15;
}

body.woocommerce-account .page-content {
	padding: 0;
}

/* Remove the page builder's extra spacing, so the content lines up with the title. */
body.woocommerce-account [data-elementor-type="wp-page"] .e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--container-max-width: 100%;
	padding: 0 !important;
}

body.woocommerce-account [data-elementor-type="wp-page"] .e-con-inner {
	max-width: 100%;
	padding: 0 !important;
}

/* The text widget around this page adds line breaks inside links and table cells. */
body.woocommerce-account .woocommerce-MyAccount-navigation a br,
body.woocommerce-account table.shop_table th a br,
body.woocommerce-account table.shop_table td a br {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation p,
body.woocommerce-account table.shop_table th > p,
body.woocommerce-account table.shop_table td > p {
	margin: 0;
}

body.woocommerce-account table.shop_table th > p:empty,
body.woocommerce-account table.shop_table td > p:empty {
	display: none;
}

/* Sidebar and content */
body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,
body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px solid var(--ffu-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(26, 31, 54, 0.05);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	display: block;
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li::before,
body.woocommerce-account .woocommerce-MyAccount-navigation li::marker,
body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	display: none;
	content: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--ffu-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--ffu-soft);
	color: var(--ffu-blue);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ffu-blue);
	color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--ffu-line);
}

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

body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--ffu-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(26, 31, 54, 0.05);
	color: var(--ffu-ink);
	font-size: 16px;
	line-height: 1.6;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: var(--ffu-blue);
	font-weight: 600;
}

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

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-column__title,
body.woocommerce-account .woocommerce-order-details__title {
	margin: 24px 0 12px;
	color: var(--ffu-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

body.woocommerce-account .woocommerce-MyAccount-content > h2:first-child,
body.woocommerce-account .woocommerce-MyAccount-content > h3:first-child {
	margin-top: 0;
}

/* Tables */
body.woocommerce-account table.shop_table {
	width: 100%;
	margin: 0 0 20px;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	background: transparent;
	color: var(--ffu-ink);
	font-size: 15px;
}

body.woocommerce-account table.shop_table tr,
body.woocommerce-account table.shop_table tr:nth-child(odd),
body.woocommerce-account table.shop_table tr:nth-child(even),
body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td {
	border: 0;
	background: transparent !important;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td {
	padding: 13px 12px 13px 0;
	border-bottom: 1px solid var(--ffu-line);
	text-align: left;
	vertical-align: middle;
}

body.woocommerce-account table.shop_table thead th {
	padding-top: 0;
	color: var(--ffu-muted);
	font-size: 13px;
	font-weight: 600;
}

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

body.woocommerce-account table.shop_table tfoot tr:last-child th,
body.woocommerce-account table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
	font-size: 17px;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
}

/* Order status labels */
body.woocommerce-account .woocommerce-orders-table__cell-order-status {
	white-space: nowrap;
}

body.woocommerce-account mark.order-status,
body.woocommerce-account .woocommerce-orders-table__row .woocommerce-orders-table__cell-order-status {
	color: var(--ffu-muted);
	font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status {
	color: #1b7a43;
}

body.woocommerce-account .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
	color: var(--ffu-blue);
}

body.woocommerce-account .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status,
body.woocommerce-account .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status {
	color: #96610a;
}

body.woocommerce-account .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
body.woocommerce-account .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status {
	color: var(--ffu-error);
}

/* Buttons */
body.woocommerce-account .woocommerce .button {
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	margin: 2px 6px 2px 0;
	padding: 10px 18px;
	border: 1px solid var(--ffu-blue);
	border-radius: 10px;
	background: var(--ffu-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.woocommerce-account .woocommerce .button:hover {
	border-color: var(--ffu-blue-dark);
	background: var(--ffu-blue-dark);
	color: #fff;
}

body.woocommerce-account .woocommerce .button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

body.woocommerce-account .woocommerce .button.cancel {
	border-color: var(--ffu-line);
	background: #fff;
	color: var(--ffu-muted);
}

body.woocommerce-account .woocommerce .button.cancel:hover {
	border-color: var(--ffu-error);
	background: #fff;
	color: var(--ffu-error);
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
	min-height: 38px;
	padding: 7px 14px;
	font-size: 14px;
}

body.woocommerce-account .woocommerce .button:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-content a:focus-visible {
	outline: 3px solid var(--ffu-yellow);
	outline-offset: 2px;
}

/* Addresses */
body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 12px;
}

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

body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column {
	float: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 18px;
	border: 1px solid var(--ffu-line);
	border-radius: 12px;
	background: var(--ffu-soft);
}

body.woocommerce-account .woocommerce-customer-details:not(:has(.woocommerce-columns--addresses)) address {
	padding: 18px;
	border: 1px solid var(--ffu-line);
	border-radius: 12px;
	background: var(--ffu-soft);
}

body.woocommerce-account .woocommerce-customer-details address {
	border: 0;
	color: var(--ffu-ink);
	font-style: normal;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

body.woocommerce-account .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-Address-title::after {
	display: none;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	float: none;
	margin: 0;
	font-size: 18px;
}

body.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	font-size: 14px;
}

body.woocommerce-account .woocommerce-Address address {
	color: var(--ffu-ink);
	font-style: normal;
	line-height: 1.6;
}

/* Forms */
body.woocommerce-account .woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
}

body.woocommerce-account .woocommerce form .form-row label {
	margin-bottom: 6px;
	color: var(--ffu-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

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

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row select,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce .select2-container .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #cdd3df;
	border-radius: 10px;
	background: #fff;
	color: var(--ffu-ink);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce-account .woocommerce .select2-container .select2-selection--single {
	padding: 0;
}

body.woocommerce-account .woocommerce .select2-container .select2-selection__rendered {
	padding: 0 40px 0 14px;
	color: var(--ffu-ink);
	line-height: 46px;
}

body.woocommerce-account .woocommerce .select2-container .select2-selection__arrow {
	top: 11px;
	right: 10px;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row select:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-account .woocommerce .select2-container--focus .select2-selection--single {
	border-color: var(--ffu-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.18);
}

body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid input.input-text {
	border-color: var(--ffu-error);
}

body.woocommerce-account fieldset {
	margin: 20px 0 16px;
	padding: 18px;
	border: 1px solid var(--ffu-line);
	border-radius: 12px;
}

body.woocommerce-account fieldset legend {
	padding: 0 6px;
	color: var(--ffu-ink);
	font-size: 15px;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content em,
body.woocommerce-account .woocommerce-privacy-policy-text,
body.woocommerce-account .woocommerce-form-register p:not(.form-row) {
	color: var(--ffu-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Login and register */
body.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
	display: none;
}

body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2 {
	float: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 28px;
	border: 1px solid var(--ffu-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(26, 31, 54, 0.05);
}

body.woocommerce-account #customer_login h2,
body.woocommerce-account .woocommerce > h2 {
	margin: 0 0 16px;
	color: var(--ffu-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.woocommerce-account .woocommerce form.lost_reset_password {
	box-sizing: border-box;
	max-width: 560px;
	padding: 28px;
	border: 1px solid var(--ffu-line);
	border-radius: 16px;
	background: #fff;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
	display: block;
	margin-bottom: 12px;
	font-weight: 400 !important;
}

body.woocommerce-account #customer_login .button {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 6px 0 0;
	font-size: 16px;
}

body.woocommerce-account .woocommerce-LostPassword {
	margin: 14px 0 0;
	font-size: 14px;
}

body.woocommerce-account .woocommerce-LostPassword a,
body.woocommerce-account .woocommerce-privacy-policy-link {
	color: var(--ffu-blue);
	font-weight: 600;
}

/* Messages */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
	margin: 0 0 16px;
	padding: 14px 18px 14px 44px;
	border: 1px solid var(--ffu-line);
	border-radius: 12px;
	background: var(--ffu-soft);
	color: var(--ffu-ink);
	font-size: 15px;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-error li {
	border-color: #f3c6c3;
	background: #fdf1f0;
	color: var(--ffu-error);
}

body.woocommerce-account .woocommerce-error li {
	background: transparent;
}

body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
	top: 14px;
	left: 16px;
	color: var(--ffu-blue);
}

@media (max-width: 860px) {
	body.woocommerce-account .site-main {
		padding: 20px 16px 48px;
	}

	body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation),
	body.woocommerce-account #customer_login,
	body.woocommerce-account .woocommerce-Addresses,
	body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
		display: block;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 16px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: 20px 16px;
	}

	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2 {
		margin-bottom: 16px;
		padding: 20px 16px;
	}

	body.woocommerce-account .woocommerce-Address,
	body.woocommerce-account .woocommerce-customer-details .woocommerce-column {
		margin-bottom: 12px;
	}

	/* Each order becomes a small card */
	body.woocommerce-account table.shop_table_responsive thead {
		display: none;
	}

	body.woocommerce-account table.shop_table_responsive,
	body.woocommerce-account table.shop_table_responsive tbody {
		display: block;
		width: 100%;
	}

	body.woocommerce-account table.shop_table_responsive tbody tr,
	body.woocommerce-account table.shop_table_responsive tbody tr:nth-child(odd),
	body.woocommerce-account table.shop_table_responsive tbody tr:nth-child(even) {
		display: block;
		margin-bottom: 12px;
		padding: 12px 14px;
		border: 1px solid var(--ffu-line);
		border-radius: 12px;
	}

	body.woocommerce-account table.shop_table_responsive tbody th,
	body.woocommerce-account table.shop_table_responsive tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 7px 0;
		border-bottom: 0;
		text-align: right !important;
		white-space: normal;
	}

	body.woocommerce-account table.shop_table_responsive tbody th::before,
	body.woocommerce-account table.shop_table_responsive tbody td::before {
		content: attr(data-title) ": ";
		flex: 0 0 auto;
		color: var(--ffu-muted);
		font-size: 14px;
		font-weight: 600;
	}

	body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
		margin: 0 0 0 6px;
	}
}
