/*
 * SAA Store — My Account
 * Complete replacement stylesheet
 * Scope: Elementor Pro WooCommerce My Account widget
 */

:root {
	--saa-green: #007a4a;
	--saa-green-dark: #005f3a;
	--saa-ink: #344346;
	--saa-copy: #5b6664;
	--saa-cream: #fff7e7;
	--saa-mint: #f1faf5;
	--saa-border: #e5ebe8;
	--saa-gold-soft: #ffebbd;
}

/* Elementor page containers */

.saa-account-hero-content h1 {
	margin: 0;
	color: var(--saa-ink);
	font-family: "Merriweather", Sans-serif;
	font-size: 43px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.saa-account-main {
	padding: 48px 24px 100px;
	background: #fff;
}

body.saa-account-dashboard-view .saa-account-main {
	min-height: 900px;
}

/* Remove Elementor's outer account box styling. */
.saa-my-account,
.saa-my-account .elementor-widget-container,
.saa-my-account .e-my-account-tab,
.saa-my-account .e-my-account-tab .woocommerce {
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Desktop account structure */
.saa-my-account .woocommerce::before{ display: none !important;}
.saa-my-account .woocommerce {
	display: grid !important;
	grid-template-columns: 250px minmax(0, 1fr) !important;
	grid-template-rows: auto auto !important;
	column-gap: 28px !important;
	row-gap: 0 !important;
	align-items: start !important;
	width: 100% !important;
}
.saa-my-account  .woocommerce-MyAccount-content {
	width: 100% !important;
}

/* Supports the custom sidebar wrapper, when present. */
.saa-my-account .saa-account-sidebar {
	display: block !important;
	grid-column: 1 !important;
	grid-row: 1 / span 2 !important;
	float: none !important;
	width: 300px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}


.saa-my-account .saa-account-nav-panel {
	width: 100% !important;
	margin: 0 !important;

}

/* Account navigation */

.saa-my-account .woocommerce-MyAccount-navigation {
	grid-area: navigation !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 20px 20px 12px !important;
	border: 0 !important;
	background: var(--saa-cream) !important;
}

/* Add My Account heading inside navigation */

.saa-my-account .woocommerce-MyAccount-navigation::before {
	display: block;
	margin: 0 0 12px;
	color: #344346;
	font-family: "Merriweather", Sans-serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	content: "My Account";
}

.saa-my-account .woocommerce-MyAccount-navigation ul {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	list-style: none !important;
}

.saa-my-account .woocommerce-MyAccount-navigation li {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #e5ebe8 !important;
	background: transparent !important;
}

.saa-my-account li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--payment-methods{
	display: none !important;
}

.saa-my-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0 !important;
}

.saa-my-account .woocommerce-MyAccount-navigation a {
	display: block !important;
	padding: 13px 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #5b6664 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
}

.saa-my-account .woocommerce-MyAccount-navigation a:hover {
	color: #007a4a !important;
}

.saa-my-account
	.woocommerce-MyAccount-navigation
	.is-active a {
	color: #344346 !important;
	font-weight: 700 !important;
}

/* Assistance beneath navigation */

.saa-my-account .saa-account-help {
	display: flex !important;
	grid-area: assistance !important;
	align-items: center !important;
	gap: 13px !important;
	float: none !important;
	clear: none !important;
	width: 100% !important;
	margin: 58px 0 0 !important;
	padding: 0 !important;
	position: static !important;
	transform: none !important;
}

.saa-my-account .saa-account-help-icon {
	display: inline-flex;
	flex: 0 0 54px;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 4px solid #007a4a;
	border-radius: 50%;
	color: #007a4a;
	font-family: Georgia, serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.saa-my-account .saa-account-help h3 {
	margin: 0 0 5px !important;
	font-weight: 700;
	line-height: 1.25;
}

.saa-my-account .saa-account-help p {
	margin: 0 !important;
	color: #5b6664;
	font-size: 14px;
	line-height: 1.5;
}

.saa-my-account .saa-account-help a {
	color: inherit;
	text-decoration: none;
}
/* The custom dashboard replaces WooCommerce's two intro paragraphs. */
body.saa-account-dashboard-view
	.saa-my-account
	.woocommerce-MyAccount-content-wrapper > p {
	display: none !important;
}

/* Dashboard statistics */

.saa-account-dashboard {
	width: 100%;
	margin: 0;
	padding: 0;
}

.saa-account-stats {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 65px;
	width: 100%;
	margin: 0 0 35px;
	padding: 5px 0 20px;
	border-bottom: 1px solid var(--saa-border);
}

.saa-account-stat {
	display: flex !important;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.saa-stat-icon {
	display: inline-flex !important;
	flex: 0 0 54px !important;
	align-items: center !important;
	justify-content: center !important;
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	min-height: 54px !important;
	max-width: 54px !important;
	max-height: 54px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 50%;
	background: var(--saa-green) !important;
	color: #fff !important;
}

/* Prevent unstyled inline SVGs from becoming large black blocks. */
.saa-stat-icon svg {
	display: block !important;
	flex: 0 0 28px !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.saa-stat-icon svg path,
.saa-stat-icon svg line,
.saa-stat-icon svg polyline {
	fill: none !important;
	stroke: currentColor !important;
}

.saa-stat-label {
    display: block;
    margin: 0 0 2px;
    color: var(--saa-copy);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    font-family: 'Montserrat';
}

.saa-account-stat strong {
    display: block;
    margin: 0;
    color: var(--saa-ink);
    font-family: 'Merriweather';
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

/* Dashboard sections */

.saa-dashboard-section {
	width: 100%;
	margin: 0 0 58px;
}

.saa-dashboard-section:last-child {
	margin-bottom: 0;
}


/* Dashboard and endpoint tables */

.saa-dashboard-table,
.saa-my-account table.shop_table,
.saa-my-account table.woocommerce-orders-table,
.saa-my-account table.woocommerce-table--order-downloads {
	width: 100% !important;
	margin: 0 !important;
	border: 1px solid var(--saa-border) !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
}

.saa-dashboard-table th,
.saa-dashboard-table td,
.saa-my-account table.shop_table th,
.saa-my-account table.shop_table td {
	padding: 14px 17px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--saa-border) !important;
	background: #fff !important;
	color: var(--saa-copy) !important;
	font-size: 14px !important;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
}

.saa-dashboard-table thead th,
.saa-my-account table.shop_table thead th {
	background: var(--saa-mint) !important;
	color: var(--saa-ink) !important;
	font-weight: 700 !important;
}

.saa-dashboard-table tbody tr:last-child td,
.saa-my-account table.shop_table tbody tr:last-child td {
	border-bottom: 0 !important;
}

.saa-dashboard-table a,
.saa-my-account table.shop_table a {
	color: var(--saa-green) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.saa-dashboard-table a:hover,
.saa-my-account table.shop_table a:hover {
	color: var(--saa-green-dark) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.saa-orders-table th:last-child,
.saa-orders-table td:last-child,
.saa-downloads-table th:last-child,
.saa-downloads-table td:last-child,
.saa-my-account .woocommerce-orders-table__header-order-actions,
.saa-my-account .woocommerce-orders-table__cell-order-actions {
	text-align: right !important;
}

.saa-order-status {
	display: inline-block;
	min-width: 76px;
	padding: 6px 11px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.saa-status-processing,
.saa-status-on-hold,
.saa-status-pending {
	background: var(--saa-gold-soft);
	color: #746031;
}

.saa-status-completed {
	background: #edf8f2;
	color: #5b7569;
}

.saa-status-cancelled,
.saa-status-failed,
.saa-status-refunded {
	background: #fbeaea;
	color: #8a4d4d;
}

.saa-downloads-table td:nth-child(2) strong {
	display: block;
	color: var(--saa-copy);
	font-weight: 400;
}

.saa-downloads-table td:nth-child(2) small {
	display: block;
	margin-top: 5px;
	color: #7b8582;
	font-size: 10px;
}

/* Empty dashboard message. */
.saa-dashboard-section .woocommerce-info {
	margin: 0 !important;
	padding: 16px 18px !important;
	border: 1px solid var(--saa-border) !important;
	border-top: 3px solid var(--saa-green) !important;
	background: #f8faf9 !important;
	color: var(--saa-copy) !important;
	font-size: 14px;
	line-height: 1.5;
}

.saa-dashboard-section .woocommerce-info::before {
	display: none !important;
}


.saa-my-account  a.woocommerce-button.button.view, a.woocommerce-MyAccount-downloads-file.button.alt {
    background-color: transparent !important;
	border: 0px !important;
}

.saa-my-account textarea {
	min-height: 130px;
}


.saa-my-account fieldset {
	margin: 28px 0 0 !important;
	padding: 24px !important;
	border: 1px solid var(--saa-border) !important;
}

.saa-my-account legend {
	padding: 0 8px;
	color: var(--saa-ink);
	font-family: "Merriweather", Sans-serif;
	font-size: 20px;
	font-weight: 700;
}

/* Address endpoint. */
.saa-my-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
.saa-my-account .woocommerce-Addresses::before{display:none !important;}
.saa-my-account .woocommerce-Address {
	float: none !important;
	width: 100% !important;
	padding: 24px !important;
	border: 1px solid var(--saa-border);
	background: #fff;
	border-radius: 8px;
}
.saa-my-account .woocommerce-Address-title{
	padding:0px !important;
	border:0px !important;
}
.saa-my-account .woocommerce-Address-title h2 {
	margin: 0px !important;
	color: var(--saa-ink);
	font-family: "Merriweather", Sans-serif;
	font-size: 23px !important;

}

.saa-my-account .woocommerce-Address address {
	color: var(--saa-copy);
	font-style: normal;
	line-height: 1.65;
}

.saa-my-account  .addresses .title .edit{
	padding: .7em 0em !important;
}

/* Tablet */

@media (max-width: 1024px) {
	.saa-account-hero-content h1 {
		font-size: 37px;
	}

	.saa-account-main {
		padding: 44px 24px 80px;
	}

	body.saa-account-dashboard-view .saa-account-main {
		min-height: 760px;
	}

	.saa-my-account .woocommerce {
		grid-template-columns: 220px minmax(0, 1fr) !important;
		column-gap: 24px !important;
	}

	.saa-my-account .saa-account-sidebar,
	.saa-my-account .woocommerce-MyAccount-navigation,
	.saa-my-account .saa-account-help {
		width: 220px !important;
	}

	.saa-account-stats {
		gap: 30px;
	}

	.saa-dashboard-section h2,
	.saa-my-account .woocommerce-MyAccount-content > h2 {
		font-size: 32px !important;
	}

	.saa-dashboard-table th,
	.saa-dashboard-table td,
	.saa-my-account table.shop_table th,
	.saa-my-account table.shop_table td {
		padding: 13px 12px !important;
		font-size: 13px !important;
	}
}

/* Mobile */

@media (max-width: 767px) {
	.saa-account-hero-content h1 {
		font-size: 30px;
		line-height: 1.2;
		letter-spacing: -0.25px;
	}

	.saa-account-main {
		min-height: 0 !important;
		padding: 36px 16px 64px;
	}

	.saa-my-account .woocommerce {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: auto auto auto !important;
		column-gap: 0 !important;
		row-gap: 0 !important;
	}

	.saa-my-account .saa-account-sidebar {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 100% !important;
	}

	.saa-my-account .woocommerce-MyAccount-navigation {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 100% !important;
		padding: 20px 18px 14px !important;
	}

	.saa-my-account .saa-account-nav-panel {
		padding: 20px 18px 14px !important;
	}

	.saa-my-account .woocommerce-MyAccount-navigation ul {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 14px;
	}

	.saa-my-account .woocommerce-MyAccount-navigation li {
		min-width: 0;
	}

	.saa-my-account .woocommerce-MyAccount-navigation a {
		min-height: 44px;
		font-size: 14px !important;
	}

	.saa-my-account .saa-account-help {
		grid-column: 1 !important;
		grid-row: 2 !important;
		width: 100% !important;
		margin: 24px 0 36px !important;
	}

	.saa-my-account .saa-account-sidebar .saa-account-help {
		margin-bottom: 36px !important;
	}

	.saa-my-account .woocommerce-MyAccount-content {
		grid-column: 1 !important;
		grid-row: 3 !important;
		width: 100% !important;
	}

	/* If help is nested inside the sidebar, content follows the sidebar. */
	.saa-my-account .saa-account-sidebar + .woocommerce-MyAccount-content {
		grid-row: 2 !important;
	}

	.saa-account-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		margin-bottom: 30px;
		padding-bottom: 18px;
	}

	.saa-account-stat {
		gap: 11px;
	}

	.saa-stat-icon {
		flex-basis: 44px !important;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
		max-width: 44px !important;
		max-height: 44px !important;
	}

	.saa-stat-icon svg {
		flex-basis: 23px !important;
		width: 23px !important;
		height: 23px !important;
		min-width: 23px !important;
		min-height: 23px !important;
		max-width: 23px !important;
		max-height: 23px !important;
	}

	.saa-stat-label {
		font-size: 11px;
	}

	.saa-account-stat strong {
		font-size: 28px;
	}

	.saa-dashboard-section {
		margin-bottom: 42px;
	}

	.saa-dashboard-section h2,
	.saa-my-account .woocommerce-MyAccount-content > h2 {
		font-size: 28px !important;
	}

	/* Responsive card tables. */
	.saa-dashboard-table thead,
	.saa-my-account table.shop_table thead {
		display: none !important;
	}

	.saa-dashboard-table,
	.saa-dashboard-table tbody,
	.saa-dashboard-table tr,
	.saa-dashboard-table td,
	.saa-my-account table.shop_table,
	.saa-my-account table.shop_table tbody,
	.saa-my-account table.shop_table tr,
	.saa-my-account table.shop_table td {
		display: block !important;
		width: 100% !important;
	}

	.saa-dashboard-table,
	.saa-my-account table.shop_table {
		border: 0 !important;
		background: transparent !important;
	}

	.saa-dashboard-table tr,
	.saa-my-account table.shop_table tbody tr {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 13px 18px;
		margin: 0 0 15px !important;
		padding: 16px !important;
		border: 1px solid var(--saa-border) !important;
		background: #fff !important;
	}

	.saa-dashboard-table td,
	.saa-my-account table.shop_table td {
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		text-align: left !important;
	}

	.saa-dashboard-table td::before,
	.saa-my-account table.shop_table td::before {
		display: block;
		margin-bottom: 4px;
		color: #7a8582;
		font-size: 10px;
		font-weight: 600;
		line-height: 1.2;
		text-transform: uppercase;
		content: attr(data-label);
	}

	.saa-my-account table.shop_table td[data-title]::before {
		content: attr(data-title);
	}

	.saa-downloads-table td:nth-child(2) {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.saa-my-account .woocommerce-orders-table__cell-order-actions {
		text-align: left !important;
	}

	.saa-my-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.saa-my-account .woocommerce-Address {
		padding: 20px !important;
	}

	.saa-my-account fieldset {
		padding: 18px !important;
	}
}

/* Small phones */

@media (max-width: 420px) {
	.saa-account-stats {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.saa-my-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: 1fr;
	}
}
