body.woocommerce-account,
body.woocommerce-account .site,
body.woocommerce-account .site-content,
body.woocommerce-account #primary,
body.woocommerce-account .content-area,
body.woocommerce-account .site-main,
body.woocommerce-account .entry-content {
	background: #fff !important;
}

/* Área principal da página — sem afetar header/footer Elementor */
body.woocommerce-account #primary,
body.woocommerce-account .content-area,
body.woocommerce-account .site-main,
body.woocommerce-account article.page {
	width: 100% !important;
	max-width: 100% !important;
}

/* Elementor — apenas dentro da área Minha conta (não header) */
body.woocommerce-account .frb-my-account .elementor-section,
body.woocommerce-account .frb-my-account .elementor-container,
body.woocommerce-account .frb-my-account .elementor-column,
body.woocommerce-account .frb-my-account .elementor-widget-wrap,
body.woocommerce-account .frb-my-account .elementor-widget-container,
body.woocommerce-account .frb-my-account .elementor-widget-shortcode,
body.woocommerce-account .frb-my-account .elementor-widget-woocommerce-my-account,
body.woocommerce-account .frb-my-account .e-con,
body.woocommerce-account .frb-my-account .e-con-inner,
body.woocommerce-account .frb-my-account .elementor-element,
body.frb-minha-conta .frb-my-account .elementor-section,
body.frb-minha-conta .frb-my-account .elementor-container,
body.frb-minha-conta .frb-my-account .elementor-column,
body.frb-minha-conta .frb-my-account .elementor-widget-wrap,
body.frb-minha-conta .frb-my-account .elementor-widget-container,
body.frb-minha-conta .frb-my-account .e-con,
body.frb-minha-conta .frb-my-account .e-con-inner,
body.frb-minha-conta .frb-my-account .elementor-element {
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-account .frb-my-account .e-con.e-flex,
body.frb-minha-conta .frb-my-account .e-con.e-flex {
	align-items: stretch !important;
}

body.woocommerce-account .frb-my-account.woocommerce {
	width: 100% !important;
	max-width: 100% !important;
}

/* Reset floats/widths WooCommerce default (75% / 22%) */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.frb-minha-conta .woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content,
body.frb-minha-conta .woocommerce-MyAccount-content,
.frb-my-account__content,
.frb-myaccount-main {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

.frb-my-account,
.frb-myaccount-page {
	--frb-text-primary: #181512;
	--frb-text-secondary: #756b61;
	--frb-text-muted: #9a9086;
	--frb-gold: #d69a27;
	--frb-gold-dark: #b98218;
	--frb-border: #eadcc5;
	--frb-active-bg: #fffaf0;
	--frb-row-border: #eee3d4;
	--frb-panel-bg: #fff;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px 48px;
	font-family: "Work Sans", sans-serif;
	color: var(--frb-text-primary);
}

.frb-my-account *,
.frb-myaccount-page *,
.frb-my-account *::before,
.frb-myaccount-page *::before,
.frb-my-account *::after,
.frb-myaccount-page *::after {
	box-shadow: none !important;
}

/* Grid dashboard: sidebar + conteúdo largo */
.frb-my-account,
.frb-my-account__layout,
.frb-myaccount-layout {
	width: 100% !important;
	max-width: 100% !important;
}

.frb-my-account__layout,
.frb-myaccount-layout {
	display: grid !important;
	grid-template-columns: 260px minmax(0, 1fr) !important;
	gap: 48px !important;
	align-items: start;
}

/* wpautop fallback — só dentro da área Minha conta */
.frb-my-account__layout > p:empty,
.frb-my-account__content > p:empty,
.frb-my-account br {
	display: none !important;
}

.frb-my-account__layout > p {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.frb-my-account__sidebar,
.frb-myaccount-sidebar {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	max-width: 260px;
}

.frb-my-account__content,
.frb-myaccount-main,
.frb-my-account__layout > main {
	grid-column: 2;
	grid-row: 1;
}

.frb-my-account__content,
.frb-myaccount-main {
	display: block;
	flex: 1 1 auto;
}

/* Sidebar */
.frb-myaccount-sidebar {
	position: sticky;
	top: 24px;
}

.frb-myaccount-sidebar-inner {
	background: var(--frb-panel-bg);
	border: 1px solid var(--frb-border);
	border-radius: 12px;
	padding: 16px 10px;
}

.frb-myaccount-brand {
	padding: 4px 10px 14px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--frb-row-border);
}

.frb-myaccount-logo-link {
	display: block;
	line-height: 0;
}

.frb-myaccount-logo {
	max-height: 32px;
	width: auto;
	height: auto;
}

.frb-myaccount-logo-text {
	font-family: "Cormorant Garamond", serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--frb-text-primary);
	text-decoration: none;
}

.frb-myaccount-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.frb-myaccount-nav-list li {
	margin: 0;
	padding: 0;
}

.frb-myaccount-nav-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--frb-text-primary);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.frb-nav-icon {
	display: inline-flex;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--frb-text-muted);
}

