/**
 * Minha Conta — layout ZHF (.zhf-account).
 * Escopo: só dentro de .zhf-account para não vazar no resto do tema.
 */

.zhf-account {
	--zhf-account-accent: #2f9e44;
	--zhf-account-accent-ink: #ffffff;
	--zhf-account-bg: #f3f4f6;
	--zhf-account-card: #ffffff;
	--zhf-account-border: #e5e7eb;
	--zhf-account-text: #1f2937;
	--zhf-account-muted: #6b7280;
	--zhf-account-radius: 12px;
	--zhf-account-sidebar-w: 260px;
	color: var(--zhf-account-text);
	background: var(--zhf-account-bg);
	margin: 0 calc(50% - 50vw);
	padding: 1.5rem max(1rem, calc(50vw - 640px)) 3rem;
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
}

.zhf-account *,
.zhf-account *::before,
.zhf-account *::after {
	box-sizing: border-box;
}

.zhf-account__layout {
	display: grid;
	grid-template-columns: var(--zhf-account-sidebar-w) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
}

.zhf-account-sidebar {
	position: sticky;
	top: 1rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/**
 * Shoptimizer (e temas similares) forçam float + width % em
 * .woocommerce-MyAccount-navigation / .woocommerce-MyAccount-content.
 * Dentro da coluna grid (~260px), 17.6% vira ~46px e o texto “MINHA CONTA”
 * empilha letra a letra. Neutralizar só dentro de .zhf-account.
 */
.zhf-account .woocommerce-MyAccount-navigation,
.zhf-account .zhf-account-nav {
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.zhf-account .woocommerce-MyAccount-content,
.zhf-account .zhf-account__main {
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding-top: 0;
}

/* Ícones ::before / borders do Shoptimizer — a sidebar ZHF já usa SVG próprio. */
.zhf-account .woocommerce-MyAccount-navigation ul li {
	border-bottom: 0;
	position: static;
}

.zhf-account .woocommerce-MyAccount-navigation ul li a::before {
	content: none !important;
	display: none !important;
	float: none !important;
	width: 0 !important;
	height: 0 !important;
	mask: none !important;
}

.zhf-account-nav-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--zhf-account-border);
	border-radius: var(--zhf-account-radius);
	background: var(--zhf-account-card);
	color: var(--zhf-account-text);
	font: inherit;
	cursor: pointer;
}

