/**
 * Account modal + My Account profile styles.
 */

/* —— Checkout blur gate —— */
.tpb-checkout.is-locked .tpb-checkout__panel.is-blurred {
	position: relative;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}

.tpb-checkout.is-locked .tpb-checkout__panel.is-blurred > *:not(.tpb-checkout__title) {
	filter: blur(7px);
	opacity: 0.55;
}

.tpb-checkout.is-locked .tpb-checkout__title {
	filter: none;
	opacity: 1;
}

body.tpb-auth-open {
	overflow: hidden;
}

.tpb-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.tpb-auth-modal[hidden] {
	display: none !important;
}

.tpb-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(45, 49, 42, 0.28);
	backdrop-filter: blur(2px);
}

.tpb-auth-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(45, 49, 42, 0.18);
	padding: 1.65rem 1.55rem 1.45rem;
}

.tpb-auth-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f4f4ef;
	color: #4a4729;
	cursor: pointer;
}

.tpb-auth-modal__close:hover,
.tpb-auth-modal__close:focus-visible {
	background: #eceadf;
	outline: none;
}

.tpb-auth-modal__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
	padding-right: 2.25rem;
}

.tpb-auth-demo {
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
	border: 1px dashed #d6d3c4;
	border-radius: 0.75rem;
	background: #f8f7f2;
}

.tpb-auth-demo__label {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5f5c37;
}

.tpb-auth-demo__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: #64748b;
}

.tpb-auth-demo__row code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82rem;
	color: #2d312a;
	background: transparent;
}

.tpb-auth-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--tpb-bg-soft, #f5f4ee);
	color: var(--tpb-olive-dark, #4a4729);
	flex-shrink: 0;
}

