/* My Account page */

.my-account-main {
	background: #fafafc;
}

.my-account-container {
	padding-top: 20px;
	padding-bottom: 100px;
}

.my-account-title {
	color: #000;
	font-family: var(--global-font-family-1);
	font-size: 36px;
	line-height: 50px;
	margin: 0;
	font-weight: 800;
}

.my-account-description {
	color: #000;
	font-family: var(--global-font-family-1);
	font-size: 18px;
	line-height: 30px;
	margin: 0;
	margin-bottom: 20px;
}

/* Breadcrumbs */
.my-account-main .pdp-breadcrumb-holder {
	margin-bottom: 40px;
}

.my-account-main .pdp-breadcrumbs {
	margin: 0;
}

.my-account-main .pdp-breadcrumbs-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.my-account-main .pdp-breadcrumbs-inner a {
	display: inline-flex;
	align-items: center;
	font-family: var(--global-font-family-1);
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
}

.my-account-main .pdp-breadcrumbs-inner a:hover,
.my-account-main .pdp-breadcrumbs-inner a:focus {
	color: #519740;
}

.my-account-main .pdp-breadcrumbs-inner a img {
	display: block;
}

.my-account-main .pdp-breadcrumbs-inner .separator {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
}

.my-account-main .pdp-breadcrumb-sep {
	display: block;
}

.my-account-main .pdp-breadcrumbs-inner .last {
	font-family: var(--global-font-family-1);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	color: #111827;
}

/* WooCommerce shell */
.my-account-main .my-account-content .woocommerce {
	width: 100%;
	margin: 0;
}

/* Disable WooCommerce clearfix pseudo-elements */
.my-account-main .col2-set::before,
.my-account-main .col2-set::after,
.my-account-main .woocommerce::before,
.my-account-main .woocommerce::after,
.my-account-main .addresses .title::before,
.my-account-main .addresses .title::after,
.my-account-main .woocommerce-Address-title::before,
.my-account-main .woocommerce-Address-title::after {
	content: none !important;
	display: none !important;
}

.my-account-main .my-account-content > .woocommerce > .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

/* Login / Register (logged out) */
.my-account-main #customer_login,
.my-account-main .u-columns.col2-set#customer_login {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 40px;
	margin: 0;
	width: 100%;
}

.my-account-main #customer_login .u-column1,
.my-account-main #customer_login .u-column2,
.my-account-main #customer_login .col-1,
.my-account-main #customer_login .col-2 {
	flex: 1 1 calc(50% - 20px);
	min-width: 280px;
	float: none;
	width: auto;
	margin: 0;
	padding: 25px 20px;
	background: #ffffff;
	border: 0;
	border-radius: 15px;
	box-sizing: border-box;
}

.my-account-main #customer_login .woocommerce-form-login,
.my-account-main #customer_login .woocommerce-form-register {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.my-account-main .woocommerce-ResetPassword,
.my-account-main .woocommerce-form.lost_reset_password,
.my-account-main .my-account-content > .woocommerce > .woocommerce-form-login:only-child {
	max-width: 560px;
	margin: 0 auto;
	padding: 25px 20px;
	background: #ffffff;
	border: 0;
	border-radius: 15px;
	box-sizing: border-box;
}

.my-account-main .woocommerce-form-login h2,
.my-account-main .woocommerce-form-register h2,
.my-account-main .woocommerce-ResetPassword h2,
.my-account-main #customer_login h2 {
	color: #000;
	font-family: var(--global-font-family-1);
	font-size: 18px;
	line-height: 30px;
	margin: 0 0 20px;
	font-weight: 600;
}

.my-account-main .woocommerce-form-login p,
.my-account-main .woocommerce-form-register p,
.my-account-main .woocommerce-ResetPassword p {
	font-family: var(--global-font-family-1);
	font-size: 16px;
	line-height: 24px;
	color: #000000;
	margin: 0 0 16px;
}

.my-account-main .woocommerce-form-register > p:not(.form-row) {
	margin-bottom: 12px;
}

.my-account-main .woocommerce-privacy-policy-text {
	font-family: var(--global-font-family-1);
	font-size: 13px;
	line-height: 20px;
	color: #666666;
	margin: 0 0 16px;
}

.my-account-main .woocommerce-privacy-policy-text p {
	margin: 0 0 8px;
}

