/* WooCommerce-native customer account area. */
body.woocommerce-account #primary {
	margin-inline: auto;
	max-width: var(--hc-content-width);
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2.75rem) var(--hc-gutter);
	width: 100%;
}

body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	align-items: start;
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--hc-color-forest);
	border-radius: var(--hc-radius-card);
	box-shadow: var(--hc-shadow-card);
	float: none;
	margin: 0;
	padding: 0.75rem;
	width: auto;
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	border: 0;
	margin: 0.2rem 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	align-items: center;
	border-radius: 0.6rem;
	color: #fff;
	display: flex;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	min-height: 2.9rem;
	overflow-wrap: anywhere;
	padding: 0.7rem 0.85rem;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: rgb(255 255 255 / 13%);
	color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible,
body.woocommerce-account .hc-account-quick-link:focus-visible,
body.woocommerce-account .hc-account-section-heading a:focus-visible {
	box-shadow: 0 0 0 3px var(--hc-color-honey);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	background: transparent;
	float: none;
	min-width: 0;
	width: auto;
}

.hc-account-intro,
.hc-account-login-intro {
	margin: 0 0 1.25rem;
}

.hc-account-intro h1,
.hc-account-login-intro h1 {
	color: var(--hc-color-forest);
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.4rem;
}

.hc-account-intro p,
.hc-account-login-intro p {
	color: var(--hc-color-text-muted);
	margin: 0;
}

.hc-account-welcome {
	color: var(--hc-color-text-muted);
	margin: 0 0 1.1rem;
}

