/* =========================================================================
   Account Display — My Account Page
   ========================================================================= */

/* ---- Hide redundant page title ---- */

.woocommerce-account .entry-title,
.woocommerce-account .wst-article__title,
.woocommerce-account .wst-article__header {
	display: none;
}

/* ---- Page layout: sidebar + content ---- */

/*
 * Page width (account area). Bumped 1100px → 1300px in 2.18.8 because the
 * Re-Order table at 1100px was forcing the Date column to wrap onto two
 * lines ("Dec 15," / "2025") and leaving ~25% empty whitespace to the
 * right of the table on large desktops. 1300px gives the content column
 * an extra ~200px of breathing room — enough for the Re-Order table to
 * lay out single-line, and for the Quick Order product rows to feel less
 * cramped — without pushing the layout past comfortable reading width.
 */
.woocommerce-account .woocommerce {
	max-width: 1300px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--wsp-space-xl, 32px);
	align-items: start;
	padding: var(--wsp-space-lg, 24px) 0;
}

/* =========================================================================
   Navigation sidebar
   ========================================================================= */

.woocommerce-MyAccount-navigation {
	grid-column: 1;
	grid-row: 1;
	background: transparent;
	padding: 0;
	position: sticky;
	top: 100px;
}

.woocommerce-MyAccount-content {
	grid-column: 2;
	grid-row: 1;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.woocommerce-MyAccount-navigation-link a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: var(--wsp-radius-sm, 6px);
	font-size: 13px;
	font-weight: 400;
	color: var(--wsp-color-text, #1d1d1f);
	text-decoration: none;
	transition: background 150ms ease, color 150ms ease;
	border-left: 3px solid transparent;
	white-space: nowrap;
}

.woocommerce-MyAccount-navigation-link a:hover {
	background: #ffffff;
}

.woocommerce-MyAccount-navigation-link.is-active a {
	background: #ffffff;
	font-weight: 600;
	border-left-color: var(--wsp-color-accent, #0071e3);
}

.woocommerce-MyAccount-navigation-link a:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: 2px;
}

/* ---- Navigation SVG icons via ::before with mask ---- */

.woocommerce-MyAccount-navigation-link a::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--wsp-color-text-muted, #6e6e73);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.woocommerce-MyAccount-navigation-link.is-active a::before {
	background: var(--wsp-color-accent, #0071e3);
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--orders a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Re-Order (wholesale) — refresh/repeat icon */
.woocommerce-MyAccount-navigation-link--wholesale-reorder a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15'/%3E%3C/svg%3E");
}

/* Quick Order (wholesale) — clipboard/list icon */
.woocommerce-MyAccount-navigation-link--quick-order a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cline x1='9' y1='10' x2='15' y2='10'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3Cline x1='9' y1='18' x2='12' y2='18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cline x1='9' y1='10' x2='15' y2='10'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3Cline x1='9' y1='18' x2='12' y2='18'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Logout: muted + red on hover */
.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wsp-color-text-muted, #6e6e73);
	margin-top: var(--wsp-space-sm, 8px);
	padding-top: var(--wsp-space-sm, 8px);
	border-top: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var(--wsp-color-error, #ff3b30);
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover::before {
	background: var(--wsp-color-error, #ff3b30);
}

/* =========================================================================
   Content area
   ========================================================================= */

/* Section headings */
.wsp-account__heading {
	font-size: 22px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	margin: 0 0 var(--wsp-space-lg, 24px);
	padding-bottom: var(--wsp-space-md, 16px);
	border-bottom: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

/* Dashboard greeting — make it a proper heading */
.woocommerce-MyAccount-content > p:first-of-type {
	font-size: 22px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	margin-bottom: var(--wsp-space-sm, 8px);
}

/* Dashboard description */
.woocommerce-MyAccount-content > p:nth-of-type(2) {
	font-size: 14px;
	color: var(--wsp-color-text-muted, #6e6e73);
	margin-bottom: var(--wsp-space-lg, 24px);
}

.woocommerce-MyAccount-content > p:nth-of-type(2) a {
	color: var(--wsp-color-accent, #0071e3);
	text-decoration: none;
}

.woocommerce-MyAccount-content > p:nth-of-type(2) a:hover {
	text-decoration: underline;
}

/* =========================================================================
   Dashboard quick-access cards
   ========================================================================= */

.wsp-account__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wsp-space-md, 16px);
	margin-top: var(--wsp-space-lg, 24px);
}

.wsp-account__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: var(--wsp-space-xl, 32px) var(--wsp-space-lg, 24px);
	background: #ffffff;
	border: 1px solid var(--wsp-color-border-light, #e8e8ed);
	border-radius: var(--wsp-radius-lg, 16px);
	text-decoration: none;
	color: var(--wsp-color-text, #1d1d1f);
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.wsp-account__card:hover {
	border-color: var(--wsp-color-accent, #0071e3);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/*
 * Card icon wrapper sized to host an inline <svg> child (was holding an
 * emoji glyph pre-2.18.5 — emojis rendered as full-color OS glyphs and
 * clashed with the monochrome design system). The inner SVG inherits
 * currentColor and scales to 100% of this box.
 */
.wsp-account__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 4px;
	color: var(--wsp-color-text-muted, #6e6e73);
	transition: color 150ms ease;
}

.wsp-account__card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wsp-account__card:hover .wsp-account__card-icon {
	color: var(--wsp-color-accent, #0071e3);
}

.wsp-account__card-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wsp-color-text-muted, #6e6e73);
}

.wsp-account__card-value {
	font-size: 20px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-account__card-label {
	font-size: 11px;
}

/* =========================================================================
   Orders table
   ========================================================================= */

.woocommerce-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
}

.woocommerce-orders-table thead th {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wsp-color-text-muted, #6e6e73);
	padding: 8px 16px;
	text-align: left;
	border: none;
}

.woocommerce-orders-table tbody tr {
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-sm, 6px);
}

.woocommerce-orders-table tbody td {
	padding: 14px 16px;
	font-size: 14px;
	border: none;
	vertical-align: middle;
}

.woocommerce-orders-table tbody td:first-child {
	border-radius: var(--wsp-radius-sm, 6px) 0 0 var(--wsp-radius-sm, 6px);
}

.woocommerce-orders-table tbody td:last-child {
	border-radius: 0 var(--wsp-radius-sm, 6px) var(--wsp-radius-sm, 6px) 0;
}

/* Status badges */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
	font-weight: 500;
	font-size: 12px;
}

mark.order-status {
	background: none !important;
	padding: 4px 10px;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

mark.order-status.status-processing {
	background: var(--wsp-color-info-bg, #f0f8ff) !important;
	color: var(--wsp-color-info-text, #0c5aa5);
}

mark.order-status.status-completed {
	background: var(--wsp-color-success-bg, #f0faf2) !important;
	color: var(--wsp-color-success-text, #1a7a32);
}

mark.order-status.status-on-hold {
	background: var(--wsp-color-warning-bg, #fffbf0) !important;
	color: var(--wsp-color-warning-text, #8a6500);
}

mark.order-status.status-cancelled,
mark.order-status.status-refunded,
mark.order-status.status-failed {
	background: var(--wsp-color-error-bg, #fff5f5) !important;
	color: var(--wsp-color-error-text, #c41e1e);
}

mark.order-status.status-pending {
	background: var(--wsp-color-warning-bg, #fffbf0) !important;
	color: var(--wsp-color-warning-text, #8a6500);
}

/* Order action buttons */
.woocommerce-orders-table .woocommerce-button {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 500;
	border-radius: var(--wsp-radius-full, 9999px);
	text-decoration: none;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	color: var(--wsp-color-text, #1d1d1f);
	background: #ffffff;
	transition: background 150ms ease, border-color 150ms ease;
}

.woocommerce-orders-table .woocommerce-button:hover {
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-color: var(--wsp-color-text, #1d1d1f);
}

/* =========================================================================
   Addresses
   ========================================================================= */

.woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: var(--wsp-space-lg, 24px);
}

/* Kill WC's clearfix pseudo-elements that break the grid */
.woocommerce-Addresses::before,
.woocommerce-Addresses::after {
	content: none !important;
	display: none !important;
}

/* Override WC's default float/width on address columns */
.woocommerce-Addresses .woocommerce-Address,
.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-lg, 16px);
	padding: var(--wsp-space-lg, 24px);
}

/* Intro text above addresses */
.woocommerce-MyAccount-content > p {
	font-size: 14px;
	color: var(--wsp-color-text-muted, #6e6e73);
	margin-bottom: var(--wsp-space-lg, 24px);
}

/* Style WC's built-in address/edit headings */
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	margin: 0 0 var(--wsp-space-lg, 24px);
	padding-bottom: var(--wsp-space-md, 16px);
	border-bottom: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

.woocommerce-Address header,
.woocommerce-Address .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wsp-space-md, 16px);
	gap: var(--wsp-space-sm, 8px);
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 0;
	border: none;
	color: var(--wsp-color-text, #1d1d1f);
}

.woocommerce-Address-title a,
.woocommerce-Address header a {
	font-size: 12px;
	font-weight: 500;
	color: var(--wsp-color-accent, #0071e3);
	text-decoration: none;
	white-space: nowrap;
	padding: 4px 12px;
	border: 1px solid var(--wsp-color-accent, #0071e3);
	border-radius: var(--wsp-radius-full, 9999px);
}

.woocommerce-Address-title a:hover,
.woocommerce-Address header a:hover {
	background: var(--wsp-color-accent, #0071e3);
	color: #ffffff;
}

.woocommerce-Address address {
	font-size: 14px;
	line-height: 1.6;
	color: var(--wsp-color-text-muted, #6e6e73);
	font-style: normal;
}

/* =========================================================================
   Account details + address edit forms
   ========================================================================= */

.woocommerce-EditAccountForm,
.woocommerce-address-fields {
	max-width: 600px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
	margin-bottom: var(--wsp-space-md, 16px);
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--wsp-color-text, #1d1d1f);
	margin-bottom: 6px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-sm, 6px);
	font-size: 14px;
	color: var(--wsp-color-text, #1d1d1f);
	background: #ffffff;
	transition: border-color 150ms ease;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
	outline: none;
	border-color: var(--wsp-color-accent, #0071e3);
}

/* Password change fieldset */
.woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--wsp-color-border-light, #e8e8ed);
	border-radius: var(--wsp-radius-md, 10px);
	padding: var(--wsp-space-lg, 24px);
	margin: var(--wsp-space-lg, 24px) 0;
}

.woocommerce-EditAccountForm fieldset legend {
	font-size: 15px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	padding: 0 8px;
}

.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-address-fields .button,
.woocommerce-account .woocommerce-Button {
	padding: 12px 28px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 150ms ease;
}

.woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-address-fields .button:hover,
.woocommerce-account .woocommerce-Button:hover {
	background: var(--wsp-color-accent, #0071e3);
}

/* =========================================================================
   Downloads table
   ========================================================================= */

.woocommerce-table--order-downloads {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
}

.woocommerce-table--order-downloads thead th {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wsp-color-text-muted, #6e6e73);
	padding: 8px 16px;
	text-align: left;
	border: none;
}

.woocommerce-table--order-downloads tbody tr {
	background: var(--wsp-color-bg-alt, #f5f5f7);
}

.woocommerce-table--order-downloads tbody td {
	padding: 14px 16px;
	font-size: 14px;
	border: none;
}

/* =========================================================================
   Empty states (no orders, no downloads)
   ========================================================================= */

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: var(--wsp-space-md, 16px);
	padding: var(--wsp-space-2xl, 48px) var(--wsp-space-xl, 32px);
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border: none;
	border-radius: var(--wsp-radius-lg, 16px);
	color: var(--wsp-color-text-muted, #6e6e73);
	font-size: 15px;
	text-align: center;
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before {
	display: none;
}

.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button {
	display: inline-block;
	margin: 0;
	padding: 12px 28px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 150ms ease;
}

.woocommerce-account .woocommerce-info .button:hover,
.woocommerce-account .woocommerce-message .button:hover {
	background: var(--wsp-color-accent, #0071e3);
}

/* =========================================================================
   Mobile-only navigation dropdown
   -------------------------------------------------------------------------
   Rendered server-side via woocommerce_before_account_navigation. Hidden
   on desktop (where the regular sidebar nav handles wayfinding); revealed
   in the mobile @media block below.
   ========================================================================= */

.wsp-account__mobile-nav {
	display: none; /* desktop default */
	position: relative;
	margin-bottom: var(--wsp-space-sm, 8px);
}

.wsp-account__mobile-nav-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wsp-color-text-muted, #6e6e73);
	margin-bottom: 6px;
}

.wsp-account__mobile-nav-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-md, 10px);
	background: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--wsp-color-text, #1d1d1f);
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wsp-account__mobile-nav-select:focus-visible {
	outline: none;
	border-color: var(--wsp-color-accent, #0071e3);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* The dropdown chevron is positioned absolutely inside the wrapper so the
   <select>'s native disclosure indicator (which we hide via -appearance: none)
   is replaced with a consistent SVG. pointer-events: none lets clicks pass
   through to the select. */
.wsp-account__mobile-nav-chevron {
	position: absolute;
	right: 16px;
	top: calc(50% + 9px); /* +9 offsets for the label sitting above */
	transform: translateY(-50%);
	color: var(--wsp-color-text-muted, #6e6e73);
	pointer-events: none;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
		gap: var(--wsp-space-md, 16px);
		padding: var(--wsp-space-md, 16px) 0;
	}

	/*
	 * Mobile: hide the standard WC sidebar navigation entirely. It was
	 * rendering off-screen pre-2.18.7 because the content's explicit
	 * `grid-column: 2` (set by desktop styles) requested a column that
	 * the mobile `1fr` template doesn't have, breaking the layout. The
	 * mobile dropdown (.wsp-account__mobile-nav, rendered via PHP) takes
	 * over here — one tap reveals the full menu, native <select> A11y.
	 */
	.woocommerce-MyAccount-navigation {
		display: none;
	}

	.wsp-account__mobile-nav {
		display: block;
		grid-column: 1;
		grid-row: 1;
	}

	/* Reset content placement so it flows below the dropdown in row 2. */
	.woocommerce-MyAccount-content {
		grid-column: 1;
		grid-row: 2;
	}

	/* Dashboard cards: 2 columns on tablet, 1 on phone */
	.wsp-account__cards {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Addresses: stack vertically */
	.woocommerce-Addresses {
		grid-template-columns: 1fr;
	}

	/* Orders table: card layout */
	.woocommerce-orders-table thead {
		display: none;
	}

	.woocommerce-orders-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: var(--wsp-space-md, 16px);
		margin-bottom: var(--wsp-space-sm, 8px);
		border-radius: var(--wsp-radius-md, 10px);
	}

	.woocommerce-orders-table tbody td {
		padding: 0;
		font-size: 13px;
	}

	.woocommerce-orders-table tbody td::before {
		content: attr(data-title);
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--wsp-color-text-muted, #6e6e73);
		display: block;
		margin-bottom: 2px;
	}
}

@media (max-width: 480px) {
	.wsp-account__cards {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.wsp-account__card,
	.woocommerce-MyAccount-navigation-link a {
		transition: none;
	}
}
