/**
 * WooCommerce My Account presentation.
 * Loaded only on WooCommerce account pages.
 */

/* =========================================================
   MY ACCOUNT — CONTAINER
   Match the Shop page width
   ========================================================= */

body.hfb-account-dashboard #primary,
body.hfb-account-dashboard #main,
body.hfb-account-dashboard article.page {
	width: 100%;
	max-width: none;
	margin: 0;
	float: none;
}

/* =========================================================
   MY ACCOUNT — TITLE
   Same visual treatment as Shop title
   ========================================================= */

body.hfb-account-dashboard .entry-header {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	min-height: 108px !important;
	margin: 48px auto 36px;
	padding: 22px 36px !important;
	background: #f7f5f1;
	border-left: 4px solid #d0112b;
	box-sizing: border-box;
}

body.hfb-account-dashboard .entry-header .entry-title {
	width: 100%;
	margin: 0 !important;
	padding: 0;
	color: #0e0e0e;
	font-size: clamp(36px, 4vw, 50px);
	font-weight: 400;
	line-height: 1.1;
	text-align: center;
}

/* Remove the small underline used by the previous design */
body.hfb-account-dashboard .entry-header .entry-title::after {
	content: none;
	display: none;
}

/* =========================================================
   MY ACCOUNT — TWO-COLUMN LAYOUT
   ========================================================= */

body.hfb-account-dashboard #main > article > .entry-content > .woocommerce {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 34px;
	align-items: start;
	margin-inline: auto;
	margin-top: 0 !important;
	max-width: none;
	padding: 0;
	width: 100%;
}

body.hfb-account-dashboard .woocommerce-MyAccount-navigation {
	background: #ffffff;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(17, 42, 93, 0.07);
	box-sizing: border-box;
	float: none;
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 5px;
	width: 100%;
}

body.hfb-account-dashboard .woocommerce-MyAccount-content {
	width: 100%;
	max-width: none;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 34px 38px;
	float: none;
	background: #ffffff;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(17, 42, 93, 0.07);
	box-sizing: border-box;
}

/* =========================================================
   MY ACCOUNT — NAVIGATION
   ========================================================= */

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

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li {
	position: relative;
	margin: 5px;
	padding: 0;
	list-style: none;
	background: #ffffff;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
}

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li
a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	padding-top: 12px;
	padding-right: 14px;
	padding-bottom: 12px;
	padding-left: 14px;
	color: #112a5d;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
}

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li:not(.is-active):hover {
	background: #f6f7f9;
}

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li:not(.is-active)
a:hover {
	color: #d0112b;
}

/* Active endpoint only */

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li.is-active {
	background: #fff3f5;
	box-shadow: inset 4px 0 0 #d0112b;
}

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li.is-active
a {
	padding-left: 22px !important;
	color: #d0112b;
	font-weight: 700;
}

/* Existing menu icons */

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li
a::after {
	flex: 0 0 auto;
	color: #8b98ad;
	opacity: 0.8;
}

body.hfb-account-dashboard
.woocommerce-MyAccount-navigation
ul
li.is-active
a::after {
	color: #d0112b;
	opacity: 1;
}

/* Account endpoint content */

.hfb-account-dashboard .entry-content > .woocommerce > :where(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info, .woocommerce-error) {
	grid-column: 1 / -1;
}

.hfb-account-dashboard .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

.hfb-account-dashboard .woocommerce-MyAccount-content {
	color: #30343a;
	font-size: 1rem;
	line-height: 1.65;
	overflow-x: auto;
	overflow-wrap: anywhere;
}

.hfb-account-dashboard .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.hfb-account-dashboard .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

.hfb-account-dashboard .woocommerce-MyAccount-content p {
	margin: 0 0 1.125rem;
}

