/* ==========================================================================
   RMC — CONTENT PAGES, ACCOUNT & COA LIBRARY v3
   ========================================================================== */

/* ---------- Reading measure ---------- */

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor,
body.single-post .entry-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3 {
	max-width: 700px;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor p,
body.single-post .entry-content p {
	margin: 0 0 1.3em !important;
	font-size: 17px !important;
	line-height: 1.8 !important;
	color: var(--rmc-body) !important;
}

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor ul,
body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol { margin: 0 0 1.3em !important; padding-left: 1.2em !important; }

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor li,
body.single-post .entry-content li {
	font-size: 17px !important;
	line-height: 1.8 !important;
	color: var(--rmc-body) !important;
	margin-bottom: .5em !important;
}

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor ul li::marker { color: var(--rmc-accent); }

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor a,
body.single-post .entry-content a {
	color: var(--rmc-navy) !important;
	text-decoration: underline;
	text-decoration-color: var(--rmc-line-strong);
	text-underline-offset: 3px;
}

body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor a:hover { text-decoration-color: var(--rmc-accent); }
body.page:not(.home):not(.woocommerce-page) .elementor-widget-text-editor strong { color: var(--rmc-navy) !important; font-weight: 500 !important; }

body.page:not(.home) form input[type="file"] {
	border: 1px dashed var(--rmc-line) !important;
	border-radius: var(--rmc-radius) !important;
	padding: 16px !important;
	background: var(--rmc-surface) !important;
	font-size: 14px !important;
	color: var(--rmc-muted) !important;
	min-height: auto !important;
}

/* ==========================================================================
   MY ACCOUNT
   ========================================================================== */

body.woocommerce-account .woocommerce {
	display: grid !important;
	grid-template-columns: 240px minmax(0, 1fr) !important;
	gap: 56px !important;
	align-items: start;
	max-width: 1080px;
	margin: 0 auto !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1 !important; grid-row: 1 !important; }
body.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2 !important; grid-row: 1 !important; }

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--rmc-line) !important;
	border-radius: var(--rmc-radius-card) !important;
	overflow: hidden;
	background: var(--rmc-white) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0 !important; border-bottom: 1px solid var(--rmc-line); }
body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block !important;
	padding: 14px 18px !important;
	background: transparent !important;
	font-family: var(--rmc-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--rmc-body) !important;
	text-decoration: none !important;
	position: relative;
	border: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--rmc-surface) !important; color: var(--rmc-navy) !important; }

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--rmc-surface) !important;
	color: var(--rmc-navy) !important;
	font-weight: 500 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 2px;
	background: var(--rmc-accent);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 24px !important; margin: 0 0 20px !important; }

body.woocommerce-account .woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 20px !important;
	align-items: stretch !important;
	margin: 0 !important;
}

body.woocommerce-account .woocommerce-Address {
	float: none !important;
	width: auto !important;
	height: 100% !important;
	border: 1px solid var(--rmc-line) !important;
	border-radius: var(--rmc-radius-card) !important;
	background: var(--rmc-white) !important;
	padding: 24px !important;
	display: flex;
	flex-direction: column;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--rmc-line);
	padding-bottom: 12px;
	margin-bottom: 14px;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	font-size: 10px !important;
	font-weight: 500 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	color: var(--rmc-muted) !important;
	margin: 0 !important;
}

html body.woocommerce-account .woocommerce-Address-title a {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: var(--rmc-navy) !important;
	background: none !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: underline;
	text-decoration-color: var(--rmc-line-strong);
	text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce-Address address {
	font-style: normal !important;
	font-size: 15px !important;
	line-height: 1.8 !important;
	color: var(--rmc-body) !important;
	margin: 0 !important;
}

body.woocommerce-account table.woocommerce-orders-table,
body.woocommerce-account table.shop_table {
	border: 1px solid var(--rmc-line) !important;
	border-radius: var(--rmc-radius-card) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden;
	width: 100%;
}

body.woocommerce-account table th {
	background: var(--rmc-surface) !important;
	font-family: var(--rmc-font) !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	color: var(--rmc-muted) !important;
	padding: 14px 16px !important;
	border: 0 !important;
	text-align: left !important;
}

body.woocommerce-account table td {
	padding: 16px !important;
	border: 0 !important;
	border-top: 1px solid var(--rmc-line) !important;
	font-size: 15px !important;
	color: var(--rmc-body) !important;
}

@media (max-width: 880px) {
	body.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
	body.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1 !important; grid-row: 1 !important; }
	body.woocommerce-account .woocommerce-MyAccount-content { grid-column: 1 !important; grid-row: 2 !important; }
	body.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex !important; overflow-x: auto; scrollbar-width: none; }
	body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 0 !important; border-right: 1px solid var(--rmc-line); flex: 0 0 auto; }
	body.woocommerce-account .woocommerce-MyAccount-navigation a { white-space: nowrap; }
	body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
	body.woocommerce-account table.shop_table thead { display: none !important; }
	body.woocommerce-account table.shop_table tr { display: block !important; border: 1px solid var(--rmc-line); border-radius: var(--rmc-radius-card); margin-bottom: 14px; padding: 8px 0; }
	body.woocommerce-account table.shop_table td { display: flex !important; justify-content: space-between; gap: 14px; border-top: 0 !important; padding: 9px 16px !important; text-align: right; }
	body.woocommerce-account table.shop_table td::before { content: attr(data-title); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--rmc-muted); text-align: left; white-space: nowrap; }
	body.woocommerce-account .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ==========================================================================
   COA LIBRARY
   ========================================================================== */

html body .rm-coa-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

html body .rm-coa-tabs .rm-tab {
	border-radius: var(--rmc-radius) !important;
	background: var(--rmc-white) !important;
	color: var(--rmc-body) !important;
	border: 1px solid var(--rmc-line) !important;
	box-shadow: none !important;
	font-family: var(--rmc-font) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 12px 22px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	animation: none !important;
}

html body .rm-coa-tabs .rm-tab:hover { border-color: var(--rmc-line-strong) !important; color: var(--rmc-navy) !important; }

html body .rm-coa-tabs .rm-tab.rm-tab-active {
	background: var(--rmc-navy) !important;
	color: var(--rmc-white) !important;
	border-color: var(--rmc-navy) !important;
}

html body .rm-coa-tabs .rm-tab.rm-tab-glow:not(.rm-tab-active) { border-color: var(--rmc-accent) !important; color: var(--rmc-accent-text) !important; }

html body .rm-coa-table th {
	background: var(--rmc-surface) !important;
	color: var(--rmc-muted) !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	padding: 14px 16px !important;
	border: 0 !important;
}

html body .rm-coa-table td {
	border-top: 1px solid var(--rmc-line) !important;
	font-size: 15px !important;
	color: var(--rmc-body) !important;
	padding: 15px 16px !important;
}