.my-account-main .woocommerce-privacy-policy-link,
.my-account-main .woocommerce-form-login a:not(.button):not(.woocommerce-Button),
.my-account-main .woocommerce-form-register a:not(.button):not(.woocommerce-Button),
.my-account-main .woocommerce-ResetPassword a:not(.button),
.my-account-main .woocommerce-LostPassword a {
	color: #519740;
	text-decoration: none;
}

.my-account-main .woocommerce-privacy-policy-link:hover,
.my-account-main .woocommerce-form-login a:not(.button):not(.woocommerce-Button):hover,
.my-account-main .woocommerce-form-register a:not(.button):not(.woocommerce-Button):hover,
.my-account-main .woocommerce-ResetPassword a:not(.button):hover,
.my-account-main .woocommerce-LostPassword a:hover {
	color: #457a36;
}

.my-account-main .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--global-font-family-1);
	font-size: 14px;
	line-height: 20px;
	color: #000000;
	cursor: pointer;
}

.my-account-main .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #519740;
}

.my-account-main .woocommerce-LostPassword {
	margin: 12px 0 0;
	text-align: left;
}

.my-account-main .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit),
.my-account-main .woocommerce-form-login p.form-row:has(button[name="login"]) {
	display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
    flex-direction: column;
}

.my-account-main .woocommerce-form-login__submit {
	margin-right: auto;
}

/* Layout — navigation + content (logged in) */
body.logged-in .my-account-main .my-account-content > .woocommerce {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 40px;
}

body.logged-in .my-account-main .woocommerce-MyAccount-navigation {
	flex: 0 0 280px;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 25px 20px;
	background: #ffffff;
	border-radius: 15px;
	box-sizing: border-box;
}

.my-account-main .woocommerce-MyAccount-content {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 25px 20px;
	background: #ffffff;
	border-radius: 15px;
	box-sizing: border-box;
}

/* Navigation tabs */
.my-account-main .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.my-account-main .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

.my-account-main .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 16px;
	border-radius: 10px;
	font-family: var(--global-font-family-1);
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #000000;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.my-account-main .woocommerce-MyAccount-navigation li a:hover,
.my-account-main .woocommerce-MyAccount-navigation li a:focus {
	background: #f5f5f5;
	color: #519740;
}

.my-account-main .woocommerce-MyAccount-navigation li.is-active a {
	background: #f0f7ee;
	color: #519740;
	font-weight: 700;
}

/* Headings */
.my-account-main .woocommerce-MyAccount-content h2,
.my-account-main .woocommerce-MyAccount-content h3,
.my-account-main .woocommerce-Address-title h2,
.my-account-main .woocommerce-order-details__title,
.my-account-main .woocommerce-customer-details h2 {
	color: #000;
	font-family: var(--global-font-family-1);
	font-size: 18px;
	line-height: 30px;
	margin: 0 0 20px;
	font-weight: 600;
}

.my-account-main .woocommerce-MyAccount-content h3 {
	font-size: 16px;
	line-height: 24px;
	margin-top: 24px;
}

.my-account-main .woocommerce-MyAccount-content p,
.my-account-main .woocommerce-MyAccount-content address {
	font-family: var(--global-font-family-1);
	font-size: 16px;
	line-height: 24px;
	color: #000000;
}

.my-account-main .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.woocommerce-button) {
	color: #519740;
	text-decoration: none;
	transition: color 0.2s ease;
}

.my-account-main .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.woocommerce-button):hover,
.my-account-main .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.woocommerce-button):focus {
	color: #457a36;
}

/* Notices */
.my-account-main .woocommerce-message,
.my-account-main .woocommerce-info,
.my-account-main .woocommerce-error,
.my-account-main .woocommerce-notices-wrapper .woocommerce-message,
.my-account-main .woocommerce-notices-wrapper .woocommerce-info,
.my-account-main .woocommerce-notices-wrapper .woocommerce-error {
	font-family: var(--global-font-family-1);
	font-size: 14px;
	line-height: 22px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.my-account-main .woocommerce-message {
	border-top-color: #519740;
}

/* Form rows */
.my-account-main .woocommerce form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.my-account-main .woocommerce form .form-row label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--global-font-family-1);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #666666;
}

