/**
 * FullDip customer account.
 *
 * The native WooCommerce account endpoints retain their markup and data
 * handling. This layer aligns login, dashboard, orders, downloads, addresses
 * and account details with the FullDip commerce experience.
 */

/* =========================================================
   PAGE SHELL
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account {
	background: var(--ssf-color-white);
	color: var(--ssf-color-text);
}

body.ssf-commerce-shell.woocommerce-account .entry-hero {
	display: none;
}

body.ssf-commerce-shell.woocommerce-account .entry-hero .hero-section-overlay {
	display: none;
}

body.ssf-commerce-shell.woocommerce-account .entry-hero .hero-container {
	width: min(1220px, calc(100% - 40px));
	max-width: none;
	margin: 0 auto;
	padding: 0;
}

body.ssf-commerce-shell.woocommerce-account .entry-hero .entry-header {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	text-align: left;
}

body.ssf-commerce-shell.woocommerce-account .entry-hero .entry-title {
	margin: 0;
	color: var(--ssf-color-text);
	font-family: var(--ssf-font-family);
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-align: left;
}

body.ssf-commerce-shell.woocommerce-account :is(
	.site-content,
	.content-area,
	.content-container,
	.site-main,
	.content-wrap,
	.entry,
	.entry-content-wrap,
	.entry-content
) {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

body.ssf-commerce-shell.woocommerce-account .content-container.site-container {
	width: min(1220px, calc(100% - 40px));
	margin: 0 auto;
	padding: clamp(24px, 3.4vw, 44px) 0 clamp(64px, 8vw, 108px);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce {
	color: var(--ssf-color-text);
	font-family: var(--ssf-font-family);
}

/* =========================================================
   SHARED CONTROLS AND MESSAGES
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	form .form-row input.input-text,
	form .form-row textarea,
	form .form-row select
) {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--ssf-color-border-dark);
	border-radius: var(--ssf-radius-small);
	background: var(--ssf-color-white);
	box-shadow: none;
	color: var(--ssf-color-text);
	font-family: var(--ssf-font-family);
	font-size: 15px;
	font-weight: 550;
	line-height: 1.35;
	transition:
		border-color var(--ssf-transition-fast),
		box-shadow var(--ssf-transition-fast),
		background-color var(--ssf-transition-fast);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce form .form-row textarea {
	min-height: 132px;
	resize: vertical;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	form .form-row input.input-text,
	form .form-row textarea,
	form .form-row select
):hover {
	border-color: var(--ssf-color-text);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	form .form-row input.input-text,
	form .form-row textarea,
	form .form-row select
):focus {
	border-color: var(--ssf-color-primary);
	outline: 3px solid rgba(185, 42, 34, 0.14);
	outline-offset: 1px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce form .form-row {
	margin: 0 0 18px;
	padding: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce form .form-row label {
	display: block;
	margin: 0 0 7px;
	color: var(--ssf-color-muted);
	font-family: var(--ssf-font-family);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	a.button,
	button.button,
	input.button,
	input[type="submit"]
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid var(--ssf-color-primary);
	border-radius: var(--ssf-radius-small);
	background: var(--ssf-color-primary);
	box-shadow: none;
	color: var(--ssf-color-white);
	font-family: var(--ssf-font-family);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.025em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color var(--ssf-transition-fast),
		border-color var(--ssf-transition-fast),
		transform var(--ssf-transition-fast),
		box-shadow var(--ssf-transition-fast);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	a.button,
	button.button,
	input.button,
	input[type="submit"]
):hover,
body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	a.button,
	button.button,
	input.button,
	input[type="submit"]
):focus-visible {
	border-color: var(--ssf-color-primary-hover);
	background: var(--ssf-color-primary-hover);
	box-shadow: 0 6px 16px rgba(185, 42, 34, 0.18);
	color: var(--ssf-color-white);
	transform: translateY(-1px);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	a.button,
	button.button,
	input.button,
	input[type="submit"]
):focus-visible {
	outline: 3px solid rgba(185, 42, 34, 0.24);
	outline-offset: 3px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	button,
	input
)[disabled] {
	border-color: var(--ssf-color-border);
	background: var(--ssf-color-background-soft);
	box-shadow: none;
	color: var(--ssf-color-muted);
	cursor: not-allowed;
	transform: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error
) {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--ssf-color-border);
	border-left: 4px solid var(--ssf-color-primary);
	border-radius: var(--ssf-radius-small);
	background: var(--ssf-color-white);
	box-shadow: var(--ssf-shadow-small);
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	list-style: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce .woocommerce-error {
	border-left-color: #b42318;
	background: #fff8f7;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce .woocommerce-message {
	border-left-color: #197a3e;
	background: #f5fbf7;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error
) a,
body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: var(--ssf-color-primary);
	font-weight: 750;
	text-underline-offset: 0.16em;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	input[type="checkbox"],
	input[type="radio"]
) {
	accent-color: var(--ssf-color-primary);
}

/* =========================================================
   LOGIN AND RECOVERY
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	.woocommerce-form-login,
	.woocommerce-form-register,
	.woocommerce-ResetPassword,
	form.login,
	form.register
) {
	width: min(100%, 560px);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid var(--ssf-color-border);
	border-radius: 12px;
	background: var(--ssf-color-white);
	box-shadow: 0 4px 22px rgba(17, 17, 17, 0.07);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce .woocommerce-form-login :is(
	.form-row-first,
	.form-row-last
),
body.ssf-commerce-shell.woocommerce-account .woocommerce .woocommerce-form-register :is(
	.form-row-first,
	.form-row-last
) {
	float: none;
	width: auto;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	.woocommerce-form-login,
	.woocommerce-form-register
) .form-row:last-child,
body.ssf-commerce-shell.woocommerce-account .woocommerce .woocommerce-ResetPassword .form-row:last-child {
	margin-bottom: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
	.woocommerce-form-login,
	.woocommerce-form-register
) .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 16px 0 0;
	color: var(--ssf-color-muted);
	font-size: 13px;
	font-weight: 650;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce .lost_password {
	margin: 18px 0 0;
	color: var(--ssf-color-muted);
	font-size: 13px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce > h2,
body.ssf-commerce-shell.woocommerce-account #customer_login h2 {
	display: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce:not(.woocommerce-MyAccount) {
	margin-top: 0;
}

/* =========================================================
   ACCOUNT SHELL
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount {
	display: grid;
	grid-template-areas: "content navigation";
	grid-template-columns: minmax(0, 1fr) minmax(238px, 278px);
	align-items: start;
	gap: clamp(24px, 4vw, 52px);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-area: navigation;
	position: sticky;
	top: 24px;
	overflow: hidden;
	border: 1px solid var(--ssf-color-border);
	border-radius: 12px;
	background: var(--ssf-color-white);
	box-shadow: var(--ssf-shadow-small);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 10px;
	list-style: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 12px;
	border-left: 3px solid transparent;
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.3;
	text-decoration: none;
	transition:
		background-color var(--ssf-transition-fast),
		border-color var(--ssf-transition-fast),
		color var(--ssf-transition-fast);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
	background: var(--ssf-color-background-soft);
	color: var(--ssf-color-primary);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	border-left-color: var(--ssf-color-primary);
	background: #fff5f4;
	color: var(--ssf-color-primary);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
	outline: 3px solid rgba(185, 42, 34, 0.24);
	outline-offset: -3px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content {
	grid-area: content;
	min-width: 0;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--ssf-color-border);
	border-radius: 12px;
	background: var(--ssf-color-white);
	box-shadow: 0 4px 22px rgba(17, 17, 17, 0.07);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	h2,
	h3,
	.woocommerce-order-details__title,
	.woocommerce-column__title
) {
	margin: 30px 0 14px;
	color: var(--ssf-color-text);
	font-family: var(--ssf-font-family);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	h2,
	h3
):first-child {
	margin-top: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content p {
	line-height: 1.6;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-content__heading {
	margin-bottom: 22px;
}

/* =========================================================
   ORDERS, DOWNLOADS AND ADDRESSES
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-table,
	.woocommerce-orders-table,
	.shop_table
) {
	width: 100%;
	margin: 0 0 26px;
	border: 1px solid var(--ssf-color-border);
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--ssf-color-white);
	box-shadow: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-table,
	.woocommerce-orders-table,
	.shop_table
) thead {
	background: var(--ssf-color-background-soft);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-table,
	.woocommerce-orders-table,
	.shop_table
) :is(th, td) {
	border-color: var(--ssf-color-border);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-table,
	.woocommerce-orders-table,
	.shop_table
) th {
	padding: 13px 16px;
	color: var(--ssf-color-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-table,
	.woocommerce-orders-table,
	.shop_table
) td {
	padding: 15px 16px;
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	vertical-align: middle;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
	white-space: nowrap;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-orders-table,
	.woocommerce-table
) .button {
	min-height: 38px;
	padding: 9px 12px;
	font-size: 11px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Addresses {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Addresses > :is(
	.col-1,
	.col-2,
	.woocommerce-Address--billing,
	.woocommerce-Address--shipping
) {
	flex: 0 0 100%;
	width: 100% !important;
	float: none !important;
	clear: none;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Address {
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--ssf-color-border);
	border-radius: 10px;
	background: var(--ssf-color-background-soft);
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Address-title {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0 0 16px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Address-title h3 {
	max-width: none;
	margin: 0;
	font-size: 19px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Address-title .edit {
	justify-self: start;
	font-size: 13px;
	font-weight: 800;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-Address address {
	margin: 0;
	color: var(--ssf-color-muted);
	font-size: 14px;
	font-style: normal;
	line-height: 1.65;
}

/* =========================================================
   DETAILS AND RESPONSIVE BEHAVIOUR
   ========================================================= */

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
	.woocommerce-customer-details,
	.woocommerce-order-details,
	.woocommerce-order-downloads
) {
	margin: 0 0 28px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address {
	padding: 18px;
	border: 1px solid var(--ssf-color-border);
	border-radius: 10px;
	background: var(--ssf-color-background-soft);
	color: var(--ssf-color-muted);
	font-style: normal;
	line-height: 1.65;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content fieldset {
	margin: 28px 0 0;
	padding: 20px;
	border: 1px solid var(--ssf-color-border);
	border-radius: 10px;
}

body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content legend {
	padding: 0 8px;
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 800;
}

@media (max-width: 860px) {
	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount {
		grid-template-areas:
			"navigation"
			"content";
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
		overflow-x: auto;
		box-shadow: none;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		width: max-content;
		min-width: 100%;
		padding: 8px;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation a {
		min-height: 40px;
		white-space: nowrap;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
		border-left-color: transparent;
		border-bottom-color: var(--ssf-color-primary);
	}
}

@media (max-width: 680px) {
	body.ssf-commerce-shell.woocommerce-account .entry-hero .hero-container,
	body.ssf-commerce-shell.woocommerce-account .content-container.site-container {
		width: min(100% - 28px, 1220px);
	}

	body.ssf-commerce-shell.woocommerce-account .content-container.site-container {
		padding-top: 20px;
		padding-bottom: 64px;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content,
	body.ssf-commerce-shell.woocommerce-account .woocommerce :is(
		.woocommerce-form-login,
		.woocommerce-form-register,
		.woocommerce-ResetPassword,
		form.login,
		form.register
	) {
		padding: 20px;
		border-radius: 10px;
	}

	body.ssf-commerce-shell.woocommerce-account .woocommerce-MyAccount-content :is(
		.woocommerce-table,
		.woocommerce-orders-table,
		.shop_table
	) {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

}


/* Single native form per view; the links work without JavaScript. */
body.ssf-commerce-shell.woocommerce-account:is(.ssf-account-login, .ssf-account-register) #customer_login > :is(.u-column1, .u-column2) {
	float: none;
	width: min(100%, 560px);
	margin: 0 auto;
}
body.ssf-commerce-shell.woocommerce-account.ssf-account-login #customer_login > .u-column2,
body.ssf-commerce-shell.woocommerce-account.ssf-account-register #customer_login > .u-column1 {
	display: none;
}
body.ssf-commerce-shell.woocommerce-account:is(.ssf-account-login, .ssf-account-register) #customer_login h2 {
	display: block;
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 800;
}
body.ssf-commerce-shell.woocommerce-account .ssf-account-auth-link {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--ssf-color-border);
	font-size: 14px;
}
body.ssf-commerce-shell.woocommerce-account .ssf-account-auth-link a {
	color: var(--ssf-color-primary);
	font-weight: 750;
	text-underline-offset: 0.16em;
}
