/* =====================================================
   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

   The signed-in area has no panel of its own. Content sits straight on the
   page and only the pieces that are genuinely objects -- an address, a vial,
   a payout -- get a card. Wrapping the whole column in one white box, which
   is what this used to do, flattened that distinction and made every screen
   read as a single undifferentiated form.
   ----------------------------------------------------- */

/* A firmer hairline for the edges that open a group -- the top of a list, the
   resting border of an input. main.css has no token for it. */
.healio-account-in, .healio-account-gate { --line-firm: rgba(43, 10, 20, 0.16); }

/* WooCommerce's woocommerce-layout.css floats these two and sizes them 30%/68%.
   Inside the grid below, those percentages resolve against the grid tracks
   rather than the page, collapsing the sidebar to ~74px and the panel to ~68%
   of its column. The grid owns the columns now, so undo both. */
.account-shell .woocommerce-MyAccount-navigation,
.account-shell .woocommerce-MyAccount-content {
	min-width: 0;
	float: none;
	width: auto;
}

/* Nav and content side by side; the notices wrapper spans both. */
.healio-account-in .woocommerce {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: clamp(28px, 4vw, 58px);
	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; }

/* The shell's own page-head is not rendered on these screens -- the heading
   prints inside the content column instead -- so reclaim its bottom margin. */
.healio-account-in .account-shell > .page-head { display: none; }

/* -----------------------------------------------------
   Sidebar
   ----------------------------------------------------- */

.hacct-side {
	position: sticky;
	top: 100px;
	padding: 4px 0 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.hacct-side-title {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mauve);
	margin: 0 0 22px;
}
.hacct-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hacct-side li { margin: 0; }
.hacct-side li a {
	display: flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--mauve);
	padding: 11px 14px;
	border-radius: 999px;
	transition: background 0.22s ease, color 0.22s ease;
}
.hacct-side li a svg {
	width: 17px;
	height: 17px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.75;
}
.hacct-side li a:hover { background: var(--blush-soft); color: var(--berry); }
.hacct-side li.is-active a {
	background: var(--blush-soft);
	color: var(--wine);
	font-weight: 600;
}
.hacct-side li.is-active a svg { opacity: 1; stroke: var(--rose); }
.hacct-side-rule { height: 1px; background: var(--line); margin: 22px 14px; }
.hacct-side li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--mauve); }
.hacct-side li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { color: var(--berry); }

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

.woocommerce-MyAccount-content {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
.woocommerce-MyAccount-content > p { color: var(--mauve); line-height: 1.6; }
.woocommerce-MyAccount-content mark {
	background: transparent;
	color: var(--berry);
	font-weight: 650;
}
.woocommerce-MyAccount-content a:not(.button):not(.btn) { color: var(--berry); }

/* Heading */
.hacct-head { margin-bottom: clamp(28px, 3.4vw, 42px); }
.hacct-head h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(36px, 5.2vw, 58px);
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: var(--wine);
	margin: 0;
	text-wrap: balance;
}
.hacct-head h1 em { font-style: italic; color: var(--rose); }
.hacct-head-sub { color: var(--mauve); font-size: 16px; margin: 12px 0 0; }

/* Section blocks */
.hacct-block { margin-top: clamp(38px, 4.6vw, 62px); }
.hacct-block--first { margin-top: 0; }
.hacct-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}
.hacct-block-head h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(23px, 2.5vw, 29px);
	letter-spacing: -0.02em;
	color: var(--wine);
	margin: 0;
}
.hacct-block-head h2 em { font-style: italic; color: var(--rose); }

.hacct-textlink {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--berry);
	text-decoration: none;
	border-bottom: 1px solid var(--blush);
	padding-bottom: 3px;
	white-space: nowrap;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.hacct-textlink:hover { color: var(--rose); border-color: var(--rose); }

/* -----------------------------------------------------
   Vitals (Overview)
   ----------------------------------------------------- */

.hacct-vitals { display: flex; flex-wrap: wrap; margin: 0 0 clamp(34px, 4.4vw, 56px); }
.hacct-vital { padding: 0 26px; border-left: 1px solid var(--line); }
.hacct-vital:first-child { padding-left: 0; border-left: 0; }
.hacct-vital dt {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
	margin: 0 0 8px;
}
.hacct-vital dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wine);
	font-variant-numeric: tabular-nums;
}
.hacct-vital dd small {
	font-size: 13px;
	font-family: var(--font-body);
	color: var(--mauve);
	margin-left: 5px;
	letter-spacing: 0;
}

/* -----------------------------------------------------
   Orders as rows

   Grid rather than flex so the actions can sit on their own line under the
   items without the date column reserving space for them.
   ----------------------------------------------------- */

