/* ==========================================================================
   Luvherbs – My Account, address book, wishlist, checkout saved addresses
   Colours/sizes are CSS variables on .lh-account – change them in one place.
   ========================================================================== */

.lh-account,
.lh-saved-addresses,
.lh-heart {
	--lh-green: #2c5836;
	--lh-green-dark: #1f4128;
	--lh-ink: #0f1a12;
	--lh-muted: #5a6a5d;
	--lh-line: #e3e6d5;
	--lh-card: #fffef9;
	--lh-sage: #e6ebd8;
	--lh-gold: #d9b25c;
	--lh-max: 1240px;
}

/* Hide the theme's own page title on the account page (hero replaces it).
   Adjust the selectors if your theme uses different classes. */
.woocommerce-account .entry-header,
.woocommerce-account .page-header,
.woocommerce-account h1.entry-title,
.woocommerce-account h1.page-title {
	display: none;
}

/* Full-width hero needs this to avoid a horizontal scrollbar */
body.woocommerce-account {
	overflow-x: hidden;
	overflow-x: clip;
}

.lh-account {
	color: var(--lh-ink);
}

.lh-container {
	max-width: var(--lh-max);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.lh-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 72px 0 60px;
	background: linear-gradient(135deg, #e9f2df 0%, #c9e6cc 100%);
}

.lh-crumbs {
	font-size: 15px;
	color: var(--lh-muted);
	margin-bottom: 22px;
}

.lh-crumbs a {
	color: inherit;
	text-decoration: none;
}

.lh-crumbs span {
	margin: 0 2px;
}

.lh-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--lh-muted);
}

.lh-hero .lh-eyebrow {
	color: var(--lh-green);
}

.lh-hero-title {
	margin: 0;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.1;
	font-weight: 600;
	color: var(--lh-ink);
}

/* ---------- Layout ---------- */
.lh-layout {
	display: grid;
	grid-template-columns: 325px minmax(0, 1fr);
	gap: 50px;
	align-items: start;
	padding-top: 64px;
	padding-bottom: 90px;
}

.lh-layout .woocommerce-MyAccount-navigation,
.lh-layout .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

/* ---------- Sidebar ---------- */
.lh-sidebar {
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-radius: 14px;
	padding: 24px 15px 16px;
}

.lh-profile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 15px 20px;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--lh-line);
}

.lh-avatar {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 500;
	font-size: 18px;
	color: var(--lh-ink);
	background: linear-gradient(135deg, #e8c46b, #c9a24a);
}

.lh-profile-text {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.lh-profile-text strong {
	font-weight: 500;
	font-size: 17px;
}

.lh-profile-text span {
	font-size: 14px;
	color: var(--lh-muted);
	overflow: hidden;
	text-overflow: ellipsis;
}

.lh-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lh-sidebar li {
	margin: 0;
	padding: 0;
	border: 0;
}

.lh-sidebar li a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 20px;
	border-radius: 4px;
	font-size: 16px;
	color: var(--lh-muted);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.lh-sidebar li a:hover {
	background: var(--lh-sage);
	color: var(--lh-green);
}

.lh-sidebar li.is-active a {
	background: var(--lh-green);
	color: #fff;
}

.lh-icon {
	flex: 0 0 auto;
}

/* ---------- Generic pieces ---------- */
.lh-content {
	min-width: 0;
}

.lh-intro {
	margin: 0 0 30px;
	font-size: 17px;
	color: var(--lh-muted);
}

.lh-card {
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-radius: 10px;
	padding: 30px;
	box-sizing: border-box;
}

.lh-btn,
.lh-btn:visited {
	display: inline-block;
	padding: 18px 35px;
	background: var(--lh-green);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.lh-btn:hover {
	background: var(--lh-green-dark);
	color: #fff;
}

.lh-btn-outline {
	display: inline-block;
	padding: 11px 22px;
	background: transparent;
	color: var(--lh-green);
	border: 1px solid #cfd4c0;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.2s;
}

.lh-btn-outline:hover {
	background: var(--lh-green);
	border-color: var(--lh-green);
	color: #fff;
}

.lh-link {
	font-size: 14px;
	color: var(--lh-green);
	text-decoration: none;
}

.lh-link:hover {
	text-decoration: underline;
}

.lh-link--danger {
	color: #a33a2f;
}

.lh-pill {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 999px;
	background: var(--lh-sage);
	color: var(--lh-green);
	font-size: 14px;
	white-space: nowrap;
}

.lh-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--lh-sage);
	color: var(--lh-green);
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	vertical-align: middle;
}

.lh-empty {
	text-align: center;
	padding: 50px 30px;
}

.lh-empty p {
	margin: 0 0 22px;
	color: var(--lh-muted);
}

/* ---------- Dashboard ---------- */
.lh-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.lh-stat {
	display: grid;
	gap: 6px;
	padding: 30px;
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-radius: 10px;
	color: var(--lh-green);
}

.lh-stat strong {
	margin-top: 14px;
	font-size: 34px;
	line-height: 1;
	font-weight: 600;
	color: var(--lh-ink);
}

.lh-stat span {
	font-size: 15px;
	color: var(--lh-muted);
}

.lh-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.lh-card-head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 500;
}