.my-account-main .woocommerce form .form-row .required {
	color: #cc1818;
}

.my-account-main .woocommerce form .form-row-first,
.my-account-main .woocommerce form .form-row-last {
	width: calc(50% - 8px);
}

.my-account-main .woocommerce form .form-row-first {
	float: left;
	margin-right: 16px;
}

.my-account-main .woocommerce form .form-row-last {
	float: right;
}

.my-account-main .woocommerce form .clear {
	clear: both;
}

.my-account-main .woocommerce form .form-row-wide {
	clear: both;
	width: 100%;
}

.my-account-main .woocommerce form .form-row em,
.my-account-main .woocommerce form .form-row span.description {
	display: block;
	margin-top: 8px;
	font-family: var(--global-font-family-1);
	font-size: 13px;
	line-height: 20px;
	color: #666666;
	font-style: normal;
}

/* Inputs */
.my-account-main .woocommerce-MyAccount-content .input-text,
.my-account-main .woocommerce-MyAccount-content input[type="text"],
.my-account-main .woocommerce-MyAccount-content input[type="email"],
.my-account-main .woocommerce-MyAccount-content input[type="tel"],
.my-account-main .woocommerce-MyAccount-content input[type="password"],
.my-account-main .woocommerce-MyAccount-content input[type="number"],
.my-account-main .woocommerce-MyAccount-content input[type="url"],
.my-account-main .woocommerce-MyAccount-content select,
.my-account-main .woocommerce-MyAccount-content textarea,
.my-account-main #customer_login .input-text,
.my-account-main #customer_login input[type="text"],
.my-account-main #customer_login input[type="email"],
.my-account-main #customer_login input[type="password"],
.my-account-main .woocommerce-form-login .input-text,
.my-account-main .woocommerce-form-login input[type="text"],
.my-account-main .woocommerce-form-login input[type="email"],
.my-account-main .woocommerce-form-login input[type="password"],
.my-account-main .woocommerce-form-register .input-text,
.my-account-main .woocommerce-form-register input[type="text"],
.my-account-main .woocommerce-form-register input[type="email"],
.my-account-main .woocommerce-form-register input[type="password"],
.my-account-main .woocommerce-ResetPassword .input-text,
.my-account-main .woocommerce-ResetPassword input[type="text"],
.my-account-main .woocommerce-ResetPassword input[type="email"] {
	width: 100%;
	min-height: 56px;
	padding: 12px 16px;
	border: 1px solid #e1e1e1 !important;
	border-radius: 10px;
	background: #ffffff !important;
	box-shadow: none !important;
	font-family: var(--global-font-family-1);
	font-size: 16px;
	line-height: 24px;
	color: #000000;
	box-sizing: border-box;
}

.my-account-main .woocommerce-MyAccount-content textarea {
	min-height: 120px;
	resize: vertical;
}

.my-account-main .woocommerce-MyAccount-content .input-text:focus,
.my-account-main .woocommerce-MyAccount-content input:focus,
.my-account-main .woocommerce-MyAccount-content select:focus,
.my-account-main .woocommerce-MyAccount-content textarea:focus,
.my-account-main #customer_login .input-text:focus,
.my-account-main #customer_login input:focus,
.my-account-main .woocommerce-form-login input:focus,
.my-account-main .woocommerce-form-register input:focus,
.my-account-main .woocommerce-ResetPassword input:focus {
	outline: none;
	border-color: #519740 !important;
}

.my-account-main .woocommerce form fieldset {
	margin: 24px 0 0;
	padding: 0;
	border: 0;
}

.my-account-main .woocommerce form fieldset legend {
	display: block;
	width: 100%;
	margin-bottom: 16px;
	padding: 0;
	font-family: var(--global-font-family-1);
	font-size: 18px;
	line-height: 30px;
	font-weight: 600;
	color: #000000;
}

/* Buttons */
.my-account-main .button,
.my-account-main .woocommerce-Button,
.my-account-main .woocommerce-button,
.my-account-main button.button,
.my-account-main input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px !important;
	border: 0 !important;
	border-radius: 15px !important;
	background: #519740 !important;
	color: #ffffff !important;
	font-family: var(--global-font-family-1);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.my-account-main .button:hover,
