/*
 * ECC Account Pages
 *
 * Restyles the WooCommerce My Account area. Everything is scoped to
 * body.ecc-ap, which is only added on the account pages.
 *
 * Elementor writes its own colours for the My Account widget with very
 * specific selectors, so the rules that compete with it use !important.
 */

body.ecc-ap {
	--ecc-ap-green: var(--e-global-color-primary, #046c63);
	--ecc-ap-green-dark: #03524b;
	--ecc-ap-ink: #3c3947;
	--ecc-ap-muted: #6d7178;
	--ecc-ap-card: #f5f6f7;
	--ecc-ap-line: #e4e7ea;
	--ecc-ap-field: #d5dade;
	--ecc-ap-head: "Work Sans", Helvetica, Arial, sans-serif;
	--ecc-ap-text: "Inter", Helvetica, Arial, sans-serif;
	--ecc-ap-radius: 16px;
	--ecc-ap-icon-dashboard: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%223.5%22 width=%227%22 height=%227%22 rx=%221.6%22/%3E%3Crect x=%2213.5%22 y=%223.5%22 width=%227%22 height=%227%22 rx=%221.6%22/%3E%3Crect x=%223.5%22 y=%2213.5%22 width=%227%22 height=%227%22 rx=%221.6%22/%3E%3Crect x=%2213.5%22 y=%2213.5%22 width=%227%22 height=%227%22 rx=%221.6%22/%3E%3C/svg%3E");
	--ecc-ap-icon-orders: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 7.5 12 3.5l8.5 4v9L12 20.5l-8.5-4z%22/%3E%3Cpath d=%22M3.5 7.5 12 11.5l8.5-4M12 11.5v9%22/%3E%3C/svg%3E");
	--ecc-ap-icon-downloads: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 4v11M7.5 10.5 12 15l4.5-4.5%22/%3E%3Cpath d=%22M4.5 19.5h15%22/%3E%3C/svg%3E");
	--ecc-ap-icon-edit-address: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s7-6.2 7-11.2a7 7 0 1 0-14 0C5 14.8 12 21 12 21z%22/%3E%3Ccircle cx=%2212%22 cy=%229.8%22 r=%222.5%22/%3E%3C/svg%3E");
	--ecc-ap-icon-payment-methods: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225.5%22 width=%2218%22 height=%2213%22 rx=%222.5%22/%3E%3Cpath d=%22M3 10h18M7 15h3%22/%3E%3C/svg%3E");
	--ecc-ap-icon-edit-account: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 20.5c0-3.8 3.6-6.2 8-6.2s8 2.4 8 6.2%22/%3E%3C/svg%3E");
	--ecc-ap-icon-customer-logout: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 4.5H6.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2H10%22/%3E%3Cpath d=%22M15 8l4 4-4 4M19 12H9.5%22/%3E%3C/svg%3E");
	--ecc-ap-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E");
	--ecc-ap-icon-default: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M12 8v4.5l3 2%22/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
 * Layout: menu panel on the left, content on the right.
 * ---------------------------------------------------------------- */

body.ecc-ap.logged-in .e-my-account-tab > .woocommerce,
body.ecc-ap.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	column-gap: 44px;
	align-items: start;
}

body.ecc-ap.logged-in .e-my-account-tab > .woocommerce::before,
body.ecc-ap.logged-in .e-my-account-tab > .woocommerce::after,
body.ecc-ap.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.ecc-ap.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
	content: none;
}

body.ecc-ap .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	min-width: 0;
}

