/*
 * Shop · My account (no Figma design): built from the shop's tokens and patterns
 * (checkout inputs, cart rows, thank-you cards). Woo's markup is kept; hs-* classes carry the layout.
 * Notices are toasts (toast.css); inline empty states / confirmation notices are styled here.
 * Tokens: neutral/500 #e6e2d9 (rules, borders), stone #8a877f (muted text).
 */

.hs-shop-main--account {
	--hs-rule: #e6e2d9;
	color: var(--hs-navy);
}

.hs-shop-main > * {
	margin-block: 0;
}

/* ---------- Title (same as checkout K01) ---------- */

.hs-shop-main--account .hs-shop-head {
	padding: 48px calc(var(--hs-gutter) + 24px);
}

.hs-shop-main--account .hs-shop-title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 72px;
	line-height: 1;
	text-box: trim-both cap alphabetic;
	color: var(--hs-navy);
}

/* ---------- Frame ---------- */

.hs-shop-main--account .woocommerce {
	box-sizing: border-box;
	max-width: var(--hs-max);
	margin-inline: auto;
	padding: 0 calc(var(--hs-gutter) + 24px) 96px;
}

:where(.hs-shop-main--account a) {
	color: inherit;
}

/* Woo adds .wp-element-button; theme.json's `:root :where(.wp-element-button)` ties with .hs-btn--outline. */
.hs-shop-main--account .hs-btn--outline:not(:hover) {
	background: transparent;
	color: var(--hs-navy);
}

/* ---------- Shared inputs (checkout field look) ---------- */

.hs-shop-main--account .woocommerce form .form-row {
	gap: 7px;
}

.hs-shop-main--account .woocommerce form .form-row label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.hs-shop-main--account .woocommerce form .form-row .optional {
	font-weight: 400;
	color: var(--wp--preset--color--stone);
}

.hs-shop-main--account .woocommerce-input-wrapper {
	display: block;
}

.hs-shop-main--account .woocommerce form .input-text,
.hs-shop-main--account .woocommerce form .form-row select,
.hs-shop-main--account .select2-container .select2-selection--single {
	min-height: 56px;
	padding: 0 18px;
	border: 1.5px solid var(--hs-rule);
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.5;
}

.hs-shop-main--account .woocommerce form .form-row select {
	appearance: none;
	padding-right: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230e2a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}

.hs-shop-main--account .woocommerce form .input-text::placeholder {
	color: var(--wp--preset--color--stone);
	opacity: 1;
}

.hs-shop-main--account .woocommerce form .input-text:focus,
.hs-shop-main--account .woocommerce form .form-row select:focus {
	border-color: var(--hs-navy);
	outline: 3px solid var(--wp--preset--color--sky-300);
	outline-offset: 0;
}

.hs-shop-main--account .select2-container {
	width: 100% !important;
}

.hs-shop-main--account .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 56px;
	background: #fff;
}

.hs-shop-main--account .select2-container .select2-selection__rendered {
	padding: 0;
	line-height: 1.5;
	color: var(--hs-navy);
}

.hs-shop-main--account .select2-container .select2-selection__arrow {
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
}

/* Single allowed country: Woo prints the name + a hidden input; nothing to choose. */
.hs-account-form__fields > .form-row:has(input[type="hidden"].country_to_state),
.hs-account-form__fields > .form-row[style*="display: none"] {
	display: none !important;
}

.hs-shop-main--account .woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	font-size: 15px !important;
	font-weight: 400 !important;
	cursor: pointer;
}

.hs-shop-main--account input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--hs-navy);
}

.hs-shop-main--account .hs-btn {
	min-height: 56px;
	padding-block: 0;
	padding-inline: 28px;
	border-width: 2px;
	border-style: solid;
}

.hs-shop-main--account .clear {
	display: none;
}

/* Woo's show-password toggle (woocommerce.js wraps the input in span.password-input). */
.hs-shop-main--account .password-input {
	position: relative;
	display: block;
}