.zhf-account-nav {
	background: var(--zhf-account-card);
	border-radius: var(--zhf-account-radius);
	border: 1px solid var(--zhf-account-border);
	padding: 1.25rem 1rem 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.zhf-account-nav__eyebrow {
	margin: 0 0.75rem 0.85rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--zhf-account-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zhf-account-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zhf-account-nav li {
	margin: 0;
	border: 0;
	list-style: none;
}

/* Spec > Shoptimizer `.woocommerce-MyAccount-navigation ul li a` (display:block). */
.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li a,
.zhf-account .zhf-account-nav .zhf-account-nav__logout a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: 8px;
	color: var(--zhf-account-text);
	text-decoration: none;
	font-weight: 500;
	line-height: 1.25;
	background: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li a:hover,
.zhf-account .zhf-account-nav .zhf-account-nav__logout a:hover {
	background: #f3f4f6;
	color: var(--zhf-account-text);
}

.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li.is-active > a,
.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li a[aria-current="page"],
.zhf-account .zhf-account-nav .zhf-account-nav__logout a[aria-current="page"] {
	background: rgba(47, 158, 68, 0.12);
	color: var(--zhf-account-accent);
	font-weight: 600;
}

.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li.is-active > a:hover,
.zhf-account .zhf-account-nav.woocommerce-MyAccount-navigation ul li a[aria-current="page"]:hover {
	background: rgba(47, 158, 68, 0.16);
	color: var(--zhf-account-accent);
}

.zhf-account-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	line-height: 0;
	color: inherit;
}

.zhf-account-nav__icon svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.zhf-account-nav__label {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.zhf-account-nav__logout {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--zhf-account-border);
}

.zhf-account-nav__logout a {
	color: var(--zhf-account-muted);
}

.zhf-account__main {
	min-width: 0;
}

.zhf-account__main > .woocommerce-notices-wrapper,
.zhf-account__main > .wc-google-account-notice,
.zhf-account .woocommerce-message,
.zhf-account .woocommerce-info,
.zhf-account .woocommerce-error {
	margin-bottom: 1rem;
}

/* Aviso Google (wc-login-google) — fica no conteúdo, não na sidebar. */
.zhf-account__main > .wc-google-account-notice {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

.zhf-account .zhf-account-sidebar .wc-google-account-notice {
	display: none;
}

/* Google connection: não herdar o verde do submit no botão Desconectar. */
.zhf-account-form-card .wc-google-disconnect-button.button {
	background: #fff;
	border-color: #f1aeb5;
	color: #b42318;
}

.zhf-account-form-card .wc-google-disconnect-button.button:hover,
.zhf-account-form-card .wc-google-disconnect-button.button:focus {
	background: #fff5f5;
	border-color: #e35d6a;
	color: #912018;
	filter: none;
}

.zhf-account-card {
	background: var(--zhf-account-card);
	border: 1px solid var(--zhf-account-border);
	border-radius: var(--zhf-account-radius);
	padding: 1.25rem 1.35rem;
	margin: 0 0 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.zhf-account-card > h2:first-child,
.zhf-account-card .woocommerce-order-details__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.zhf-account-order-header {
	margin-bottom: 1rem;
}

.zhf-account-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: var(--zhf-account-muted);
}

.zhf-account-breadcrumb a {
	color: var(--zhf-account-muted);
	text-decoration: none;
}

.zhf-account-breadcrumb a:hover {
	color: var(--zhf-account-accent);
}

.zhf-account-breadcrumb__current {
	color: var(--zhf-account-text);
	font-weight: 600;
}

.zhf-account-order-header__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.zhf-account-order-header__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.zhf-account-order-header__title h1 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.zhf-account-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--zhf-status-fill, #e5e5e5);
	color: var(--zhf-status-ink, #555);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
}

.zhf-account-order-header__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.zhf-account-order-header__meta {
	margin: 0.5rem 0 0;
	color: var(--zhf-account-muted);
	font-size: 0.9rem;
}

.zhf-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.55rem 1rem;
	border-radius: 8px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}

/* Spec > Shoptimizer `.entry-content article a` (underline em links). */
body.woocommerce-account .zhf-account a.zhf-account-btn,
body.woocommerce-account .zhf-account a.zhf-account-btn:hover,
body.woocommerce-account .zhf-account a.zhf-account-btn:focus,
body.woocommerce-account .zhf-account a.zhf-account-btn:visited,
body.woocommerce-account .zhf-account a.zhf-account-btn:active {
	text-decoration: none;
	text-decoration-thickness: 0;
	text-underline-offset: unset;
}

.zhf-account-btn--primary {
	background: var(--zhf-account-accent);
	border-color: var(--zhf-account-accent);
	color: var(--zhf-account-accent-ink);
}

.zhf-account-btn--primary:hover {
	filter: brightness(0.95);
	color: var(--zhf-account-accent-ink);
}

.zhf-account-btn--ghost {
	background: #fff;
	border-color: var(--zhf-account-border);
	color: var(--zhf-account-text);
}

.zhf-account-btn--ghost:hover {
	border-color: #cbd5e1;
	color: var(--zhf-account-text);
}

.zhf-account-btn svg {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
}

.zhf-account-btn--icon {
	padding: 0.55rem 0.7rem;
	min-width: 2.55rem;
}

.zhf-account-tracking .zhf-account-table th:last-child,
.zhf-account-tracking .zhf-account-table td:last-child,
.zhf-account-nfe .zhf-account-table th:last-child,
.zhf-account-nfe .zhf-account-table td:last-child {
	text-align: right;
	white-space: nowrap;
	width: 1%;
}

.zhf-account-tracking__chave,
.zhf-account-nfe__chave {
	display: block;
	max-width: 36rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zhf-account-stepper__list {
	--zhf-stepper-dot: 22px;
	display: flex;
	align-items: flex-start;
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	gap: 0;
	counter-reset: none;
}

.zhf-account-stepper__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	text-align: center;
	color: var(--zhf-account-muted);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.25;
}

/* Linha do centro desta bolinha até o centro da próxima (sem gap). */
.zhf-account-stepper__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--zhf-stepper-dot) / 2);
	left: 50%;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	background: var(--zhf-account-border);
	z-index: 0;
	pointer-events: none;
}