/* ------------------------------------------------------------------
 * Menu
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation {
	padding: 10px;
	background: var(--ecc-ap-card);
	border-radius: var(--ecc-ap-radius);
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li::after {
	display: none !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px 14px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: left !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li a::before,
body.ecc-ap .ecc-ap-menu-toggle::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--ecc-ap-icon, var(--ecc-ap-icon-default)) center / contain no-repeat;
	mask: var(--ecc-ap-icon, var(--ecc-ap-icon-default)) center / contain no-repeat;
}

body.ecc-ap .woocommerce-MyAccount-navigation-link--dashboard a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="dashboard"] { --ecc-ap-icon: var(--ecc-ap-icon-dashboard); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--orders a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="orders"] { --ecc-ap-icon: var(--ecc-ap-icon-orders); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--downloads a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="downloads"] { --ecc-ap-icon: var(--ecc-ap-icon-downloads); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--edit-address a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="edit-address"] { --ecc-ap-icon: var(--ecc-ap-icon-edit-address); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--payment-methods a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="payment-methods"] { --ecc-ap-icon: var(--ecc-ap-icon-payment-methods); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--edit-account a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="edit-account"] { --ecc-ap-icon: var(--ecc-ap-icon-edit-account); }
body.ecc-ap .woocommerce-MyAccount-navigation-link--customer-logout a,
body.ecc-ap .ecc-ap-menu-toggle[data-endpoint="customer-logout"] { --ecc-ap-icon: var(--ecc-ap-icon-customer-logout); }

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li a:hover,
body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li a:focus-visible {
	background: #fff !important;
	color: var(--ecc-ap-green) !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
	background: #fff !important;
	color: var(--ecc-ap-green) !important;
	box-shadow: 0 1px 2px rgba(28, 36, 44, 0.08);
}

/* Log out sits apart from the rest. */
body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px !important;
	padding-top: 8px !important;
	border-top: 1px solid var(--ecc-ap-line) !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--ecc-ap-muted) !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var(--ecc-ap-ink) !important;
}

/* The mobile menu button. Hidden until the screen is narrow. */
body.ecc-ap .ecc-ap-menu-toggle {
	display: none;
}

/* ------------------------------------------------------------------
 * Content: text, headings, links
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-content,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content-wrapper {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content-wrapper,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content p,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content address,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content td,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content th,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content li,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content label,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content dd,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content dt {
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content p {
	margin: 0 0 16px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content h2,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content h3,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content legend {
	margin: 0 0 14px !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-head) !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.2px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content h2.ecc-ap-page-title {
	margin: 4px 0 24px !important;
	font-size: 30px !important;
	line-height: 1.2 !important;
	letter-spacing: -0.5px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content a:not(.button):not(.ecc-ap-button):not(.ecc-ap-card) {
	color: var(--ecc-ap-green) !important;
	font-weight: 600;
	text-decoration: none;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content a:not(.button):not(.ecc-ap-button):not(.ecc-ap-card):hover {
	text-decoration: underline;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content mark {
	background: transparent !important;
	color: var(--ecc-ap-ink) !important;
	font-weight: 600 !important;
}

/* ------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .button,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content button[type="submit"],
body.ecc-ap .ecc-ap-button,
body.ecc-ap:not(.logged-in) .woocommerce form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px !important;
	border: 1.5px solid var(--ecc-ap-green) !important;
	border-radius: 999px !important;
	background: var(--ecc-ap-green) !important;
	color: #fff !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .button:hover,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content button[type="submit"]:hover,
body.ecc-ap .ecc-ap-button:hover,
body.ecc-ap:not(.logged-in) .woocommerce form .button:hover {
	border-color: var(--ecc-ap-green-dark) !important;
	background: var(--ecc-ap-green-dark) !important;
	color: #fff !important;
}

/* Smaller, quieter buttons: table actions and secondary links. */
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table .button,
body.ecc-ap .ecc-ap-button--quiet,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	padding: 8px 18px !important;
	border: 1.5px solid var(--ecc-ap-green) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--ecc-ap-green) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
}

