/**
 * WooPlus Design System — My-Account Skin (opt-in)
 *
 * Restyles WooCommerce my-account page templates with the Horizon-inspired
 * design language. Activated when "Apply WooPlus design to my-account" is
 * enabled in Settings.
 *
 * The body gets `wooplus-myaccount-skin` class via wp_body_open hook.
 */

body.wooplus-myaccount-skin {
	background: var(--wooplus-bg);
	font-family: var(--wooplus-font-body);
	color: var(--wooplus-text);
	-webkit-font-smoothing: antialiased;
	letter-spacing: var(--wooplus-tracking-tight);
}

body.wooplus-myaccount-skin .woocommerce-account .woocommerce {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--wooplus-space-8) var(--wooplus-space-6);
}

/* ====================================================================
 *  PAGE HEADER
 * ==================================================================== */

body.wooplus-myaccount-skin .woocommerce-account h1,
body.wooplus-myaccount-skin .woocommerce-MyAccount-content h2,
body.wooplus-myaccount-skin .woocommerce-account h2 {
	font-size: var(--wooplus-text-2xl);
	font-weight: 800;
	color: var(--wooplus-text-2);
	margin: 0 0 var(--wooplus-space-5);
	letter-spacing: var(--wooplus-tracking-tight);
}

body.wooplus-myaccount-skin .woocommerce-account h1 {
	font-size: var(--wooplus-text-3xl);
}

/* ====================================================================
 *  LAYOUT — sidebar + content (Horizon shell)
 *
 *  v2.23.2 — Layout uses a simple class-based selector instead of :has().
 *
 *  The WooCommerce my-account page emits:
 *    <div class="woocommerce">                        ← parent
 *      <div class="woocommerce-MyAccount-navigation"> ← sidebar
 *      <div class="woocommerce-MyAccount-content">    ← main panel
 *    </div>
 *  Some themes wrap in <div class="u-columns col2-set"> or a custom
 *  container. v2.23.1 used :has() to detect the parent, but :has()
 *  isn't supported in Firefox <121 or older Safari, AND themes that
 *  use unexpected wrappers fell through.
 *
 *  v2.23.2 ships a tiny helper JS (my-account-layout.js) that adds the
 *  class .wooplus-myaccount-grid to the immediate parent of the nav
 *  element — works in every browser and matches every theme. CSS uses
 *  that simple selector below.
 *
 *  Specificity is intentionally HIGH (using !important on flex props)
 *  because some themes set float on the WC columns at high specificity.
 * ==================================================================== */

body.wooplus-myaccount-skin .wooplus-myaccount-grid {
	display: flex !important;
	flex-direction: row !important;
	gap: var(--wooplus-space-5, 20px) !important;
	align-items: flex-start !important;
	flex-wrap: nowrap !important;
	width: 100%;
	box-sizing: border-box;
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation {
	background: var(--wooplus-surface);
	border-radius: var(--wooplus-radius-lg);
	box-shadow: var(--wooplus-shadow-card);
	padding: var(--wooplus-space-3);
	overflow: hidden;
	float: none !important;
	/* v2.24.0 — narrower sidebar (was 280px) gives more room to content */
	flex: 0 0 240px !important;
	width: 240px !important;
	box-sizing: border-box;
	margin: 0 !important;
}

@media (max-width: 992px) {
	body.wooplus-myaccount-skin .wooplus-myaccount-grid {
		flex-direction: column !important;
	}
	body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation {
		flex: 0 0 auto !important;
		width: 100% !important;
		margin-bottom: var(--wooplus-space-4) !important;
	}
}

/* v2.24.0 — Content panel: full width of remaining space, tighter padding */
body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
	width: 100%;
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-content > * {
	max-width: 100%;
}
@media (max-width: 1200px) {
	body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
		padding: var(--wooplus-space-5) !important;
	}
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li {
	margin: 0;
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--wooplus-space-3);
	padding: var(--wooplus-space-3) var(--wooplus-space-4);
	color: var(--wooplus-text-mute);
	font-size: var(--wooplus-text-sm);
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--wooplus-radius);
	transition: var(--wooplus-transition-fast);
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wooplus-surface-2);
	color: var(--wooplus-text-2);
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.is-active a,
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active a {
	background: var(--wooplus-brand-50);
	color: var(--wooplus-brand-700);
	font-weight: 700;
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.is-active a::before,
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active a::before {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	inset-inline-start: 0;
	width: 3px;
	height: 65%;
	background: linear-gradient(180deg, var(--wooplus-brand-500), var(--wooplus-brand-300));
	border-start-end-radius: 4px;
	border-end-end-radius: 4px;
}

body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
	background: var(--wooplus-surface);
	border-radius: var(--wooplus-radius-lg);
	box-shadow: var(--wooplus-shadow-card);
	padding: var(--wooplus-space-6);
	float: none !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	margin: 0 !important;
	box-sizing: border-box;
}