.lh-card-head a {
	font-size: 14px;
	color: var(--lh-green);
	text-decoration: none;
}

.lh-recent-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 16px;
	align-items: center;
	font-size: 17px;
}

.lh-recent-row a {
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-review {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 40px;
	padding: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, #e3f0da, #c8e6cd);
}

.lh-review p {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 17px;
}

.lh-star {
	color: var(--lh-gold);
	display: inline-flex;
}

/* ---------- Orders table ---------- */
.lh-table-wrap {
	padding: 0;
	overflow: hidden;
}

.lh-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
}

.lh-table th {
	padding: 22px 20px;
	background: var(--lh-sage);
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: #2b3a2e;
	border: 0;
}

.lh-table td {
	padding: 22px 20px;
	border: 0;
	border-top: 1px solid var(--lh-line);
	background: transparent;
	vertical-align: middle;
}

.lh-table th:first-child,
.lh-table td:first-child {
	padding-left: 20px;
}

.lh-table td a {
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-table .lh-actions {
	display: flex;
	gap: 18px;
}

.lh-table .lh-actions a {
	font-size: 15px;
	color: var(--lh-green);
}

.lh-pagination {
	display: flex;
	gap: 14px;
	margin-top: 25px;
}

/* ---------- Address book ---------- */
.lh-addr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
}

.lh-addr {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lh-addr h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
}

.lh-addr address {
	margin: 0;
	font-style: normal;
	font-size: 16px;
	line-height: 1.8;
	color: var(--lh-muted);
}

.lh-addr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: auto;
}

.lh-addr-add {
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 200px;
	border-style: dashed;
	border-width: 2px;
	border-color: #cfd4c0;
	background: transparent;
	color: var(--lh-green);
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
}

.lh-addr-add:hover {
	background: var(--lh-sage);
}

.lh-addr-add .lh-plus {
	font-size: 38px;
	line-height: 1;
}

/* ---------- Forms ---------- */
.lh-form {
	max-width: 720px;
}

.lh-form p,
.lh-form .form-row {
	margin: 0 0 20px;
	padding: 0;
}

.lh-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--lh-muted);
}

.lh-form input[type="text"],
.lh-form input[type="email"],
.lh-form input[type="tel"],
.lh-form input[type="password"],
.lh-form input[type="number"],
.lh-form select,
.lh-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-radius: 2px;
	font-size: 16px;
	color: var(--lh-ink);
	box-shadow: none;
}

.lh-form input:focus,
.lh-form select:focus,
.lh-form textarea:focus {
	outline: 0;
	border-color: var(--lh-green);
	box-shadow: 0 0 0 3px rgba(44, 88, 54, 0.12);
}

.lh-form input::placeholder {
	color: var(--lh-muted);
}

.lh-form-title {
	margin: 0 0 28px;
	font-size: 26px;
	font-weight: 500;
}

.lh-form-subtitle {
	margin: 40px 0 22px;
	font-size: 26px;
	font-weight: 400;
}

.lh-row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.lh-form .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.lh-form .woocommerce-address-fields__field-wrapper .form-row {
	float: none;
	width: auto;
	grid-column: span 1;
}

.lh-form .woocommerce-address-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.lh-form .required {
	color: #a33a2f;
	text-decoration: none;
}

.lh-form .select2-container {
	width: 100% !important;
}

.lh-form .select2-container .select2-selection--single {
	height: 56px;
	border: 1px solid var(--lh-line);
	border-radius: 2px;
	background: var(--lh-card);
}

.lh-form .select2-container .select2-selection__rendered {
	line-height: 54px;
	padding-left: 20px;
}

.lh-form .select2-container .select2-selection__arrow {
	height: 54px;
}

.lh-check label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	color: var(--lh-ink);
	cursor: pointer;
}

.lh-check input {
	width: auto;
}

.lh-form-actions {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ---------- Wishlist ---------- */
.lh-wish-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 40px 40px;
}

.lh-wish-media {
	position: relative;
	margin-bottom: 18px;
}

.lh-wish-img {
	display: block;
	overflow: hidden;
	border-radius: 14px;
}

