/*
 * My Account – Enhanced Styles
 *
 * Loaded only on account pages (is_account_page()).
 * Extends the base My Account styles in style.css with:
 *   - Nav profile card (avatar, name, email, admin badge)
 *   - Nav icons beside each menu item
 *   - Admin quick-access block in sidebar
 *   - Dashboard greeting, stat cards, store-overview grid
 *   - Admin context banner
 *   - Improved order-status badges (colour-coded)
 *   - Richer empty states across all tabs
 *   - Refined spacing, typography, responsive tweaks
 *
 * @package HolydogChild
 * @since   1.5.0
 * @since   1.6.0 Greeting/stat-card styles from the former WPCode snippet.
 */

/* ============================================================
   SCOPED VARIABLES  (augment / override :root values for
   account pages without touching the rest of the site)
   ============================================================ */
.woocommerce-account {
	--hd-forest: #1A3228;
	--hd-forest-dk: #132419;
	--hd-forest-tint: #e8f0eb;
	--hd-stat-bg: #f0f5fb;
	--hd-admin-stripe: #fff8e1;
	--hd-admin-border: #f59e0b;
	--hd-admin-text: #78350f;
	--hd-radius-lg: 16px;
	--hd-radius-md: 12px;
	--hd-radius-sm: 8px;
}

/* ============================================================
   PAGE SHELL — keep #content > .ast-container flush (same as
   base.css / shop) so the comic cover can be true full-bleed.
   Pad + wide-cap live on .woocommerce under the cover.
   ============================================================ */
.woocommerce-account #content > .ast-container {
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: clamp(40px, 5vw, 64px);
	max-width: none;
	margin-inline: 0;
	box-sizing: border-box;
}

/* Astra desktop gutter — shop uses page-builder template (no
   #primary margin). Account is plain-container and gets 60px
   at ≥1200px on every endpoint (dashboard, orders, …). */
body.woocommerce-account #primary {
	margin-top: 0 !important;
}

@media (min-width: 1200px) {
	body.woocommerce-account.ast-plain-container.ast-no-sidebar #primary {
		margin-top: 0 !important;
	}
}

/* Fill the padded shell — flex gives a real column gap
   (style.css float + % widths left only ~7% between panels).
   :has() keeps login/register columns untouched.
   Use column-gap only — row gap:32px sat between empty notices
   and the cover and looked like header whitespace. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 32px;
	row-gap: 0;
}

/* Notices sit above the two panels, not beside them */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-message,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-info,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-error,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-noreviews {
	flex: 1 0 100%;
	width: 100%;
}