.zhf-account-stepper__item--done:not(:last-child)::after,
.zhf-account-stepper__item--current:not(:last-child)::after {
	background: var(--zhf-account-accent);
}

.zhf-account-stepper__dot {
	display: block;
	width: var(--zhf-stepper-dot);
	height: var(--zhf-stepper-dot);
	border-radius: 50%;
	border: 2px solid var(--zhf-account-border);
	background: #fff;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	box-sizing: border-box;
}

.zhf-account-stepper__label {
	display: block;
	width: 100%;
	padding: 0 0.25rem;
	text-align: center;
}

.zhf-account-stepper__item--done .zhf-account-stepper__dot {
	background: var(--zhf-account-accent);
	border-color: var(--zhf-account-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

.zhf-account-stepper__item--current .zhf-account-stepper__dot {
	background: var(--zhf-account-accent);
	border-color: var(--zhf-account-accent);
}

.zhf-account-stepper__item--current,
.zhf-account-stepper__item--done {
	color: var(--zhf-account-text);
	font-weight: 600;
}

.zhf-account-stepper-notice p {
	margin: 0;
	color: var(--zhf-account-muted);
}

.zhf-account-table {
	width: 100%;
	border-collapse: collapse;
}

.zhf-account-table th,
.zhf-account-table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--zhf-account-border);
	text-align: left;
	vertical-align: top;
}

.zhf-account-table thead th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--zhf-account-muted);
	font-weight: 600;
}

.zhf-account-table tfoot th {
	font-weight: 600;
}

.zhf-account-order-item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.zhf-account-order-item__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--zhf-account-border);
}

.zhf-account-order-item__body a {
	color: var(--zhf-account-text);
	font-weight: 600;
	text-decoration: none;
}

.zhf-account-order-item__body a:hover {
	color: var(--zhf-account-accent);
}

.zhf-account-addresses__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.zhf-account-addresses address {
	font-style: normal;
	line-height: 1.5;
	margin: 0;
}

.zhf-account-addresses__meta {
	margin: 0.35rem 0 0;
	color: var(--zhf-account-muted);
	font-size: 0.9rem;
}

.zhf-account-orders-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zhf-account-orders-list__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--zhf-account-border);
	align-items: center;
}

.zhf-account-orders-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.zhf-account-orders-list__item:first-child {
	padding-top: 0;
}

.zhf-account-orders-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	align-items: center;
	font-size: 0.9rem;
	color: var(--zhf-account-muted);
}

.zhf-account-orders-list__meta a {
	color: var(--zhf-account-text);
	font-weight: 700;
	text-decoration: none;
}

.zhf-account-wishlist .zhf-account-order-item {
	min-width: 0;
}

.zhf-account-wishlist__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	margin-top: 0.3rem;
}

.zhf-account-wishlist__price {
	color: var(--zhf-account-text);
	font-weight: 600;
}

.zhf-account-wishlist__price del {
	color: var(--zhf-account-muted);
	font-weight: 500;
	margin-right: 0.35rem;
}

.zhf-account-wishlist-remove {
	display: inline-flex;
	margin: 0;
}

a.zhf-account-order-item__thumb {
	text-decoration: none;
	line-height: 0;
}