.hfb-account-dashboard .woocommerce-MyAccount-content a:not(.button) {
	color: #112a5d;
	overflow-wrap: anywhere;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hfb-account-dashboard .woocommerce-MyAccount-content a:not(.button):hover,
.hfb-account-dashboard .woocommerce-MyAccount-content a:not(.button):focus-visible {
	color: #d0112b;
}

.hfb-account-dashboard .woocommerce-MyAccount-content :where(table, .woocommerce-orders-table, .woocommerce-table) {
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	width: 100%;
}

.hfb-account-dashboard .woocommerce-MyAccount-content table th,
.hfb-account-dashboard .woocommerce-MyAccount-content table td {
	padding: 0.75rem;
	vertical-align: middle;
}

.hfb-account-dashboard .woocommerce-MyAccount-content table th {
	background: #112a5d;
	color: #ffffff;
}

.hfb-account-dashboard .woocommerce-MyAccount-content table td {
	border-bottom: 1px solid #edf0f3;
}

.hfb-account-dashboard .woocommerce-MyAccount-content table .button {
	margin: 0.125rem;
	white-space: normal;
}

.hfb-account-dashboard .woocommerce-Addresses {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hfb-account-dashboard .woocommerce-Addresses .woocommerce-Address {
	background: #f8f7f4;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	float: none;
	margin: 0;
	padding: 1.5rem;
	width: auto;
}

.hfb-account-dashboard .woocommerce-EditAccountForm :where(.form-row, input:not([type="checkbox"]), select, textarea),
.hfb-account-dashboard .woocommerce-address-fields :where(.form-row, input:not([type="checkbox"]), select, textarea) {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

.hfb-account-dashboard .woocommerce-EditAccountForm label,
.hfb-account-dashboard .woocommerce-address-fields label {
	font-weight: 600;
}

body.hfb-account-dashboard #main > article > .entry-content {
	box-sizing: border-box;
	margin-bottom: 72px !important;
	margin-top: 0 !important;
	padding-top: 38px !important;
}

.hfb-woocommerce-design.woocommerce-account article.page > .edit-link,
.hfb-woocommerce-design.woocommerce-account article.page .entry-footer > .edit-link,
.hfb-woocommerce-design.woocommerce-account article.page .entry-content + .edit-link {
	display: none;
}

/* Logged-out account forms */

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .site-content {
	background: #f8f7f4;
	padding: 0;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .site-content > .col-full {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--hfb-site-max-width);
	padding-block: 2.625rem 4.5rem;
	padding-inline: var(--hfb-site-gutter);
	width: 100%;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) :where(.content-area, .site-main, .entry-content) {
	float: none;
	margin-inline: 0;
	max-width: none;
	min-width: 0;
	width: 100%;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .entry-header {
	margin: 0 0 2.375rem;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .entry-title {
	font-size: clamp(2.25rem, 4vw, 3rem);
	margin: 0;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .entry-content > .woocommerce {
	max-width: none;
	width: 100%;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .u-columns {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .u-columns > :where(.u-column1, .u-column2) {
	float: none;
	margin: 0;
	width: auto;
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) :where(form.login, form.register, form.lost_reset_password) {
	background: #ffffff;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(17, 42, 93, 0.07);
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) form.lost_reset_password {
	margin-inline: auto;
	max-width: 42rem;
	width: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	body.hfb-account-dashboard #main > article > .entry-content > .woocommerce {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

@media (max-width: 700px) {
	.hfb-account-dashboard .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	body.hfb-account-dashboard .entry-header {
		min-height: 92px !important;
		margin-top: 32px;
		margin-bottom: 28px;
		padding: 18px 22px !important;
	}

	body.hfb-account-dashboard .entry-header .entry-title {
		font-size: 34px;
	}

	body.hfb-account-dashboard
	.woocommerce-MyAccount-navigation
	ul
	li
	a {
		min-height: 48px;
		padding: 11px 13px;
		font-size: 15px;
	}

	body.hfb-account-dashboard .woocommerce-MyAccount-content {
		padding: 24px 22px;
	}

	body.hfb-account-dashboard #main > article > .entry-content {
		margin-bottom: 48px !important;
		padding-top: 28px !important;
	}

	.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .site-content > .col-full {
		padding-block: 1.875rem 3.5rem;
	}

	.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .entry-title {
		font-size: 2.125rem;
	}

	.hfb-woocommerce-design.woocommerce-account:not(.hfb-account-dashboard) .u-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}