.hs-shop-main--account .password-input .input-text {
	padding-right: 56px;
}

.hs-shop-main--account .show-password-input {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%230e2a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
	cursor: pointer;
	transform: translateY(-50%);
}

.hs-shop-main--account .show-password-input.display-password {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%230e2a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}

.hs-shop-main--account .show-password-input:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
}

/* ---------- Logged out: login + register cards, lost/reset password ---------- */

.hs-account-auth {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.hs-account-auth--single {
	grid-template-columns: minmax(0, 640px);
}

.hs-account-auth .hs-account-auth__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	float: none;
	width: auto;
	box-sizing: border-box;
	padding: 48px;
	border-radius: var(--hs-radius-md);
	background: var(--hs-cream);
}

.hs-account-auth__card--register {
	background: var(--wp--preset--color--sky-100) !important;
}

.hs-account-auth__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.14;
}

.hs-account-auth__lead,
.hs-account-auth__note {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.hs-account-auth__note {
	font-size: 14px;
	color: var(--wp--preset--color--stone);
}

.hs-account-auth__form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 20px;
	margin: 16px 0 0;
}

.hs-account-auth__form > p:not(.form-row) {
	margin: 0;
}

.hs-account-auth__actions {
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px !important;
	margin-top: auto !important;
	padding-top: 8px !important;
}

.hs-account-auth__card--register .hs-account-auth__actions {
	justify-content: flex-start;
}

.hs-account-auth__link {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
}

.hs-account-auth__link a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hs-account-auth .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--stone);
}

.hs-account-auth .woocommerce-privacy-policy-text a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Reset password: two fields stacked in one card. */
.hs-account-auth .lost_reset_password .form-row-first,
.hs-account-auth .lost_reset_password .form-row-last {
	width: auto;
	float: none;
}

/* Lost-password confirmation: Woo's inline notice inside the card. */
.hs-account-auth__card > .woocommerce-message,
.hs-account-auth__card > .woocommerce-info {
	margin: 0;
	border-radius: 14px;
	font-weight: 500;
}

/* ---------- One card at a time: Log in ⇄ Create an account ---------- */

.hs-account-auth--switch {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

.hs-account-auth .hs-account-auth__card[hidden] {
	display: none;
}

.hs-account-auth__switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 8px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--hs-rule);
	font-size: 16px;
}

/* Buttons: form submits hover pink; the Log in ⇄ Create an account switch is pink, navy on hover. */
.hs-account-auth {
	--hs-btn-hover: var(--wp--preset--color--lilac-500);
}

.hs-shop-main--account .hs-account-auth__switch .hs-btn--outline:not(:hover) {
	background: var(--wp--preset--color--lilac-500);
	border-color: var(--wp--preset--color--lilac-500);
	color: var(--hs-navy);
}

.hs-shop-main--account .hs-account-auth__switch .hs-btn--outline:hover {
	background: var(--hs-navy);
	border-color: var(--hs-navy);
	color: #fff;
}

/* ---------- Registration (inc/account-register.php, inc/tax-exemption.php) ---------- */

/* The register card is much taller than the login card: keep each at its own height. */
.hs-account-auth:not(.hs-account-auth--single) {
	align-items: start;
}