@media (max-width: 992px) {
	body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
		flex: 1 1 auto !important;
		width: 100% !important;
	}
}

/* ====================================================================
 *  ORDERS TABLE
 * ==================================================================== */

body.wooplus-myaccount-skin .woocommerce-orders-table,
body.wooplus-myaccount-skin .woocommerce-table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	border: 0;
}

body.wooplus-myaccount-skin .woocommerce-orders-table th,
body.wooplus-myaccount-skin .woocommerce-table th {
	background: var(--wooplus-surface-2);
	color: var(--wooplus-text-mute);
	font-size: var(--wooplus-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: var(--wooplus-space-3) var(--wooplus-space-4);
	border: 0;
	border-bottom: 1px solid var(--wooplus-border);
}

body.wooplus-myaccount-skin .woocommerce-orders-table td,
body.wooplus-myaccount-skin .woocommerce-table td {
	padding: var(--wooplus-space-4);
	border: 0;
	border-bottom: 1px solid var(--wooplus-divider);
	color: var(--wooplus-text);
	font-size: var(--wooplus-text-sm);
}

body.wooplus-myaccount-skin .woocommerce-orders-table tbody tr:hover,
body.wooplus-myaccount-skin .woocommerce-table tbody tr:hover {
	background: var(--wooplus-surface-hover);
}

/* Order status pills */
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status,
body.wooplus-myaccount-skin .woocommerce-table .order-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: var(--wooplus-text-xs);
	font-weight: 700;
	border-radius: var(--wooplus-radius-full);
}

body.wooplus-myaccount-skin .order-status.status-completed {
	background: var(--wooplus-brand-50);
	color: var(--wooplus-brand-700);
}

body.wooplus-myaccount-skin .order-status.status-processing {
	background: var(--wooplus-success-light);
	color: var(--wooplus-success-dark);
}

body.wooplus-myaccount-skin .order-status.status-on-hold {
	background: var(--wooplus-warning-light);
	color: var(--wooplus-warning-dark);
}

body.wooplus-myaccount-skin .order-status.status-cancelled,
body.wooplus-myaccount-skin .order-status.status-failed,
body.wooplus-myaccount-skin .order-status.status-refunded {
	background: var(--wooplus-danger-light);
	color: var(--wooplus-danger-dark);
}

body.wooplus-myaccount-skin .order-status.status-pending {
	background: var(--wooplus-info-light);
	color: var(--wooplus-info-dark);
}

/* ====================================================================
 *  BUTTONS
 * ==================================================================== */

body.wooplus-myaccount-skin .button,
body.wooplus-myaccount-skin .woocommerce-button,
body.wooplus-myaccount-skin button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wooplus-space-2);
	background: linear-gradient(135deg, var(--wooplus-brand-500), var(--wooplus-brand-400));
	color: #ffffff;
	border: 0;
	border-radius: var(--wooplus-radius);
	padding: 0 var(--wooplus-space-5);
	height: 44px;
	font-family: inherit;
	font-size: var(--wooplus-text-sm);
	font-weight: 700;
	letter-spacing: var(--wooplus-tracking-tight);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(66, 42, 251, 0.30);
	transition: var(--wooplus-transition-fast);
	text-decoration: none;
}