/* Cover is full-bleed — don’t lock it to the padded shell width */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .hd-account-cover {
	flex: 0 0 auto;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Wide content shell under the cover (nav + panels / login) */
.woocommerce-account .woocommerce {
	width: 100%;
	max-width: calc(var(--hd-container-wide) + (var(--hd-page-pad) * 2));
	margin-inline: auto;
	padding-inline: var(--hd-page-pad);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce {
		padding-inline: var(--hd-page-pad-lg);
		max-width: calc(var(--hd-container-wide) + (var(--hd-page-pad-lg) * 2));
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: min(300px, 28%) !important;
	flex: 0 0 min(300px, 28%);
	float: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	float: none !important;
	padding: 48px 56px !important;
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		flex-direction: column;
		column-gap: 0;
		row-gap: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 100% !important;
		flex: none;
		margin-bottom: 20px;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 32px 24px !important;
	}
}

/* ============================================================
   LOGGED-OUT LOGIN / REGISTER
   ============================================================ */

/* Cover carries the page title — hide Astra entry title.
   Astra still injects article margin-top (e.g. 10% page meta)
   for the disabled title area; kill that or the cover sits
   under a white band. */
.woocommerce-account .entry-header {
	display: none;
}

.woocommerce-account article.ast-article-single {
	margin-top: 0 !important;
}

/* Comic cover — break out of .woocommerce pad to full viewport
   (.ast-container is flush; only this shell is padded/capped). */
.hd-account-cover {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: clamp(28px, 4vw, 40px);
	line-height: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.hd-account-cover__img {
	display: block;
	width: 100%;
	/* Match Elementor shop banner (barf-shop ~308px). HTML width/height
	   attrs otherwise lock aspect-ratio and ignore height. */
	height: 308px;
	max-height: 308px;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center;
}

/* Single auth card — login default, register via swap
   (card language from staff wp-login: remember/Anmelden row) */
.woocommerce-account .hd-auth {
	max-width: 26rem;
	margin-inline: auto;
}

.woocommerce-account .hd-auth__card {
	border: 1px solid var(--hd-line);
	border-radius: 16px;
	padding: 28px 32px 32px;
	background: var(--hd-card);
	box-shadow: 0 2px 14px rgba(27, 42, 63, .05);
	box-sizing: border-box;
}

.woocommerce-account .hd-auth__panel[hidden] {
	display: none !important;
}

.woocommerce-account .hd-auth__title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(22px, 3vw, 26px);
	line-height: 1.2;
	color: var(--hd-ink);
	margin: 0 0 22px;
	text-align: center;
}

/* Remember checkbox, then full-width Anmelden below */
.woocommerce-account .hd-auth__actions {
	display: flex !important;
	flex-flow: column nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start;
	gap: 14px;
	margin: 8px 0 0;
}

.woocommerce-account .hd-auth__actions::before,
.woocommerce-account .hd-auth__actions::after {
	content: none !important;
	display: none !important;
}

.woocommerce-account .hd-auth__actions .woocommerce-form-login__submit {
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
	flex: 0 0 auto;
	align-self: stretch;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

.woocommerce-account .hd-auth__actions .woocommerce-form-login__rememberme {
	margin: 0 !important;
	flex: 0 0 auto;
	width: auto;
	align-self: flex-start;
}

.woocommerce-account .hd-auth .woocommerce-LostPassword {
	margin: 14px 0 0;
	text-align: left;
}

/* Google / social login (Nextend etc.) under the form */
.woocommerce-account .hd-auth .nsl-container,
.woocommerce-account .hd-auth [class*="nsl-"],
.woocommerce-account .woocommerce-form-login + .nsl-container {
	margin-top: 16px;
}

.woocommerce-account .hd-auth .nsl-container .nsl-separator,
.woocommerce-account .hd-auth .nsl-container-buttons .nsl-separator {
	text-align: center;
}

/* Drop Google’s fixed 220px button width — match the form card */
.woocommerce-account .hd-auth .nsl-container,
.woocommerce-account .hd-auth .nsl-container-buttons,
.woocommerce-account .hd-auth .nsl-button,
.woocommerce-account .hd-auth .nsl-button-google,
.woocommerce-account .hd-auth .g_id_signin,
.woocommerce-account .hd-auth iframe[src*="accounts.google.com"] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.woocommerce-account .hd-auth .nsl-container-buttons,
.woocommerce-account .hd-auth .nsl-container[data-align],
.woocommerce-account .hd-auth .g_id_signin > div,
.woocommerce-account .hd-auth .g_id_signin iframe {
	width: 100% !important;
	max-width: 100% !important;
}

.woocommerce-account .hd-auth__swap {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--hd-line);
	text-align: center;
}

.woocommerce-account .hd-auth__swap-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--hd-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.woocommerce-account .hd-auth__swap-btn:hover {
	color: var(--hd-ink);
}

.woocommerce-account .hd-auth__swap-btn:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

/* Kill old two-column login layout when hd-auth is present */
.woocommerce-account .hd-auth .u-column1,
.woocommerce-account .hd-auth .u-column2,
.woocommerce-account .hd-auth .col-1,
.woocommerce-account .hd-auth .col-2 {
	width: 100% !important;
	float: none !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* 24px checkbox from base.css sat ~3px from the label text */
.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 0 4px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.3;
}

.woocommerce-account .woocommerce-form__label-for-checkbox input {
	margin: 0 !important;
	flex-shrink: 0;
}

.woocommerce-account #customer_login .woocommerce-LostPassword {
	margin: 14px 0 0;
}