.hacct-orders { list-style: none; margin: 0; padding: 0; }
.hacct-order {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 6px 20px;
	align-items: center;
	padding: 21px 0;
	border-bottom: 1px solid var(--line);
}
.hacct-orders .hacct-order:first-child { border-top: 1px solid var(--line-firm); }
.hacct-order-date {
	grid-column: 1;
	grid-row: 1;
	width: 66px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mauve);
}
.hacct-order-items {
	grid-column: 2;
	grid-row: 1;
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--wine);
}
.hacct-order-num {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--mauve);
	letter-spacing: 0.08em;
	margin-left: 8px;
	white-space: nowrap;
}
.hacct-order-right {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	align-items: center;
	gap: 18px;
}
.hacct-order-total {
	font-family: var(--font-display);
	font-size: 20px;
	letter-spacing: -0.02em;
	color: var(--wine);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* WooCommerce wraps totals in <span class="amount"> and sometimes appends a
   currency note in <small>; neither should re-style the figure. */
.hacct-order-total .amount { font: inherit; color: inherit; }
.hacct-order-total small {
	font-family: var(--font-body);
	font-size: 12px;
	color: var(--mauve);
	letter-spacing: 0;
}

.hacct-pill {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	white-space: nowrap;
}
.hacct-pill.is-open { background: var(--blush-soft); color: var(--berry); }
.hacct-pill.is-done { background: rgba(123, 154, 133, 0.18); color: #4E6957; }
.hacct-pill.is-off { background: rgba(43, 10, 20, 0.07); color: var(--mauve); }

.hacct-order-actions {
	grid-column: 2 / 4;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}
/* These replace WooCommerce's solid .button pills, which is why the selector
   has to beat the .woocommerce-MyAccount-content .button rule further down. */
.hacct-order-actions .hacct-minilink,
.woocommerce-MyAccount-content .hacct-order-actions a {
	display: inline;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--berry);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--blush);
	border-radius: 0;
	padding: 0 0 2px;
	transform: none;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.woocommerce-MyAccount-content .hacct-order-actions a:hover {
	color: var(--rose);
	border-color: var(--rose);
	background: none;
	transform: none;
}
/* Cancel is destructive and should not look like the others. */
.woocommerce-MyAccount-content .hacct-order-actions a.hacct-minilink--cancel { color: var(--mauve); }
.woocommerce-MyAccount-content .hacct-order-actions a.hacct-minilink--cancel:hover { color: var(--berry); }

/* Orders pagination */
.hacct-pager { display: flex; gap: 12px; margin-top: 30px; }
.woocommerce-MyAccount-content .hacct-pager a {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--berry);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 10px 18px;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.woocommerce-MyAccount-content .hacct-pager a:hover { border-color: var(--rose); color: var(--rose); }

/* -----------------------------------------------------
   Cards (addresses, account links)
   ----------------------------------------------------- */

.hacct-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	align-items: start;
}
/* WooCommerce's .col2-set clearfix (content:" "; display:table) counts as two
   real grid items here, which pushed the second address into row 2. */
.hacct-cards::before,
.hacct-cards::after { content: none; display: none; }

.hacct-card {
	background: var(--paper, #fff);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px 26px;
	width: auto !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.hacct-card h3 {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
	font-weight: 400;
	margin: 0 0 16px;
}
.hacct-card address {
	font-style: normal;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--wine);
	background: none;
	padding: 0;
	border-radius: 0;
	margin: 0;
}
.hacct-card-note { font-size: 14.5px; color: var(--mauve); margin: 0; }
/* Pinned to the foot so two cards of unequal text still line their buttons up. */
.hacct-card-cta { margin-top: auto; align-self: flex-start; padding-top: 20px; }

.hacct-qlinks { display: flex; flex-direction: column; }
.woocommerce-MyAccount-content .hacct-qlink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	color: var(--wine);
	text-decoration: none;
	transition: color 0.22s ease;
}
.hacct-qlink:last-child { border-bottom: 0; }
.woocommerce-MyAccount-content .hacct-qlink:hover { color: var(--berry); }
.hacct-qlink::after { content: "\2192"; color: var(--rose); font-size: 15px; }

/* -----------------------------------------------------
   Empty states
   ----------------------------------------------------- */