body.wooplus-myaccount-skin .button:hover,
body.wooplus-myaccount-skin .woocommerce-button:hover,
body.wooplus-myaccount-skin button[type="submit"]:hover {
	box-shadow: 0 6px 20px rgba(66, 42, 251, 0.40);
	color: #ffffff;
	transform: translateY(-1px);
}

body.wooplus-myaccount-skin .button.view,
body.wooplus-myaccount-skin .button.cancel {
	background: var(--wooplus-surface);
	color: var(--wooplus-text);
	border: 1px solid var(--wooplus-border-strong);
	box-shadow: none;
}

body.wooplus-myaccount-skin .button.view:hover {
	border-color: var(--wooplus-brand-500);
	color: var(--wooplus-brand-500);
}

/* ====================================================================
 *  FORM INPUTS
 * ==================================================================== */

body.wooplus-myaccount-skin input[type="text"],
body.wooplus-myaccount-skin input[type="email"],
body.wooplus-myaccount-skin input[type="tel"],
body.wooplus-myaccount-skin input[type="password"],
body.wooplus-myaccount-skin input[type="number"],
body.wooplus-myaccount-skin select,
body.wooplus-myaccount-skin textarea {
	display: block;
	width: 100%;
	padding: 0 var(--wooplus-space-4);
	height: 48px;
	font-family: inherit;
	font-size: var(--wooplus-text-sm);
	color: var(--wooplus-text);
	background: var(--wooplus-surface);
	border: 1px solid var(--wooplus-border-strong);
	border-radius: var(--wooplus-radius);
	outline: none;
	transition: var(--wooplus-transition-fast);
}

body.wooplus-myaccount-skin textarea {
	height: auto;
	min-height: 100px;
	padding: var(--wooplus-space-3) var(--wooplus-space-4);
	line-height: var(--wooplus-lh);
}

body.wooplus-myaccount-skin input:focus,
body.wooplus-myaccount-skin select:focus,
body.wooplus-myaccount-skin textarea:focus {
	border-color: var(--wooplus-brand-500);
	box-shadow: 0 0 0 3px rgba(66, 42, 251, 0.12);
}

body.wooplus-myaccount-skin label {
	display: block;
	font-size: var(--wooplus-text-sm);
	font-weight: 700;
	color: var(--wooplus-text);
	margin-bottom: var(--wooplus-space-2);
}

/* ====================================================================
 *  DASHBOARD WELCOME
 * ==================================================================== */

body.wooplus-myaccount-skin .woocommerce-MyAccount-content > p:first-of-type {
	font-size: var(--wooplus-text-md);
	color: var(--wooplus-text-mute);
	line-height: var(--wooplus-lh);
	margin-bottom: var(--wooplus-space-5);
}

/* ====================================================================
 *  ADDRESS BOOK
 * ==================================================================== */

body.wooplus-myaccount-skin .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--wooplus-space-5);
}

body.wooplus-myaccount-skin .woocommerce-Address {
	background: var(--wooplus-surface-2);
	border-radius: var(--wooplus-radius-lg);
	padding: var(--wooplus-space-5);
	border: 1px solid var(--wooplus-divider);
}

body.wooplus-myaccount-skin .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wooplus-space-3);
}

body.wooplus-myaccount-skin .woocommerce-Address-title h2,
body.wooplus-myaccount-skin .woocommerce-Address-title h3 {
	font-size: var(--wooplus-text-md);
	font-weight: 700;
	color: var(--wooplus-text-2);
	margin: 0;
}

body.wooplus-myaccount-skin .woocommerce-Address address {
	font-size: var(--wooplus-text-sm);
	color: var(--wooplus-text-mute);
	line-height: var(--wooplus-lh-loose);
	font-style: normal;
}

/* ====================================================================
 *  NOTICES
 * ==================================================================== */

body.wooplus-myaccount-skin .woocommerce-message,
body.wooplus-myaccount-skin .woocommerce-info,
body.wooplus-myaccount-skin .woocommerce-error {
	background: var(--wooplus-surface);
	border-radius: var(--wooplus-radius);
	box-shadow: var(--wooplus-shadow-xs);
	padding: var(--wooplus-space-4);
	margin: 0 0 var(--wooplus-space-4);
	border-inline-start: 4px solid var(--wooplus-info-dark);
	color: var(--wooplus-text);
	font-size: var(--wooplus-text-sm);
}