.woocommerce-account #customer_login .form-row-wide {
	margin-bottom: 18px;
}

@media (max-width: 768px) {
	.woocommerce-account #customer_login .u-column1,
	.woocommerce-account #customer_login .u-column2,
	.woocommerce-account #customer_login .col-1,
	.woocommerce-account #customer_login .col-2 {
		padding: 24px 20px;
	}

	.woocommerce-account #customer_login .col-1,
	.woocommerce-account #customer_login .u-column1 {
		margin-bottom: 16px;
	}
}

/* ============================================================
   NAV — LAYOUT  (icons are provided by Astra; no changes needed
   to li a display — Astra's styles handle icon + label layout)
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	padding: 18px 24px !important;
}

/* ============================================================
   NAV — PROFILE CARD
   ============================================================ */
.hd-nav-profile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 28px 24px 22px;
	border-bottom: 1px solid var(--hd-line);
}

/* Circular avatar with initials */
.hd-nav-avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hd-forest);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.hd-nav-user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* allow text truncation */
}

.hd-nav-display-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--hd-ink);
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.hd-nav-user-email {
	font-size: 12px;
	color: var(--hd-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
	margin-top: 2px;
}

/* Admin badge pill */
.hd-nav-admin-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--hd-admin-border);
	color: #fff;
	line-height: 1.6;
}

/* ============================================================
   NAV — ADMIN QUICK-ACCESS BLOCK
   ============================================================ */
.hd-nav-admin-links {
	border-top: 1px solid var(--hd-line);
	padding: 18px 18px 20px;
}

.hd-nav-admin-links-title {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hd-muted);
	margin: 0 0 8px;
}

.hd-nav-admin-link {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 7px 10px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: var(--hd-muted) !important;
	text-decoration: none !important;
	border-radius: var(--hd-radius-sm) !important;
	transition: background .15s, color .15s !important;
	line-height: 1.4 !important;
}

.hd-nav-admin-link:hover {
	background: var(--hd-bg) !important;
	color: var(--hd-blue) !important;
	text-decoration: none !important;
}

.hd-nav-admin-link svg {
	flex-shrink: 0;
	opacity: .7;
}

/* ============================================================
   DASHBOARD — ADMIN CONTEXT BANNER
   ============================================================ */
.hd-dashboard-admin-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--hd-admin-stripe);
	border: 1px solid var(--hd-admin-border);
	border-radius: var(--hd-radius-md);
	padding: 14px 18px;
	margin-bottom: 36px;
	font-size: 13.5px;
	color: var(--hd-admin-text);
}

.hd-dashboard-admin-banner svg {
	flex-shrink: 0;
	color: var(--hd-admin-border);
}

.hd-dashboard-admin-banner span {
	flex: 1;
}

.hd-dashboard-admin-banner a {
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	color: var(--hd-admin-text) !important;
	text-decoration: underline !important;
}

/* ============================================================
   DASHBOARD — GREETING + STAT CARDS
   (ported from the WPCode My Account restyle snippet)
   ============================================================ */
.hd-greeting {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 36px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--hd-line);
}