.hs-account-auth__eyebrow {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hs-account-auth__cda {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hs-account-auth__cda img {
	flex: none;
	width: 110px;
	height: auto;
}

.hs-account-auth__cda p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.hs-account-auth__form--register {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.hs-account-auth__form--register > *,
.hs-tax-exempt,
.hs-tax-exempt__fields {
	grid-column: 1 / -1;
	min-width: 0;
}

.hs-account-auth__form--register .form-row {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.hs-account-auth__form--register > .form-row-first,
.hs-account-auth__form--register > .form-row-last,
.hs-tax-exempt__fields > .form-row-first,
.hs-tax-exempt__fields > .form-row-last {
	grid-column: auto;
}

.hs-account-auth__section {
	margin: 12px 0 0;
	padding: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.2;
}

.hs-account-auth__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hs-tax-exempt {
	margin: 0;
	padding: 0;
	border: 0;
}

.hs-tax-exempt,
.hs-tax-exempt__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.hs-tax-exempt__fields[hidden] {
	display: none;
}

.hs-tax-exempt > legend {
	grid-column: 1 / -1;
	float: left; /* Lets the legend sit in the grid. */
	width: 100%;
}

.hs-tax-exempt > .form-row {
	grid-column: 1 / -1;
}

.hs-shop-main--account .woocommerce form .hs-tax-exempt select[multiple] {
	min-height: 168px;
	padding: 8px 12px;
	background-image: none;
}

.hs-tax-exempt__hint {
	font-size: 13px;
	color: var(--wp--preset--color--stone);
}

/* My Account → Tax exemption */
.hs-tax-exempt-account {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 720px;
}

.hs-tax-exempt-account > p,
.hs-tax-exempt-account .woocommerce-info {
	margin: 0;
}

.hs-tax-exempt-account__summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 24px;
	margin: 0;
}

.hs-tax-exempt-account__summary dt {
	font-weight: 600;
}

.hs-tax-exempt-account__summary dd {
	margin: 0;
}

.hs-tax-exempt-account__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hs-tax-exempt-account__form .form-row {
	float: none;
	width: auto;
	margin: 0;
}

@media (max-width: 767px) {
	.hs-account-auth__form--register,
	.hs-tax-exempt,
	.hs-tax-exempt__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.hs-account-auth__form--register > .form-row-first,
	.hs-account-auth__form--register > .form-row-last,
	.hs-tax-exempt__fields > .form-row-first,
	.hs-tax-exempt__fields > .form-row-last {
		grid-column: 1 / -1;
	}
}

/* ---------- Logged in: navigation | content ---------- */

.hs-account {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.hs-account-nav {
	position: sticky;
	top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
	float: none;
	width: auto;
}

.hs-account-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 16px;
	border-radius: 28px;
	background: var(--hs-cream);
	list-style: none;
}

.hs-account-nav__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hs-account-nav__link:hover {
	background: #fff;
}

.hs-account-nav__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 2px;
}

.hs-account-nav__item.is-active .hs-account-nav__link {
	background: var(--hs-navy);
	color: #fff;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1.5px solid var(--hs-rule);
}

.woocommerce-MyAccount-navigation-link--customer-logout .hs-account-nav__link {
	color: var(--wp--preset--color--stone);
}

.woocommerce-MyAccount-navigation-link--customer-logout .hs-account-nav__link:hover {
	color: var(--hs-navy);
}

.hs-account__content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	float: none;
	width: auto;
	min-width: 0;
}

.hs-account__content > p,
.hs-account__content > h2 {
	margin: 0;
}

.hs-account-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hs-account-head__title,
.hs-account__content h2.hs-account-head__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.14;
}

.hs-account-head__lead {
	max-width: 720px;
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.hs-account-head__lead a,
.hs-account-head__meta a {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hs-account-head__meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--stone);
}

.hs-account-head__meta a {
	color: var(--hs-navy);
}

/* ---------- Dashboard ---------- */