.tpb-auth-modal__title {
	margin: 0;
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.65rem;
	font-weight: 600;
	color: var(--tpb-ink, #2d312a);
	line-height: 1.15;
}

.tpb-auth-modal__lead {
	margin: 0 0 1.15rem;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.55;
}

.tpb-auth-form__row {
	margin: 0 0 0.9rem;
}

.tpb-auth-form__row label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.tpb-auth-form__row input {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #b7c7dc;
	border-radius: 10px;
	background: #fff;
	color: var(--tpb-ink, #2d312a);
	font: inherit;
}

.tpb-auth-form__row input:focus {
	outline: none;
	border-color: var(--tpb-olive-dark, #4a4729);
	box-shadow: 0 0 0 3px rgba(74, 71, 41, 0.12);
}

.tpb-password-wrap {
	position: relative;
	display: block;
}

.tpb-auth-form__row .tpb-password-wrap input,
.tpb-auth__field .tpb-password-wrap input {
	padding-right: 2.75rem;
}

.tpb-password-toggle {
	position: absolute;
	right: 0.3rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	z-index: 2;
	overflow: hidden;
}

.tpb-password-toggle:hover,
.tpb-password-toggle:focus-visible {
	color: var(--tpb-olive-dark, #4a4729);
}

.tpb-password-toggle:focus-visible {
	outline: 2px solid rgba(74, 71, 41, 0.35);
	outline-offset: 1px;
}

.tpb-password-toggle__eye,
.tpb-password-toggle__eye-off {
	display: none;
	width: 18px;
	height: 18px;
	line-height: 0;
}

.tpb-password-toggle[aria-pressed="false"] .tpb-password-toggle__eye,
.tpb-password-toggle:not([aria-pressed]) .tpb-password-toggle__eye,
.tpb-password-toggle[aria-pressed="true"] .tpb-password-toggle__eye-off {
	display: block;
}

.tpb-password-toggle svg {
	display: block;
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8;
	overflow: visible;
}

.tpb-password-wrap.password-input,
.tpb-password-wrap .password-input {
	display: block;
	position: relative;
	width: 100%;
}

.tpb-password-wrap .show-password-input,
.tpb-auth-form .show-password-input,
.tpb-auth__form .show-password-input {
	display: none !important;
}

.tpb-auth-form__error {
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.88rem;
}

.tpb-auth-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	margin: 0.15rem 0 0;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 12px;
	background: var(--tpb-olive-dark, #4a4729);
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.tpb-auth-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.tpb-auth-otp {
	margin: 0 0 0.35rem;
}

.tpb-auth-otp__hint {
	margin: 0 0 0.9rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	background: #f0f5fb;
	color: #334155;
	font-size: 0.9rem;
	line-height: 1.45;
}

.tpb-auth-otp input[data-tpb-otp-input] {
	letter-spacing: 0.35em;
	font-size: 1.15rem;
	font-weight: 600;
	text-align: center;
}

.tpb-auth-otp__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0 0 0.85rem;
}

.tpb-auth-form input[data-tpb-forgot-otp] {
	letter-spacing: 0.35em;
	font-size: 1.15rem;
	font-weight: 600;
	text-align: center;
}

.tpb-account-auth__tabs[hidden] {
	display: none !important;
}

.tpb-auth-modal__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-top: 1.1rem;
	padding-top: 0.95rem;
	border-top: 1px solid #e5e7eb;
}

.tpb-auth-modal__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--tpb-olive-dark, #4a4729);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

.tpb-auth-modal__link:hover {
	text-decoration: underline;
}

.tpb-auth-modal__switch {
	margin: 0;
	color: #64748b;
	font-size: 0.9rem;
}

/* —— Save details checkbox —— */
.tpb-save-details {
	margin: 0 0 1rem !important;
	padding: 0.85rem 1rem !important;
	background: #f4f6fa;
	border-radius: 12px;
}

.tpb-save-details .checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	font-weight: 500;
	color: var(--tpb-ink, #2d312a);
}

.tpb-save-details__hint {
	display: block;
	margin: 0.4rem 0 0 1.45rem;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.45;
}

/* —— Header account link —— */
/* (styles live in main.css so the icon works site-wide) */

/* —— My Account layout —— */
.woocommerce-account .tpb-page--commerce {
	background: var(--tpb-bg, #ffffff);
}

/* Allow Elementor hero to go full-bleed; content sections stay boxed */
.woocommerce-account.logged-in .tpb-page__content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 2rem max(1rem, calc((100% - var(--tpb-container, 80rem)) / 2)) 3rem;
	box-sizing: border-box;
}

.woocommerce-account .tpb-page__content > .elementor {
	width: 100%;
}

/* Non-hero Elementor sections: inset to site container */
.woocommerce-account .elementor > .e-con.e-parent:not([data-settings*="background_background"]) {
	width: min(100% - 3rem, var(--tpb-container, 80rem));
	max-width: var(--tpb-container, 80rem);
	margin-inline: auto;
	padding-top: 1.75rem !important;
	padding-bottom: 2rem !important;
	box-sizing: border-box;
}

/* Classic (non-Elementor) hero still full bleed */
.tpb-account-hero {
	padding: 2.25rem max(1.5rem, calc((100% - var(--tpb-container, 80rem)) / 2)) 2rem;
	background: var(--tpb-olive-dark, #4a4729);
	color: #fff;
	width: 100%;
	box-sizing: border-box;
}

/* Dashboard grid ONLY when logged in — guests get a centered login card. */
.woocommerce-account.logged-in .woocommerce,
.tpb-account-page.logged-in .tpb-main > .woocommerce,
.tpb-account-page.logged-in .tpb-page__content > .woocommerce {
	display: grid !important;
	grid-template-columns: 20rem minmax(0, 1fr) !important;
	gap: 1.75rem;
	align-items: start;
	width: 100%;
	max-width: var(--tpb-container, 80rem);
	margin-inline: auto;
	box-sizing: border-box;
}

.tpb-account-page.logged-in .tpb-main > .woocommerce {
	padding: 2rem 1rem 3rem;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.tpb-account-page.logged-in .woocommerce-MyAccount-navigation {
	display: block !important;
	width: 100% !important;
	min-width: 20rem !important;
	max-width: none !important;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 0.85rem;
	position: sticky;
	top: 5.5rem;
	box-shadow: 0 1px 2px rgba(45, 43, 26, 0.04);
	overflow: visible !important;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	width: 100%;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
	width: 100%;
}

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.85rem;
	padding: 0.75rem 1.15rem;
	border-radius: 12px;
	color: #475569;
	text-decoration: none !important;
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	white-space: nowrap;
	box-sizing: border-box;
	overflow: visible;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: rgba(95, 92, 55, 0.1);
	color: var(--tpb-olive-dark, #4a4729);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--tpb-olive-dark, #4a4729);
	color: #fff;
	box-shadow: 0 2px 8px rgba(74, 71, 41, 0.22);
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 0.45rem;
	padding-top: 0.55rem;
	border-top: 1px solid #eef1f4;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #b45309;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a:hover,
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout.is-active a {
	background: #fff7ed;
	color: #9a3412;
	box-shadow: none;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content,
.tpb-account-page.logged-in .woocommerce-MyAccount-content {
	display: block !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 1.75rem 1.75rem 1.85rem;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(45, 43, 26, 0.04);
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	color: #334155;
	line-height: 1.6;
}

.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
	margin: 0 0 1rem;
}

.woocommerce-MyAccount-content a {
	color: var(--tpb-olive-dark, #4a4729);
	font-weight: 600;
}

/* Overview dashboard cards */
.tpb-account-dash__head {
	margin-bottom: 1.5rem;
}

.tpb-account-dash__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.tpb-account-dash__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--tpb-ink, #2d2b1a);
	line-height: 1.2;
}

.tpb-account-dash__lead {
	margin: 0;
	max-width: 36rem;
	color: #64748b;
	font-size: 0.95rem;
}

.tpb-account-dash__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tpb-account-dash__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	min-height: 8.5rem;
	padding: 1.15rem 1.2rem 1.2rem;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f8fafc;
	text-decoration: none !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tpb-account-dash__card:hover {
	background: #fff;
	border-color: rgba(95, 92, 55, 0.35);
	box-shadow: 0 8px 24px rgba(45, 43, 26, 0.08);
	transform: translateY(-1px);
}

.tpb-account-dash__card-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--tpb-ink, #2d2b1a);
	letter-spacing: -0.01em;
}

.tpb-account-dash__card-desc {
	flex: 1 1 auto;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #64748b;
}

.tpb-account-dash__card-cta {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--tpb-olive-dark, #4a4729);
}

@media (max-width: 720px) {
	.tpb-account-dash__grid {
		grid-template-columns: 1fr;
	}
}

.tpb-account-hero__title {
	margin: 0;
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.85rem, 3.5vw, 2.4rem);
	font-weight: 600;
}

.tpb-account-hero__sub {
	margin: 0.4rem 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.tpb-account-section__title {
	margin: 0 0 0.35rem;
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.55rem;
	color: var(--tpb-ink, #2d312a);
}

.tpb-account-section__lead {
	margin: 0 0 1.25rem;
	color: #64748b;
	font-size: 0.95rem;
}

.tpb-account-orders {
	width: 100%;
	border-collapse: collapse;
}

.tpb-account-orders th,
.tpb-account-orders td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 0.92rem;
}

.tpb-account-orders th {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 500;
}

.tpb-account-status {
	display: inline-flex;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--tpb-bg-soft, #f5f4ee);
	color: var(--tpb-olive-dark, #4a4729);
	font-size: 0.78rem;
	font-weight: 500;
}

.tpb-account-empty {
	margin: 0;
	padding: 1.25rem;
	border-radius: 12px;
	background: #f4f6fa;
	color: #64748b;
}

.tpb-account-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.15rem;
	margin-bottom: 0;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f8fafc;
}

.tpb-account-card .tpb-account-btn {
	flex: 0 0 auto;
	min-height: 2.4rem;
	padding: 0.55rem 1rem;
	font-size: 0.88rem;
}

.tpb-account-form input[readonly] {
	background: #f1f5f9;
	color: #64748b;
	cursor: not-allowed;
	border-style: dashed;
}

/* Elementor-wrapped My Account: keep nav + content grid full width */
.elementor-widget-tpb_my_account .woocommerce,
.tpb-page--commerce .elementor-widget-tpb_my_account .woocommerce {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	width: 100%;
}

.elementor-widget-tpb_my_account .woocommerce-MyAccount-navigation,
.elementor-widget-tpb_my_account .woocommerce-MyAccount-content {
	width: 100%;
	max-width: none;
}

body.logged-in.woocommerce-account .tpb-account-hero-guest-only {
	display: none !important;
}

.tpb-account-card__brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	height: 2.1rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: var(--tpb-olive-dark, #4a4729);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tpb-account-card__meta {
	margin: 0;
	color: var(--tpb-ink, #2d312a);
	font-weight: 500;
}

.tpb-account-card__exp {
	margin: 0.15rem 0 0;
	color: #64748b;
	font-size: 0.85rem;
}

.tpb-account-form .form-row {
	margin: 0 0 1rem;
}

.tpb-account-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
}

.tpb-account-form input.input-text,
.tpb-account-form select,
.tpb-account-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.75rem;
	height: 2.75rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.35;
}

.tpb-account-form textarea {
	height: auto;
	min-height: 6rem;
}

.tpb-account-form .select2-container .select2-selection--single {
	box-sizing: border-box;
	min-height: 2.75rem !important;
	height: 2.75rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	padding: 0 0.85rem;
}

.tpb-account-form .select2-container--default .select2-selection--single .select2-selection__rendered {
	display: flex;
	align-items: center;
	line-height: 1.35 !important;
	padding: 0 !important;
	min-height: calc(2.75rem - 2px);
	font-size: 1rem;
}

.tpb-account-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: calc(2.75rem - 2px) !important;
	top: 0 !important;
	right: 0.55rem;
}

.tpb-account-form input[readonly] {
	background: #f1f5f9;
	color: #64748b;
	cursor: not-allowed;
}

.tpb-account-form__actions {
	margin-top: 0.5rem;
}

.tpb-account-form__actions .button,
.tpb-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.7rem 1.2rem;
	border: 0;
	border-radius: 12px;
	background: var(--tpb-olive-dark, #4a4729) !important;
	color: #fff !important;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none !important;
}

.tpb-account-form__msg {
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-size: 0.9rem;
}

.tpb-account-form__msg.is-success {
	background: #ecfdf5;
	color: #047857;
}

.tpb-account-form__msg.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.tpb-account-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* Kill Woo float columns that stagger Billing / Shipping cards. */
.woocommerce-account .u-columns,
.woocommerce-account .col2-set,
.woocommerce-account .woocommerce-Addresses,
.woocommerce-MyAccount-content .u-columns,
.woocommerce-MyAccount-content .col2-set {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	float: none !important;
	width: 100% !important;
	max-width: 36rem !important;
	margin: 0 !important;
	gap: 1rem !important;
	clear: both !important;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2,
.woocommerce-account .col-1,
.woocommerce-account .col-2,
.woocommerce-account .woocommerce-Address,
.woocommerce-MyAccount-content .u-column1,
.woocommerce-MyAccount-content .u-column2,
.woocommerce-MyAccount-content .col-1,
.woocommerce-MyAccount-content .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	clear: both !important;
}

.woocommerce-account .woocommerce-Address {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	text-align: left;
}

.woocommerce-account .woocommerce-Address-title,
.woocommerce-account .woocommerce-Address-title.title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	text-align: left;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-family: var(--tpb-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--tpb-ink, #2d2b1a);
	text-align: left;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woocommerce-Address p {
	margin: 0;
	text-align: left;
	color: #475569;
	line-height: 1.55;
	font-style: normal;
}

/* Theme address cards */
.tpb-account-addresses__intro {
	margin: 0 0 1.25rem !important;
	max-width: 36rem;
	text-align: left;
	color: #64748b;
	font-size: 0.95rem;
}

.tpb-account-addresses {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 1rem !important;
	width: 100% !important;
	max-width: 36rem !important;
	margin: 0 !important;
	float: none !important;
}

.tpb-account-addresses__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	width: 100%;
	margin: 0;
	padding: 1.25rem 1.3rem 1.3rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-sizing: border-box;
	text-align: left;
	float: none !important;
}

.tpb-account-addresses__head {
	width: 100%;
	margin: 0;
}

.tpb-account-addresses__head h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--tpb-ink, #2d2b1a);
	letter-spacing: -0.01em;
}

.tpb-account-addresses__body {
	width: 100%;
}

.tpb-account-addresses__body address {
	margin: 0;
	font-style: normal;
	color: #475569;
	line-height: 1.55;
}

.tpb-account-addresses__empty {
	margin: 0 !important;
	color: #94a3b8;
	font-size: 0.9rem;
}

.tpb-account-addresses__btn,
a.tpb-account-addresses__btn.tpb-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin-top: 0.15rem;
	padding: 0.7rem 1.15rem !important;
	border-radius: 0.7rem !important;
	background: var(--tpb-olive-dark, #4a4729) !important;
	color: #fff !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	width: auto;
	max-width: 100%;
}

.tpb-account-addresses__btn:hover,
a.tpb-account-addresses__btn.tpb-btn:hover {
	background: var(--tpb-olive, #5f5c37) !important;
	color: #fff !important;
}

/* Hide leftover bare “edit” text links when our button is present */
.tpb-account-addresses__card .edit {
	display: none !important;
}

/* —— Payment methods —— */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info {
	margin: 0 0 1.25rem !important;
	padding: 0.85rem 1rem !important;
	border: 1px solid #e5e7eb !important;
	border-left: 3px solid var(--tpb-olive-dark, #4a4729) !important;
	border-radius: 12px !important;
	background: #f8fafc !important;
	color: #334155 !important;
	box-shadow: none !important;
	text-align: left !important;
	list-style: none !important;
}

.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message::before {
	display: none !important;
}

.tpb-account-payments {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	width: 100%;
	max-width: 40rem;
	text-align: left;
}

.tpb-account-payments__list,
ul.woocommerce-PaymentMethods {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.tpb-account-payments__item,
.woocommerce-PaymentMethod {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	width: 100%;
	margin: 0 !important;
	padding: 1.15rem 1.25rem !important;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-sizing: border-box;
	text-align: left;
}

.tpb-account-payments__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	min-width: 0;
	flex: 1 1 14rem;
}

.tpb-account-payments__method,
.tpb-account-payments__expires {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	margin: 0;
}

.tpb-account-payments__label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
}

.tpb-account-payments__method strong,
.tpb-account-payments__expires strong {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--tpb-ink, #2d2b1a);
}

.tpb-account-payments__badge {
	display: inline-flex;
	margin-top: 0.25rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(95, 92, 55, 0.12);
	color: var(--tpb-olive-dark, #4a4729);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tpb-account-payments__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
}

.tpb-account-payments__btn,
a.tpb-account-payments__btn.tpb-btn,
.tpb-account-payments__actions .button,
.woocommerce-PaymentMethod .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.95rem !important;
	border-radius: 0.65rem !important;
	background: var(--tpb-olive-dark, #4a4729) !important;
	color: #fff !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.tpb-account-payments__btn--delete,
a.tpb-account-payments__btn--delete {
	background: #fff !important;
	color: #b45309 !important;
	border: 1px solid #fdba74 !important;
}

.tpb-account-payments__btn:hover,
.tpb-account-payments__actions .button:hover {
	filter: brightness(1.05);
}

.tpb-account-payments__empty {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.tpb-account-payments__add {
	width: 100%;
	display: flex;
	justify-content: flex-start;
}

.tpb-account-payments__add .tpb-btn,
.tpb-account-payments__add .button,
.woocommerce-MyAccount-content > .button[href*="add-payment-method"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.25rem !important;
	border-radius: 0.75rem !important;
	background: var(--tpb-olive-dark, #4a4729) !important;
	color: #fff !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
}

/* Hide default WC payment-methods table if a plugin re-injects it */
.woocommerce-MyAccount-content > .woocommerce-PaymentMethods,
.woocommerce-MyAccount-content > table.woocommerce-MyAccount-paymentMethods,
.woocommerce-MyAccount-content > .account-payment-methods-table {
	display: none !important;
}

.tpb-account-payments .woocommerce-PaymentMethods,
.tpb-account-payments table {
	display: block !important;
}

.woocommerce-form-login,
.woocommerce-form-register {
	max-width: 420px;
	margin: 0 auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
}

/* —— Page login / signup (Elementor) —— */
.tpb-account-auth {
	max-width: 440px;
	margin: 0 auto;
}

.tpb-account-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem;
	margin: 0 0 1.15rem;
	padding: 0.3rem;
	background: #eef2f7;
	border-radius: 12px;
}

.tpb-account-auth__tab {
	border: 0;
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	background: transparent;
	color: #64748b;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.tpb-account-auth__tab.is-active {
	background: #fff;
	color: var(--tpb-ink, #2d312a);
	box-shadow: 0 1px 3px rgba(45, 49, 42, 0.08);
}

.tpb-account-auth .tpb-auth-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 1.45rem 1.4rem 1.35rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tpb-auth-modal .tpb-auth-card[hidden],
.tpb-account-auth .tpb-auth-card[hidden],
.tpb-account-auth__panel[hidden] {
	display: none !important;
}

/* Orders list + view-order details (woocommerce-general is dequeued). */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .shop_table,
.woocommerce-MyAccount-content .woocommerce-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	border: 0;
	margin: 0 0 1.25rem;
	table-layout: auto;
}

.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-MyAccount-content .shop_table th,
.woocommerce-MyAccount-content .shop_table td,
.woocommerce-MyAccount-content .woocommerce-table th,
.woocommerce-MyAccount-content .woocommerce-table td {
	padding: 0.75rem 0.55rem;
	border: 0;
	border-bottom: 1px solid #eef1f4;
	background: transparent;
	text-align: left;
	vertical-align: top;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #334155;
	overflow-wrap: anywhere;
}

.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .shop_table thead th,
.woocommerce-MyAccount-content .woocommerce-table thead th {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 600;
	padding-bottom: 0.65rem;
}

.woocommerce-MyAccount-content .shop_table tfoot th,
.woocommerce-MyAccount-content .woocommerce-table tfoot th {
	font-weight: 600;
	color: #2d2b1a;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9rem;
}

.woocommerce-MyAccount-content .shop_table tfoot td,
.woocommerce-MyAccount-content .woocommerce-table tfoot td,
.woocommerce-MyAccount-content .product-total {
	text-align: right;
	font-weight: 600;
	color: #2d2b1a;
	white-space: nowrap;
}

.woocommerce-MyAccount-content .shop_table tfoot tr:last-child th,
.woocommerce-MyAccount-content .shop_table tfoot tr:last-child td {
	border-bottom: 0;
	padding-top: 0.9rem;
	font-size: 0.98rem;
}

.woocommerce-MyAccount-content .woocommerce-orders-table a,
.woocommerce-MyAccount-content .shop_table a {
	color: var(--tpb-olive-dark, #4a4729);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .woocommerce-orders-table .button,
.woocommerce-MyAccount-content .shop_table .button,
.woocommerce-MyAccount-content a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	padding: 0.45rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: var(--tpb-olive-dark, #4a4729);
	color: #fff !important;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content a.button:hover {
	background: #3d3b24;
	color: #fff !important;
}

.tpb-account-order__intro {
	margin: 0 0 1.25rem;
	padding: 0.95rem 1.1rem;
	border-radius: 12px;
	background: var(--tpb-bg-soft, #f5f4ee);
	border: 1px solid #e8e6dc;
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.55;
}

.tpb-account-order__intro mark,
.woocommerce-MyAccount-content mark {
	background: transparent;
	color: #2d2b1a;
	font-weight: 700;
	padding: 0;
}

.tpb-account-order__intro mark.order-status {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	background: #ecfdf3;
	color: #15803d;
	font-size: 0.8rem;
	font-weight: 700;
}

.woocommerce-MyAccount-content .woocommerce-order-details,
.woocommerce-MyAccount-content .woocommerce-customer-details,
.tpb-account-order__notes {
	margin: 0 0 1.35rem;
}

.woocommerce-MyAccount-content .woocommerce-order-details__title,
.woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce-MyAccount-content .woocommerce-order-downloads__title,
.tpb-account-order__notes h2 {
	margin: 0 0 0.85rem;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2d2b1a;
	line-height: 1.3;
}

.woocommerce-MyAccount-content .woocommerce-columns--addresses,
.woocommerce-MyAccount-content .col2-set.addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
	float: none !important;
}

.woocommerce-MyAccount-content .woocommerce-columns--addresses .woocommerce-column,
.woocommerce-MyAccount-content .col2-set.addresses .col-1,
.woocommerce-MyAccount-content .col2-set.addresses .col-2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	padding: 1rem 1.1rem;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f8fafc;
}

.woocommerce-MyAccount-content .woocommerce-customer-details address {
	margin: 0;
	font-style: normal;
	font-size: 0.92rem;
	line-height: 1.65;
	color: #475569;
}

.woocommerce-MyAccount-content .woocommerce-OrderUpdates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.woocommerce-MyAccount-content .woocommerce-OrderUpdate-text {
	padding: 0.85rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
}

.woocommerce-MyAccount-content .woocommerce-OrderUpdate-meta {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	color: #94a3b8;
}

.woocommerce-MyAccount-content .woocommerce-OrderUpdate-description p {
	margin: 0;
	font-size: 0.9rem;
	color: #334155;
}

.woocommerce-MyAccount-content .tpb-ach--thankyou,
.woocommerce-MyAccount-content .tpb-venmo--thankyou,
.woocommerce-MyAccount-content .tpb-cashapp--thankyou,
.woocommerce-MyAccount-content .tpb-zelle {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid #e8e6dc;
	border-radius: 14px;
	background: #f5f4ee;
}

.woocommerce-MyAccount-content .order-actions--heading + td .button {
	margin-top: 0;
}

@media (max-width: 900px) {
	.woocommerce-account.logged-in .woocommerce,
	.tpb-account-page.logged-in .tpb-main > .woocommerce,
	.tpb-account-page.logged-in .tpb-page__content > .woocommerce,
	.elementor-widget-tpb_my_account .woocommerce,
	.tpb-page--commerce .elementor-widget-tpb_my_account .woocommerce,
	.woocommerce-account .u-columns,
	.woocommerce-account .col2-set,
	.tpb-account-grid-2 {
		grid-template-columns: 1fr !important;
	}

	.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
	.tpb-account-page.logged-in .woocommerce-MyAccount-navigation {
		position: static;
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.35rem;
	}

	.woocommerce-MyAccount-navigation a {
		padding: 0.65rem 0.85rem;
		font-size: 0.875rem;
	}

	.woocommerce-MyAccount-content,
	.woocommerce-MyAccount-navigation {
		width: 100%;
		max-width: 100%;
	}

	.tpb-account-card {
		flex-wrap: wrap;
	}

	.tpb-account-card .tpb-account-btn {
		width: 100%;
	}

	.tpb-account-orders {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tpb-account-orders th,
	.tpb-account-orders td {
		white-space: nowrap;
	}

	.woocommerce-MyAccount-content .woocommerce-columns--addresses,
	.woocommerce-MyAccount-content .col2-set.addresses {
		grid-template-columns: 1fr !important;
	}

	.woocommerce-MyAccount-content .woocommerce-orders-table,
	.woocommerce-MyAccount-content .shop_table.my_account_orders {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-MyAccount-content .woocommerce-orders-table th,
	.woocommerce-MyAccount-content .woocommerce-orders-table td {
		white-space: nowrap;
	}

	.woocommerce-account .elementor > .e-con.e-parent:not([data-settings*="background_background"]) {
		width: min(100% - 2rem, var(--tpb-container, 80rem));
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