.zhf-account-wishlist .woocommerce-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.zhf-account-dashboard-hello {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.zhf-account-dashboard-desc {
	margin: 0 0 1rem;
	color: var(--zhf-account-muted);
}

.zhf-account-dashboard-shortcuts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

.zhf-account-dashboard-shortcuts a {
	display: block;
	padding: 1rem;
	border: 1px solid var(--zhf-account-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--zhf-account-text);
	font-weight: 600;
	background: #fafafa;
}

.zhf-account-dashboard-shortcuts a:hover {
	border-color: var(--zhf-account-accent);
	color: var(--zhf-account-accent);
}

/*
 * Grid do edit-address: 6 colunas no desktop.
 * Spec > floats do Shoptimizer/WC (.form-row-first/last).
 */
body.woocommerce-account .zhf-account .zhf-account-form-card .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1rem;
	align-items: start;
}

body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row {
	margin: 0 0 0.85rem;
	padding: 0;
	width: 100%;
	max-width: 100%;
	float: none !important;
	clear: none !important;
	box-sizing: border-box;
	grid-column: 1 / -1;
}

/* País, endereço, complemento e demais wide. */
body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-wide {
	grid-column: 1 / -1;
}

/* Telefone | E-mail (e pares half genéricos). */
body.woocommerce-account .zhf-account .zhf-account-form-card form .zhf-address-field--half,
body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-first:not(.zhf-address-field--third):not(.form-row-wide),
body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-last:not(.zhf-address-field--third):not(.form-row-wide) {
	grid-column: span 3;
}

/* Cidade | Estado | CEP. */
body.woocommerce-account .zhf-account .zhf-account-form-card form .zhf-address-field--third {
	grid-column: span 2;
}

.zhf-account-form-card label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.zhf-account-form-card .input-text,
.zhf-account-form-card select,
.zhf-account-form-card textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--zhf-account-border);
	border-radius: 8px;
	padding: 0.65rem 0.75rem;
	background: #fff;
}

/*
 * “Alterar senha”: card branco (.zhf-account-card); fieldset sem moldura.
 * Spec > Shoptimizer `.woocommerce-account fieldset { padding: 0 }`.
 * Card Google (wc-login-google) fica fora e mantém a própria borda.
 */