.hs-account-dashboard {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.hs-account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Title / text / meta rows line up across the cards (subgrid), so a title that wraps to two lines doesn't push
   its card's text below its neighbours', and the meta line sits on one baseline at the bottom. */
.hs-account-card {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0;
}

.hs-account-card__link {
	position: relative;
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 10px;
	box-sizing: border-box;
	height: 100%;
	padding: 28px 28px 26px;
	border-radius: 28px;
	background: var(--hs-cream);
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hs-account-card__link:hover {
	background: var(--tone-100);
}

.hs-account-card__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 3px;
}

.hs-account-card__title {
	align-self: start;
	min-height: 44px; /* the arrow's height: text starts below the arrow even under a one-line title */
	padding-right: 56px;
	font-family: var(--hs-serif);
	font-size: 28px;
	line-height: 1.15;
}

.hs-account-card__text {
	align-self: start;
	font-size: 15px;
	line-height: 1.5;
	opacity: 0.75;
}

.hs-account-card__meta {
	align-self: end;
	padding-top: 20px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-account-card__arrow {
	position: absolute;
	top: 24px;
	right: 24px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tone-500);
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.hs-account-card__link:hover .hs-account-card__arrow {
	transform: translateX(3px);
}

/* ---------- Status pill (orders table + view order) ---------- */

.hs-status--pending,
.hs-status--on-hold {
	--hs-status-bg: var(--wp--preset--color--lemon-300);
}

.hs-status--processing {
	--hs-status-bg: var(--wp--preset--color--sky-300);
}

.hs-status--completed {
	--hs-status-bg: var(--wp--preset--color--green-300);
}

.hs-status--cancelled,
.hs-status--failed,
.hs-status--refunded {
	--hs-status-bg: var(--wp--preset--color--lilac-100);
}

.hs-status,
.hs-account-order-summary mark.order-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 100px;
	background: var(--hs-status-bg, var(--hs-cream));
	color: var(--hs-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

/* ---------- Orders (rows like the cart) ---------- */

.hs-orders-table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}

.hs-orders-table thead th {
	padding: 0 16px 14px 0;
	border-bottom: 1.5px solid var(--hs-rule);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	color: var(--wp--preset--color--stone);
}

.hs-orders-table tbody th,
.hs-orders-table td {
	padding: 24px 16px 24px 0;
	border-bottom: 1.5px solid var(--hs-rule);
	font-weight: 400;
	text-align: left;
	vertical-align: middle;
}

.hs-orders-table .woocommerce-orders-table__cell-order-actions,
.hs-orders-table .woocommerce-orders-table__header-order-actions {
	padding-right: 0;
	text-align: right;
}

.hs-orders-table__number {
	font-family: var(--hs-serif);
	font-size: 28px;
	line-height: 1.2;
	text-decoration: none;
}

.hs-orders-table__number:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.hs-orders-table .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
	font-weight: 600;
}

.woocommerce-orders-table__cell-order-actions {
	white-space: nowrap;
}

.hs-orders-table__action + .hs-orders-table__action {
	margin-left: 8px;
}

.hs-shop-main--account .hs-orders-table__action {
	min-height: 44px;
	padding-inline: 20px;
	font-size: 14px;
}

.hs-account-pagination {
	display: flex;
	gap: 12px;
}

/* ---------- Inline Woo notices in the content (e.g. "Confirm your email address…") ---------- */

.hs-account__content > .wc-block-components-notice-banner,
.hs-account__content > .woocommerce-info,
.hs-account__content > .woocommerce-message,
.hs-account-auth__card > .wc-block-components-notice-banner {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 18px 24px;
	border: 0;
	border-radius: 20px;
	background: var(--wp--preset--color--sky-100);
	color: var(--hs-navy);
	font-size: 15px;
	line-height: 1.5;
}

/* Woo focuses the banner (tabindex=-1) for screen readers; it isn't interactive, so no ring. */
:is(.hs-account__content, .hs-account-auth__card) > .wc-block-components-notice-banner:focus {
	outline: none;
}

:is(.hs-account__content, .hs-account-auth__card) > .wc-block-components-notice-banner.is-success {
	background: var(--wp--preset--color--green-100);
}

:is(.hs-account__content, .hs-account-auth__card) > .wc-block-components-notice-banner.is-success > svg {
	background: var(--wp--preset--color--green-500);
}

:is(.hs-account__content, .hs-account-auth__card) > .wc-block-components-notice-banner > svg {
	flex: none;
	width: 24px;
	height: 24px;
	padding: 2px;
	border-radius: 50%;
	background: var(--wp--preset--color--sky-500);
	fill: var(--hs-navy);
}

:is(.hs-account__content, .hs-account-auth__card) > .wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	display: flex;
	flex: 1 1 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	padding-top: 1px;
	gap: 8px 24px;
	color: inherit;
}