body.ecc-ap .ecc-ap-button--quiet {
	padding: 12px 22px !important;
	font-size: 15px !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table .button:hover,
body.ecc-ap .ecc-ap-button--quiet:hover,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
	border-color: var(--ecc-ap-green) !important;
	background: var(--ecc-ap-green) !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* ------------------------------------------------------------------
 * Welcome screen
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-content p.ecc-ap-eyebrow {
	margin: 4px 0 6px !important;
	color: var(--ecc-ap-green) !important;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content h2.ecc-ap-welcome__title {
	margin: 0 0 8px !important;
	font-size: 34px !important;
	line-height: 1.15 !important;
	letter-spacing: -0.6px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .ecc-ap-welcome__lead {
	max-width: 56ch;
	margin: 0 !important;
	color: var(--ecc-ap-muted) !important;
}

body.ecc-ap .ecc-ap-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

body.ecc-ap .ecc-ap-cards li {
	margin: 0;
	padding: 0;
}

body.ecc-ap .ecc-ap-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px 22px 20px;
	border: 1px solid transparent;
	border-radius: var(--ecc-ap-radius);
	background: var(--ecc-ap-card);
	color: var(--ecc-ap-ink) !important;
	text-decoration: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.ecc-ap .ecc-ap-card:hover,
body.ecc-ap .ecc-ap-card:focus-visible {
	border-color: var(--ecc-ap-green);
	background: #fff;
}

body.ecc-ap .ecc-ap-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #fff;
	color: var(--ecc-ap-green);
}

body.ecc-ap .ecc-ap-card:hover .ecc-ap-card__icon {
	background: var(--ecc-ap-card);
}

body.ecc-ap .ecc-ap-icon {
	display: block;
	width: 22px;
	height: 22px;
}

body.ecc-ap .ecc-ap-card__title {
	font-family: var(--ecc-ap-head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

body.ecc-ap .ecc-ap-card__text {
	margin-top: 4px;
	color: var(--ecc-ap-muted);
	font-size: 14px;
	line-height: 1.45;
}

body.ecc-ap .ecc-ap-card__arrow {
	position: absolute;
	top: 30px;
	right: 20px;
	color: var(--ecc-ap-muted);
	transition: transform 0.15s ease, color 0.15s ease;
}

body.ecc-ap .ecc-ap-card__arrow .ecc-ap-icon {
	width: 18px;
	height: 18px;
}

body.ecc-ap .ecc-ap-card:hover .ecc-ap-card__arrow {
	color: var(--ecc-ap-green);
	transform: translateX(3px);
}

body.ecc-ap .ecc-ap-recent,
body.ecc-ap .ecc-ap-next {
	margin-top: 36px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content h3.ecc-ap-section-title {
	margin: 0 0 14px !important;
}

body.ecc-ap .ecc-ap-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	border-radius: var(--ecc-ap-radius);
	background: var(--ecc-ap-card);
}

body.ecc-ap .ecc-ap-order--empty p {
	margin: 0 !important;
	color: var(--ecc-ap-muted) !important;
}

body.ecc-ap .ecc-ap-order__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	margin: 0;
}

body.ecc-ap .ecc-ap-order__facts > div {
	min-width: 0;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .ecc-ap-order__facts dt {
	margin: 0 0 4px;
	color: var(--ecc-ap-muted) !important;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .ecc-ap-order__facts dd {
	margin: 0;
	font-weight: 600;
	line-height: 1.4 !important;
}

body.ecc-ap .ecc-ap-order .ecc-ap-button {
	flex: 0 0 auto;
}

body.ecc-ap .ecc-ap-help {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--ecc-ap-line);
	border-radius: var(--ecc-ap-radius);
}

body.ecc-ap .ecc-ap-help__icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ecc-ap-card);
	color: var(--ecc-ap-green);
}

body.ecc-ap .ecc-ap-help__body {
	flex: 1 1 auto;
	min-width: 0;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content h3.ecc-ap-help__title {
	margin: 0 0 2px !important;
	font-size: 18px !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .ecc-ap-help__body p {
	margin: 0 !important;
	color: var(--ecc-ap-muted) !important;
	font-size: 15px !important;
}

body.ecc-ap .ecc-ap-help__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .ecc-ap-switch {
	margin: 26px 0 0 !important;
	color: var(--ecc-ap-muted) !important;
	font-size: 14px !important;
}

/* ------------------------------------------------------------------
 * Order status labels
 * ---------------------------------------------------------------- */

body.ecc-ap .ecc-ap-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eceef0;
	color: #54595f;
	font-family: var(--ecc-ap-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

body.ecc-ap .ecc-ap-status--processing {
	background: #e3f1ef;
	color: #046c63;
}

body.ecc-ap .ecc-ap-status--on-hold,
body.ecc-ap .ecc-ap-status--pending {
	background: #fbf1dc;
	color: #7a5200;
}

body.ecc-ap .ecc-ap-status--cancelled,
body.ecc-ap .ecc-ap-status--failed,
body.ecc-ap .ecc-ap-status--refunded {
	background: #f9e9e9;
	color: #9a2828;
}

/* ------------------------------------------------------------------
 * Tables: orders, order details, payment methods
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0 0 28px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	background: transparent !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table thead th {
	padding: 0 16px 12px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ecc-ap-line) !important;
	background: transparent !important;
	color: var(--ecc-ap-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	line-height: 1.3 !important;
	text-align: left;
	text-transform: uppercase;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table thead th * {
	color: inherit !important;
	font: inherit !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tbody td,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tbody th,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot td,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot th {
	padding: 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ecc-ap-line) !important;
	background: transparent !important;
	font-weight: 400 !important;
	text-align: left;
	vertical-align: middle;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table thead th:first-child,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr > :first-child,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot tr > :first-child {
	padding-left: 0 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table thead th:last-child,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr > :last-child,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot tr > :last-child {
	padding-right: 0 !important;
	text-align: right;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot th {
	color: var(--ecc-ap-muted) !important;
	font-weight: 600 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child > * {
	border-bottom: 0 !important;
}

/* The order total stands out. WooCommerce does not always list it last. */
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot tr:has(small.includes_tax) > *,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table tfoot:not(:has(small.includes_tax)) tr:last-child > * {
	color: var(--ecc-ap-ink) !important;
	font-weight: 600 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table .woocommerce-orders-table__cell-order-number a {
	font-weight: 600;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table .button + .button {
	margin-left: 6px;
}

/* ------------------------------------------------------------------
 * Addresses, here and on the order page
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin: 8px 0 0;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses::after,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-columns--addresses::before,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-columns--addresses::after {
	content: none;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-columns--addresses .woocommerce-column {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 22px 24px !important;
	border: 0 !important;
	border-radius: var(--ecc-ap-radius);
	background: var(--ecc-ap-card);
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title::before,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title::after {
	content: none;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-column__title {
	float: none !important;
	margin: 0 0 10px !important;
	font-size: 18px !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	position: static !important;
	float: none !important;
	flex: 0 0 auto;
	margin: 0 !important;
	white-space: nowrap;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content address {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-style: normal !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content address p {
	margin: 6px 0 0 !important;
	padding: 0 !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content address p::before {
	display: none !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-customer-details,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-order-details {
	margin: 32px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* ------------------------------------------------------------------
 * Forms
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce form .form-row {
	margin: 0 0 18px !important;
	padding: 0 !important;
}

body.ecc-ap .woocommerce form .form-row-first,
body.ecc-ap .woocommerce form .form-row-last {
	width: calc(50% - 8px) !important;
}

body.ecc-ap .woocommerce form .form-row label,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content form .form-row label {
	display: block;
	margin: 0 0 8px !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
}

body.ecc-ap .woocommerce form .form-row .required {
	color: #9a2828;
	text-decoration: none;
}

body.ecc-ap .woocommerce form .form-row input.input-text,
body.ecc-ap .woocommerce form .form-row textarea,
body.ecc-ap .woocommerce form .form-row select,
body.ecc-ap .woocommerce form .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px !important;
	border: 1px solid var(--ecc-ap-field) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.ecc-ap .woocommerce form .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

body.ecc-ap .woocommerce form .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	color: var(--ecc-ap-ink);
	line-height: 1.4;
}

body.ecc-ap .woocommerce form .select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

body.ecc-ap .woocommerce form .form-row input.input-text:focus,
body.ecc-ap .woocommerce form .form-row textarea:focus,
body.ecc-ap .woocommerce form .form-row select:focus {
	border-color: var(--ecc-ap-green) !important;
	box-shadow: 0 0 0 3px rgba(4, 108, 99, 0.16) !important;
	outline: 0;
}

body.ecc-ap .woocommerce form .form-row em,
body.ecc-ap .woocommerce form .form-row span em {
	display: block;
	margin-top: 6px;
	color: var(--ecc-ap-muted);
	font-size: 14px;
	font-style: normal;
	line-height: 1.45;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content fieldset {
	margin: 28px 0 24px !important;
	padding: 24px 24px 8px !important;
	border: 0 !important;
	border-radius: var(--ecc-ap-radius);
	background: var(--ecc-ap-card);
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content fieldset legend {
	float: left;
	width: 100%;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0;
	font-size: 18px !important;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content fieldset legend + * {
	clear: both;
}

body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-password-strength,
body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-password-hint {
	margin-top: 8px;
	border-radius: 8px;
	font-size: 14px;
}

/* ------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------- */

body.ecc-ap .woocommerce .woocommerce-info,
body.ecc-ap .woocommerce .woocommerce-message,
body.ecc-ap .woocommerce .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	margin: 0 0 24px !important;
	padding: 16px 20px !important;
	border: 0 !important;
	border-left: 3px solid var(--ecc-ap-green) !important;
	border-radius: 12px !important;
	outline: 0;
	background: var(--ecc-ap-card) !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	list-style: none;
}

body.ecc-ap .woocommerce .woocommerce-error {
	border-left-color: #9a2828 !important;
}

body.ecc-ap .woocommerce .woocommerce-info::before,
body.ecc-ap .woocommerce .woocommerce-message::before,
body.ecc-ap .woocommerce .woocommerce-error::before,
body.ecc-ap .woocommerce .woocommerce-info::after,
body.ecc-ap .woocommerce .woocommerce-message::after,
body.ecc-ap .woocommerce .woocommerce-error::after {
	display: none !important;
}

body.ecc-ap .woocommerce .woocommerce-info .button,
body.ecc-ap .woocommerce .woocommerce-message .button {
	float: none !important;
	order: 2;
	margin: 0 !important;
}

/* ------------------------------------------------------------------
 * Sign in and register (shown before logging in)
 * ---------------------------------------------------------------- */

body.ecc-ap:not(.logged-in) .woocommerce #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

body.ecc-ap:not(.logged-in) .woocommerce #customer_login::before,
body.ecc-ap:not(.logged-in) .woocommerce #customer_login::after {
	content: none;
}

body.ecc-ap:not(.logged-in) .woocommerce #customer_login > div,
body.ecc-ap:not(.logged-in) .woocommerce > form.woocommerce-form-login,
body.ecc-ap:not(.logged-in) .woocommerce > form.woocommerce-ResetPassword {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 28px !important;
	border: 0 !important;
	border-radius: var(--ecc-ap-radius) !important;
	background: var(--ecc-ap-card) !important;
}

body.ecc-ap:not(.logged-in) .woocommerce > form.woocommerce-form-login,
body.ecc-ap:not(.logged-in) .woocommerce > form.woocommerce-ResetPassword {
	max-width: 520px;
}

body.ecc-ap:not(.logged-in) .woocommerce #customer_login form {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

body.ecc-ap:not(.logged-in) .woocommerce h2 {
	margin: 0 0 18px !important;
	color: var(--ecc-ap-ink) !important;
	font-family: var(--ecc-ap-head) !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.3px;
}

body.ecc-ap:not(.logged-in) .woocommerce p,
body.ecc-ap:not(.logged-in) .woocommerce label {
	color: var(--ecc-ap-ink);
	font-family: var(--ecc-ap-text);
	font-size: 16px;
	line-height: 1.55;
}

body.ecc-ap:not(.logged-in) .woocommerce form p:not(.form-row),
body.ecc-ap:not(.logged-in) .woocommerce form .woocommerce-privacy-policy-text p,
body.ecc-ap:not(.logged-in) .woocommerce .lost_password a {
	color: var(--ecc-ap-muted) !important;
	font-family: var(--ecc-ap-text) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

body.ecc-ap:not(.logged-in) .woocommerce .lost_password a {
	color: var(--ecc-ap-green) !important;
}

body.ecc-ap:not(.logged-in) .woocommerce form .form-row:has(.woocommerce-form-login__rememberme) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

body.ecc-ap:not(.logged-in) .woocommerce form .form-row:has(.woocommerce-form-login__rememberme) .button {
	order: -1;
	float: none !important;
	margin: 0 !important;
}

body.ecc-ap:not(.logged-in) .woocommerce a {
	color: var(--ecc-ap-green);
	font-weight: 600;
}

body.ecc-ap:not(.logged-in) .woocommerce .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 16px 0 0;
	font-size: 15px !important;
	font-weight: 400 !important;
}

/* ------------------------------------------------------------------
 * Tablets and small laptops
 * ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.ecc-ap.logged-in .e-my-account-tab > .woocommerce,
	body.ecc-ap.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 220px minmax(0, 1fr);
		column-gap: 28px;
	}

	body.ecc-ap .ecc-ap-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ecc-ap .ecc-ap-help {
		flex-wrap: wrap;
	}

	body.ecc-ap .ecc-ap-help__actions {
		flex-basis: 100%;
		padding-left: 62px;
	}
}

/* ------------------------------------------------------------------
 * Phones: the menu folds into a dropdown
 * ---------------------------------------------------------------- */

@media (max-width: 767px) {
	body.ecc-ap.logged-in .e-my-account-tab > .woocommerce,
	body.ecc-ap.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: block;
	}

	body.ecc-ap .ecc-ap-menu-toggle {
		position: relative;
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		min-height: 52px;
		margin: 0 0 8px;
		padding: 0 46px 0 16px;
		border: 0;
		border-radius: 12px;
		background: var(--ecc-ap-card);
		color: var(--ecc-ap-green);
		font-family: var(--ecc-ap-text);
		font-size: 16px;
		font-weight: 600;
		line-height: 1.3;
		text-align: left;
		cursor: pointer;
	}

	body.ecc-ap .ecc-ap-menu-toggle:hover,
	body.ecc-ap .ecc-ap-menu-toggle:focus {
		background: var(--ecc-ap-card);
		color: var(--ecc-ap-green);
	}

	body.ecc-ap .ecc-ap-menu-toggle:focus-visible {
		outline: 2px solid var(--ecc-ap-green);
		outline-offset: 2px;
	}

	body.ecc-ap .ecc-ap-menu-toggle::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 16px;
		width: 20px;
		height: 20px;
		background-color: var(--ecc-ap-ink);
		-webkit-mask: var(--ecc-ap-icon-chevron) center / contain no-repeat;
		mask: var(--ecc-ap-icon-chevron) center / contain no-repeat;
		transform: translateY(-50%);
		transition: transform 0.2s ease;
	}

	body.ecc-ap .ecc-ap-menu-toggle[aria-expanded="true"]::after {
		transform: translateY(-50%) rotate(180deg);
	}

	body.ecc-ap.ecc-ap-js .woocommerce .woocommerce-MyAccount-navigation {
		display: none;
		margin: 0 0 8px;
	}

	body.ecc-ap.ecc-ap-js .woocommerce .woocommerce-MyAccount-navigation.is-open {
		display: block;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-navigation {
		margin: 0 0 24px;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content {
		margin-top: 24px;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content h2.ecc-ap-page-title {
		font-size: 26px !important;
		margin-bottom: 18px !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content h2.ecc-ap-welcome__title {
		font-size: 28px !important;
	}

	body.ecc-ap .ecc-ap-cards {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 24px;
	}

	body.ecc-ap .ecc-ap-card {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		align-items: center;
		padding: 16px 44px 16px 16px;
	}

	body.ecc-ap .ecc-ap-card__icon {
		grid-row: 1 / span 2;
		margin: 0;
	}

	body.ecc-ap .ecc-ap-card__text {
		margin-top: 0;
	}

	body.ecc-ap .ecc-ap-card__arrow {
		top: 50%;
		right: 16px;
		margin-top: -9px;
	}

	body.ecc-ap .ecc-ap-recent,
	body.ecc-ap .ecc-ap-next {
		margin-top: 28px;
	}

	body.ecc-ap .ecc-ap-order {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 18px;
	}

	body.ecc-ap .ecc-ap-order__facts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 16px;
	}

	body.ecc-ap .ecc-ap-help {
		padding: 18px;
	}

	body.ecc-ap .ecc-ap-help__actions {
		padding-left: 0;
	}

	body.ecc-ap .ecc-ap-help__actions .ecc-ap-button {
		flex: 1 1 auto;
	}

	/* Each order becomes its own card. */
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive thead {
		display: none;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
		display: block;
		margin: 0 0 12px;
		padding: 6px 16px;
		border-radius: var(--ecc-ap-radius);
		background: var(--ecc-ap-card) !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody th {
		display: block !important;
		overflow: hidden;
		padding: 12px 0 !important;
		text-align: right !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody tr > :last-child {
		border-bottom: 0 !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td::before,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody th::before {
		content: attr(data-title);
		float: left;
		padding-top: 3px;
		color: var(--ecc-ap-muted);
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions .button {
		display: flex;
		width: 100%;
		margin: 0 0 6px !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table:not(.shop_table_responsive) tbody td,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table:not(.shop_table_responsive) tbody th,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table:not(.shop_table_responsive) tfoot td,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content table.shop_table:not(.shop_table_responsive) tfoot th {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content .woocommerce-columns--addresses,
	body.ecc-ap:not(.logged-in) .woocommerce #customer_login {
		grid-template-columns: 1fr;
	}

	body.ecc-ap .woocommerce form .form-row-first,
	body.ecc-ap .woocommerce form .form-row-last {
		float: none !important;
		width: 100% !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content fieldset {
		padding: 18px 18px 4px !important;
	}

	body.ecc-ap .woocommerce .woocommerce-MyAccount-content form > p > .button,
	body.ecc-ap .woocommerce .woocommerce-MyAccount-content form > p > button[type="submit"] {
		width: 100%;
	}

	body.ecc-ap:not(.logged-in) .woocommerce #customer_login > div,
	body.ecc-ap:not(.logged-in) .woocommerce > form.woocommerce-form-login {
		padding: 20px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ecc-ap * {
		transition: none !important;
	}
}