body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-card,
body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-password-block,
body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-password-fieldset {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Só “Alterar senha” — não sobrescrever .wc-google-connection-box. */
body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-password-fieldset {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	box-shadow: none;
}

body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-password-fieldset > legend {
	padding: 0;
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	float: none;
	width: auto;
}

/* WooCommerce .show-password-input — centrar o olho no campo. */
body.woocommerce-account .zhf-account .zhf-account-form-card .password-input {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-account .zhf-account .zhf-account-form-card .password-input .input-text {
	padding-right: 2.75rem;
}

body.woocommerce-account .zhf-account .zhf-account-form-card .show-password-input {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 0;
	color: var(--zhf-account-muted);
}

body.woocommerce-account .zhf-account .zhf-account-form-card .show-password-input:hover,
body.woocommerce-account .zhf-account .zhf-account-form-card .show-password-input:focus {
	color: var(--zhf-account-text);
}

body.woocommerce-account .zhf-account .zhf-account-form-card .password-input input::-ms-reveal {
	display: none;
}

/* Ações por bloco (Salvar dados / Alterar senha). */
body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-form-actions {
	margin: 1.25rem 0 0;
}

body.woocommerce-account .zhf-account .zhf-account-form-card .zhf-account-form-actions .zhf-account-btn {
	min-height: 2.5rem;
}

.zhf-account-form-card .button,
.zhf-account-form-card button[type="submit"] {
	background: var(--zhf-account-accent);
	border-color: var(--zhf-account-accent);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	padding: 0.65rem 1.15rem;
}

.zhf-account-form-card .zhf-account-btn.zhf-account-btn--primary {
	background: var(--zhf-account-accent);
	border-color: var(--zhf-account-accent);
	color: var(--zhf-account-accent-ink, #fff);
}

/* Google pill: não herdar o verde do submit da conta. */
.zhf-account-form-card .wc-google-login-button.button,
.zhf-account-form-card a.wc-google-login-button {
	background: #fff !important;
	border: 1px solid #e4e4e4;
	color: #4c5b61 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	border-radius: 100px;
	font-weight: 400;
	filter: none;
}

.zhf-account-form-card .wc-google-login-button.button:hover,
.zhf-account-form-card .wc-google-login-button.button:focus,
.zhf-account-form-card a.wc-google-login-button:hover,
.zhf-account-form-card a.wc-google-login-button:focus {
	background: #f7f8f8 !important;
	border-color: #c4c6c9;
	color: #202124 !important;
	filter: none;
}

/*
 * Login / registro / lost-password (guest): card central + abas.
 */
.zhf-account--auth {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	min-height: 60vh;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.zhf-account-auth {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

.zhf-account-auth--tabs {
	max-width: 440px;
}

.zhf-account-auth-card {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.zhf-account-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: 0;
	padding: 0.35rem;
	border-bottom: 1px solid var(--zhf-account-border);
	background: #f9fafb;
}

.zhf-account-auth-tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--zhf-account-muted);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.zhf-account-auth-tab:hover {
	color: var(--zhf-account-text);
	background: rgba(255, 255, 255, 0.7);
}

.zhf-account-auth-tab.is-active,
.zhf-account-auth-tab[aria-selected="true"] {
	background: #fff;
	color: var(--zhf-account-accent);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.zhf-account-auth-tab:focus-visible {
	outline: 2px solid var(--zhf-account-accent);
	outline-offset: 2px;
}

.zhf-account-auth-panel {
	padding: 1.35rem 1.35rem 1.5rem;
}

.zhf-account-auth-panel[hidden] {
	display: none !important;
}

.zhf-account-auth-panel > h2:first-child {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.zhf-account-auth .zhf-account-form-card .form-row,
.zhf-account-auth .zhf-account-form-card .woocommerce-form-row {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	clear: none !important;
	margin: 0 0 0.85rem;
	padding: 0;
}

.zhf-account-auth .zhf-account-form-card .input-text,
.zhf-account-auth .zhf-account-form-card input[type="text"],
.zhf-account-auth .zhf-account-form-card input[type="email"],
.zhf-account-auth .zhf-account-form-card input[type="password"],
.zhf-account-auth .zhf-account-form-card select,
.zhf-account-auth .zhf-account-form-card textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--zhf-account-border);
	border-radius: 8px;
	padding: 0.65rem 0.75rem;
	background: #fff;
	color: var(--zhf-account-text);
	box-shadow: none;
	appearance: none;
}

.zhf-account-auth .zhf-account-form-card .input-text:focus,
.zhf-account-auth .zhf-account-form-card input[type="text"]:focus,
.zhf-account-auth .zhf-account-form-card input[type="email"]:focus,
.zhf-account-auth .zhf-account-form-card input[type="password"]:focus {
	border-color: var(--zhf-account-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
	background: #fff;
}

/* Autofill Chrome (fundo azul) — mesma face nos dois painéis. */
.zhf-account-auth .zhf-account-form-card input.input-text:-webkit-autofill,
.zhf-account-auth .zhf-account-form-card input.input-text:-webkit-autofill:hover,
.zhf-account-auth .zhf-account-form-card input.input-text:-webkit-autofill:focus,
.zhf-account-auth .zhf-account-form-card input[type="email"]:-webkit-autofill,
.zhf-account-auth .zhf-account-form-card input[type="password"]:-webkit-autofill,
.zhf-account-auth .zhf-account-form-card input[type="text"]:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: var(--zhf-account-text);
	caret-color: var(--zhf-account-text);
	border: 1px solid var(--zhf-account-border);
	transition: background-color 99999s ease-out;
}

.zhf-account-auth .zhf-account-login-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.zhf-account-auth .zhf-account-login-actions .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-weight: 500;
	cursor: pointer;
}

.zhf-account-auth .zhf-account-login-actions .woocommerce-form-login__submit {
	width: auto;
	min-width: 7.5rem;
	margin: 0;
}

body.woocommerce-account .zhf-account-auth .zhf-account-form-card .woocommerce-form-register__submit.button,
body.woocommerce-account .zhf-account-auth .zhf-account-form-card button.woocommerce-form-register__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	float: none;
	box-sizing: border-box;
}

.zhf-account-auth .lost_password {
	margin: 0 0 0.5rem;
}

.zhf-account-auth .lost_password a {
	color: var(--zhf-account-muted);
	font-size: 0.9rem;
	text-decoration: none;
}

.zhf-account-auth .lost_password a:hover {
	color: var(--zhf-account-accent);
}

.zhf-account-auth .wc-google-login-separator {
	margin: 1rem 0 0.85rem;
	text-align: center;
	color: var(--zhf-account-muted);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.zhf-account-auth .wc-google-login-button,
.zhf-account-auth a.wc-google-login-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	float: none !important;
	box-sizing: border-box;
}

/* H1 do tema na página guest — abas já rotulam Entrar / Criar conta. */
body.woocommerce-account:not(.logged-in) .entry-header {
	text-align: center;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

body.woocommerce-account:not(.logged-in) .entry-header .entry-title,
body.woocommerce-account:not(.logged-in) h1.entry-title {
	margin: 0.75rem 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--zhf-account-muted, #6b7280);
	letter-spacing: 0.02em;
}

.zhf-account-address-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	width: 100%;
}

/* Spec > Shoptimizer/WC .col-1/.woocommerce-Address em 48%. */
.zhf-account-address-cards .zhf-account-card.woocommerce-Address {
	width: 100%;
	max-width: 100%;
	float: none;
	clear: none;
}

.zhf-account-address-cards .zhf-account-card header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.zhf-account-address-cards address.zhf-account-address-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0;
	margin: 0;
	font-style: normal;
	line-height: 1.5;
}

.zhf-account-address-cards address.zhf-account-address-line span:not(:last-child)::after {
	content: "·";
	margin-left: 0.55rem;
	margin-right: 0.55rem;
	color: var(--zhf-account-muted);
}

.zhf-account-address-cards .zhf-account-card h2 {
	margin: 0;
}

.zhf-account-address-cards .edit {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--zhf-account-accent);
	text-decoration: none;
}