/* The message as one paragraph (assets/js/toast.js wraps it), the action link beside it. */
:is(.hs-account__content, .hs-account-auth__card) .hs-notice__text {
	flex: 1 1 16em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.hs-account__content > .wc-block-components-notice-banner .wc-forward {
	order: 2;
	float: none !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--hs-navy) !important;
	font-weight: 600;
	opacity: 1 !important;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}

/* ---------- Empty states (orders, downloads) ---------- */

.hs-account-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 48px;
	border-radius: 28px;
	background: var(--hs-cream);
}

.hs-account-empty__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.2;
}

/* Woo 11 prints block notice banners here (wc_print_notice); classic .woocommerce-info as fallback. */
.hs-account-empty > .wc-block-components-notice-banner {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hs-navy);
	font-size: 16px;
	line-height: 1.5;
}

.hs-account-empty > .wc-block-components-notice-banner:focus {
	outline: none;
}

.hs-account-empty > .wc-block-components-notice-banner > svg {
	display: none;
}

.hs-account-empty .wc-block-components-notice-banner__content {
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.hs-account-empty .wc-block-components-notice-banner__content .wc-forward {
	order: 2;
	display: inline-flex;
	align-items: center;
	float: none !important;
	min-height: 56px;
	margin: 0 !important;
	padding: 0 28px !important;
	border: 2px solid var(--hs-navy) !important;
	border-radius: var(--hs-radius-sm) !important;
	background: var(--hs-navy) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.03em;
	opacity: 1 !important;
	text-decoration: none;
}

.hs-account-empty .wc-block-components-notice-banner__content .wc-forward:hover {
	background: #1b3d7a !important;
	border-color: #1b3d7a !important;
}

.hs-account-empty > .woocommerce-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	padding: 0;
	background: none;
	font-size: 16px;
}

.hs-account-empty > .woocommerce-info .button {
	order: 0;
	min-height: 56px;
	padding: 0 28px;
	border: 2px solid var(--hs-navy);
	border-radius: var(--hs-radius-sm);
	background: var(--hs-navy);
	color: #fff;
	text-decoration: none;
}

.hs-account-empty > .woocommerce-info .button:hover {
	background: #1b3d7a;
	border-color: #1b3d7a;
}

/* ---------- View order (order details as on the thank-you page) ---------- */

.hs-account-order-summary {
	font-size: 18px;
	line-height: 1.6;
}

.hs-account-order-summary mark {
	background: none;
	color: inherit;
	font-weight: 600;
}

.hs-account__content .woocommerce-order-details,
.hs-account__content .woocommerce-customer-details,
.hs-account-notes {
	margin: 0;
	padding: 40px;
	border-radius: var(--hs-radius-md);
	background: var(--hs-cream);
}

.hs-account__content .woocommerce-customer-details {
	margin-top: -16px; /* 24px between the two cards inside the 40px flow. */
}

.hs-account__content .woocommerce-order-details__title,
.hs-account__content .woocommerce-column__title,
.hs-account-notes__title {
	margin: 0 0 20px;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.2;
}

.hs-account__content .woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}

.hs-account__content .woocommerce-table--order-details th,
.hs-account__content .woocommerce-table--order-details td {
	padding: 12px 0;
	border-bottom: 1.5px solid var(--hs-rule);
	font-weight: 400;
	text-align: left;
	vertical-align: top;
}

.hs-account__content .woocommerce-table--order-details .product-total,
.hs-account__content .woocommerce-table--order-details tfoot td {
	text-align: right;
}

.hs-account__content .woocommerce-table--order-details :is(td, th) + td {
	padding-left: 16px;
}

