/**
 * Nisargo Natural Care - Custom My Account Stylesheet
 *
 * Dedicated styling for the WooCommerce My Account portal.
 * Official Brand Palette:
 *   Primary Green:   #356D48
 *   Secondary Green: #9BC567
 *   Dark Green:      #22472e
 *
 * Rooted to eliminate inherited pink links (#c36), blue badges, grey cell highlights,
 * and black table borders from Hello Elementor's reset.css and default WooCommerce styles.
 */

:root {
	/* Official Brand Palette */
	--nisargo-acc-primary: #356D48;
	--nisargo-acc-secondary: #9BC567;
	--nisargo-acc-primary-dark: #22472e;
	--nisargo-acc-primary-light: #44855a;
	--nisargo-acc-secondary-dark: #84ad4f;

	/* Refined Tints & Backgrounds */
	--nisargo-acc-primary-tint: #f2f7ef;
	--nisargo-acc-secondary-tint: #eaf4df;
	--nisargo-acc-primary-tint-subtle: #f9fbf8;

	/* Typography & Neutrals */
	--nisargo-acc-text-main: #1d2b22;
	--nisargo-acc-text-muted: #53665a;
	--nisargo-acc-border: #dfe7de;
	--nisargo-acc-border-input: #cfdcce;
	--nisargo-acc-border-hover: #9BC567;
	--nisargo-acc-border-focus: #356D48;
	--nisargo-acc-surface: #ffffff;

	/* Structural Tokens */
	--nisargo-acc-radius-lg: 12px;
	--nisargo-acc-radius-md: 8px;
	--nisargo-acc-radius-sm: 6px;
	--nisargo-acc-shadow: 0 4px 16px rgba(34, 71, 46, 0.05);
	--nisargo-acc-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   1. Universal Color Reset for My Account (Eliminates #c36 Pink Links & Borders)
   ========================================================================== */
.nisargo-custom-account-wrapper {
	background-color: var(--nisargo-acc-primary-tint-subtle);
	color: var(--nisargo-acc-text-main);
	font-family: var(--nisargo-acc-font);
	min-height: 60vh;
}

.nisargo-custom-account-wrapper * {
	box-sizing: border-box;
}

/* Override parent theme reset.css line 1 (a { color: #c36; }) across the account portal */
.nisargo-custom-account-wrapper a,
.nisargo-custom-account-wrapper .woocommerce-MyAccount-content a,
.nisargo-custom-account-wrapper table a,
.nisargo-custom-account-wrapper td a,
.nisargo-custom-account-wrapper th a,
.nisargo-custom-account-wrapper .product-name a,
.nisargo-custom-account-wrapper .order-number a,
.nisargo-custom-account-wrapper .woocommerce-customer-details a {
	color: var(--nisargo-acc-primary) !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

.nisargo-custom-account-wrapper a:hover,
.nisargo-custom-account-wrapper .woocommerce-MyAccount-content a:hover,
.nisargo-custom-account-wrapper table a:hover,
.nisargo-custom-account-wrapper td a:hover,
.nisargo-custom-account-wrapper th a:hover,
.nisargo-custom-account-wrapper .product-name a:hover,
.nisargo-custom-account-wrapper .order-number a:hover,
.nisargo-custom-account-wrapper .woocommerce-customer-details a:hover {
	color: var(--nisargo-acc-primary-dark) !important;
	text-decoration: underline !important;
}

/* Universal text highlight / <mark> tag reset (removes grey rectangular text patches) */
.nisargo-custom-account-wrapper mark:not(.order-status) {
	background: transparent !important;
	color: var(--nisargo-acc-primary-dark) !important;
	font-weight: 700 !important;
	padding: 0 !important;
}

/* Universal Button Reset (replaces pink borders and default buttons) */
.nisargo-custom-account-wrapper button.button,
.nisargo-custom-account-wrapper input[type="submit"].button,
.nisargo-custom-account-wrapper a.button,
.nisargo-custom-account-wrapper .woocommerce-Button,
.nisargo-custom-account-wrapper .button:not(.nisargo-quantity-button) {
	background-color: var(--nisargo-acc-primary) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	font-family: var(--nisargo-acc-font) !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	padding: 12px 24px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 4px 14px rgba(53, 109, 72, 0.22) !important;
	transition: all 0.2s ease !important;
}

.nisargo-custom-account-wrapper button.button:hover,
.nisargo-custom-account-wrapper input[type="submit"].button:hover,
.nisargo-custom-account-wrapper a.button:hover,
.nisargo-custom-account-wrapper .woocommerce-Button:hover,
.nisargo-custom-account-wrapper .button:not(.nisargo-quantity-button):hover {
	background-color: var(--nisargo-acc-primary-dark) !important;
	color: #ffffff !important;
	box-shadow: 0 6px 18px rgba(34, 71, 46, 0.3) !important;
	transform: translateY(-1px) !important;
}

/* ==========================================================================
   2. Hero Banner
   ========================================================================== */
.nisargo-account-hero {
	background: radial-gradient(circle at 50% 0%, rgba(155, 197, 103, 0.28) 0%, transparent 70%),
	            linear-gradient(135deg, #163622 0%, #22472e 50%, #356D48 100%) !important;
	padding: 44px 20px 40px !important;
	text-align: center !important;
	color: #ffffff !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
	box-shadow: 0 4px 16px rgba(34, 71, 46, 0.08) !important;
}

.nisargo-account-hero-inner {
	max-width: 720px !important;
	margin: 0 auto !important;
}

.nisargo-hero-kicker {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.12em !important;
	color: #9BC567 !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(155, 197, 103, 0.45) !important;
	padding: 4px 14px !important;
	border-radius: 20px !important;
	margin-bottom: 12px !important;
}

.nisargo-account-hero-title {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 2.125rem !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 10px 0 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.25 !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.nisargo-account-hero-subtitle {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	margin: 0 auto !important;
	line-height: 1.5 !important;
	max-width: 580px !important;
}

.nisargo-account-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 36px 20px 70px;
	box-sizing: border-box;
}

/* ==========================================================================
   3. Notices & Feedback Messages
   ========================================================================== */
.nisargo-custom-account-wrapper .woocommerce-notices-wrapper {
	margin-bottom: 24px;
}

.nisargo-custom-account-wrapper .woocommerce-message,
.nisargo-custom-account-wrapper .woocommerce-info,
.nisargo-custom-account-wrapper .woocommerce-error {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	padding: 14px 20px 14px 44px !important;
	margin-bottom: 20px !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important;
	position: relative !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.nisargo-custom-account-wrapper .woocommerce-message {
	background-color: var(--nisargo-acc-primary-tint) !important;
	color: var(--nisargo-acc-primary-dark) !important;
	border-left: 4px solid var(--nisargo-acc-primary) !important;
}

.nisargo-custom-account-wrapper .woocommerce-message a.button {
	background-color: var(--nisargo-acc-primary) !important;
	color: #ffffff !important;
	border-radius: var(--nisargo-acc-radius-sm) !important;
	padding: 5px 14px !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	margin-left: 12px !important;
	border: none !important;
}

.nisargo-custom-account-wrapper .woocommerce-info {
	background-color: var(--nisargo-acc-primary-tint) !important;
	color: var(--nisargo-acc-primary-dark) !important;
	border-left: 4px solid var(--nisargo-acc-primary) !important;
	border-top: 1px solid var(--nisargo-acc-border) !important;
	border-right: 1px solid var(--nisargo-acc-border) !important;
	border-bottom: 1px solid var(--nisargo-acc-border) !important;
}

.nisargo-custom-account-wrapper .woocommerce-info::before {
	color: var(--nisargo-acc-primary) !important;
}

.nisargo-custom-account-wrapper .woocommerce-info a.button,
.nisargo-custom-account-wrapper .woocommerce-info .button {
	background-color: var(--nisargo-acc-primary) !important;
	color: #ffffff !important;
	border-radius: var(--nisargo-acc-radius-sm) !important;
	padding: 6px 16px !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: 1px solid var(--nisargo-acc-primary) !important;
	box-shadow: 0 1px 3px rgba(34, 71, 46, 0.15) !important;
	transition: all 0.2s ease !important;
	line-height: 1.4 !important;
	display: inline-block !important;
	margin-left: 12px !important;
}

.nisargo-custom-account-wrapper .woocommerce-info a.button:hover,
.nisargo-custom-account-wrapper .woocommerce-info .button:hover {
	background-color: var(--nisargo-acc-primary-dark) !important;
	border-color: var(--nisargo-acc-primary-dark) !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
}

.nisargo-custom-account-wrapper .woocommerce-info a:not(.button) {
	color: var(--nisargo-acc-primary) !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
}

.nisargo-custom-account-wrapper .woocommerce-info a:not(.button):hover {
	color: var(--nisargo-acc-primary-dark) !important;
}

.nisargo-custom-account-wrapper .woocommerce-error {
	background-color: #fdf2f2 !important;
	color: #b82222 !important;
	border-left: 4px solid #dc2626 !important;
	list-style: none !important;
}

/* ==========================================================================
   4. Navigation Tabs: Horizontal Desktop, Scrollable Mobile
   ========================================================================== */
.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	margin: 0 0 32px 0 !important;
	border-bottom: 2px solid var(--nisargo-acc-border) !important;
	box-sizing: border-box !important;
	display: block !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 4px 0 0 !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: thin !important;
	scrollbar-color: var(--nisargo-acc-border) transparent !important;
	box-sizing: border-box !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
	height: 4px;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb {
	background: var(--nisargo-acc-border);
	border-radius: 4px;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li {
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	white-space: nowrap !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 12px 20px !important;
	font-family: var(--nisargo-acc-font) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	color: var(--nisargo-acc-text-muted) !important;
	text-decoration: none !important;
	border-radius: var(--nisargo-acc-radius-md) var(--nisargo-acc-radius-md) 0 0 !important;
	border-bottom: 2px solid transparent !important;
	margin-bottom: -2px !important;
	white-space: nowrap !important;
	transition: all 0.18s ease !important;
	background: transparent !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--nisargo-acc-primary) !important;
	background-color: rgba(155, 197, 103, 0.14) !important;
	border-bottom-color: var(--nisargo-acc-secondary) !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li.is-active a,
.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
	color: var(--nisargo-acc-primary-dark) !important;
	border-bottom-color: var(--nisargo-acc-primary) !important;
	background-color: var(--nisargo-acc-primary-tint) !important;
	font-weight: 700 !important;
}

.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li a:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(155, 197, 103, 0.45) !important;
	border-radius: var(--nisargo-acc-radius-sm) !important;
}

/* ==========================================================================
   5. Account Content Card & Dashboard Shortcuts
   ========================================================================== */
.nisargo-custom-account-wrapper .woocommerce-MyAccount-content {
	background-color: var(--nisargo-acc-surface) !important;
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-lg) !important;
	padding: 36px 40px !important;
	box-shadow: var(--nisargo-acc-shadow) !important;
	box-sizing: border-box !important;
	min-height: 380px !important;
	float: none !important;
	width: 100% !important;
	position: relative !important;
	transition: opacity 0.2s ease, filter 0.2s ease !important;
}

/* Fast Tab Switching: Loading State & Brand Green Progress Line */
.nisargo-custom-account-wrapper .woocommerce-MyAccount-content.is-loading {
	opacity: 0.65 !important;
	filter: saturate(0.9) !important;
	pointer-events: none !important;
}

.nisargo-custom-account-wrapper .woocommerce-MyAccount-content.is-loading::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 3px !important;
	background: linear-gradient(90deg, var(--nisargo-acc-primary) 0%, var(--nisargo-acc-secondary) 50%, var(--nisargo-acc-primary) 100%) !important;
	background-size: 200% 100% !important;
	animation: nisargo-tab-loading 1.2s infinite ease-in-out !important;
	border-radius: var(--nisargo-acc-radius-lg) var(--nisargo-acc-radius-lg) 0 0 !important;
	z-index: 10 !important;
}

@keyframes nisargo-tab-loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.nisargo-custom-account-wrapper .woocommerce-MyAccount-content > p:first-child {
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	margin-top: 0 !important;
	margin-bottom: 16px !important;
	line-height: 1.5 !important;
}

/* Dashboard Quick Action Cards Grid */
.nisargo-custom-account-wrapper .nisargo-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 28px;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-card {
	background: var(--nisargo-acc-primary-tint-subtle) !important;
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	padding: 22px !important;
	text-decoration: none !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 16px !important;
	transition: all 0.2s ease !important;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-card:hover {
	border-color: var(--nisargo-acc-secondary) !important;
	box-shadow: 0 6px 18px rgba(53, 109, 72, 0.1) !important;
	transform: translateY(-2px) !important;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-icon {
	width: 44px !important;
	height: 44px !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	background: #ffffff !important;
	border: 1.5px solid var(--nisargo-acc-border) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--nisargo-acc-primary) !important;
	flex-shrink: 0 !important;
	transition: all 0.2s ease !important;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-card:hover .nisargo-dashboard-icon {
	background: var(--nisargo-acc-secondary-tint) !important;
	border-color: var(--nisargo-acc-secondary) !important;
	color: var(--nisargo-acc-primary-dark) !important;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-info strong {
	display: block !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	margin-bottom: 4px !important;
}

.nisargo-custom-account-wrapper .nisargo-dashboard-info span {
	font-size: 0.8125rem !important;
	color: var(--nisargo-acc-text-muted) !important;
	line-height: 1.4 !important;
}

/* ==========================================================================
   6. Universal Table Reset (Eliminates Grey Cell Patches & Harsh Black Borders)
   ========================================================================== */
.nisargo-custom-account-wrapper table,
.nisargo-custom-account-wrapper table.shop_table,
.nisargo-custom-account-wrapper table.woocommerce-orders-table,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details,
.nisargo-custom-account-wrapper table.order_details {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	overflow: hidden !important;
	background-color: #ffffff !important;
	margin: 0 0 28px 0 !important;
}

.nisargo-custom-account-wrapper table thead th,
.nisargo-custom-account-wrapper table.shop_table thead th,
.nisargo-custom-account-wrapper table.woocommerce-orders-table thead th,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details thead th,
.nisargo-custom-account-wrapper table.order_details thead th {
	background-color: var(--nisargo-acc-primary-tint) !important;
	color: var(--nisargo-acc-primary-dark) !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 14px 18px !important;
	border: none !important;
	border-bottom: 1px solid var(--nisargo-acc-border) !important;
	text-align: left !important;
}

/* Override Hello Elementor's table tbody>tr:nth-child(odd)>td hsla(0,0%,50%,.071) grey backgrounds */
.nisargo-custom-account-wrapper table td,
.nisargo-custom-account-wrapper table th,
.nisargo-custom-account-wrapper table tbody > tr > td,
.nisargo-custom-account-wrapper table tbody > tr > th,
.nisargo-custom-account-wrapper table tbody > tr:nth-child(odd) > td,
.nisargo-custom-account-wrapper table tbody > tr:nth-child(odd) > th,
.nisargo-custom-account-wrapper table tbody > tr:nth-child(even) > td,
.nisargo-custom-account-wrapper table tbody > tr:nth-child(even) > th,
.nisargo-custom-account-wrapper table tfoot > tr > td,
.nisargo-custom-account-wrapper table tfoot > tr > th {
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: none !important;
	border-bottom: 1px solid #edf2ee !important;
	padding: 16px 18px !important;
	vertical-align: middle !important;
	color: var(--nisargo-acc-text-main) !important;
	font-size: 0.9375rem !important;
}

/* Row Hover: subtle fresh green tint instead of dirty grey hsla(0,0%,50%,.102) */
.nisargo-custom-account-wrapper table tbody tr:hover > td,
.nisargo-custom-account-wrapper table tbody tr:hover > th {
	background-color: var(--nisargo-acc-primary-tint-subtle) !important;
}

.nisargo-custom-account-wrapper table tbody tr:last-child td,
.nisargo-custom-account-wrapper table tbody tr:last-child th {
	border-bottom: none !important;
}

/* Product & Order Names */
.nisargo-custom-account-wrapper table.order_details td.product-name a,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details td.product-name a,
.nisargo-custom-account-wrapper .woocommerce-orders-table__cell-order-number a {
	color: var(--nisargo-acc-primary) !important;
	font-weight: 700 !important;
}

.nisargo-custom-account-wrapper table.order_details td.product-name a:hover,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details td.product-name a:hover,
.nisargo-custom-account-wrapper .woocommerce-orders-table__cell-order-number a:hover {
	color: var(--nisargo-acc-primary-dark) !important;
}

/* Order Totals Table Footers (View Order Totals, Shipping, Payment Method) */
.nisargo-custom-account-wrapper table.order_details tfoot th,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details tfoot th {
	font-weight: 600 !important;
	color: var(--nisargo-acc-text-muted) !important;
	border-top: 1px solid #edf2ee !important;
	text-align: left !important;
	background: #ffffff !important;
}

.nisargo-custom-account-wrapper table.order_details tfoot td,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details tfoot td {
	text-align: right !important;
	font-weight: 600 !important;
	color: var(--nisargo-acc-text-main) !important;
	border-top: 1px solid #edf2ee !important;
	background: #ffffff !important;
}

.nisargo-custom-account-wrapper table.order_details tfoot tr:last-child th,
.nisargo-custom-account-wrapper table.order_details tfoot tr:last-child td,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details tfoot tr:last-child th,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details tfoot tr:last-child td {
	font-size: 1.0625rem !important;
	font-weight: 800 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	border-top: 1.5px solid var(--nisargo-acc-border) !important;
}

.nisargo-custom-account-wrapper table.order_details tfoot tr:last-child td .amount,
.nisargo-custom-account-wrapper table.woocommerce-table--order-details tfoot tr:last-child td .amount {
	color: var(--nisargo-acc-primary) !important;
	font-weight: 800 !important;
}

/* ==========================================================================
   7. Order Status Badges (Accessible Green Palette)
   ========================================================================== */
.nisargo-custom-account-wrapper mark.order-status {
	display: inline-block !important;
	padding: 4px 12px !important;
	border-radius: 20px !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	line-height: 1.3 !important;
}

/* Green-themed processing and completed (no default blue badges) */
.nisargo-custom-account-wrapper mark.status-completed,
.nisargo-custom-account-wrapper mark.status-processing {
	background-color: var(--nisargo-acc-secondary-tint) !important;
	color: var(--nisargo-acc-primary-dark) !important;
	border: 1px solid var(--nisargo-acc-secondary) !important;
}

.nisargo-custom-account-wrapper mark.status-on-hold {
	background-color: #fcf6e5 !important;
	color: #8c6307 !important;
	border: 1px solid #f5dd8a !important;
}

.nisargo-custom-account-wrapper mark.status-failed,
.nisargo-custom-account-wrapper mark.status-cancelled {
	background-color: #fdf2f2 !important;
	color: #c82828 !important;
	border: 1px solid #f8c3c3 !important;
}

/* Orders Actions View Button */
.nisargo-custom-account-wrapper table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button {
	background-color: var(--nisargo-acc-primary) !important;
	color: #ffffff !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	padding: 7px 18px !important;
	border-radius: var(--nisargo-acc-radius-sm) !important;
	border: none !important;
	box-shadow: 0 2px 6px rgba(53, 109, 72, 0.2) !important;
}

.nisargo-custom-account-wrapper table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button:hover {
	background-color: var(--nisargo-acc-primary-dark) !important;
}

/* ==========================================================================
   8. Customer Details & Addresses Section (View Order & Edit Address)
   ========================================================================== */
.nisargo-custom-account-wrapper .woocommerce-customer-details {
	margin-top: 32px !important;
	padding-top: 24px !important;
	border-top: 1px solid var(--nisargo-acc-border) !important;
}

.nisargo-custom-account-wrapper .woocommerce-customer-details h2,
.nisargo-custom-account-wrapper .woocommerce-order-details__title {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	margin: 0 0 16px 0 !important;
}

/* Address Container: Equal-width 2-column grid, top-aligned */
.nisargo-custom-account-wrapper .woocommerce-Addresses,
.nisargo-custom-account-wrapper .woocommerce-columns--addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
	margin-top: 20px !important;
	box-sizing: border-box !important;
	align-items: stretch !important;
}

/* Eliminate WooCommerce core ::before and ::after clearfix pseudo-elements from grid calculations */
.nisargo-custom-account-wrapper .woocommerce-Addresses::before,
.nisargo-custom-account-wrapper .woocommerce-Addresses::after,
.nisargo-custom-account-wrapper .woocommerce-columns--addresses::before,
.nisargo-custom-account-wrapper .woocommerce-columns--addresses::after,
.nisargo-custom-account-wrapper .col2-set.addresses::before,
.nisargo-custom-account-wrapper .col2-set.addresses::after {
	display: none !important;
	content: none !important;
	clear: none !important;
}

/* Address Cards: Identical width, aligned top edge */
.nisargo-custom-account-wrapper .woocommerce-Address,
.nisargo-custom-account-wrapper .woocommerce-Addresses .col-1,
.nisargo-custom-account-wrapper .woocommerce-Addresses .col-2,
.nisargo-custom-account-wrapper .woocommerce-Addresses .u-column1,
.nisargo-custom-account-wrapper .woocommerce-Addresses .u-column2,
.nisargo-custom-account-wrapper .woocommerce-column--billing-address,
.nisargo-custom-account-wrapper .woocommerce-column--shipping-address {
	background-color: var(--nisargo-acc-primary-tint-subtle) !important;
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	padding: 24px !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	box-shadow: 0 1px 4px rgba(34, 71, 46, 0.04) !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.nisargo-custom-account-wrapper .woocommerce-Address:hover,
.nisargo-custom-account-wrapper .woocommerce-column--billing-address:hover,
.nisargo-custom-account-wrapper .woocommerce-column--shipping-address:hover {
	border-color: var(--nisargo-acc-secondary) !important;
	box-shadow: 0 3px 10px rgba(34, 71, 46, 0.08) !important;
}

/* Address Card Header: h2/h3 and Edit Button alignment */
.nisargo-custom-account-wrapper .woocommerce-Address-title,
.nisargo-custom-account-wrapper .woocommerce-column__title {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	flex-wrap: nowrap !important;
	margin: 0 0 16px 0 !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid var(--nisargo-acc-border) !important;
}

.nisargo-custom-account-wrapper .woocommerce-Address-title h2,
.nisargo-custom-account-wrapper .woocommerce-Address-title h3,
.nisargo-custom-account-wrapper .woocommerce-column__title {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.nisargo-custom-account-wrapper .woocommerce-Address-title a.edit {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: var(--nisargo-acc-primary) !important;
	background: #ffffff !important;
	border: 1.5px solid var(--nisargo-acc-border) !important;
	padding: 6px 14px !important;
	border-radius: var(--nisargo-acc-radius-sm) !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	line-height: 1.3 !important;
}

.nisargo-custom-account-wrapper .woocommerce-Address-title a.edit:hover {
	border-color: var(--nisargo-acc-secondary) !important;
	color: var(--nisargo-acc-primary-dark) !important;
	background-color: var(--nisargo-acc-secondary-tint) !important;
}

.nisargo-custom-account-wrapper address {
	font-style: normal !important;
	font-size: 0.9375rem !important;
	line-height: 1.65 !important;
	color: var(--nisargo-acc-text-main) !important;
	margin: 0 !important;
	flex: 1 !important;
}

/* ==========================================================================
   9. Account Details Endpoint: Symmetrical, Balanced Single/Dual Grid (No Empty Right Column)
   ========================================================================== */
.nisargo-custom-account-wrapper form.woocommerce-EditAccountForm {
	max-width: 820px !important;
	margin: 0 auto !important;
	width: 100% !important;
}

.nisargo-custom-account-wrapper .woocommerce-EditAccountForm .form-row {
	margin-bottom: 20px !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

@media (min-width: 680px) {
	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		column-gap: 24px !important;
		row-gap: 4px !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm .form-row-first {
		grid-column: 1 / 2 !important;
		width: 100% !important;
		float: none !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm .form-row-last {
		grid-column: 2 / 3 !important;
		width: 100% !important;
		float: none !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm .form-row-wide,
	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm fieldset,
	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm .clear,
	.nisargo-custom-account-wrapper .woocommerce-EditAccountForm > p:last-child {
		grid-column: 1 / -1 !important;
		width: 100% !important;
	}
}

.nisargo-custom-account-wrapper .woocommerce-EditAccountForm label,
.nisargo-custom-account-wrapper .woocommerce-address-fields label,
.nisargo-custom-account-wrapper form.login label {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: var(--nisargo-acc-text-main) !important;
	margin-bottom: 6px !important;
	display: block !important;
}

.nisargo-custom-account-wrapper input.input-text,
.nisargo-custom-account-wrapper select,
.nisargo-custom-account-wrapper textarea {
	width: 100% !important;
	height: 48px !important;
	border: 1px solid var(--nisargo-acc-border-input) !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	padding: 0 16px !important;
	font-family: var(--nisargo-acc-font) !important;
	font-size: 0.9375rem !important;
	background-color: #ffffff !important;
	color: var(--nisargo-acc-text-main) !important;
	box-sizing: border-box !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.nisargo-custom-account-wrapper textarea {
	height: auto !important;
	padding: 12px 16px !important;
}

.nisargo-custom-account-wrapper input.input-text:focus,
.nisargo-custom-account-wrapper select:focus,
.nisargo-custom-account-wrapper textarea:focus {
	outline: none !important;
	border-color: var(--nisargo-acc-primary) !important;
	box-shadow: 0 0 0 3px rgba(155, 197, 103, 0.28) !important;
}

.nisargo-custom-account-wrapper #account_display_name_description {
	display: block !important;
	margin-top: 6px !important;
	font-size: 0.8125rem !important;
	color: var(--nisargo-acc-text-muted) !important;
	line-height: 1.4 !important;
}

.nisargo-custom-account-wrapper fieldset {
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-md) !important;
	padding: 24px 28px !important;
	margin: 28px 0 20px 0 !important;
	background: var(--nisargo-acc-primary-tint-subtle) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.nisargo-custom-account-wrapper fieldset legend {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	padding: 0 10px !important;
}

/* Password input visibility toggles */
.nisargo-custom-account-wrapper .woocommerce-password-input {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}

.nisargo-custom-account-wrapper .show-password-input {
	position: absolute !important;
	top: 50% !important;
	right: 12px !important;
	transform: translateY(-50%) !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--nisargo-acc-text-muted) !important;
	cursor: pointer !important;
	padding: 4px !important;
}

.nisargo-custom-account-wrapper .show-password-input:hover {
	color: var(--nisargo-acc-primary) !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ==========================================================================
   10. Logged-Out Login & Registration Card
   ========================================================================== */
.nisargo-custom-account-wrapper form.login,
.nisargo-custom-account-wrapper form.woocommerce-form-login {
	max-width: 480px !important;
	margin: 20px auto 40px !important;
	background-color: var(--nisargo-acc-surface) !important;
	border: 1px solid var(--nisargo-acc-border) !important;
	border-radius: var(--nisargo-acc-radius-lg) !important;
	padding: 36px 32px !important;
	box-shadow: var(--nisargo-acc-shadow) !important;
	box-sizing: border-box !important;
}

.nisargo-custom-account-wrapper form.login h2,
.nisargo-custom-account-wrapper .woocommerce > h2:first-child {
	font-family: var(--nisargo-acc-font) !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--nisargo-acc-primary-dark) !important;
	text-align: center !important;
	margin: 0 0 24px 0 !important;
	line-height: 1.3 !important;
}

.nisargo-custom-account-wrapper .woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-size: 0.875rem !important;
	color: var(--nisargo-acc-text-muted) !important;
}

.nisargo-custom-account-wrapper .woocommerce-form-login__rememberme input[type="checkbox"] {
	accent-color: var(--nisargo-acc-primary) !important;
	width: 16px !important;
	height: 16px !important;
}

.nisargo-custom-account-wrapper .lost_password {
	text-align: center !important;
	margin-top: 16px !important;
}

/* ==========================================================================
   11. Responsive Mobile Adaptations
   ========================================================================== */
@media (max-width: 768px) {
	.nisargo-account-hero {
		padding: 32px 16px 28px !important;
	}

	.nisargo-account-hero-title {
		font-size: 1.625rem !important;
		margin-bottom: 8px !important;
	}

	.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation {
		margin-bottom: 22px !important;
	}

	.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		padding-bottom: 6px !important;
		gap: 6px !important;
	}

	.nisargo-custom-account-wrapper nav.woocommerce-MyAccount-navigation ul li a {
		padding: 10px 14px !important;
		font-size: 0.875rem !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-MyAccount-content {
		padding: 22px 18px !important;
		border-radius: 10px !important;
	}

	.nisargo-custom-account-wrapper .nisargo-dashboard-grid,
	.nisargo-custom-account-wrapper .woocommerce-Addresses,
	.nisargo-custom-account-wrapper .woocommerce-columns--addresses {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-Address-title {
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-Address-title h2,
	.nisargo-custom-account-wrapper .woocommerce-Address-title h3 {
		white-space: normal !important;
	}

	.nisargo-custom-account-wrapper .woocommerce-info a.button,
	.nisargo-custom-account-wrapper .woocommerce-info .button,
	.nisargo-custom-account-wrapper .woocommerce-message a.button {
		float: none !important;
		display: block !important;
		margin: 10px 0 0 0 !important;
		text-align: center !important;
		width: 100% !important;
	}

	/* Mobile Orders Table Transformation */
	.nisargo-custom-account-wrapper table.woocommerce-orders-table thead {
		display: none !important;
	}

	.nisargo-custom-account-wrapper table.woocommerce-orders-table,
	.nisargo-custom-account-wrapper table.woocommerce-orders-table tbody,
	.nisargo-custom-account-wrapper table.woocommerce-orders-table tr {
		display: block !important;
		width: 100% !important;
	}

	.nisargo-custom-account-wrapper table.woocommerce-orders-table tr {
		background: #ffffff !important;
		border: 1px solid var(--nisargo-acc-border) !important;
		border-radius: var(--nisargo-acc-radius-md) !important;
		margin-bottom: 14px !important;
		padding: 14px !important;
	}

	.nisargo-custom-account-wrapper table.woocommerce-orders-table td {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 8px 0 !important;
		border-bottom: 1px solid #edf2ee !important;
	}

	.nisargo-custom-account-wrapper table.woocommerce-orders-table td:last-child {
		border-bottom: none !important;
		padding-top: 12px !important;
	}

	.nisargo-custom-account-wrapper table.woocommerce-orders-table td::before {
		content: attr(data-title);
		font-weight: 600;
		font-size: 0.8125rem;
		color: var(--nisargo-acc-text-muted);
		text-transform: uppercase;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.nisargo-custom-account-wrapper * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