.hc-account-quick-links {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-account-quick-link {
	align-items: center;
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-radius: var(--hc-radius-card);
	box-shadow: var(--hc-shadow-card);
	color: var(--hc-color-text);
	display: grid;
	gap: 0.8rem;
	grid-template-columns: 2.6rem minmax(0, 1fr) 1rem;
	min-height: 6.2rem;
	padding: 0.95rem;
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
}

.hc-account-quick-link:hover {
	border-color: var(--hc-color-honey);
	color: var(--hc-color-brown);
	transform: translateY(-1px);
}

.hc-account-quick-link-icon {
	align-items: center;
	background: var(--hc-color-cream);
	border-radius: 50%;
	color: var(--hc-color-forest);
	display: inline-flex;
	height: 2.6rem;
	justify-content: center;
	width: 2.6rem;
}

.hc-account-quick-link-icon svg,
.hc-account-quick-link-arrow {
	display: block;
	height: 1.25rem;
	width: 1.25rem;
}

.hc-account-quick-link-copy,
.hc-account-quick-link-copy strong,
.hc-account-quick-link-copy > span {
	display: block;
}

.hc-account-quick-link-copy strong {
	color: var(--hc-color-forest);
	font-size: 0.97rem;
	line-height: 1.35;
}

.hc-account-quick-link-copy > span {
	color: var(--hc-color-text-muted);
	font-size: 0.84rem;
	line-height: 1.4;
	margin-top: 0.25rem;
}

.hc-account-quick-link-arrow {
	color: var(--hc-color-text-muted);
}

.hc-account-recent-orders {
	margin-top: 1.75rem;
}

.hc-account-section-heading {
	align-items: baseline;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.hc-account-section-heading h2 {
	color: var(--hc-color-forest);
	font-size: 1.25rem;
	margin: 0;
}

.hc-account-section-heading a {
	color: var(--hc-color-forest);
	font-size: 0.9rem;
	font-weight: 700;
}

.hc-account-recent-list {
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-radius: var(--hc-radius-card);
	box-shadow: var(--hc-shadow-card);
	list-style: none;
	margin: 0;
	padding: 0 1rem;
}

.hc-account-recent-order {
	align-items: center;
	border-bottom: 1px solid var(--hc-color-border);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-width: 0;
	padding: 0.9rem 0;
}

.hc-account-recent-order:last-child {
	border-bottom: 0;
}

.hc-account-order-meta,
.hc-account-order-total {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.hc-account-order-number {
	color: var(--hc-color-forest);
	font-weight: 700;
}

.hc-account-order-meta time {
	color: var(--hc-color-text-muted);
	font-size: 0.83rem;
}

.hc-account-order-total {
	align-items: flex-end;
	text-align: right;
}

.hc-account-order-total strong {
	color: var(--hc-color-brown);
	font-size: 0.9rem;
}

.hc-order-status {
	background: #f3ead7;
	border-radius: 999px;
	color: var(--hc-color-brown);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.35;
	padding: 0.25rem 0.55rem;
}

.hc-order-status--processing,
.hc-order-status--on-hold,
.hc-order-status--pending {
	background: #f7edcf;
}

.hc-order-status--completed {
	background: #e8f0e8;
	color: var(--hc-color-forest);
}

.hc-order-status--cancelled,
.hc-order-status--failed,
.hc-order-status--refunded {
	background: #f5e8e4;
	color: #743c31;
}

.hc-account-empty-orders {
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-radius: var(--hc-radius-card);
	padding: 1.25rem;
}

.hc-account-empty-orders h3 {
	color: var(--hc-color-forest);
	font-size: 1.08rem;
	margin: 0 0 0.35rem;
}

.hc-account-empty-orders p {
	color: var(--hc-color-text-muted);
	margin: 0 0 0.8rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
	border-radius: var(--hc-radius-card);
	margin: 0 0 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: var(--hc-color-forest);
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-collapse: separate;
	border-radius: var(--hc-radius-card);
	border-spacing: 0;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	border-color: var(--hc-color-border);
	padding: 0.8rem 0.7rem;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
	color: var(--hc-color-brown);
	font-size: 0.85rem;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table a:not(.button) {
	color: var(--hc-color-forest);
	font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-radius: var(--hc-radius-card);
	box-shadow: var(--hc-shadow-card);
	float: none;
	margin: 0;
	max-width: none;
	padding: 1.1rem;
	width: auto;
}

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

body.woocommerce-account .woocommerce-Address-title {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
}

body.woocommerce-account .woocommerce-Address-title h2 {
	font-size: 1.1rem;
	margin: 0;
}

body.woocommerce-account .woocommerce-Address address {
	background: #fffdf8;
	border: 1px solid var(--hc-color-border);
	border-radius: 0.6rem;
	color: var(--hc-color-text-muted);
	font-style: normal;
	line-height: 1.6;
	margin-top: 0.8rem;
	min-height: 5rem;
	padding: 0.85rem;
}

body.woocommerce-account .woocommerce-MyAccount-content form {
	background: var(--hc-color-white);
	border: 1px solid var(--hc-color-border);
	border-radius: var(--hc-radius-card);
	box-shadow: var(--hc-shadow-card);
	margin: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row {
	margin-bottom: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row label {
	color: var(--hc-color-brown);
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

body.woocommerce-account .woocommerce-MyAccount-content form :is(input.input-text, input[type="email"], input[type="password"], input[type="text"], input[type="tel"], select, textarea) {
	background: #fff;
	border: 1px solid var(--hc-color-border);
	border-radius: 0.55rem;
	color: var(--hc-color-text);
	font-size: 1rem;
	line-height: 1.4;
	min-height: 2.9rem;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content form textarea {
	min-height: 6rem;
}

body.woocommerce-account .woocommerce-MyAccount-content form :is(input, select, textarea):focus-visible {
	border-color: var(--hc-color-forest);
	box-shadow: 0 0 0 3px rgb(36 75 55 / 15%);
	outline: 2px solid transparent;
}

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button,
body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
	min-height: 2.9rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
	display: flex;
	gap: 0.6rem;
	justify-content: flex-end;
	margin-top: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .lost_reset_password {
	max-width: 36rem;
}

body.woocommerce-account #customer_login {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.woocommerce-account #customer_login :is(.u-column1, .u-column2, .col-1, .col-2) {
	float: none;
	margin: 0;
	min-width: 0;
	width: auto;
}

body.woocommerce-account #customer_login h2 {
	color: var(--hc-color-forest);
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
}

body.woocommerce-account .woocommerce-form-login__submit,
body.woocommerce-account .woocommerce-form-register__submit {
	margin-top: 0.25rem;
}

body.woocommerce-account .woocommerce-LostPassword {
	margin: 0.75rem 0 0;
}

body.woocommerce-account .woocommerce-LostPassword a {
	color: var(--hc-color-forest);
	font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-orders .button {
	margin: 0.15rem;
}

@media (max-width: 767px) {
	body.woocommerce-account #primary {
		padding-inline: max(0.75rem, env(safe-area-inset-left));
	}

	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		padding: 0.55rem;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid;
		gap: 0.3rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		min-width: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		font-size: 0.84rem;
		min-height: 2.8rem;
		padding: 0.65rem;
	}

	.hc-account-quick-links {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account #customer_login {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive thead {
		clip: auto;
		clip-path: none;
		height: auto;
		margin: 0;
		overflow: visible;
		position: static;
		width: auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive thead tr {
		border: 0;
		left: auto;
		position: static;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive thead th:not(:first-child) {
		position: absolute;
		clip: rect(0, 0, 0, 0);
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
		border-bottom: 1px solid var(--hc-color-border);
		display: grid;
		gap: 0.35rem 0.75rem;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		padding: 0.65rem 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:last-child {
		border-bottom: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody :is(th, td) {
		border: 0;
		display: block;
		min-width: 0;
		padding: 0.4rem;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody th[data-title="Order"],
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody td[data-title="Actions"] {
		grid-column: 1 / -1;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody td[data-title]::before {
		color: var(--hc-color-text-muted);
		content: attr(data-title);
		display: block;
		font-size: 0.74rem;
		font-weight: 700;
		margin-bottom: 0.2rem;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody td[data-title="Actions"]::before,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody th[data-title="Order"]::before {
		content: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tfoot tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tfoot :is(th, td) {
		border: 0;
		padding: 0.55rem;
	}

	body.woocommerce-account .hc-account-recent-order {
		align-items: flex-start;
	}
}

@media (max-width: 380px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
		gap: 0.2rem 0.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account *,
	.hc-account-quick-link {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
	}
}
