/**
 * My account (classic WooCommerce account page).
 *
 * Builds on assets/css/pages/content.css (fields, buttons, notices).
 * Signed out: centred sign-in / reset card. Signed in: account header with
 * section tabs (template-parts/woocommerce/account-header.php), dashboard,
 * orders, address cards and the account form. No sidebar.
 */

/* ==========================================================================
   1. Signed out: sign in / lost password / reset
   ========================================================================== */

body.sp-content--account:not( .logged-in ) .woocommerce {
	max-width: 480px;
	margin-inline: auto;
}

body.sp-content--account .woocommerce-form-login,
body.sp-content--account .woocommerce-ResetPassword,
body.sp-content--account .woocommerce-form-register {
	margin: 0;
	padding: clamp( 1.5rem, 4vw, 2.25rem );
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba( 0, 0, 0, 0.05 );
}

/* The hero already says "Sign in". */
body.sp-content--account:not( .logged-in ) .woocommerce > h2,
body.sp-content--account .u-column1 > h2,
body.sp-content--account .u-column2 > h2 {
	margin: 0 0 1rem;
	color: var( --sp-black, #000000 );
	font-size: 1.25rem;
	font-weight: 700;
}

body.sp-content--account:not( .logged-in ) .woocommerce > h2:first-of-type {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
}

body.sp-content--account .woocommerce-form-row,
body.sp-content--account .form-row {
	margin: 0 0 1.125rem;
	padding: 0;
}

body.sp-content--account .woocommerce form .form-row label,
body.sp-content--account .woocommerce-form-row label {
	display: block;
	margin-bottom: 0.4rem;
	color: var( --sp-black, #000000 );
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

body.sp-content--account .woocommerce form .required {
	color: var( --global-palette13, #b82105 );
	text-decoration: none;
}

/* Show / hide password eye */
body.sp-content--account .password-input {
	position: relative;
	display: block;
}

body.sp-content--account .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	translate: none; /* Kadence centres with translate too; margin-top does it here. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var( --sp-c-muted );
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.sp-content--account .show-password-input:hover {
	background: var( --global-palette8, #f5f5f5 );
	color: var( --sp-black, #000000 );
}

body.sp-content--account .show-password-input:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content--account .woocommerce-form-login .form-row:last-of-type,
body.sp-content--account .woocommerce-form-login p.form-row:has( .woocommerce-form-login__submit ) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

body.sp-content--account .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var( --sp-c-text );
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

body.sp-content--account .woocommerce-form-login__submit,
body.sp-content--account .woocommerce-ResetPassword .button {
	width: 100%;
	order: 2;
}

body.sp-content--account .lost_password {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.875rem;
}

body.sp-content--account .lost_password a,
body.sp-content--account .woocommerce-ResetPassword a {
	color: var( --sp-c-hover );
	font-weight: 600;
	text-underline-offset: 3px;
}

body.sp-content--account .lost_password a:hover {
	color: var( --sp-black, #000000 );
}

body.sp-content--account .lost_password a:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
	border-radius: 4px;
}

body.sp-content--account .woocommerce-ResetPassword > p:first-child {
	color: var( --sp-c-muted );
	font-size: 0.9375rem;
}

/* Password strength meter */
body.sp-content--account .woocommerce-password-strength {
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: left;
}

body.sp-content--account .woocommerce-password-hint {
	color: var( --sp-c-muted );
	font-size: 0.8125rem;
}

/* ==========================================================================
   2. Signed in: account header + tabs
   ========================================================================== */

.sp-account-head__inner {
	padding-bottom: 0;
}

.sp-account-head__crumbs {
	margin-bottom: clamp( 1.5rem, 3vw, 2rem );
}

.sp-account-head__row {
	display: flex;
	align-items: center;
	gap: 1rem 1.25rem;
}

.sp-account-head__avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: clamp( 56px, 7vw, 72px );
	height: clamp( 56px, 7vw, 72px );
	background: var( --sp-orange, #e8620a );
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba( 232, 98, 10, 0.12 );
	color: var( --sp-black, #000000 );
	font-size: clamp( 1.25rem, 2.4vw, 1.5rem );
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.sp-account-head__text {
	flex: 1 1 auto;
	min-width: 0;
}

.sp-account-head__title {
	margin: 0;
	color: var( --sp-black, #000000 );
	font-size: clamp( 1.75rem, 4vw, 2.75rem );
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.sp-account-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin: 0.375rem 0 0;
	color: var( --sp-c-muted );
	font-size: 0.9375rem;
}

.sp-account-head__meta span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.sp-account-head__meta span + span::before {
	content: "\00B7";
	margin-right: 0.75rem;
	color: var( --sp-c-border-strong );
}

/* Sign out: quiet outline button */
.sp-account-head__logout {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 1.125rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border-strong );
	border-radius: 999px;
	color: var( --sp-black, #000000 );
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sp-account-head__logout .sp-icon {
	width: 18px;
	height: 18px;
}

.sp-account-head__logout:hover {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

.sp-account-head__logout:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

.sp-account-head__logout:active {
	background: #222222;
	color: var( --sp-white, #ffffff );
}

/* Tabs: one scrolling row of pills */
.sp-account-tabs {
	margin: clamp( 1.5rem, 3vw, 2rem ) calc( var( --global-content-edge-padding, 1.5rem ) * -1 ) 0;
	padding: 0 var( --global-content-edge-padding, 1.5rem ) 1.5rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sp-account-tabs::-webkit-scrollbar {
	display: none;
}

.sp-account-tabs__list {
	display: flex;
	width: max-content;
	min-width: 100%;
	gap: 0.25rem;
	margin: 0;
	padding: 0.3125rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 999px;
	list-style: none;
}

.sp-account-tabs__list li {
	display: flex;
	flex: 1 0 auto;
	margin: 0;
	padding: 0;
}

.sp-account-tabs__link {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 42px;
	padding: 0.5rem 1.125rem;
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sp-account-tabs__link .sp-icon {
	width: 18px;
	height: 18px;
	color: var( --sp-c-muted );
	transition: color 0.15s ease;
}

.sp-account-tabs__link:hover {
	background: var( --sp-white, #ffffff );
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.06 );
	color: var( --sp-black, #000000 );
}

.sp-account-tabs__link:hover .sp-icon {
	color: var( --sp-c-hover );
}

.sp-account-tabs__link:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

.sp-account-tabs__link:active {
	background: var( --sp-c-border );
}

.sp-account-tabs__link.is-active,
.sp-account-tabs__link.is-active:hover {
	background: var( --sp-black, #000000 );
	box-shadow: none;
	color: var( --sp-white, #ffffff );
	font-weight: 600;
}

.sp-account-tabs__link.is-active .sp-icon {
	color: var( --sp-orange, #e8620a );
}

/* ==========================================================================
   3. Signed in: content area
   ========================================================================== */

body.sp-content--account.logged-in .woocommerce::before,
body.sp-content--account.logged-in .woocommerce::after {
	display: none;
}

body.sp-content--account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var( --sp-c-text );
	font-size: 1rem;
	line-height: 1.65;
}

body.sp-content--account .woocommerce-MyAccount-content > p:first-of-type {
	margin-top: 0;
}

body.sp-content--account .woocommerce-MyAccount-content a:not( .button ) {
	color: var( --sp-c-hover );
	font-weight: 600;
	text-underline-offset: 3px;
}

body.sp-content--account .woocommerce-MyAccount-content a:not( .button ):hover {
	color: var( --sp-black, #000000 );
}

body.sp-content--account .woocommerce-MyAccount-content a:not( .button ):focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
	border-radius: 4px;
}

/* Status chip (dashboard + orders table) */
.sp-status {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	background: #f1efec;
	border-radius: 999px;
	color: #4a4a4a;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.sp-status::before {
	content: "";
	width: 6px;
	height: 6px;
	background: currentColor;
	border-radius: 50%;
}

.sp-status--completed {
	background: #e7f4ec;
	color: #1d6b3c;
}

.sp-status--processing {
	background: #fdeee3;
	color: var( --sp-orange-dark, #be5008 );
}

.sp-status--on-hold {
	background: #fdf5dc;
	color: #8a6200;
}

.sp-status--cancelled,
.sp-status--failed,
.sp-status--refunded {
	background: #fbe9e6;
	color: var( --global-palette13, #b82105 );
}

/* ==========================================================================
   4. Dashboard
   ========================================================================== */

.sp-dashboard {
	display: grid;
	gap: 1.5rem;
}

body.sp-content--account .sp-dashboard__stats {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.sp-content--account .sp-stat {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	align-items: center;
	gap: 0.125rem 1rem;
	margin: 0;
	padding: 1.25rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 18px;
}

.sp-stat__icon {
	display: inline-flex;
	grid-row: 1 / span 2;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba( 232, 98, 10, 0.1 );
	border-radius: 14px;
	color: var( --sp-orange-dark, #be5008 );
}

.sp-stat__icon .sp-icon {
	width: 24px;
	height: 24px;
}

.sp-stat__value {
	color: var( --sp-black, #000000 );
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sp-stat__label {
	color: var( --sp-c-muted );
	font-size: 0.875rem;
	line-height: 1.4;
}

body.sp-content--account .sp-stat__label a:not( .button ) {
	color: inherit;
	font-weight: 500;
}

body.sp-content--account .sp-stat__label a:not( .button ):hover {
	color: var( --sp-c-hover );
}

.sp-dashboard__panel {
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
	overflow: hidden;
}

.sp-dashboard__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.5rem;
	background: var( --sp-c-surface );
	border-bottom: 1px solid var( --sp-c-border );
}

body.sp-content--account .sp-dashboard__panel-title {
	margin: 0;
	color: var( --sp-black, #000000 );
	font-size: 1.0625rem;
	font-weight: 700;
}

body.sp-content--account .sp-dashboard__more:not( .button ) {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	text-decoration: none;
}

.sp-dashboard__more .sp-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.sp-dashboard__more:hover .sp-icon {
	transform: translateX( 2px );
}

body.sp-content--account .sp-order-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-order-list__item {
	margin: 0;
}

.sp-order-list__item + .sp-order-list__item {
	border-top: 1px solid var( --sp-c-border );
}

body.sp-content--account .sp-order-list__link:not( .button ) {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto auto auto;
	align-items: center;
	gap: 0.75rem 1.25rem;
	padding: 1rem 1.5rem;
	color: var( --sp-c-text );
	font-weight: 400;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

body.sp-content--account .sp-order-list__link:not( .button ):hover {
	background: var( --sp-c-surface );
	color: var( --sp-c-text );
}

body.sp-content--account .sp-order-list__link:not( .button ):focus-visible {
	border-radius: 0;
	box-shadow: inset 0 0 0 2px var( --sp-orange, #e8620a );
}

.sp-order-list__main {
	display: grid;
	min-width: 0;
}

.sp-order-list__number {
	color: var( --sp-black, #000000 );
	font-weight: 700;
}

.sp-order-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.625rem;
	color: var( --sp-c-muted );
	font-size: 0.8125rem;
}

.sp-order-list__meta > * + *::before {
	content: "\00B7";
	margin-right: 0.625rem;
}

.sp-order-list__total {
	color: var( --sp-black, #000000 );
	font-weight: 700;
	text-align: right;
}

.sp-order-list__chevron {
	width: 18px;
	height: 18px;
	color: var( --sp-c-muted );
	transition: transform 0.15s ease, color 0.15s ease;
}

.sp-order-list__link:hover .sp-order-list__chevron {
	color: var( --sp-c-hover );
	transform: translateX( 2px );
}

.sp-dashboard__empty {
	display: grid;
	justify-items: center;
	padding: clamp( 2rem, 5vw, 3rem ) 1.5rem;
	text-align: center;
}

.sp-dashboard__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 1rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 50%;
	color: var( --sp-c-muted );
}

.sp-dashboard__empty-icon .sp-icon {
	width: 26px;
	height: 26px;
}

body.sp-content--account .sp-dashboard__empty-title {
	margin: 0;
	color: var( --sp-black, #000000 );
	font-size: 1.125rem;
	font-weight: 700;
}

body.sp-content--account .sp-dashboard__empty-text {
	max-width: 380px;
	margin: 0.375rem 0 1.25rem;
	color: var( --sp-c-muted );
	font-size: 0.9375rem;
}

/* ==========================================================================
   5. Orders table
   ========================================================================== */

body.sp-content--account table.shop_table {
	width: 100%;
	margin: 0;
	border: 1px solid var( --sp-c-border );
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	font-size: 0.9375rem;
}

body.sp-content--account table.shop_table th,
body.sp-content--account table.shop_table td {
	padding: 0.875rem 1rem;
	background: none;
	border: 0;
	border-bottom: 1px solid var( --sp-c-border );
	text-align: left;
	vertical-align: middle;
}

body.sp-content--account table.shop_table thead th {
	background: var( --sp-c-surface );
	color: var( --sp-black, #000000 );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.sp-content--account table.shop_table tbody tr:last-child th,
body.sp-content--account table.shop_table tbody tr:last-child td {
	border-bottom: 0;
}

body.sp-content--account table.shop_table .button {
	min-height: 36px;
	margin: 0.125rem 0.25rem 0.125rem 0;
	padding: 0.375rem 1rem;
	background: var( --sp-white, #ffffff );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-black, #000000 );
	font-size: 0.8125rem;
}

body.sp-content--account table.shop_table .button:hover,
body.sp-content--account table.shop_table .button:focus-visible {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

/* Order status chips */
body.sp-content--account .woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}

body.sp-content--account mark.order-status,
body.sp-content--account mark.order-number,
body.sp-content--account mark.order-date {
	background: none;
	color: var( --sp-black, #000000 );
	font-weight: 600;
}

/* ==========================================================================
   6. Addresses + account form
   ========================================================================== */

body.sp-content--account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 1rem;
	margin-top: 1.25rem;
}

body.sp-content--account .woocommerce-Addresses::before,
body.sp-content--account .woocommerce-Addresses::after {
	display: none;
}

/* Beats WooCommerce's .col2-set .col-1 / .col-2 float widths. */
body.sp-content--account .woocommerce-Addresses.col2-set .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	padding: 1.25rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 16px;
}

/* WooCommerce's clearfix pseudo-elements would become flex items. */
body.sp-content--account .addresses .woocommerce-Address-title::before,
body.sp-content--account .addresses .woocommerce-Address-title::after {
	display: none;
}

body.sp-content--account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

body.sp-content--account .woocommerce-Address-title h2 {
	float: none;
	margin: 0;
	padding: 0;
	color: var( --sp-black, #000000 );
	font-size: 1.0625rem;
	font-weight: 700;
}

body.sp-content--account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0.25rem 0.875rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 999px;
	color: var( --sp-black, #000000 );
	font-size: 0.8125rem;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.sp-content--account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover,
body.sp-content--account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:focus-visible {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

body.sp-content--account .woocommerce-Address address {
	margin: 0;
	color: var( --sp-c-text );
	font-style: normal;
	line-height: 1.7;
}

/* Account details + edit address: one form card, password as its own panel */
body.sp-content--account .woocommerce-EditAccountForm,
body.sp-content--account .woocommerce-MyAccount-content > form:has( .woocommerce-address-fields ) {
	max-width: 860px;
	padding: clamp( 1.25rem, 3vw, 2rem );
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
}

body.sp-content--account .woocommerce-MyAccount-content > form > h2,
body.sp-content--account .woocommerce-MyAccount-content > form > h3 {
	margin: 0 0 1.25rem;
	color: var( --sp-black, #000000 );
	font-size: 1.25rem;
	font-weight: 700;
}

body.sp-content--account .woocommerce-EditAccountForm fieldset {
	margin: 1.75rem 0 1.5rem;
	padding: 1.25rem 1.25rem 0.25rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 16px;
}

/* Legend as an in-panel heading (float takes it out of the border gap). */
body.sp-content--account .woocommerce-EditAccountForm legend {
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	color: var( --sp-black, #000000 );
	font-size: 1rem;
	font-weight: 700;
}

body.sp-content--account .woocommerce-EditAccountForm legend + * {
	clear: both;
}

body.sp-content--account .woocommerce-EditAccountForm fieldset input {
	background: var( --sp-white, #ffffff );
}

body.sp-content--account .password-input input {
	margin: 0;
}

body.sp-content--account .woocommerce-EditAccountForm em {
	display: block;
	margin-top: 0.375rem;
	color: var( --sp-c-muted );
	font-size: 0.8125rem;
	font-style: normal;
}

body.sp-content--account .form-row-first,
body.sp-content--account .form-row-last {
	width: calc( 50% - 0.5rem );
}

body.sp-content--account .form-row-first {
	float: left;
}

body.sp-content--account .form-row-last {
	float: right;
}

body.sp-content--account .woocommerce form .clear {
	clear: both;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */

@media ( max-width: 900px ) {
	body.sp-content--account .sp-dashboard__stats {
		grid-template-columns: minmax( 0, 1fr );
	}
}

@media ( max-width: 600px ) {
	/* Avatar beside the title, meta stacked, sign out full width below. */
	.sp-account-head__row {
		flex-wrap: wrap;
		gap: 0.875rem 1rem;
	}

	.sp-account-head__avatar {
		width: 48px;
		height: 48px;
		box-shadow: 0 0 0 4px rgba( 232, 98, 10, 0.12 );
		font-size: 1.0625rem;
	}

	.sp-account-head__meta {
		flex-direction: column;
		gap: 0.125rem;
		font-size: 0.875rem;
	}

	.sp-account-head__meta span + span::before {
		display: none;
	}

	.sp-account-tabs__link {
		min-height: 40px;
		padding: 0.5rem 0.875rem;
		font-size: 0.875rem;
	}

	.sp-account-head__logout {
		order: 3;
		width: 100%;
		justify-content: center;
	}

	body.sp-content--account .sp-order-list__link:not( .button ) {
		grid-template-columns: minmax( 0, 1fr ) auto;
		padding: 1rem 1.25rem;
	}

	.sp-order-list__link .sp-status {
		grid-row: 2;
		justify-self: start;
	}

	.sp-order-list__chevron {
		display: none;
	}
}

@media ( max-width: 600px ) {
	body.sp-content--account .form-row-first,
	body.sp-content--account .form-row-last {
		float: none;
		width: 100%;
	}

	/* Orders table stacks into cards (WooCommerce's responsive table). */
	body.sp-content--account table.shop_table_responsive thead {
		display: none;
	}

	body.sp-content--account table.shop_table_responsive tr {
		display: block;
		border-bottom: 1px solid var( --sp-c-border );
	}

	body.sp-content--account table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border-bottom: 0;
		text-align: right;
	}

	body.sp-content--account table.shop_table_responsive td::before {
		content: attr( data-title );
		color: var( --sp-c-muted );
		font-weight: 600;
		text-align: left;
	}
}