@media (min-width: 768px) {
	.hs-account__content .woocommerce-table--order-details tfoot td {
		white-space: nowrap;
	}
}

.hs-account__content .woocommerce-table--order-details thead th {
	font-size: 14px;
	font-weight: 600;
}

.hs-account__content .woocommerce-table--order-details tfoot tr:last-child th,
.hs-account__content .woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: 0;
	font-weight: 600;
}

.hs-account__content .wc-item-meta {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	opacity: 0.7;
}

.hs-account__content .wc-item-meta li,
.hs-account__content .wc-item-meta p {
	display: inline;
	margin: 0;
}

.hs-account__content .woocommerce-customer-details address,
.hs-account-address address {
	font-style: normal;
	line-height: 1.6;
}

.hs-account__content .woocommerce-customer-details address p {
	margin: 4px 0 0;
}

.hs-account__content .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.hs-account__content .woocommerce-columns--addresses .col-1,
.hs-account__content .woocommerce-columns--addresses .col-2 {
	float: none;
	width: auto;
}

.hs-order-extra__label {
	font-weight: 600;
}

.hs-account__content .order-again {
	margin: 24px 0 0;
}

.hs-account-notes ol {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-account-notes .woocommerce-OrderUpdate-meta {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--wp--preset--color--stone);
}

.hs-account-notes .woocommerce-OrderUpdate-description p {
	margin: 0;
}

/* ---------- Address ---------- */

.hs-account-addresses,
.hs-account-addresses .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
	gap: 16px;
}

.hs-account-addresses .woocommerce-Addresses {
	grid-column: 1 / -1;
}

.hs-account-address {
	display: flex;
	flex-direction: column;
	gap: 20px;
	float: none !important;
	width: auto !important;
	padding: 32px;
	border-radius: 28px;
	background: var(--hs-cream);
}

.hs-account-address__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hs-account-address__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.2;
}

.hs-account-address__edit {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1.5px solid var(--hs-navy);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hs-account-address__edit:hover {
	background: var(--hs-navy);
	color: #fff !important;
}

/* ---------- Forms: edit address, account details ---------- */

.hs-account-form {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 760px;
	margin: 0;
}

.hs-account-form > h2 {
	margin: 0;
}

.hs-account-form .woocommerce-address-fields {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hs-account-form__fields,
.hs-account-form--account,
.hs-account-form__fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
}

.hs-account-form__fields > .form-row,
.hs-account-form--account > *,
.hs-account-form__fieldset > * {
	grid-column: 1 / -1;
	float: none;
	width: auto;
}

.hs-account-form__fields > .form-row-first,
.hs-account-form--account > .form-row-first {
	grid-column: 1;
}

.hs-account-form__fields > .form-row-last,
.hs-account-form--account > .form-row-last {
	grid-column: 2;
}

.hs-account-form--account {
	gap: 24px 20px;
}

.hs-account-form__fieldset {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
}

.hs-account-form__legend {
	float: left;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--hs-serif);
	font-size: 28px;
	line-height: 1.2;
}

.hs-account-form__hint {
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--stone);
}

.hs-account-form__hint em {
	font-style: normal;
}

.hs-account-form__actions {
	margin: 8px 0 0;
}

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

@media (max-width: 1279px) {
	.hs-account {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 48px;
	}
}

