/* ============================================================
 * FLYOUT CART — MY ACCOUNT PAGE RESTYLE (v1.7.32)
 * Two states:
 *  1. Logged out — Login + Register cards side by side
 *  2. Logged in  — Sidebar nav + content area dashboard
 * ============================================================ */

/* Scope our font/styling to account content only, NOT the entire
 * body (which would clobber Avada's header styles). */
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce *,
body.woocommerce-account .flyout-account-page__hero,
body.woocommerce-account .flyout-account-page__hero * {
	font-family: 'Lexend Deca', sans-serif;
}

body.woocommerce-account .woocommerce {
	background: transparent !important;
}

body.woocommerce-account .woocommerce {
	max-width: 1240px;
	margin: 0 auto;
}

/* Hide the default "My Account" page title bar — we have our own hero */
body.woocommerce-account .page-title-container,
body.woocommerce-account .fusion-page-title-bar {
	display: none !important;
}

/* ============================================================
 * HERO BANNER (both logged-out and logged-in variants)
 * ============================================================ */

.flyout-account-page__hero {
	position: relative;
	margin: 0 auto 28px;
	max-width: 1240px;
	border-radius: 22px;
	overflow: hidden;
	background:
		radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 35%),
		radial-gradient(circle at 80% 80%, rgba(168, 0, 126, 0.4) 0%, transparent 45%),
		linear-gradient(135deg, #006cfa 0%, #234191 50%, #a8007e 100%);
	color: #ffffff;
	box-shadow: 0 20px 50px rgba(35, 65, 145, 0.22);
}