.frb-nav-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.frb-myaccount-nav-list a:hover {
	background: #faf8f5;
	color: var(--frb-gold-dark);
}

.frb-myaccount-nav-list a:hover .frb-nav-icon {
	color: var(--frb-gold-dark);
}

.frb-myaccount-nav-list li.is-active a,
.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link.is-active a {
	background: var(--frb-active-bg);
	color: var(--frb-gold-dark);
	box-shadow: inset 3px 0 0 var(--frb-gold);
}

.frb-myaccount-nav-list li.is-active .frb-nav-icon,
.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link.is-active .frb-nav-icon {
	color: var(--frb-gold);
}

.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--frb-row-border);
}

.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #8a1f1f;
}

.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout .frb-nav-icon {
	color: #c76a6a;
}

.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fff5f5;
}

/* Main — full width, no outer mini-card */
.frb-myaccount-main {
	background: transparent;
	border: 0;
	padding: 0;
}

/* Dashboard full width */
.frb-my-account-dashboard,
.frb-dashboard,
.frb-account-stats,
.frb-dashboard-stats,
.frb-account-orders,
.frb-dashboard-orders {
	width: 100% !important;
	max-width: none !important;
}

.frb-account-stats,
.frb-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: none;
	margin-bottom: 24px;
}

.frb-account-stats > p,
.frb-dashboard-stats > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}

.frb-account-card,
.frb-stat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
}

.frb-myaccount-main h2,
.frb-myaccount-main h3,
.frb-dashboard-title,
.frb-panel-title {
	font-family: "Cormorant Garamond", serif;
	font-weight: 500;
	color: var(--frb-text-primary);
}

/* Dashboard */
.frb-dashboard-header {
	margin-bottom: 28px;
}

.frb-dashboard-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--frb-text-muted);
}

.frb-dashboard-title {
	margin: 0;
	font-size: clamp(34px, 3.5vw, 44px);
	line-height: 1.1;
}

.frb-dashboard-wave {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
	font-size: 0.92em;
}

.frb-dashboard-subtitle {
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--frb-text-secondary);
	max-width: 52ch;
}

.frb-account-card.frb-stat-card,
.frb-stat-card {
	padding: 24px;
	background: var(--frb-panel-bg);
	border: 1px solid var(--frb-border);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.frb-dashboard-orders.frb-panel,
.frb-panel {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.frb-stat-card:hover {
	border-color: #dcc9a8;
	background: #fffdf8;
}

.frb-stat-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--frb-text-muted);
}

.frb-stat-value {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--frb-text-primary);
}

.frb-stat-value--text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.frb-stat-meta {
	margin-top: auto;
	font-size: 13px;
	color: var(--frb-gold-dark);
}

/* Panels (dashboard table + subpages) */
.frb-panel,
.frb-myaccount-main > .woocommerce-Addresses,
.frb-myaccount-main form.woocommerce-EditAccountForm,
.frb-myaccount-main .woocommerce-address-fields,
.frb-myaccount-main .woocommerce-payment-methods {
	background: var(--frb-panel-bg);
	border: 1px solid var(--frb-border);
	border-radius: 12px;
	padding: 24px 28px;
}

.frb-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.frb-panel-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
}

.frb-panel-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--frb-gold-dark);
	text-decoration: none;
}

.frb-panel-link:hover {
	color: var(--frb-gold);
	text-decoration: underline;
}