.my-account-main .button:focus,
.my-account-main .woocommerce-Button:hover,
.my-account-main .woocommerce-Button:focus,
.my-account-main .woocommerce-button:hover,
.my-account-main .woocommerce-button:focus,
.my-account-main button.button:hover,
.my-account-main button.button:focus,
.my-account-main input.button:hover,
.my-account-main input.button:focus {
	background: #457a36 !important;
	color: #ffffff !important;
}

.my-account-main .woocommerce-orders-table__cell-order-actions .button,
.my-account-main .woocommerce-orders-table__cell-order-actions .woocommerce-button {
	min-height: 40px;
	padding: 8px 16px !important;
	border-radius: 10px !important;
	font-size: 14px;
	display: flex;
    justify-content: center;
    align-items: center;
}

.my-account-main .woocommerce-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.my-account-main .woocommerce-pagination .button {
	min-height: 40px;
	padding: 8px 20px !important;
	font-size: 14px;
}

/* Tables — orders, downloads, payment methods, order view */
.my-account-main table.shop_table,
.my-account-main table.woocommerce-orders-table,
.my-account-main table.woocommerce-table--order-downloads,
.my-account-main table.woocommerce-table--order-details {
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 20px;
	font-family: var(--global-font-family-1);
}

.my-account-main table.shop_table thead th,
.my-account-main table.woocommerce-orders-table thead th {
	padding: 12px 16px;
	background: #fafafc;
	border-bottom: 1px solid #e1e1e1;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #000000;
	text-align: left;
}

.my-account-main table.shop_table tbody td,
.my-account-main table.shop_table tbody th,
.my-account-main table.woocommerce-orders-table tbody td,
.my-account-main table.woocommerce-orders-table tbody th {
	padding: 16px;
	border-bottom: 1px solid #e1e1e1;
	font-size: 14px;
	line-height: 22px;
	color: #000000;
	vertical-align: middle;
}

.my-account-main table.shop_table tbody tr:last-child td,
.my-account-main table.shop_table tbody tr:last-child th,
.my-account-main table.woocommerce-orders-table tbody tr:last-child td,
.my-account-main table.woocommerce-orders-table tbody tr:last-child th {
	border-bottom: 0;
}

.my-account-main table.shop_table a,
.my-account-main table.woocommerce-orders-table a {
	color: #519740;
	text-decoration: none;
	font-weight: 600;
}

.my-account-main table.shop_table a:hover,
.my-account-main table.shop_table a:focus,
.my-account-main table.woocommerce-orders-table a:hover,
.my-account-main table.woocommerce-orders-table a:focus {
	color: #457a36;
}

.my-account-main table.shop_table tfoot th,
.my-account-main table.shop_table tfoot td {
	padding: 12px 16px;
	border-top: 1px solid #e1e1e1;
	font-size: 14px;
	line-height: 22px;
}

.my-account-main table.shop_table tfoot tr:last-child th,
.my-account-main table.shop_table tfoot tr:last-child td {
	font-size: 16px;
	font-weight: 700;
}

.my-account-main mark.order-number,
.my-account-main mark.order-date,
.my-account-main mark.order-status {
	background: transparent;
	color: #000000;
	font-weight: 700;
}

/* Addresses */
.my-account-main .woocommerce-Addresses,
.my-account-main .u-columns.addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 20px;
}

.my-account-main .woocommerce-Address,
.my-account-main .u-columns.addresses .u-column1,
.my-account-main .u-columns.addresses .u-column2,
.my-account-main .u-columns.addresses .col-1,
.my-account-main .u-columns.addresses .col-2,
.my-account-main .woocommerce-Addresses .col-1,
.my-account-main .woocommerce-Addresses .col-2 {
	flex: 1 1 calc(50% - 12px);
	min-width: 240px;
	float: none;
	width: auto;
	margin: 0;
	padding: 20px;
	border: 1px solid #e1e1e1;
	border-radius: 10px;
	box-sizing: border-box;
}

.my-account-main .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.my-account-main .woocommerce-Address-title h2 {
	margin: 0;
}

.my-account-main .woocommerce-Address-title .edit {
	font-family: var(--global-font-family-1);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #519740;
	text-decoration: none;
}

.my-account-main .woocommerce-Address-title .edit:hover,
.my-account-main .woocommerce-Address-title .edit:focus {
	color: #457a36;
}