.lh-wish-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.lh-wish-media .lh-heart {
	position: absolute;
	top: 12px;
	right: 12px;
}

.lh-wish-name {
	margin: 0 0 18px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.4;
}

.lh-wish-name a {
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-wish-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lh-price {
	font-size: 17px;
}

/* ---------- Heart button (product pages, shop loop, wishlist) ---------- */
.lh-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: 10px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--lh-line);
	color: #b7bfae;
	text-decoration: none;
	vertical-align: middle;
	transition: color 0.2s, border-color 0.2s;
}

.lh-heart svg {
	fill: none;
}

.lh-heart:hover {
	color: #c0392b;
	border-color: #c0392b;
}

.lh-heart.is-active {
	color: #c0392b;
}

.lh-heart.is-active svg {
	fill: currentColor;
}

/* ---------- Notices ---------- */
.lh-account .woocommerce-message,
.lh-account .woocommerce-error,
.lh-account .woocommerce-info {
	margin: 0 0 24px;
	padding: 16px 20px;
	list-style: none;
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-left: 4px solid var(--lh-green);
	border-radius: 6px;
	color: var(--lh-ink);
}

.lh-account .woocommerce-error {
	border-left-color: #a33a2f;
}

.lh-account .woocommerce-message::before,
.lh-account .woocommerce-error::before,
.lh-account .woocommerce-info::before {
	display: none;
}

/* ---------- Checkout: saved addresses ---------- */
.lh-saved-addresses {
	margin: 0 0 28px;
}

.lh-saved-addresses h4 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 500;
}

.lh-saved-list {
	display: grid;
	gap: 12px;
}

.lh-saved-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	background: var(--lh-card);
	border: 1px solid var(--lh-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.lh-saved-item:hover,
.lh-saved-item:has(input:checked) {
	border-color: var(--lh-green);
	background: #f4f8ee;
}

.lh-saved-item input {
	margin-top: 5px;
	accent-color: var(--lh-green);
}

.lh-saved-body {
	display: grid;
	gap: 3px;
	font-size: 15px;
	line-height: 1.6;
}

.lh-saved-text {
	color: var(--lh-muted);
	font-size: 14px;
}

.lh-saved-manage {
	margin: 12px 0 0;
	font-size: 14px;
}

.lh-saved-manage a {
	color: var(--lh-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.lh-layout {
		grid-template-columns: 1fr;
		gap: 30px;
		padding-top: 40px;
	}

	.lh-hero {
		padding: 50px 0 40px;
	}
}

@media (max-width: 720px) {
	.lh-stats {
		grid-template-columns: 1fr;
	}

	.lh-recent-row {
		grid-template-columns: 1fr 1fr;
	}

	.lh-review {
		flex-direction: column;
		align-items: flex-start;
	}

	.lh-row--2,
	.lh-form .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	/* Orders table becomes stacked cards */
	.lh-table thead {
		display: none;
	}

	.lh-table,
	.lh-table tbody,
	.lh-table tr,
	.lh-table td {
		display: block;
		width: 100%;
	}

	.lh-table tr {
		border-top: 1px solid var(--lh-line);
		padding: 10px 0;
	}

	.lh-table tr:first-child {
		border-top: 0;
	}

	.lh-table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		border: 0;
		padding: 10px 20px;
	}

	.lh-table td[data-label]::before {
		content: attr(data-label);
		color: var(--lh-muted);
	}

	.lh-table .lh-actions {
		justify-content: flex-end;
	}
}


/* Theme's old hero is replaced by the new one inside my-account.php */
.lh-account-page > .lh-acc-hero {
	display: none;
}




/* ===== Override the theme's old account layout ===== */
.lh-account-page .lh-acc-hero { display: none !important; }

.lh-account-page .lh-acc-body {
	padding: 0 !important;
	background: none !important;
}

.lh-account-page .lh-acc-wrap {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lh-account-page .woocommerce {
	display: block !important;
	grid-template-columns: none !important;
	max-width: none !important;
	width: 100% !important;
}

/* Sidebar: no box inside a box */
.lh-account .lh-sidebar .woocommerce-MyAccount-navigation {
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

.lh-account .lh-sidebar li a {
	display: flex !important;
	align-items: center !important;
	gap: 14px;
	line-height: 1.3;
}

.lh-account .lh-sidebar li a svg {
	flex: 0 0 20px;
}

/* Content area: no big white card around the dashboard */
.lh-account .lh-content {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Long usernames/emails should wrap instead of overflowing */
.lh-account .lh-profile-text strong,
.lh-account .lh-profile-text span,
.lh-account .lh-hero-title {
	overflow-wrap: anywhere;
}