/* Orders table — full width da coluna */
.frb-orders-table-wrap {
	display: block;
	width: 100%;
	max-width: none;
	overflow-x: auto;
}

.frb-orders-table,
.frb-myaccount-main table.shop_table {
	width: 100% !important;
	max-width: none !important;
	table-layout: auto;
	border: 0 !important;
	border-collapse: collapse;
	margin: 0;
}

body.woocommerce-account .frb-my-account table {
	width: 100% !important;
	max-width: none !important;
}

.frb-orders-table thead th,
.frb-myaccount-main table.shop_table thead th {
	border: 0 !important;
	border-bottom: 1px solid var(--frb-row-border) !important;
	padding: 10px 12px;
	background: #faf7ef !important;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--frb-text-muted);
	text-align: left;
}

.frb-orders-table tbody td,
.frb-myaccount-main table.shop_table tbody td,
.frb-myaccount-main table.shop_table tbody th {
	border: 0 !important;
	border-bottom: 1px solid var(--frb-row-border) !important;
	padding: 14px 12px;
	background: transparent !important;
	font-size: 14px;
	vertical-align: middle;
}

.frb-orders-table tbody tr:last-child td,
.frb-myaccount-main table.shop_table tbody tr:last-child td {
	border-bottom: 0 !important;
}

.frb-order-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f5f3ef;
	color: var(--frb-text-secondary);
}

.frb-order-status--processing,
.frb-order-status--completed {
	background: #f1fbf3;
	color: #276738;
}

.frb-order-status--on-hold,
.frb-order-status--pending {
	background: var(--frb-active-bg);
	color: var(--frb-gold-dark);
}

.frb-order-status--failed,
.frb-order-status--cancelled {
	background: #fff5f5;
	color: #8a1f1f;
}

.frb-orders-table .woocommerce-Price-amount,
.frb-myaccount-main .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
	color: var(--frb-gold);
	font-weight: 600;
}

.frb-dashboard-empty {
	margin: 0;
	font-size: 14px;
	color: var(--frb-text-secondary);
}

.frb-dashboard-empty a {
	color: var(--frb-gold-dark);
	font-weight: 600;
}

/* Buttons — outline first, less solid gold */
.frb-btn,
.frb-myaccount-main .button,
.frb-myaccount-main .woocommerce-button,
.frb-myaccount-main button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px !important;
	border-radius: 8px !important;
	font-family: "Work Sans", sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.frb-btn-outline,
.frb-myaccount-main .button,
.frb-myaccount-main .woocommerce-button:not(.button-primary) {
	background: #fff !important;
	border: 1px solid var(--frb-border) !important;
	color: var(--frb-text-primary) !important;
}

.frb-btn-outline:hover,
.frb-myaccount-main .button:hover,
.frb-myaccount-main .woocommerce-button:not(.button-primary):hover {
	background: var(--frb-active-bg) !important;
	border-color: #dcc9a8 !important;
	color: var(--frb-gold-dark) !important;
}

.frb-myaccount-main button[type="submit"],
.frb-myaccount-main .woocommerce-button.button-primary,
.frb-myaccount-main .button.alt {
	background: var(--frb-gold) !important;
	border: 1px solid var(--frb-gold-dark) !important;
	color: #fff !important;
}

.frb-myaccount-main button[type="submit"]:hover,
.frb-myaccount-main .woocommerce-button.button-primary:hover {
	background: var(--frb-gold-dark) !important;
}

/* Subpages without panel wrapper */
.frb-myaccount-main > p:first-of-type {
	margin-top: 0;
}

.frb-myaccount-main > h2,
.frb-myaccount-main .woocommerce-orders-table__title {
	margin: 0 0 20px;
	font-size: 32px;
	line-height: 1.15;
}

.frb-myaccount-main > .woocommerce-notices-wrapper + h2,
.frb-myaccount-main > .woocommerce-message + h2 {
	margin-top: 0;
}

/* Wrap orders list page table */
.frb-myaccount-main .woocommerce-orders-table__wrapper,
.frb-myaccount-main .woocommerce-table--order-downloads {
	background: var(--frb-panel-bg);
	border: 1px solid var(--frb-border);
	border-radius: 12px;
	padding: 8px 12px 12px;
	overflow-x: auto;
}