.my-account-main .woocommerce-Address address {
	font-style: normal;
	margin: 0;
}

/* Order details / customer details */
.my-account-main .woocommerce-order-details,
.my-account-main .woocommerce-customer-details {
	margin-top: 32px;
}

.my-account-main .woocommerce-customer-details .woocommerce-column {
	padding: 20px;
	border: 1px solid #e1e1e1;
	border-radius: 10px;
	box-sizing: border-box;
}

.my-account-main .woocommerce-OrderUpdates {
	list-style: none;
	margin: 0;
	padding: 0;
}

.my-account-main .woocommerce-OrderUpdates .woocommerce-OrderUpdate {
	margin: 0 0 16px;
	padding: 16px;
	background: #fafafc;
	border-radius: 10px;
}

.my-account-main .woocommerce-OrderUpdates .woocommerce-OrderUpdate-meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: #666666;
}

/* Payment methods */
.my-account-main .woocommerce-PaymentMethods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.my-account-main .woocommerce-PaymentMethod {
	margin: 0 0 12px;
	padding: 16px;
	border: 1px solid #e1e1e1;
	border-radius: 10px;
}

/* Hide duplicate page title from block editor */
.my-account-main .my-account-content > .wp-block-post-title,
.my-account-main .my-account-content > h1.entry-title {
	display: none;
}

@media (max-width: 1024px) {
	body.logged-in .my-account-main .my-account-content > .woocommerce {
		flex-direction: column;
		gap: 30px;
	}

	body.logged-in .my-account-main .woocommerce-MyAccount-navigation {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}

	body.logged-in .my-account-main .woocommerce-MyAccount-content {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}

	.my-account-main .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.my-account-main .woocommerce-MyAccount-navigation li a {
		padding: 10px 14px;
		font-size: 14px;
	}

	.my-account-main .woocommerce form .form-row-first,
	.my-account-main .woocommerce form .form-row-last {
		width: 100%;
		float: none;
		margin-right: 0;
	}

	.my-account-main .my-account-title {
		font-size: 24px;
		line-height: 40px;
		text-align: center;
	}

	.my-account-main .my-account-description {
		font-size: 15px;
		line-height: 30px;
		text-align: center;
	}

	.my-account-main #customer_login,
	.my-account-main .u-columns.col2-set#customer_login {
		flex-direction: column;
		gap: 30px;
	}

	.my-account-main #customer_login .u-column1,
	.my-account-main #customer_login .u-column2,
	.my-account-main #customer_login .col-1,
	.my-account-main #customer_login .col-2 {
		flex: 1 1 100%;
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.my-account-main .my-account-container {
		padding-bottom: 60px;
	}

	.my-account-main #customer_login .u-column1,
	.my-account-main #customer_login .u-column2,
	.my-account-main #customer_login .col-1,
	.my-account-main #customer_login .col-2 {
		padding: 20px 16px;
	}

	.my-account-main .woocommerce-form-login__submit {
		width: 100%;
		margin-right: 0;
	}

	.my-account-main table.shop_table thead {
		display: none;
	}

	.my-account-main table.shop_table tbody tr,
	.my-account-main table.woocommerce-orders-table tbody tr {
		display: block;
		margin-bottom: 16px;
		padding: 16px;
		border: 1px solid #e1e1e1;
		border-radius: 10px;
	}

	.my-account-main table.shop_table tbody td,
	.my-account-main table.shop_table tbody th,
	.my-account-main table.woocommerce-orders-table tbody td,
	.my-account-main table.woocommerce-orders-table tbody th {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 8px 0;
		border-bottom: 1px solid #f0f0f0;
	}

	.my-account-main table.shop_table tbody td:last-child,
	.my-account-main table.shop_table tbody th:last-child,
	.my-account-main table.woocommerce-orders-table tbody td:last-child,
	.my-account-main table.woocommerce-orders-table tbody th:last-child {
		border-bottom: 0;
	}

	.my-account-main table.shop_table tbody td::before,
	.my-account-main table.shop_table tbody th::before,
	.my-account-main table.woocommerce-orders-table tbody td::before,
	.my-account-main table.woocommerce-orders-table tbody th::before {
		content: attr(data-title);
		font-weight: 600;
		color: #666666;
	}
}