.flyout-account-page__hero-stripe {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: linear-gradient(90deg, #488c00 0%, #006cfa 50%, #a8007e 100%);
	z-index: 2;
}

.flyout-account-page__hero::before,
.flyout-account-page__hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.flyout-account-page__hero::before {
	width: 220px; height: 220px;
	right: -50px; top: -70px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.flyout-account-page__hero::after {
	width: 180px; height: 180px;
	left: 35%; bottom: -90px;
	background: radial-gradient(circle, rgba(168, 0, 126, 0.5) 0%, transparent 70%);
}

.flyout-account-page__hero-content {
	position: relative;
	padding: 38px 44px;
	z-index: 1;
}

.flyout-account-page__hero-pill {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 14px;
}

/* Hero title — Avada's global H1 styles set color: #234191 (navy)
 * which then renders navy-on-navy gradient = invisible. Override
 * with body-prefix specificity AND explicit child selectors. */
body.woocommerce-account .flyout-account-page__hero h1.flyout-account-page__hero-title,
body.woocommerce-account .flyout-account-page__hero .flyout-account-page__hero-title {
	font-size: 40px !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.7px !important;
	margin: 0 0 8px 0 !important;
	color: #ffffff !important;
	font-family: 'Lexend Deca', sans-serif !important;
	text-shadow: none !important;
	background: transparent !important;
	-webkit-background-clip: initial !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 0 !important;
	padding: 0 !important;
}

/* The yellow accent span inside the title */
body.woocommerce-account .flyout-account-page__hero-title .hero-accent {
	color: #fbbf24 !important;
	font-weight: 800 !important;
	-webkit-text-fill-color: #fbbf24 !important;
}

body.woocommerce-account .flyout-account-page__hero p.flyout-account-page__hero-subtitle,
body.woocommerce-account .flyout-account-page__hero .flyout-account-page__hero-subtitle {
	font-size: 16px !important;
	color: rgba(255, 255, 255, 0.92) !important;
	margin: 0 !important;
	max-width: 600px !important;
	line-height: 1.5 !important;
	font-family: 'Lexend Deca', sans-serif !important;
}

/* ============================================================
 * LOGGED OUT — Login + Register cards
 * ============================================================ */

body.woocommerce-account:not(.logged-in) .u-columns.col2-set,
body.woocommerce-account:not(.logged-in) .col2-set {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 30px !important;
	margin: 0 !important;
	max-width: 1100px;
	margin: 0 auto !important;
}

body.woocommerce-account:not(.logged-in) .u-columns::before,
body.woocommerce-account:not(.logged-in) .u-columns::after,
body.woocommerce-account:not(.logged-in) .col2-set::before,
body.woocommerce-account:not(.logged-in) .col2-set::after {
	display: none !important;
}

body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2,
body.woocommerce-account:not(.logged-in) .col-1,
body.woocommerce-account:not(.logged-in) .col-2 {
	float: none !important;
	width: 100% !important;
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid rgba(35, 65, 145, 0.1);
	box-shadow: 0 16px 36px rgba(35, 65, 145, 0.1);
	padding: 0;
	overflow: hidden;
	position: relative;
}

body.woocommerce-account:not(.logged-in) .u-column1::before,
body.woocommerce-account:not(.logged-in) .u-column2::before,
body.woocommerce-account:not(.logged-in) .col-1::before,
body.woocommerce-account:not(.logged-in) .col-2::before {
	content: '';
	display: block;
	width: 100%;
	height: 5px;
}

body.woocommerce-account:not(.logged-in) .u-column1::before,
body.woocommerce-account:not(.logged-in) .col-1::before {
	background: linear-gradient(90deg, #006cfa 0%, #234191 100%);
}

body.woocommerce-account:not(.logged-in) .u-column2::before,
body.woocommerce-account:not(.logged-in) .col-2::before {
	background: linear-gradient(90deg, #a8007e 0%, #c2185b 100%);
}

body.woocommerce-account:not(.logged-in) .u-column1 h2,
body.woocommerce-account:not(.logged-in) .u-column2 h2,
body.woocommerce-account:not(.logged-in) .col-1 h2,
body.woocommerce-account:not(.logged-in) .col-2 h2 {
	color: #1a3a8a !important;
	font-weight: 800 !important;
	font-size: 26px !important;
	padding: 26px 30px 8px !important;
	margin: 0 !important;
	letter-spacing: -0.5px !important;
	text-transform: none !important;
	border: 0 !important;
	font-family: 'Lexend Deca', sans-serif !important;
}

body.woocommerce-account:not(.logged-in) .u-column1 h2::after,
body.woocommerce-account:not(.logged-in) .col-1 h2::after {
	content: ' 🔐';
	font-size: 22px;
}

body.woocommerce-account:not(.logged-in) .u-column2 h2::after,
body.woocommerce-account:not(.logged-in) .col-2 h2::after {
	content: ' ✨';
	font-size: 22px;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form {
	padding: 14px 30px 28px !important;
	margin: 0 !important;
	border: 0 !important;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form > p:not(.form-row):first-child {
	color: #6b7290 !important;
	font-size: 14px !important;
	margin: 0 0 18px 0 !important;
	line-height: 1.5;
}

/* ============================================================
 * FORM INPUTS (all states)
 * ============================================================ */

body.woocommerce-account .form-row,
body.woocommerce-account .woocommerce-form-row {
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
}

body.woocommerce-account .form-row label,
body.woocommerce-account .woocommerce-form-row label {
	display: block !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #6b7290 !important;
	letter-spacing: 0.4px !important;
	text-transform: uppercase !important;
	margin-bottom: 7px !important;
	font-family: 'Lexend Deca', sans-serif !important;
}

body.woocommerce-account .form-row label .required,
body.woocommerce-account .form-row label .optional {
	color: #a8007e !important;
	font-weight: 700 !important;
	margin-left: 2px;
}

body.woocommerce-account .form-row input.input-text,
body.woocommerce-account .form-row textarea,
body.woocommerce-account .form-row select,
body.woocommerce-account input[type="text"]:not(.qty),
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account .select2-container--default .select2-selection--single {
	width: 100% !important;
	border: 1.5px solid rgba(35, 65, 145, 0.15) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-size: 14px !important;
	color: #234191 !important;
	background: #fafbff !important;
	font-family: 'Lexend Deca', sans-serif !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.4 !important;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

body.woocommerce-account .form-row input.input-text:focus,
body.woocommerce-account .form-row textarea:focus,
body.woocommerce-account .form-row select:focus,
body.woocommerce-account input[type="text"]:not(.qty):focus,
body.woocommerce-account input[type="email"]:focus,
body.woocommerce-account input[type="password"]:focus,
body.woocommerce-account input[type="tel"]:focus {
	border-color: #006cfa !important;
	background: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 108, 250, 0.12) !important;
}

body.woocommerce-account .select2-container--default .select2-selection--single {
	height: 47px !important;
	display: flex !important;
	align-items: center !important;
}

body.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #234191 !important;
	line-height: 1.4 !important;
	padding: 0 !important;
	font-weight: 500 !important;
}

body.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
	right: 8px !important;
}

/* "Remember me" checkbox row */
body.woocommerce-account .woocommerce-form-login__rememberme,
body.woocommerce-account .form-row.woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0 0 16px 0 !important;
}

body.woocommerce-account .woocommerce-form-login__rememberme span,
body.woocommerce-account .woocommerce-form-login__rememberme label {
	font-size: 13px !important;
	color: #234191 !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 !important;
	cursor: pointer;
}

body.woocommerce-account input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	accent-color: #006cfa;
	cursor: pointer;
}

/* ============================================================
 * BUTTONS (login, register, submits, etc.)
 * ============================================================ */

body.woocommerce-account button.woocommerce-button,
body.woocommerce-account button.woocommerce-form-login__submit,
body.woocommerce-account button.woocommerce-form-register__submit,
body.woocommerce-account button.woocommerce-Button,
body.woocommerce-account input[type="submit"].woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],
body.woocommerce-account button.button:not(.woocommerce-form-login__submit-secondary):not(.alt) {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 14px 24px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	font-family: 'Lexend Deca', sans-serif !important;
	cursor: pointer !important;
	box-shadow: 0 8px 22px rgba(0, 108, 250, 0.25) !important;
	transition: all 0.2s !important;
	float: none !important;
	margin: 0 !important;
}

body.woocommerce-account button.woocommerce-button:hover,
body.woocommerce-account button.woocommerce-form-login__submit:hover,
body.woocommerce-account button.woocommerce-form-register__submit:hover,
body.woocommerce-account button.woocommerce-Button:hover,
body.woocommerce-account input[type="submit"].woocommerce-button:hover,
body.woocommerce-account button.button:hover {
	background: linear-gradient(135deg, #0050d4 0%, #003fa8 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 12px 28px rgba(0, 108, 250, 0.35) !important;
}

/* Register button — magenta variant */
body.woocommerce-account form.woocommerce-form-register button.woocommerce-button,
body.woocommerce-account form.register button.woocommerce-Button {
	background: linear-gradient(135deg, #a8007e 0%, #c2185b 100%) !important;
	box-shadow: 0 8px 22px rgba(168, 0, 126, 0.25) !important;
}

body.woocommerce-account form.woocommerce-form-register button.woocommerce-button:hover,
body.woocommerce-account form.register button.woocommerce-Button:hover {
	background: linear-gradient(135deg, #c2185b 0%, #a8007e 100%) !important;
	box-shadow: 0 12px 28px rgba(168, 0, 126, 0.35) !important;
}

/* Lost password link inside login form */
body.woocommerce-account .lost_password,
body.woocommerce-account p.lost_password {
	margin: 14px 0 0 0 !important;
	text-align: left;
}

body.woocommerce-account .lost_password a {
	color: #006cfa !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-decoration: none !important;
}

body.woocommerce-account .lost_password a:hover {
	text-decoration: underline !important;
}

/* Privacy policy text in register form */
body.woocommerce-account .woocommerce-privacy-policy-text {
	font-size: 12px !important;
	color: #6b7290 !important;
	line-height: 1.5;
	margin: 14px 0 18px 0 !important;
}

body.woocommerce-account .woocommerce-privacy-policy-text a {
	color: #006cfa !important;
	font-weight: 600 !important;
}

/* ============================================================
 * LOGGED IN — Sidebar + content layout
 * Use grid that auto-sizes columns and only counts the nav +
 * content children. JS moves our hero OUT of this wrapper so
 * it doesn't participate in the grid.
 * ============================================================ */

body.woocommerce-account.logged-in .woocommerce {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-rows: auto;
	gap: 24px;
	align-items: start;
}

/* Hide any non-target direct children of .woocommerce that aren't
 * the navigation, content, or notices. Avada injects a custom
 * "welcome" widget that breaks the grid otherwise. */
body.woocommerce-account.logged-in .woocommerce > *:not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content):not(.woocommerce-NoticeGroup):not(.woocommerce-message):not(.woocommerce-error):not(.woocommerce-info):not(.woocommerce-notices-wrapper) {
	display: none !important;
}

/* Hide Avada's custom account header strip ("Hello Dennis Bloom /
 * Need Assistance? / Email us / View Cart") — redundant with our
 * hero and adds noise. Only matches when on account page. */
body.woocommerce-account .avada-myaccount-user,
body.woocommerce-account .avada-myaccount-data,
body.woocommerce-account .fusion-my-account-username,
body.woocommerce-account .fusion-my-account-header,
body.woocommerce-account .my_account_user,
body.woocommerce-account .my_account_orders + .my_account_user,
body.woocommerce-account .fusion-myaccount-content > .my_account_user {
	display: none !important;
}

/* Hide Avada's "Account" page title at the very top — appears as a
 * fusion-title block with H1 inside. Earlier selector was too narrow
 * (.fusion-title-1) — actual class is .fusion-title-2 or higher.
 * Match ANY fusion-title at the top of the account page. */
body.woocommerce-account .fusion-title-text,
body.woocommerce-account div.fusion-title.title,
body.woocommerce-account h1.entry-title,
body.woocommerce-account .post-content > h1:first-child,
body.woocommerce-account .fusion-page-title,
body.woocommerce-account .page-title,
body.woocommerce-account [class*="fusion-title"]:first-child,
body.woocommerce-account .post-content > [class*="fusion-title"]:first-child {
	display: none !important;
}

/* The "bubble" was the WP admin bar's secondary (right-side) container.
 * Even with the user-account LI hidden, the parent UL was still 52x46.
 * Hide the entire #wp-admin-bar-top-secondary (right-side group) on
 * the account page only. This kills the bubble while leaving every
 * other admin bar item (Yoast, Avada, Clear Caches, etc.) intact. */
body.woocommerce-account #wpadminbar #wp-admin-bar-top-secondary,
body.woocommerce-account #wpadminbar #wp-admin-bar-my-account,
body.woocommerce-account #wpadminbar ul.ab-top-secondary {
	display: none !important;
}

/* Sidebar nav card */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid rgba(35, 65, 145, 0.1);
	box-shadow: 0 16px 36px rgba(35, 65, 145, 0.08);
	padding: 16px 0;
	margin: 0;
	width: 100%;
	float: none;
	overflow: hidden;
	position: sticky;
	top: 24px;
	grid-column: 1;
	grid-row: 1;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation::before {
	content: '';
	display: block;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #488c00 0%, #006cfa 50%, #a8007e 100%);
	margin: -16px 0 16px 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 12px !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
	background: transparent !important;
	border: 0 !important;
	margin: 0 0 4px 0 !important;
	padding: 0 !important;
	border-radius: 10px !important;
	overflow: hidden;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 12px 14px !important;
	color: #234191 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	transition: all 0.15s;
	font-family: 'Lexend Deca', sans-serif !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a:hover {
	background: #f0f4ff !important;
	color: #006cfa !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard.is-active a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.is-active > a {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 6px 16px rgba(0, 108, 250, 0.25);
	font-weight: 700 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a::before {
	font-size: 16px;
	display: inline-block;
	width: 22px;
	text-align: center;
	flex-shrink: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '🏠'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before { content: '📦'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before { content: '📥'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '📍'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods a::before { content: '💳'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '⚙️'; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '👋'; }

/* Logout — accent it as separate from rest */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 12px !important;
	border-top: 1px solid #e5e8f0 !important;
	padding-top: 12px !important;
	border-radius: 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #6b7290 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fef2f2 !important;
	color: #dc2626 !important;
}

/* Content area card */
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid rgba(35, 65, 145, 0.1);
	box-shadow: 0 16px 36px rgba(35, 65, 145, 0.08);
	padding: 32px 36px;
	width: 100%;
	float: none;
	margin: 0;
	overflow: hidden;
	position: relative;
	grid-column: 2;
	grid-row: 1;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 5px;
	background: linear-gradient(90deg, #488c00 0%, #006cfa 50%, #a8007e 100%);
	border-radius: 18px 18px 0 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > h2,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content > h3 {
	color: #1a3a8a !important;
	font-weight: 800 !important;
	font-size: 24px !important;
	margin: 6px 0 18px 0 !important;
	letter-spacing: -0.4px !important;
	text-transform: none !important;
	font-family: 'Lexend Deca', sans-serif !important;
	border: 0 !important;
	padding: 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > p {
	color: #234191 !important;
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	margin: 0 0 14px 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content > p strong {
	color: #1a3a8a !important;
	font-weight: 700 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
	color: #006cfa !important;
	font-weight: 700 !important;
	text-decoration: none;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):hover {
	text-decoration: underline !important;
}

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

body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account table.shop_table {
	background: transparent !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	width: 100% !important;
	margin: 0 !important;
}

body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account table.shop_table thead th {
	background: #f0f4ff !important;
	color: #6b7290 !important;
	font-weight: 700 !important;
	font-size: 11px !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	padding: 12px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid #e5e8f0 !important;
}

body.woocommerce-account .woocommerce-orders-table thead th:first-child,
body.woocommerce-account table.shop_table thead th:first-child {
	border-radius: 10px 0 0 0;
}

body.woocommerce-account .woocommerce-orders-table thead th:last-child,
body.woocommerce-account table.shop_table thead th:last-child {
	border-radius: 0 10px 0 0;
}

body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account table.shop_table tbody td {
	background: #ffffff !important;
	color: #234191 !important;
	font-size: 14px !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid #f0f2f7 !important;
	vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:hover td {
	background: #fafbff !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-total {
	font-weight: 700 !important;
	color: #c2185b !important;
}

/* Order status badges */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-status {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-status::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	background: #6b7290;
}

body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-completed td.woocommerce-orders-table__cell-order-status::before { background: #488c00; }
body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-processing td.woocommerce-orders-table__cell-order-status::before { background: #006cfa; }
body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-pending td.woocommerce-orders-table__cell-order-status::before { background: #f59e0b; }
body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-cancelled td.woocommerce-orders-table__cell-order-status::before,
body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-failed td.woocommerce-orders-table__cell-order-status::before { background: #dc2626; }
body.woocommerce-account .woocommerce-orders-table tbody tr.order.status-on-hold td.woocommerce-orders-table__cell-order-status::before { background: #a8007e; }

/* Action buttons inside table */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button,
body.woocommerce-account table.shop_table tbody td a.button {
	background: #ffffff !important;
	color: #234191 !important;
	border: 1.5px solid rgba(35, 65, 145, 0.2) !important;
	border-radius: 8px !important;
	padding: 7px 12px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	font-family: 'Lexend Deca', sans-serif !important;
	box-shadow: none !important;
	margin: 0 4px 4px 0 !important;
	display: inline-block;
	transition: all 0.15s;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button:hover,
body.woocommerce-account table.shop_table tbody td a.button:hover {
	background: #f0f4ff !important;
	border-color: #006cfa !important;
	color: #006cfa !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.view {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.view:hover {
	background: linear-gradient(135deg, #0050d4 0%, #003fa8 100%) !important;
}

/* "Invoice" action button — magenta gradient to differentiate from View */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.flyout_invoice {
	background: linear-gradient(135deg, #a8007e 0%, #c2185b 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.flyout_invoice:hover {
	background: linear-gradient(135deg, #c2185b 0%, #88005c 100%) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(168, 0, 126, 0.3) !important;
}

/* Suppress any pseudo-element decoration the theme/Avada adds to action
 * buttons (arrows, wedges, gradients overlays). Force a clean look. */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button::before,
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button::after,
body.woocommerce-account table.shop_table tbody td a.button::before,
body.woocommerce-account table.shop_table tbody td a.button::after {
	content: none !important;
	display: none !important;
	background: none !important;
	border: 0 !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button,
body.woocommerce-account table.shop_table tbody td a.button {
	background-image: none;
	text-shadow: none !important;
	-webkit-clip-path: none !important;
	clip-path: none !important;
	overflow: visible !important;
}

/* Re-apply gradient backgrounds (background-image: none above would have killed them) */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.view {
	background-image: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
}
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button.flyout_invoice {
	background-image: linear-gradient(135deg, #a8007e 0%, #c2185b 100%) !important;
}

/* Mobile: stack action buttons vertically, full-width */
@media (max-width: 700px) {
	body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
		align-items: stretch !important;
	}

	body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a.button {
		width: 100% !important;
		display: block !important;
		text-align: center !important;
		margin: 0 !important;
		padding: 10px 14px !important;
		font-size: 12px !important;
	}
}

/* ============================================================
 * ADDRESSES BLOCK
 * ============================================================ */

body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .addresses {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px !important;
	margin-top: 18px;
}

body.woocommerce-account .woocommerce-Address {
	background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
	border: 1px solid rgba(35, 65, 145, 0.1);
	border-radius: 14px;
	padding: 22px 24px 20px;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

body.woocommerce-account .woocommerce-Address h2,
body.woocommerce-account .woocommerce-Address h3 {
	color: #1a3a8a !important;
	font-weight: 800 !important;
	font-size: 18px !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
}

body.woocommerce-account .woocommerce-Address h2::before,
body.woocommerce-account .woocommerce-Address h3::before {
	content: '📍';
	font-size: 18px;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
	margin-left: auto;
	background: #ffffff !important;
	border: 1.5px solid rgba(35, 65, 145, 0.2) !important;
	color: #234191 !important;
	padding: 6px 12px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	border-radius: 8px !important;
	text-decoration: none !important;
}

body.woocommerce-account .woocommerce-Address-title a.edit:hover {
	border-color: #006cfa !important;
	color: #006cfa !important;
	background: #f0f4ff !important;
}

body.woocommerce-account .woocommerce-Address address {
	color: #234191 !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
	font-style: normal !important;
	margin: 0 !important;
}

/* Edit address form (full width when editing) */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
	margin-top: 16px;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields h3,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm h3 {
	font-size: 18px !important;
	color: #1a3a8a !important;
	font-weight: 800 !important;
	margin: 18px 0 12px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: 'Lexend Deca', sans-serif !important;
}

/* ============================================================
 * PAYMENT METHODS (saved cards)
 * ============================================================ */

body.woocommerce-account .woocommerce-MyAccount-paymentMethods {
	margin-top: 16px;
}

body.woocommerce-account .woocommerce-MyAccount-paymentMethods .button {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 12px 22px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	margin-top: 18px !important;
	box-shadow: 0 6px 16px rgba(0, 108, 250, 0.25) !important;
}

/* ============================================================
 * NOTICES (success / error / info)
 * ============================================================ */

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-NoticeGroup,
body.woocommerce-account ul.woocommerce-error,
body.woocommerce-account .wc-block-components-notice-banner {
	background: #ffffff !important;
	border: 1px solid rgba(35, 65, 145, 0.12) !important;
	border-left: 4px solid #006cfa !important;
	border-radius: 12px !important;
	padding: 14px 18px 14px 22px !important;
	box-shadow: 0 6px 20px rgba(35, 65, 145, 0.06) !important;
	color: #234191 !important;
	font-family: 'Lexend Deca', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	margin: 0 0 22px 0 !important;
	list-style: none !important;
	line-height: 1.5 !important;
}

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .wc-block-components-notice-banner.is-success {
	border-left-color: #488c00 !important;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account ul.woocommerce-error,
body.woocommerce-account .wc-block-components-notice-banner.is-error {
	border-left-color: #dc2626 !important;
}

body.woocommerce-account ul.woocommerce-error li {
	color: #234191 !important;
	margin: 0 0 4px 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

body.woocommerce-account .woocommerce-message a,
body.woocommerce-account .woocommerce-info a {
	color: #a8007e !important;
	font-weight: 700 !important;
}

body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 8px 16px !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	float: right !important;
	margin-top: -4px !important;
	box-shadow: 0 4px 12px rgba(0, 108, 250, 0.25) !important;
}

/* ============================================================
 * EMPTY STATES (no orders, no downloads, etc.)
 * ============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
	background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%) !important;
	border: 1px solid rgba(35, 65, 145, 0.1) !important;
	border-left: 4px solid #006cfa !important;
	text-align: center;
	padding: 32px 24px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
	margin-top: 14px !important;
	display: inline-block !important;
	float: none !important;
}

/* ============================================================
 * RESPONSIVE / MOBILE
 * ============================================================ */

@media (max-width: 980px) {
	body.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto auto !important;
	}

	/* Force grid-column reset — desktop CSS sets nav to col 1, content to
	 * col 2. Without this override, on mobile content stays in implicit
	 * col 2 (narrow), and nav stays in col 1 (also narrow). */
	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
	body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		grid-column: 1 !important;
		width: 100% !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
		grid-row: 1 !important;
		position: static !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		grid-row: 2 !important;
	}

	body.woocommerce-account:not(.logged-in) .u-columns.col2-set,
	body.woocommerce-account:not(.logged-in) .col2-set {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 4px !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto !important;
		width: 100% !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		flex: 0 0 auto !important;
		width: 100% !important;
		margin-top: 8px !important;
	}
}

@media (max-width: 768px) {
	.flyout-account-page__hero {
		margin-bottom: 22px;
	}

	.flyout-account-page__hero-content {
		padding: 28px 24px;
	}

	.flyout-account-page__hero-title {
		font-size: 26px !important;
		line-height: 1.2 !important;
	}

	.flyout-account-page__hero-subtitle {
		font-size: 14px !important;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		padding: 26px 22px;
	}

	body.woocommerce-account.logged-in .woocommerce-MyAccount-content > h2,
	body.woocommerce-account.logged-in .woocommerce-MyAccount-content > h3 {
		font-size: 20px !important;
	}

	body.woocommerce-account:not(.logged-in) .u-column1 h2,
	body.woocommerce-account:not(.logged-in) .u-column2 h2,
	body.woocommerce-account:not(.logged-in) .col-1 h2,
	body.woocommerce-account:not(.logged-in) .col-2 h2 {
		font-size: 22px !important;
		padding: 22px 24px 6px !important;
	}

	body.woocommerce-account:not(.logged-in) form.woocommerce-form {
		padding: 14px 24px 24px !important;
	}

	/* Mobile orders table — show as cards */
	body.woocommerce-account .woocommerce-orders-table thead {
		display: none !important;
	}

	body.woocommerce-account .woocommerce-orders-table tbody tr {
		display: block !important;
		background: #fafbff !important;
		border: 1px solid rgba(35, 65, 145, 0.1) !important;
		border-radius: 12px !important;
		margin-bottom: 12px !important;
		padding: 14px 16px !important;
	}

	body.woocommerce-account .woocommerce-orders-table tbody td {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center;
		padding: 8px 0 !important;
		border-bottom: 1px solid #e5e8f0 !important;
		background: transparent !important;
		text-align: right !important;
	}

	body.woocommerce-account .woocommerce-orders-table tbody td:last-child {
		border-bottom: 0 !important;
	}

	body.woocommerce-account .woocommerce-orders-table tbody td::before {
		content: attr(data-title);
		font-weight: 700;
		color: #6b7290;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
}