@media (max-width: 1023px) {
	.hs-shop-main--account .hs-shop-title {
		font-size: 56px;
	}

	.hs-account-auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.hs-account {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	/* Navigation: a horizontal, scrollable row of pills. */
	.hs-account-nav {
		position: static;
		margin-inline: calc(-1 * (var(--hs-gutter) + 24px));
	}

	.hs-account-nav__list {
		flex-direction: row;
		gap: 8px;
		padding: 0 calc(var(--hs-gutter) + 24px);
		overflow-x: auto;
		border-radius: 0;
		background: none;
		scrollbar-width: none;
		scroll-padding-inline: calc(var(--hs-gutter) + 24px);
	}

	.hs-account-nav__list::-webkit-scrollbar {
		display: none;
	}

	.hs-account-nav__item {
		flex: none;
	}

	.hs-account-nav__link {
		min-height: 44px;
		border: 1.5px solid var(--hs-rule);
		font-size: 15px;
		white-space: nowrap;
	}

	.hs-account-nav__link:hover {
		background: var(--hs-cream);
	}

	.hs-account-nav__item.is-active .hs-account-nav__link {
		border-color: var(--hs-navy);
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}
}

@media (max-width: 767px) {
	.hs-shop-main--account .hs-shop-head {
		padding: 32px var(--hs-gutter);
	}

	.hs-shop-main--account .hs-shop-title {
		font-size: 44px;
	}

	.hs-shop-main--account .woocommerce {
		padding: 0 var(--hs-gutter) 64px;
	}

	.hs-account-nav {
		margin-inline: calc(-1 * var(--hs-gutter));
	}

	.hs-account-nav__list {
		padding-inline: var(--hs-gutter);
		scroll-padding-inline: var(--hs-gutter);
	}

	.hs-account-auth .hs-account-auth__card {
		padding: 32px 24px;
		border-radius: var(--hs-radius-md);
	}

	.hs-account-auth__title,
	.hs-account-head__title,
	.hs-account__content h2.hs-account-head__title {
		font-size: 32px;
	}

	.hs-account-head__lead {
		font-size: 16px;
	}

	.hs-account-card__link {
		padding: 24px;
	}

	.hs-account-card__meta {
		padding-top: 8px;
	}

	.hs-account-empty,
	.hs-account-address,
	.hs-account__content .woocommerce-order-details,
	.hs-account__content .woocommerce-customer-details,
	.hs-account-notes {
		padding: 28px 20px;
	}

	.hs-account-empty__title,
	.hs-account__content .woocommerce-order-details__title,
	.hs-account__content .woocommerce-column__title,
	.hs-account-notes__title {
		font-size: 28px;
	}

	/* Orders: one card-like row per order, label | value lines. */
	.hs-orders-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.hs-orders-table,
	.hs-orders-table tbody,
	.hs-orders-table tr {
		display: block;
	}

	.hs-orders-table tbody {
		border-top: 1.5px solid var(--hs-rule);
	}

	.hs-orders-table tr {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 24px 0;
		border-bottom: 1.5px solid var(--hs-rule);
	}

	.hs-orders-table tbody th,
	.hs-orders-table td {
		display: block;
		padding: 0;
		border: 0;
		text-align: right;
	}

	.hs-orders-table tbody th {
		text-align: left;
	}

	/* Label | value: the label floats left so mixed text + price nodes stay on one line. */
	.hs-orders-table td::before {
		content: attr(data-title);
		float: left;
		margin-right: 16px;
		font-size: 14px;
		line-height: 1.7;
		color: var(--wp--preset--color--stone);
	}

	.hs-orders-table .woocommerce-orders-table__cell-order-number {
		margin-bottom: 4px;
	}

	.hs-orders-table .woocommerce-orders-table__cell-order-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 8px;
		white-space: normal;
		text-align: left;
	}

	.hs-orders-table .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	.hs-orders-table__action + .hs-orders-table__action {
		margin-left: 0;
	}

	.hs-account-form__fields,
	.hs-account-form--account,
	.hs-account-form__fieldset {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.hs-account-form__fields > .form-row-first,
	.hs-account-form__fields > .form-row-last,
	.hs-account-form--account > .form-row-first,
	.hs-account-form--account > .form-row-last {
		grid-column: 1;
	}

	.hs-account-auth__actions .hs-btn,
	.hs-account-form__actions .hs-btn {
		width: 100%;
	}

	.hs-account__content .woocommerce-table--order-details {
		font-size: 15px;
	}
}
