/* =====================================================
   Healio — My Account
   Signed-out gate (sign in / create account / password)
   and the signed-in dashboard.
   Loaded on account pages only.
   ===================================================== */

/* -----------------------------------------------------
   Signed-out: one centred card on a soft field
   ----------------------------------------------------- */

.healio-account-gate .account-shell {
	max-width: none;
	padding: 0;
	background:
		radial-gradient(52% 60% at 82% 12%, rgba(233, 195, 211, 0.5) 0%, rgba(233, 195, 211, 0) 62%),
		radial-gradient(46% 54% at 12% 88%, rgba(244, 226, 234, 0.85) 0%, rgba(244, 226, 234, 0) 60%),
		linear-gradient(172deg, var(--blush-soft) 0%, var(--cream) 74%);
}
.healio-account-gate .woocommerce {
	min-height: 68vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(48px, 8vw, 96px) var(--pad);
}
/* Notices sit above the card, at the card's width, not the page's. */
.healio-account-gate .woocommerce-notices-wrapper {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.hac {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.hac-card {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 28px;
	padding: clamp(30px, 5vw, 48px) clamp(24px, 4.5vw, 46px) clamp(28px, 4vw, 40px);
	box-shadow: var(--shadow-lift);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.hac-head { text-align: center; margin-bottom: 26px; }
.hac-mark { display: block; margin-bottom: 16px; }
.hac-mark .logo-mark { width: 44px; height: 44px; display: inline-block; }
.hac-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(29px, 4.2vw, 38px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--wine);
	margin: 0 0 10px;
}
.hac-sub {
	color: var(--mauve);
	font-size: 14.5px;
	line-height: 1.55;
	max-width: 40ch;
	margin: 0 auto;
}

/* ----- Tabs ----- */

.hac-tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 26px;
}
.hac-tab {
	position: relative;
	z-index: 1;
	text-align: center;
	text-decoration: none;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--mauve);
	padding: 11px 10px;
	border-radius: 999px;
	transition: color 0.3s ease;
}
.hac-tab:hover { color: var(--berry); }
.hac-tab-glide {
	position: absolute;
	z-index: 0;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 8px 18px -10px rgba(43, 10, 20, 0.35);
	transition: transform 0.34s cubic-bezier(0.4, 0.01, 0.2, 1);
}
.hac[data-panel="login"] .hac-tab[data-hac-tab="login"],
.hac[data-panel="register"] .hac-tab[data-hac-tab="register"] { color: var(--berry); }
.hac[data-panel="register"] .hac-tab-glide { transform: translateX(100%); }

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

.hac-panel[hidden] { display: none; }
.hac-form { display: grid; gap: 17px; margin: 0; }
.hac-field { display: grid; gap: 7px; margin: 0 !important; }
.hac-field label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
}
.hac-field label .required { color: var(--rose); text-decoration: none; }

.hac-form input[type="text"],
.hac-form input[type="email"],
.hac-form input[type="password"] {
	width: 100%;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--wine);
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 15px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.hac-form input:focus {
	outline: none;
	background: #fff;
	border-color: var(--rose);
	box-shadow: 0 0 0 4px rgba(201, 103, 144, 0.14);
}
.hac-form ::placeholder { color: rgba(107, 97, 101, 0.5); }

/* WooCommerce injects .password-input around every password field and appends
   its own .show-password-input toggle. Style that rather than shipping a
   second one on top of it. */
.hac-form .password-input,
.woocommerce-MyAccount-content .password-input { position: relative; display: block; }
.hac-form .password-input input,
.woocommerce-MyAccount-content .password-input input { padding-right: 48px !important; }
.hac-form .show-password-input,
.woocommerce-MyAccount-content .show-password-input {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: transparent no-repeat center / 20px 20px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C96790' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E");
	opacity: 0.85;
	transition: opacity 0.2s ease;
}
.hac-form .show-password-input:hover,
.woocommerce-MyAccount-content .show-password-input:hover { opacity: 1; }
.hac-form .show-password-input.display-password,
.woocommerce-MyAccount-content .show-password-input.display-password {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E2444' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E");
}