body.wooplus-myaccount-skin .woocommerce-message {
	border-inline-start-color: var(--wooplus-success);
	background: var(--wooplus-success-light);
	color: var(--wooplus-success-dark);
}

body.wooplus-myaccount-skin .woocommerce-error {
	border-inline-start-color: var(--wooplus-danger);
	background: var(--wooplus-danger-light);
	color: var(--wooplus-danger-dark);
}

body.wooplus-myaccount-skin .woocommerce-message::before,
body.wooplus-myaccount-skin .woocommerce-info::before,
body.wooplus-myaccount-skin .woocommerce-error::before {
	display: none;
}

/* ====================================================================
 *  PHASE 11 — TICKETING FRONTEND IN MY-ACCOUNT
 *
 *  The ticketing module renders <a class="wpu-btn wpu-btn-primary">
 *  buttons inside my-account. Without DS overrides these were
 *  rendering as bright unstyled blue. Bring them in line with brand.
 * ==================================================================== */

body.wooplus-myaccount-skin .wpu-btn,
body.wooplus-myaccount-skin a.wpu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	font-family: var(--wooplus-font-body);
	font-weight: 600;
	font-size: var(--wooplus-text-sm);
	line-height: 1;
	border-radius: var(--wooplus-radius);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: var(--wooplus-transition-fast);
	min-height: 40px;
}

body.wooplus-myaccount-skin .wpu-btn-primary,
body.wooplus-myaccount-skin a.wpu-btn-primary {
	background: linear-gradient(135deg, var(--wooplus-brand-500), var(--wooplus-brand-700));
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(66, 42, 251, 0.25);
}

body.wooplus-myaccount-skin .wpu-btn-primary:hover,
body.wooplus-myaccount-skin a.wpu-btn-primary:hover {
	color: #FFFFFF;
	box-shadow: 0 6px 20px rgba(66, 42, 251, 0.40);
	transform: translateY(-1px);
}

body.wooplus-myaccount-skin .wpu-btn-outline,
body.wooplus-myaccount-skin a.wpu-btn-outline {
	background: transparent;
	border-color: var(--wooplus-border-strong);
	color: var(--wooplus-text);
}

body.wooplus-myaccount-skin .wpu-btn-outline:hover,
body.wooplus-myaccount-skin a.wpu-btn-outline:hover {
	border-color: var(--wooplus-brand-500);
	color: var(--wooplus-brand-600);
	background: var(--wooplus-surface-hover);
}

/* Ticketing cards / row-head */
body.wooplus-myaccount-skin .wpu-card {
	background: var(--wooplus-surface);
	border: 1px solid var(--wooplus-border);
	border-radius: var(--wooplus-radius-lg);
	padding: var(--wooplus-space-6);
	box-shadow: var(--wooplus-shadow-card);
}

body.wooplus-myaccount-skin .wpu-card.text-center {
	text-align: center;
}

body.wooplus-myaccount-skin .wpu-empty {
	padding: var(--wooplus-space-8) var(--wooplus-space-5);
}

body.wooplus-myaccount-skin .wpu-row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--wooplus-space-4);
	gap: var(--wooplus-space-3);
}

body.wooplus-myaccount-skin .wpu-row-head h3 {
	margin: 0;
	font-size: var(--wooplus-text-xl);
	font-weight: 700;
	color: var(--wooplus-text);
}

/* Tables in tickets */
body.wooplus-myaccount-skin .wpu-table {
	width: 100%;
	border-collapse: collapse;
}

body.wooplus-myaccount-skin .wpu-table thead th {
	background: var(--wooplus-surface-2);
	color: var(--wooplus-text-mute);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: var(--wooplus-text-xs);
	font-weight: 700;
	padding: var(--wooplus-space-3) var(--wooplus-space-4);
	text-align: start;
}

body.wooplus-myaccount-skin .wpu-table tbody td {
	padding: var(--wooplus-space-3) var(--wooplus-space-4);
	border-bottom: 1px solid var(--wooplus-divider);
	color: var(--wooplus-text);
	font-size: var(--wooplus-text-sm);
}

