/* ========================================================================
   Hoang Minh - My Account
   ===================================================================== */

body.woocommerce-account {
	--hm-account-ink: #12141b;
	--hm-account-muted: #6e7480;
	--hm-account-line: #e6e8ed;
	--hm-account-soft: #f4f5f7;
	--hm-account-radius: 18px;
	background: #f2f3f5;
}

body.woocommerce-account .hm-page {
	padding: 34px 0 72px;
	background: #f2f3f5;
}

body.woocommerce-account .hm-page > .hm-container {
	width: min(100%, 1480px);
	max-width: 1480px;
	padding-inline: 20px;
}

body.woocommerce-account .hm-entry__head {
	display: none;
}

body.woocommerce-account .entry-content,
body.woocommerce-account .entry-content > .woocommerce {
	max-width: none;
	margin: 0;
}

body.logged-in.woocommerce-account .entry-content > .woocommerce {
	display: block;
}

.hm-account-shell {
	display: grid;
	grid-template-columns: 292px minmax(0, 1fr);
	grid-template-areas: "account-navigation account-content";
	gap: 34px;
	align-items: start;
	width: 100%;
	min-width: 0;
	direction: ltr;
}

/* Navigation ----------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--hm-header-h, 90px) + 20px);
	grid-area: account-navigation;
	float: none !important;
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	direction: ltr;
}

.hm-account-nav__profile {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 12px;
	padding: 17px;
	border: 1px solid var(--hm-account-line);
	border-radius: var(--hm-account-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(18, 20, 27, .04);
}

.hm-account-nav__avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 50%;
	background: #eceef2;
	box-shadow: 0 0 0 4px #f4f5f7;
}

.hm-account-nav__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-account-nav__identity {
	display: grid;
	min-width: 0;
	gap: 1px;
}

.hm-account-nav__identity span {
	color: var(--hm-account-muted);
	font-size: 11px;
}

.hm-account-nav__identity strong,
.hm-account-nav__identity small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hm-account-nav__identity strong {
	color: var(--hm-account-ink);
	font-size: 14px;
	font-weight: 800;
}

.hm-account-nav__identity small {
	color: #888e98;
	font-size: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--hm-account-line);
	border-radius: var(--hm-account-radius);
	background: #e9eaec;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 20px;
	min-height: 53px;
	align-items: center;
	gap: 10px;
	padding: 8px 11px;
	border-radius: 12px;
	background: #fff;
	color: #242833;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(18, 20, 27, .025);
	transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	color: #111;
	transform: translateX(2px);
	box-shadow: 0 5px 16px rgba(18, 20, 27, .08);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: #08090b;
	color: #fff;
	box-shadow: 0 8px 22px rgba(8, 9, 11, .17);
}

.hm-account-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #eff1f4;
	color: #151820;
}

.hm-account-nav__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active .hm-account-nav__icon {
	background: #fff;
	color: #08090b;
}

.hm-account-nav__arrow {
	justify-self: end;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

/* Content -------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-content {
	grid-area: account-content;
	float: none !important;
	width: 100% !important;
	min-width: 0;
	min-height: 680px;
	padding: clamp(28px, 3.5vw, 54px);
	border: 1px solid var(--hm-account-line);
	border-radius: var(--hm-account-radius);
	background: #fff;
	color: #444a55;
	box-shadow: 0 14px 40px rgba(18, 20, 27, .045);
	direction: ltr;
}

.hm-account-content-head {
	margin-bottom: 32px;
}

.hm-account-content-head > span {
	display: block;
	margin-bottom: 7px;
	color: #3151d5;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.hm-account-content-head h1 {
	margin: 0;
	color: var(--hm-account-ink);
	font-size: clamp(29px, 3vw, 42px);
	font-weight: 850;
	letter-spacing: -.035em;
	line-height: 1.12;
}

.hm-account-content-head p {
	max-width: 680px;
	margin: 10px 0 0;
	color: var(--hm-account-muted);
	font-size: 14px;
	line-height: 1.55;
}

.hm-account-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.hm-account-dashboard__stats a {
	display: grid;
	min-height: 142px;
	align-content: center;
	padding: 22px;
	border: 1px solid var(--hm-account-line);
	border-radius: 16px;
	background: var(--hm-account-soft);
	color: var(--hm-account-ink);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hm-account-dashboard__stats a:hover {
	border-color: #cbd1dc;
	color: var(--hm-account-ink);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(18, 20, 27, .07);
}

.hm-account-dashboard__stats span {
	color: var(--hm-account-muted);
	font-size: 12px;
	font-weight: 700;
}

.hm-account-dashboard__stats strong {
	margin: 3px 0;
	font-size: 25px;
	font-weight: 850;
}

.hm-account-dashboard__stats small {
	color: #3151d5;
	font-size: 11px;
	font-weight: 750;
}

.hm-account-dashboard__section {
	margin-top: 18px;
	padding: 25px;
	border: 1px solid var(--hm-account-line);
	border-radius: 16px;
}

.hm-account-dashboard__section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.hm-account-dashboard__section h2 {
	margin: 0;
	color: var(--hm-account-ink);
	font-size: 20px;
	font-weight: 820;
}

.hm-account-dashboard__section-head p {
	margin: 5px 0 0;
	color: var(--hm-account-muted);
	font-size: 12px;
}

.hm-account-dashboard__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.hm-account-dashboard__details > div {
	padding: 16px;
	border-radius: 12px;
	background: var(--hm-account-soft);
}

.hm-account-dashboard__details dt {
	margin-bottom: 5px;
	color: var(--hm-account-muted);
	font-size: 11px;
	font-weight: 700;
}

.hm-account-dashboard__details dd {
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--hm-account-ink);
	font-size: 14px;
	font-weight: 750;
}

.hm-account-dashboard address {
	margin: 0;
	padding: 18px;
	border-radius: 12px;
	background: var(--hm-account-soft);
	color: #505661;
	font-size: 14px;
	font-style: normal;
	line-height: 1.7;
}

.hm-account-button,
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid #111319;
	border-radius: 999px;
	background: #111319;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.hm-account-button--outline {
	background: #fff;
	color: #111319;
}

.hm-account-button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
	border-color: #3151d5;
	background: #3151d5;
	color: #fff;
	transform: translateY(-1px);
}

/* Forms --------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-content form {
	max-width: 900px;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
	margin: 28px 0 0;
	padding: 24px;
	border: 1px solid var(--hm-account-line);
	border-radius: 15px;
}

.woocommerce-account .woocommerce-MyAccount-content legend {
	padding: 0 8px;
	color: var(--hm-account-ink);
	font-size: 16px;
	font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row {
	margin: 0 0 17px;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content .form-row-last {
	width: calc(50% - 7px);
}

.woocommerce-account .woocommerce-MyAccount-content label {
	display: block;
	margin-bottom: 7px;
	color: #2d323d;
	font-size: 12px;
	font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content .select2-selection--single {
	width: 100%;
	min-height: 52px;
	padding: 0 15px;
	border: 1px solid #d7dbe3;
	border-radius: 12px;
	background: #f8f9fb;
	box-shadow: none;
	color: var(--hm-account-ink);
	font-family: inherit;
	font-size: 14px;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content textarea {
	min-height: 120px;
	padding-block: 13px;
	resize: vertical;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text:hover,
.woocommerce-account .woocommerce-MyAccount-content select:hover,
.woocommerce-account .woocommerce-MyAccount-content textarea:hover {
	border-color: #b9bec9;
	background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
	border-color: #3151d5;
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(49, 81, 213, .1);
}

.woocommerce-account .show-password-input {
	top: 50%;
	transform: translateY(-50%);
}

/* Orders and addresses ------------------------------------------------ */