.hacct-empty {
	background: var(--paper, #fff);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: clamp(32px, 4.4vw, 52px);
	text-align: center;
}
.hacct-empty-title {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: -0.02em;
	color: var(--wine);
	margin: 0 0 10px;
}
.hacct-empty-note { color: var(--mauve); font-size: 15px; margin: 0 0 24px; }

/* -----------------------------------------------------
   Forms (account settings, edit address)
   ----------------------------------------------------- */

.hacct-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 22px;
	max-width: 760px;
	align-items: start;
}
.hacct-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 !important;
	padding: 0;
}
.hacct-field--wide { grid-column: 1 / -1; }
.hacct-hint { font-size: 13px; color: var(--mauve); }
.hacct-form-foot { margin: clamp(30px, 4vw, 44px) 0 0; }

/* 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,
.woocommerce-MyAccount-content .hacct-field label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mauve);
}
.woocommerce-MyAccount-content form .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(--paper, #fff);
	border: 1px solid var(--line-firm);
	border-radius: 12px;
	padding: 13px 15px;
	height: auto;
	transition: border-color 0.25s ease, box-shadow 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;
	border-color: var(--rose);
	box-shadow: 0 0 0 3px rgba(201, 103, 144, 0.15);
}
/* The edit-address screen still uses WooCommerce's own fieldset. */
.woocommerce-MyAccount-content form fieldset {
	border: 0;
	padding: 0;
	margin: 34px 0 0;
}
.woocommerce-MyAccount-content form fieldset legend {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(23px, 2.5vw, 29px);
	letter-spacing: -0.02em;
	color: var(--wine);
	padding: 0;
	margin-bottom: 18px;
}
.woocommerce-MyAccount-content form em,
.woocommerce-MyAccount-content span.description { font-size: 12.5px; color: var(--mauve); font-style: normal; }

/* Edit-address is a plain Woo form; give it the same measure as the grid. */
.woocommerce-MyAccount-content form.edit-address .woocommerce-address-fields { max-width: 620px; }

/* -----------------------------------------------------
   Buttons
   ----------------------------------------------------- */

.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-firm);
	border-radius: 999px;
	background: transparent;
	color: var(--wine);
	padding: 11px 22px;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
	border-color: var(--rose);
	color: var(--berry);
	transform: translateY(-2px);
}
.woocommerce-MyAccount-content button[type="submit"] {
	background: var(--rose);
	border-color: var(--rose);
	color: #fff;
	padding: 13px 26px;
	font-size: 14px;
	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);
	color: #fff;
}

/* -----------------------------------------------------
   Notices
   ----------------------------------------------------- */

.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error {
	list-style: none;
	background: var(--paper, #fff);
	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; }

/* Success reads green, not blush. shop.css and main.css both paint every
   notice type in --blush-soft with !important, so a confirmation was
   indistinguishable from the page's own pink furniture. Two class selectors
   plus !important beats those single-class rules whatever the load order. */
.woocommerce-MyAccount-content .woocommerce-message,
.healio-account-gate .woocommerce-message {
	background: #edf7f0 !important;
	border: 1px solid rgba(45, 122, 74, 0.28) !important;
	color: #23603f !important;
}

/* WooCommerce core drops an icon-font glyph in at position:absolute; left:1.5em
   and reserves room for it with padding-left:3.5em. Both notice blocks above
   set their own padding, so that reservation is gone and the glyph lands on top
   of the first words. The design does not use the icon. */
.healio-account-gate .woocommerce-error::before,
.healio-account-gate .woocommerce-message::before,
.healio-account-gate .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-error::before,
.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before {
	content: none;
	display: none;
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */

@media (max-width: 900px) {
	.healio-account-in .woocommerce { grid-template-columns: 1fr; gap: 0; }
	.hacct-side { position: static; padding: 0; }
	.hacct-side-title { display: none; }
	.hacct-side ul {
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.hacct-side ul::-webkit-scrollbar { display: none; }
	.hacct-side li a { white-space: nowrap; padding: 10px 16px; font-size: 13.5px; }
	.hacct-side li a svg { display: none; }
	.hacct-side-rule { display: none; }
	.woocommerce-MyAccount-content { padding-top: 26px; }
}

@media (max-width: 720px) {
	.hacct-cards,
	.hacct-form { grid-template-columns: 1fr; }
	.hacct-vital { padding: 0 22px 0 0; border-left: 0; }

	/* The row folds to: date, then items, then status + total, then actions. */
	.hacct-order { grid-template-columns: minmax(0, 1fr) auto; }
	.hacct-order-date { grid-column: 1; grid-row: 1; width: auto; margin-bottom: 2px; }
	.hacct-order-items { grid-column: 1 / 3; grid-row: 2; }
	.hacct-order-right { grid-column: 1 / 3; grid-row: 3; margin-top: 10px; justify-content: space-between; }
	.hacct-order-actions { grid-column: 1 / 3; grid-row: 4; }
}