body.wooplus-myaccount-skin .wpu-table tbody tr:hover {
	background: var(--wooplus-surface-hover);
}

body.wooplus-myaccount-skin .wpu-table a {
	color: var(--wooplus-brand-600);
	text-decoration: none;
	font-weight: 500;
}

body.wooplus-myaccount-skin .wpu-table a:hover {
	text-decoration: underline;
}

/* Status badges in tickets */
body.wooplus-myaccount-skin .wpu-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: var(--wooplus-radius-sm);
	font-size: var(--wooplus-text-xs);
	font-weight: 600;
	line-height: 1.4;
}

/* ====================================================================
 * v2.24.5 — Luxury polish + brand-palette wiring on my-account.
 *
 * Merchant feedback: "حساب کاربری ووکامرس باید یک زیبا سازی کلی انجام
 * شود. چندین بار این درخواست صورت گرفته شده است."
 *
 * Strategy: lift every surface that touches a customer to a token-
 * driven, brand-aware appearance. We DON'T introduce new templates;
 * we only restyle the existing WC structure. This means the upgrade
 * is non-breaking for any merchant who has copied my-account templates
 * to their theme.
 * ==================================================================== */

/* ---- Sidebar navigation card — elevated, brand-tinted active state. */
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation {
    background: var(--wooplus-surface, #fff);
    border: 1px solid color-mix(in srgb, var(--wooplus-brand-500, #157a41) 8%, var(--wooplus-border, #e5e7eb));
    border-radius: 18px;
    padding: 14px 10px;
    box-shadow:
        0 1px 3px 0 rgba(15, 23, 42, .04),
        0 12px 28px -16px color-mix(in srgb, var(--wooplus-brand-500, #157a41) 25%, transparent);
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li {
    margin: 0 0 4px;
    list-style: none;
    border-bottom: 0;
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wooplus-text, #0f172a);
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation a:hover {
    background: color-mix(in srgb, var(--wooplus-brand-500, #157a41) 6%, transparent);
    color: var(--wooplus-brand-700, #2111A5);
}
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.is-active a,
body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wooplus-brand-500, #157a41) 14%, transparent) 0%,
        color-mix(in srgb, var(--wooplus-brand-500, #157a41) 6%, transparent) 100%);
    color: var(--wooplus-brand-700, #2111A5);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--wooplus-brand-500, #157a41);
}

/* ---- Main content card — elevated paper feeling. */
body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
    background: var(--wooplus-surface, #fff);
    border: 1px solid var(--wooplus-border, #e5e7eb);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 36px);
    box-shadow:
        0 1px 3px 0 rgba(15, 23, 42, .04),
        0 8px 24px -10px rgba(15, 23, 42, .06);
    min-height: 480px;
}

/* ---- Default WC welcome paragraph — hide when our dashboard rendered.
 * The wpu-ma-default-suppressed wrapper is added by the_content patch
 * (Hook layer 3) when WC's welcome paragraph follows our dashboard. */
body.wooplus-myaccount-skin .wpu-ma-default-suppressed {
    display: none !important;
}
/* When dashboard renders via layer 1 or 2 (action hooks), the welcome
 * paragraph won't fire at all — nothing to hide. When layer 3 fires,
 * the welcome paragraph IS in the DOM but wrapped in this hider. */

/* ---- Orders table — luxury treatment. */
body.wooplus-myaccount-skin .woocommerce-orders-table,
body.wooplus-myaccount-skin table.shop_table.my_account_orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: 0;
}
body.wooplus-myaccount-skin .woocommerce-orders-table thead th,
body.wooplus-myaccount-skin table.shop_table.my_account_orders thead th {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--wooplus-brand-500, #157a41) 8%, transparent) 0%,
        color-mix(in srgb, var(--wooplus-brand-500, #157a41) 4%, transparent) 100%);
    color: var(--wooplus-brand-700, #2111A5);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border: 0;
    border-bottom: 2px solid color-mix(in srgb, var(--wooplus-brand-500, #157a41) 18%, transparent);
}
body.wooplus-myaccount-skin .woocommerce-orders-table thead th:first-child,
body.wooplus-myaccount-skin table.shop_table.my_account_orders thead th:first-child {
    border-start-start-radius: 12px;
}
body.wooplus-myaccount-skin .woocommerce-orders-table thead th:last-child,
body.wooplus-myaccount-skin table.shop_table.my_account_orders thead th:last-child {
    border-start-end-radius: 12px;
}
body.wooplus-myaccount-skin .woocommerce-orders-table tbody td,
body.wooplus-myaccount-skin table.shop_table.my_account_orders tbody td {
    background: var(--wooplus-surface, #fff);
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--wooplus-border, #e5e7eb);
    font-size: 14px;
    color: var(--wooplus-text, #0f172a);
}
body.wooplus-myaccount-skin .woocommerce-orders-table tbody tr:hover td,
body.wooplus-myaccount-skin table.shop_table.my_account_orders tbody tr:hover td {
    background: color-mix(in srgb, var(--wooplus-brand-500, #157a41) 3%, var(--wooplus-surface, #fff));
}

/* Order status pills inside the table. */
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status.status-completed,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .order-status.status-completed {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #065f46;
}
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status.status-processing,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .order-status.status-processing {
    background: color-mix(in srgb, var(--wooplus-brand-500, #157a41) 14%, transparent);
    color: var(--wooplus-brand-700, #2111A5);
}
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status.status-cancelled,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .order-status.status-cancelled {
    background: color-mix(in srgb, #ef4444 14%, transparent);
    color: #991b1b;
}
body.wooplus-myaccount-skin .woocommerce-orders-table .order-status.status-on-hold,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .order-status.status-on-hold {
    background: color-mix(in srgb, #f59e0b 14%, transparent);
    color: #92400e;
}

/* "View" / order action buttons — pill style, brand. */
body.wooplus-myaccount-skin .woocommerce-orders-table .button,
body.wooplus-myaccount-skin table.shop_table.my_account_orders .button,
body.wooplus-myaccount-skin .woocommerce-MyAccount-content .button,
body.wooplus-myaccount-skin .woocommerce-MyAccount-content a.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--wooplus-brand-500, #157a41);
    color: #fff !important;
    border: 0;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--wooplus-brand-500, #157a41) 40%, transparent);
}
body.wooplus-myaccount-skin .woocommerce-orders-table .button:hover,
body.wooplus-myaccount-skin .woocommerce-MyAccount-content .button:hover {
    background: var(--wooplus-brand-600, #3311DB);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--wooplus-brand-500, #157a41) 50%, transparent);
}

/* Address book — luxury card treatment. */
body.wooplus-myaccount-skin .woocommerce-Address {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--wooplus-brand-500, #157a41) 3%, transparent) 0%,
        var(--wooplus-surface, #fff) 60%);
    border: 1px solid color-mix(in srgb, var(--wooplus-brand-500, #157a41) 10%, var(--wooplus-border, #e5e7eb));
    border-radius: 14px;
    padding: 22px;
    transition: box-shadow .2s ease, transform .2s ease;
}
body.wooplus-myaccount-skin .woocommerce-Address:hover {
    box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--wooplus-brand-500, #157a41) 25%, transparent);
    transform: translateY(-2px);
}
body.wooplus-myaccount-skin .woocommerce-Address-title h2,
body.wooplus-myaccount-skin .woocommerce-Address-title h3 {
    color: var(--wooplus-brand-700, #2111A5);
}

/* Account details form — generous spacing, rounded inputs. */
body.wooplus-myaccount-skin .woocommerce-EditAccountForm fieldset,
body.wooplus-myaccount-skin form.woocommerce-EditAccountForm fieldset {
    margin: 24px 0 12px;
    padding: 18px;
    border: 1px solid var(--wooplus-border, #e5e7eb);
    border-radius: 12px;
    background: color-mix(in srgb, var(--wooplus-brand-500, #157a41) 2%, transparent);
}
body.wooplus-myaccount-skin .woocommerce-EditAccountForm legend {
    font-weight: 700;
    color: var(--wooplus-brand-700, #2111A5);
    padding: 0 8px;
    font-size: 14px;
}
body.wooplus-myaccount-skin .woocommerce-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wooplus-text, #0f172a);
    margin-bottom: 6px;
}
body.wooplus-myaccount-skin .woocommerce-Input,
body.wooplus-myaccount-skin .woocommerce-form-row input,
body.wooplus-myaccount-skin .woocommerce-form-row select,
body.wooplus-myaccount-skin .woocommerce-form-row textarea,
body.wooplus-myaccount-skin .woocommerce-MyAccount-content input[type="text"],
body.wooplus-myaccount-skin .woocommerce-MyAccount-content input[type="email"],
body.wooplus-myaccount-skin .woocommerce-MyAccount-content input[type="tel"],
body.wooplus-myaccount-skin .woocommerce-MyAccount-content input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wooplus-border, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    background: var(--wooplus-surface, #fff);
    color: var(--wooplus-text, #0f172a);
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.wooplus-myaccount-skin .woocommerce-Input:focus,
body.wooplus-myaccount-skin .woocommerce-form-row input:focus,
body.wooplus-myaccount-skin .woocommerce-form-row textarea:focus {
    outline: none;
    border-color: var(--wooplus-brand-500, #157a41);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wooplus-brand-500, #157a41) 18%, transparent);
}

/* Pagination dots / next/prev. */
body.wooplus-myaccount-skin .woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 16px 0;
    justify-content: center;
}
body.wooplus-myaccount-skin .woocommerce-pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--wooplus-surface, #fff);
    border: 1px solid var(--wooplus-border, #e5e7eb);
    color: var(--wooplus-text, #0f172a);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
}
body.wooplus-myaccount-skin .woocommerce-pagination .page-numbers:hover {
    border-color: var(--wooplus-brand-500, #157a41);
    color: var(--wooplus-brand-700, #2111A5);
}
body.wooplus-myaccount-skin .woocommerce-pagination .page-numbers.current {
    background: var(--wooplus-brand-500, #157a41);
    color: #fff;
    border-color: var(--wooplus-brand-500, #157a41);
}

/* Layout: navigation + content side by side, comfortable gap.
 * Desktop ≥ 1024px: 280px sidebar + flex-grow content. */
@media (min-width: 1024px) {
    body.wooplus-myaccount-skin .woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 28px;
        align-items: start;
    }
    body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation {
        position: sticky;
        top: 24px;
    }
}

/* Mobile: stack with nav on top. */
@media (max-width: 1023px) {
    body.wooplus-myaccount-skin .woocommerce-MyAccount-navigation {
        margin-bottom: 16px;
    }
    body.wooplus-myaccount-skin .woocommerce-MyAccount-content {
        padding: 18px;
        min-height: 0;
    }
}

/* ====================================================================
 * v2.24.6 — Belt-and-braces: hide WC default welcome paragraphs.
 *
 * Our wc_get_template filter swaps `myaccount/dashboard.php` with our
 * own template, so WC's hardcoded `<p>Hello %s</p>` and
 * `<p>From your account dashboard...</p>` should never reach the page.
 *
 * BUT: some extreme setups (custom shortcode wrappers that completely
 * bypass wc_get_template, or a builder that inlines its own dashboard
 * HTML) may still emit those paragraphs. As a final safety net we
 * hide them via CSS WHEN our dashboard ALSO rendered (gated by
 * `body.wpu-ma-rendered` which the template adds to <body> via JS).
 *
 * The gate is critical: we MUST NOT hide WC welcome paragraphs when
 * our dashboard didn't render — that would leave the user with a
 * blank page. The gate ensures we only hide when we have a
 * replacement on screen.
 * =================================================================== */

/* Body-class-gated: only hide when our dashboard is already in DOM. */
body.wpu-ma-rendered.woocommerce-account .woocommerce-MyAccount-content > p:not(.wpu-ma-keep),
body.wpu-ma-rendered.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-MyAccount-paymentMethods,
body.wpu-ma-rendered .wpu-ma-default-suppressed {
    display: none !important;
}

/* Hide WC's specific welcome <p>s by content signature attribute (we
 * don't have such an attribute; this rule documents intent but cannot
 * reliably target them by content). The body-class gate above is the
 * primary mechanism. */