.woocommerce-account table.shop_table {
	width: 100%;
	border: 1px solid var(--hm-account-line);
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
	padding: 15px;
	border: 0;
	border-bottom: 1px solid var(--hm-account-line);
	font-size: 13px;
	text-align: left;
}

.woocommerce-account table.shop_table th {
	background: var(--hm-account-soft);
	color: #343945;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.woocommerce-account table.shop_table tr:last-child td {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin: 0;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	display: none !important;
	content: none !important;
}

.woocommerce-account .woocommerce-Addresses > .woocommerce-Address {
	float: none !important;
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	padding: 22px;
	border: 1px solid var(--hm-account-line);
	border-radius: 15px;
	background: var(--hm-account-soft);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.woocommerce-account .woocommerce-Address-title h2 {
	margin: 0;
	color: var(--hm-account-ink);
	font-size: 18px;
}

.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	color: #3151d5;
	font-size: 12px;
	font-weight: 800;
}

.woocommerce-account .woocommerce-Address address {
	margin-top: 16px;
	font-size: 13px;
	font-style: normal;
	line-height: 1.7;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	margin-bottom: 20px;
	border-radius: 12px;
}

/* Login and register -------------------------------------------------- */

body:not(.logged-in).woocommerce-account .entry-content > .woocommerce {
	max-width: 980px;
	margin-inline: auto;
	padding: clamp(24px, 4vw, 52px);
	border: 1px solid var(--hm-account-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(18, 20, 27, .06);
}

body:not(.logged-in).woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px;
}