/* Forms */
.frb-myaccount-main label {
	font-size: 13px;
	font-weight: 600;
	color: var(--frb-text-secondary);
}

.frb-myaccount-main .form-row {
	margin-bottom: 14px;
}

.frb-myaccount-main input.input-text,
.frb-myaccount-main textarea,
.frb-myaccount-main select,
.frb-myaccount-main .select2-container .select2-selection--single {
	background: #fff !important;
	border: 1px solid var(--frb-border) !important;
	border-radius: 6px !important;
	min-height: 40px;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--frb-text-primary) !important;
}

.frb-myaccount-main input.input-text:focus,
.frb-myaccount-main textarea:focus,
.frb-myaccount-main select:focus {
	border-color: var(--frb-gold) !important;
	outline: none;
}

/* Addresses */
.frb-myaccount-main .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	border: 0;
	background: transparent;
}

.frb-myaccount-main .woocommerce-Address {
	background: var(--frb-panel-bg);
	border: 1px solid var(--frb-border);
	border-radius: 12px;
	padding: 24px;
}

.frb-myaccount-main .woocommerce-Address-title h2,
.frb-myaccount-main .woocommerce-Address-title h3 {
	margin: 0 0 12px;
	font-size: 24px;
}

.frb-myaccount-main .woocommerce-Address address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.55;
}

.frb-myaccount-main a:not(.button):not(.woocommerce-button):not(.frb-stat-card):not(.frb-account-card):not(.frb-panel-link) {
	color: var(--frb-gold-dark);
	text-decoration: none;
}

.frb-myaccount-main a:not(.button):not(.woocommerce-button):not(.frb-stat-card):not(.frb-account-card):not(.frb-panel-link):hover {
	text-decoration: underline;
}

/* Notices */
.frb-myaccount-main .woocommerce-message,
.frb-myaccount-main .woocommerce-info,
.frb-myaccount-main .woocommerce-error {
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 16px;
	font-size: 14px;
	list-style: none;
}

.frb-myaccount-main .woocommerce-message {
	background: #f1fbf3;
	border: 1px solid #7bc490;
	color: #276738;
}

.frb-myaccount-main .woocommerce-info {
	background: #f7f9fc;
	border: 1px solid #9eb4d0;
	color: #2f4f6f;
}

.frb-myaccount-main .woocommerce-error {
	background: #fff5f5;
	border: 1px solid #d94f4f;
	color: #8a1f1f;
}

@media (max-width: 1024px) {
	.frb-myaccount-main .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.frb-my-account__layout,
	.frb-myaccount-layout {
		grid-template-columns: 1fr !important;
		gap: 20px;
	}

	.frb-my-account__sidebar,
	.frb-myaccount-sidebar {
		max-width: none;
	}

	.frb-myaccount-sidebar {
		position: static;
	}

	.frb-account-stats,
	.frb-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.frb-myaccount-sidebar-inner {
		padding: 12px 10px;
		border-radius: 10px;
	}

	.frb-myaccount-brand {
		display: none;
	}

	.frb-myaccount-navigation {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.frb-myaccount-nav-list {
		display: flex;
		flex-wrap: nowrap;
		gap: 6px;
	}

	.frb-myaccount-nav-list li {
		flex: 0 0 auto;
	}

	.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.frb-myaccount-nav-list a {
		white-space: nowrap;
		padding: 8px 12px;
		box-shadow: none !important;
	}

	.frb-myaccount-nav-list li.is-active a,
	.frb-myaccount-nav-list li.woocommerce-MyAccount-navigation-link.is-active a {
		box-shadow: inset 0 -3px 0 var(--frb-gold) !important;
	}

}

@media (max-width: 640px) {
	.frb-my-account,
	.frb-myaccount-page {
		padding: 16px 12px 32px;
	}

	.frb-panel,
	.frb-stat-card {
		padding: 18px 16px;
	}

	.frb-orders-table thead {
		display: none;
	}

	.frb-orders-table tbody tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--frb-row-border);
	}

	.frb-orders-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 6px 0;
		border: 0 !important;
	}

	.frb-orders-table tbody td::before {
		content: attr(data-title);
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
		color: var(--frb-text-muted);
	}
}