.hd-avatar {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	background: var(--hd-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 22px;
	user-select: none;
}

.hd-greeting h3 {
	margin: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	color: var(--hd-ink);
}

.hd-greeting p {
	margin: 4px 0 0;
	color: var(--hd-muted);
	font-size: 17px;
}

.hd-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.hd-card {
	display: block;
	padding: 28px;
	min-height: 140px;
	text-decoration: none !important;
	border: 1px solid var(--hd-line);
	border-radius: 14px;
	background: var(--hd-stat-bg);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hd-card:hover {
	border-color: var(--hd-blue);
	box-shadow: 0 6px 16px rgba(28, 84, 161, .1);
	transform: translateY(-2px);
	text-decoration: none !important;
}

.hd-card .hd-card-icon {
	display: block;
	width: 28px;
	height: 28px;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 28px 28px;
}

.hd-card-icon.orders {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.hd-card-icon.pin {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.hd-card .hd-card-label {
	display: block;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--hd-muted);
}

.hd-card .hd-card-value {
	display: block;
	margin-top: 2px;
	font-size: 22px;
	font-weight: 700;
	color: var(--hd-ink);
}

.woocommerce-account a:focus-visible,
.woocommerce-account button:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

/* ============================================================
   DASHBOARD — ADMIN BANNER SPACING
   ============================================================ */
.hd-dashboard-admin-banner+* {
	margin-top: 0;
}

/* ============================================================
   ORDER STATUS BADGES  (used in orders table + everywhere)
   ============================================================ */
.woocommerce-account .order-status,
.woocommerce-account .woocommerce-orders-table__cell-order-status mark,
.woocommerce-account mark.order-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--hd-bg);
	color: var(--hd-muted);
	border: 1.5px solid var(--hd-line);
}

/* Processing */
.woocommerce-account .order-status.status-processing,
.woocommerce-account mark.status-processing {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

/* Completed */
.woocommerce-account .order-status.status-completed,
.woocommerce-account mark.status-completed {
	background: var(--hd-forest-tint);
	color: var(--hd-forest);
	border-color: #a7d3b5;
}

/* On hold */
.woocommerce-account .order-status.status-on-hold,
.woocommerce-account mark.status-on-hold {
	background: #fffbeb;
	color: #92400e;
	border-color: #fde68a;
}

/* Pending */
.woocommerce-account .order-status.status-pending,
.woocommerce-account mark.status-pending {
	background: #f5f3ff;
	color: #4c1d95;
	border-color: #ddd6fe;
}

/* Cancelled */
.woocommerce-account .order-status.status-cancelled,
.woocommerce-account mark.status-cancelled {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

/* Refunded */
.woocommerce-account .order-status.status-refunded,
.woocommerce-account mark.status-refunded {
	background: #fff7ed;
	color: #9a3412;
	border-color: #fed7aa;
}

/* Ready for pickup (custom) */
.woocommerce-account .order-status.status-ready-for-pickup,
.woocommerce-account mark.status-ready-for-pickup {
	background: var(--hd-forest-tint);
	color: var(--hd-forest);
	border-color: #a7d3b5;
}

/* Collected (custom) */
.woocommerce-account .order-status.status-collected,
.woocommerce-account mark.status-collected {
	background: var(--hd-forest-tint);
	color: var(--hd-forest-dk);
	border-color: #6dbb87;
}

/* ============================================================
   ORDERS TABLE — column action buttons
   ============================================================ */
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button {
	padding: 7px 14px !important;
	font-size: 12px !important;
	border-radius: 999px !important;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.woocommerce-account .woocommerce-Message--info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-noreviews,
.woocommerce-account .wc-block-components-notice-banner {
	border-top: 0 !important;
	border-top-width: 0 !important;
	border-top-color: transparent !important;
	border-radius: var(--hd-radius-md);
	box-shadow: none;
}

.woocommerce-account .woocommerce-message::after,
.woocommerce-account .woocommerce-info::after,
.woocommerce-account .woocommerce-error::after {
	background: none !important;
	border: 0 !important;
	height: 0 !important;
}

/* Generic helper class used in other templates */
.hd-empty-state {
	text-align: center;
	padding: 56px 24px 48px;
}

.hd-empty-state-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--hd-line);
}

.hd-empty-state-icon svg {
	width: 56px;
	height: 56px;
}

.hd-empty-state-text {
	font-size: 15px;
	color: var(--hd-muted);
	margin: 0 0 24px;
}

.hd-empty-state-cta.button {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

/* ============================================================
   ACCOUNT DETAILS (Your data tab) — read-only info card
   ============================================================ */

/* The dark-green info card sitting at the top of the Your data tab */
.woocommerce-account .woocommerce-customer-details--account,
.woocommerce-account .woocommerce-EditAccountForm+.hd-account-info-card {
	background: var(--hd-forest);
	border-radius: var(--hd-radius-lg);
	padding: 32px 36px;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 28px;
}

/* Section divider labels inside the card */
.woocommerce-account .woocommerce-customer-details--account dt,
.woocommerce-account .woocommerce-customer-details--account th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
	margin-bottom: 2px;
}

.woocommerce-account .woocommerce-customer-details--account dd,
.woocommerce-account .woocommerce-customer-details--account td {
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	margin-bottom: 14px;
}

/* ============================================================
   SUBSCRIPTIONS TAB  — title & empty-state
   ============================================================ */
.woocommerce-account h2.entry-title {
	font-size: clamp(20px, 3vw, 26px);
}

/* "No subscriptions found" text */
.woocommerce-account p.woocommerce-no-subscriptions,
.woocommerce-account .woocommerce-subscriptions-not-found {
	color: var(--hd-muted);
	font-size: 15px;
}

/* ============================================================
   ADDRESS CARDS
   WooCommerce .col2-set clearfix ::before/::after become extra
   grid items unless disabled, which staggered the two cards.
   ============================================================ */
.woocommerce-MyAccount-navigation-link--downloads {
	display: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-MyAccount-content .woocommerce-Addresses::after,
.woocommerce-MyAccount-content .addresses::before,
.woocommerce-MyAccount-content .addresses::after,
.woocommerce-MyAccount-content .col2-set::before,
.woocommerce-MyAccount-content .col2-set::after {
	content: none !important;
	display: none !important;
}

.woocommerce-MyAccount-content .hd-addresses,
.woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-MyAccount-content .addresses {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 24px 0 0 !important;
	grid-template-columns: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.woocommerce-MyAccount-content .woocommerce-Addresses .col-2,
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .hd-address-card {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	clear: none !important;
	box-sizing: border-box;
}

.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .hd-address-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
	border: 1px solid var(--hd-line);
	border-radius: 14px;
	padding: 20px 22px;
	background: var(--hd-stat-bg);
}

.woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address header.title {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px;
	position: static !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Address h2,
.woocommerce-MyAccount-content .woocommerce-Address h3,
.woocommerce-MyAccount-content .addresses .title h2,
.woocommerce-MyAccount-content header.title h3 {
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--hd-ink) !important;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
	background: transparent !important;
}

.woocommerce-MyAccount-content .woocommerce-Address .edit,
.woocommerce-MyAccount-content .woocommerce-Address-title a,
.woocommerce-MyAccount-content a.hd-address-edit {
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: var(--hd-blue) !important;
	background: #fff !important;
	border: 1px solid var(--hd-line) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-indent: 0 !important;
}

.woocommerce-MyAccount-content a.hd-address-edit:hover,
.woocommerce-MyAccount-content .woocommerce-Address-title a:hover {
	background: var(--hd-blue) !important;
	border-color: var(--hd-blue) !important;
	color: #fff !important;
}

.woocommerce-MyAccount-content a.hd-address-edit svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* Fallback if the core WooCommerce edit link is still in the markup. */
.woocommerce-MyAccount-content .woocommerce-Address-title a.edit:not(.hd-address-edit) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C54A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

.woocommerce-MyAccount-content .woocommerce-Address address,
.woocommerce-MyAccount-content .woocommerce-Address p {
	display: block;
	margin: 0;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px;
	line-height: 1.7;
	color: var(--hd-muted);
	font-style: normal;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.hd-cards {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 640px) {
	.hd-nav-profile {
		padding: 16px;
	}

	.hd-dashboard-admin-banner {
		flex-wrap: wrap;
	}

	.hd-greeting {
		align-items: flex-start;
	}
}