body:not(.logged-in).woocommerce-account .u-column1,
body:not(.logged-in).woocommerce-account .u-column2 {
	float: none;
	width: auto;
}

body:not(.logged-in).woocommerce-account h2 {
	color: var(--hm-account-ink);
	font-size: 28px;
}

body:not(.logged-in).woocommerce-account form.login,
body:not(.logged-in).woocommerce-account form.register,
body:not(.logged-in).woocommerce-account form.lost_reset_password {
	margin: 0;
	padding: 0;
	border: 0;
}

body:not(.logged-in).woocommerce-account form .form-row {
	margin-bottom: 16px;
}

body:not(.logged-in).woocommerce-account form input.input-text {
	width: 100%;
	min-height: 52px;
	padding: 0 15px;
	border: 1px solid #d7dbe3;
	border-radius: 12px;
	background: #f8f9fb;
}

@media (max-width: 1024px) {
	.hm-account-shell {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 22px;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 30px;
	}

	.hm-account-dashboard__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	body.woocommerce-account .hm-page {
		padding: 18px 0 42px;
	}

	body.woocommerce-account .hm-page > .hm-container {
		padding-inline: 12px;
	}

	.hm-account-shell {
		display: block;
	}

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

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 7px;
		overflow-x: auto;
		padding: 7px;
		scrollbar-width: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		grid-template-columns: 30px auto;
		min-height: 46px;
		padding: 7px 12px 7px 8px;
		white-space: nowrap;
	}

	.hm-account-nav__icon {
		width: 30px;
		height: 30px;
	}

	.hm-account-nav__arrow {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		min-height: 0;
		padding: 24px 17px;
		border-radius: 15px;
	}

	.hm-account-content-head {
		margin-bottom: 24px;
	}

	.hm-account-content-head h1 {
		font-size: 29px;
	}

	.hm-account-dashboard__stats {
		grid-template-columns: 1fr;
	}

	.hm-account-dashboard__section {
		padding: 18px;
	}

	.hm-account-dashboard__section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.hm-account-dashboard__details {
		grid-template-columns: 1fr;
	}

	.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
	.woocommerce-account .woocommerce-MyAccount-content .form-row-last {
		float: none;
		width: 100%;
	}

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

	.woocommerce-account table.shop_table_responsive thead {
		display: none;
	}

	.woocommerce-account table.shop_table_responsive tr {
		display: block;
		padding: 8px 0;
		border-bottom: 1px solid var(--hm-account-line);
	}

	.woocommerce-account table.shop_table_responsive td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		border-bottom: 0;
		text-align: right !important;
	}

	.woocommerce-account table.shop_table_responsive td::before {
		font-weight: 800;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-account .woocommerce-MyAccount-navigation a,
	.hm-account-dashboard__stats a,
	.hm-account-button,
	.woocommerce-account .woocommerce-MyAccount-content .button {
		transition: none;
	}
}