.hac-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0;
}
.hac-remember {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	color: var(--mauve);
	cursor: pointer;
	margin: 0;
}
.hac-remember input { accent-color: var(--rose); width: 15px; height: 15px; }

.hac-link {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--berry);
	text-decoration: none;
	border-bottom: 1px solid rgba(142, 36, 68, 0.28);
	transition: border-color 0.2s ease, color 0.2s ease;
}
.hac-link:hover { color: var(--rose); border-color: var(--rose); }

.hac-submit-row { margin: 4px 0 0 !important; }
.hac-submit { width: 100%; padding: 15px 28px; font-size: 15px; }

.hac-note {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	background: var(--blush-soft);
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--mauve);
	margin: 0;
}
.hac-note-mark { color: var(--rose); font-size: 14px; line-height: 1.5; }

/* WooCommerce's own privacy sentence, injected into the register form. */
.hac-form .woocommerce-privacy-policy-text p {
	font-size: 12px;
	line-height: 1.55;
	color: var(--mauve);
	margin: 0;
}
.hac-form .woocommerce-privacy-policy-text a { color: var(--berry); }

.hac-swap {
	text-align: center;
	font-size: 13.5px;
	color: var(--mauve);
	margin: 22px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.hac-fine {
	max-width: 46ch;
	margin: 26px auto 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.6;
	color: var(--mauve);
}
.hac-fine a { color: var(--berry); }

/* Notices, restyled to match the card */
.healio-account-gate .woocommerce-error,
.healio-account-gate .woocommerce-message,
.healio-account-gate .woocommerce-info {
	list-style: none;
	border-radius: 14px;
	padding: 14px 17px;
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.5;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--wine);
	box-shadow: var(--shadow-soft);
}
.healio-account-gate .woocommerce-error {
	background: rgba(142, 36, 68, 0.07);
	border-color: rgba(142, 36, 68, 0.24);
	color: var(--berry);
}
.healio-account-gate .woocommerce-error li { margin: 0; }
.healio-account-gate .woocommerce-error li + li { margin-top: 6px; }
.healio-account-gate .woocommerce-message a.button,
.healio-account-gate .woocommerce-info a.button { display: none; }

@media (max-width: 520px) {
	.hac-card { border-radius: 22px; }
	.hac-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* -----------------------------------------------------
   Signed-in: dashboard, orders, addresses, details
   ----------------------------------------------------- */

.account-shell .woocommerce-MyAccount-navigation,
.account-shell .woocommerce-MyAccount-content { min-width: 0; }

.healio-account-in .page-head h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wine);
	margin: 0 0 clamp(26px, 4vw, 42px);
}

/* Nav and content side by side; the notices wrapper spans both. */
.healio-account-in .woocommerce {
	display: grid;
	grid-template-columns: 246px minmax(0, 1fr);
	gap: clamp(26px, 4vw, 52px);
	align-items: start;
}
.healio-account-in .woocommerce::before,
.healio-account-in .woocommerce::after { content: none; }
.healio-account-in .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.healio-account-in .woocommerce-notices-wrapper:empty { display: none; }

/* Navigation */
.woocommerce-MyAccount-navigation {
	position: sticky;
	top: 110px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 12px;
	box-shadow: var(--shadow-soft);
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a {
	display: block;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--mauve);
	padding: 11px 15px;
	border-radius: 13px;
	transition: background 0.22s ease, color 0.22s ease;
}
.woocommerce-MyAccount-navigation li a:hover { background: var(--cream); color: var(--berry); }
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--blush-soft);
	color: var(--berry);
	font-weight: 650;
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--rose); }

/* Content panel */
.woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: clamp(24px, 3.5vw, 38px);
	box-shadow: var(--shadow-soft);
}
.woocommerce-MyAccount-content > p { color: var(--mauve); line-height: 1.6; }
.woocommerce-MyAccount-content > p mark,
.woocommerce-MyAccount-content mark {
	background: transparent;
	color: var(--berry);
	font-weight: 650;
}
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--wine);
	font-size: 24px;
	margin: 0 0 16px;
}
.woocommerce-MyAccount-content a:not(.button) { color: var(--berry); }