/* Shoptimizer leftovers inside account */
.zhf-account .woocommerce-MyAccount-navigation ul::before,
.zhf-account .woocommerce-MyAccount-navigation ul::after {
	display: none;
}

.zhf-account .entry-header,
.zhf-account + .entry-header {
	/* no-op safety */
}

@media (max-width: 900px) {
	.zhf-account__layout {
		grid-template-columns: 1fr;
	}

	.zhf-account-sidebar {
		position: static;
	}

	.zhf-account-nav-toggle {
		display: flex;
	}

	.zhf-account-nav {
		display: none;
		margin-top: 0.75rem;
	}

	.zhf-account--nav-open .zhf-account-nav {
		display: block;
	}

	.zhf-account-stepper__list {
		flex-wrap: wrap;
		row-gap: 1rem;
	}

	.zhf-account-stepper__item {
		flex: 1 1 45%;
	}

	.zhf-account-stepper__item:not(:last-child)::after {
		display: none;
	}

	.zhf-account-addresses__grid,
	.zhf-account-dashboard-shortcuts {
		grid-template-columns: 1fr;
	}

	.zhf-account--auth {
		min-height: 0;
		padding-top: 1rem;
		padding-bottom: 2rem;
	}

	.zhf-account-auth,
	.zhf-account-auth--tabs {
		max-width: 100%;
	}

	.zhf-account-auth-panel {
		padding: 1.15rem 1rem 1.35rem;
	}

	.zhf-account-auth .zhf-account-login-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.zhf-account-auth .zhf-account-login-actions .woocommerce-form-login__submit {
		width: 100%;
	}

	.zhf-account-orders-list__item {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	body.woocommerce-account .zhf-account .zhf-account-form-card .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row,
	body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-first,
	body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-last,
	body.woocommerce-account .zhf-account .zhf-account-form-card form .form-row-wide,
	body.woocommerce-account .zhf-account .zhf-account-form-card form .zhf-address-field--half,
	body.woocommerce-account .zhf-account .zhf-account-form-card form .zhf-address-field--third {
		grid-column: 1 / -1;
	}
}