/* Tables (orders, downloads) */
.woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0;
}
.woocommerce-MyAccount-content table.shop_table th {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
	font-weight: 400;
	text-align: left;
	padding: 0 14px 12px 0;
	border-bottom: 1px solid var(--line);
}
.woocommerce-MyAccount-content table.shop_table td {
	padding: 16px 14px 16px 0;
	border-top: 1px solid var(--line);
	font-size: 14.5px;
	color: var(--wine);
	vertical-align: middle;
}
.woocommerce-MyAccount-content table.shop_table tbody tr:first-child td { border-top: 0; }
.woocommerce-MyAccount-content table.shop_table td:last-child,
.woocommerce-MyAccount-content table.shop_table th:last-child { padding-right: 0; text-align: right; }

/* Addresses */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
}
.woocommerce-MyAccount-content .woocommerce-Address { width: auto !important; float: none !important; }
.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { font-size: 20px; margin: 0; }
.woocommerce-MyAccount-content .woocommerce-Address address {
	font-style: normal;
	color: var(--mauve);
	font-size: 14.5px;
	line-height: 1.65;
	background: var(--cream);
	border-radius: 14px;
	padding: 16px 18px;
}

/* Edit-account / address form fields */
.woocommerce-MyAccount-content form .form-row { display: grid; gap: 7px; margin: 0 0 17px; padding: 0; }
.woocommerce-MyAccount-content form .form-row label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
}
.woocommerce-MyAccount-content form .form-row .required { color: var(--rose); text-decoration: none; }
.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form .select2-container .select2-selection {
	width: 100%;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--wine);
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 13px 15px;
	height: auto;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--rose);
	box-shadow: 0 0 0 4px rgba(201, 103, 144, 0.14);
}
.woocommerce-MyAccount-content form fieldset {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px 22px 4px;
	margin: 26px 0 20px;
}
.woocommerce-MyAccount-content form fieldset legend {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rose);
	padding: 0 8px;
}
.woocommerce-MyAccount-content form em,
.woocommerce-MyAccount-content span.description { font-size: 12.5px; color: var(--mauve); font-style: normal; }

/* Buttons anywhere in the account area */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--berry);
	padding: 11px 22px;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
	background: var(--rose);
	border-color: var(--rose);
	color: #fff;
	transform: translateY(-2px);
}
.woocommerce-MyAccount-content button[type="submit"] {
	background: var(--rose);
	border-color: var(--rose);
	color: #fff;
	padding: 14px 28px;
	font-size: 14.5px;
	box-shadow: 0 14px 28px -14px rgba(201, 103, 144, 0.65);
}
.woocommerce-MyAccount-content button[type="submit"]:hover { background: var(--berry); border-color: var(--berry); }

/* Empty states — "No order has been made yet." */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error {
	list-style: none;
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 20px;
	margin: 0 0 20px;
	font-size: 14.5px;
	color: var(--mauve);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.woocommerce-MyAccount-content .woocommerce-error {
	background: rgba(142, 36, 68, 0.07);
	border-color: rgba(142, 36, 68, 0.24);
	color: var(--berry);
	display: block;
}
.woocommerce-MyAccount-content .woocommerce-error li { margin: 0; }

@media (max-width: 900px) {
	.healio-account-in .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation li a { white-space: nowrap; }
	.woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.woocommerce-MyAccount-content table.shop_table thead { display: none; }
	.woocommerce-MyAccount-content table.shop_table tr {
		display: block;
		border-top: 1px solid var(--line);
		padding: 14px 0;
	}
	.woocommerce-MyAccount-content table.shop_table tbody tr:first-child { border-top: 0; }
	.woocommerce-MyAccount-content table.shop_table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		border: 0;
		padding: 5px 0;
		text-align: right;
	}
	.woocommerce-MyAccount-content table.shop_table td::before {
		content: attr(data-title);
		font-family: var(--font-mono);
		font-size: 10.5px;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--mauve);
		text-align: left;
	}
}
