/* Approved title bands and native page typography from 2ad00bbd.
 * Policy wording, forms, content and native page configuration are retained. */
:root {
	--emuwing-page-heading-font: var(--wd-text-font, "Cabin", Arial, Helvetica, sans-serif);
	--emuwing-page-heading-size: 30px;
	--emuwing-page-heading-line: 40px;
	--emuwing-page-heading-weight: 600;
	--emuwing-page-title-padding: 60px;
	--emuwing-page-content-start-gap: 60px;
	--emuwing-page-section-gap: 40px;
	--emuwing-page-section-inner-gap: 16px;
	--emuwing-page-list-gap: 10px;
	--emuwing-page-zone-gap: 24px;
	--emuwing-page-zone-heading-size: 20px;
	--emuwing-page-zone-label-gap: 8px;
	--emuwing-page-heading-color: #242424;
	--emuwing-page-band-color: #111;
	--emuwing-page-band-background:
		radial-gradient(55% 120% at 52% 135%, rgba(245, 147, 33, 0.2) 0%, rgba(245, 147, 33, 0) 70%),
		radial-gradient(40% 90% at 38% -10%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
		radial-gradient(70% 160% at 100% 100%, rgba(245, 147, 33, 0.34) 0%, rgba(245, 147, 33, 0) 60%),
		linear-gradient(105deg, #111 0%, #1b1b1b 30%, #241f1a 60%, #2e2116 100%) var(--emuwing-page-band-color);
	--emuwing-page-band-heading-color: #fff;
	--emuwing-page-band-text-color: #f3f3f3;
	--emuwing-page-divider-color: #e5e5e5;
	--emuwing-page-accent-color: #f59321;
}

/* Shared brand title family for legal pages and the two added native shells.
 * Account endpoints retain their existing content, forms and navigation.
 */
body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) .wd-page-title {
	--wd-align: start;
	background: var(--emuwing-page-band-background) !important;
	padding: var(--emuwing-page-title-padding) 0;
	margin-bottom: 0;
	text-align: left;
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) .wd-page-title .container {
	align-items: flex-start;
	text-align: left;
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) .wd-page-title :is(.wd-page-title-bg, .wd-breadcrumbs) {
	display: none;
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) .wd-page-title .entry-title {
	font-family: var(--emuwing-page-heading-font);
	font-size: var(--emuwing-page-heading-size);
	font-weight: var(--emuwing-page-heading-weight);
	line-height: var(--emuwing-page-heading-line);
	color: var(--emuwing-page-band-heading-color) !important;
	text-align: left;
	margin: 0;
	overflow-wrap: anywhere;
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) .wd-page-title .entry-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin-top: 8px;
	background: var(--emuwing-page-accent-color);
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-9, .page-id-60) #main-content {
	padding-top: var(--emuwing-page-content-start-gap);
	padding-bottom: var(--emuwing-page-title-padding);
}

/* Extend the shared heading scale only to the verified native empty/guest
 * surfaces. Logged-in endpoints, other account headings and forms stay native.
 */
body.page-id-60 #main-content .wd-empty-wishlist .wd-empty-block-title,
body.page-id-9:not(.logged-in) #main-content .wd-registration-page .wd-login-title {
	font-family: var(--emuwing-page-heading-font);
	font-size: var(--emuwing-page-heading-size);
	font-weight: var(--emuwing-page-heading-weight);
	line-height: var(--emuwing-page-heading-line);
}

/* The full-screen search prompt is an input, not a page heading. Reuse the
 * shared display scale without changing form height, results or mobile menus.
 */
body.wp-child-theme-woodmart-child .wd-search-full-screen .searchform input[type="text"] {
	font-family: var(--emuwing-page-heading-font);
	font-size: var(--emuwing-page-heading-size);
	font-weight: var(--emuwing-page-heading-weight);
	line-height: var(--emuwing-page-heading-line);
}

body.wp-child-theme-woodmart-child .wd-search-full-screen .wd-search-info-text {
	font-family: var(--emuwing-page-heading-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

/* Elementor title shells share the tokens without overriding body widgets. */
body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content {
	padding-top: 0;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content {
	display: block;
	padding-bottom: var(--emuwing-page-title-padding);
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907) #main-content {
	display: block;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child {
	background: var(--emuwing-page-band-background) !important;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0 15px;
	text-align: left;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child > .e-con-inner {
	padding-block: var(--emuwing-page-title-padding);
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child .title-wrapper {
	text-align: left !important;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child .title-wrapper::after {
	content: none;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child .liner-continer {
	position: relative;
	padding-bottom: 10px;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child .liner-continer::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--emuwing-page-accent-color);
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349, .page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child .woodmart-title-container {
	font-family: var(--emuwing-page-heading-font);
	font-size: var(--emuwing-page-heading-size) !important;
	font-weight: var(--emuwing-page-heading-weight) !important;
	line-height: var(--emuwing-page-heading-line) !important;
	color: var(--emuwing-page-band-heading-color) !important;
	text-align: left;
	margin: 0;
	overflow-wrap: anywhere;
}

body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content > .elementor > .e-con + .e-con,
body:is(.page-id-29240, .page-id-4400, .page-id-6994, .page-id-29379, .page-id-29198) #main-content > .elementor > .e-con:first-child + .e-con {
	margin-top: var(--emuwing-page-content-start-gap);
}

/* First visible content follows Website Terms' approved start gap. These
 * widget identities were verified on DEV; later section spacing is retained.
 */
body.page-id-29488 #main-content .elementor-element-58c9d37 .liner-continer:has(> .woodmart-title-container:empty) {
	display: none;
}

body.page-id-29496 #main-content > .elementor > .e-con:not(:first-child) .elementor-element-1e59ff9 .woodmart-title-container,
body.page-id-29349 #main-content > .elementor > .e-con:not(:first-child) .elementor-element-0867909 .woodmart-title-container {
	margin-top: 0;
}

/* B2B's first title band also contains instructions. Preserve their content
 * and typography while maintaining contrast on the shared dark surface.
 */
body.page-id-29198 #main-content > .elementor > .e-con:first-child .title-after_title {
	color: var(--emuwing-page-band-text-color);
}

/* Body headings are scoped separately so a document heading cannot restyle
 * a page title, account form, footer or an unrelated storefront widget.
 */
body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907) #main-content :is(h2, h3, h4),
body:is(.page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content > .elementor > .e-con:not(:first-child) :is(h2, h3, h4) {
	font-family: var(--emuwing-page-heading-font);
	font-size: var(--emuwing-page-heading-size) !important;
	font-weight: var(--emuwing-page-heading-weight) !important;
	line-height: var(--emuwing-page-heading-line) !important;
	color: var(--emuwing-page-heading-color);
	margin-top: var(--emuwing-page-section-gap);
	margin-bottom: var(--emuwing-page-section-inner-gap);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--emuwing-page-divider-color);
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content :is(ul, ol) {
	margin-bottom: var(--emuwing-page-zone-gap);
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content li {
	margin-bottom: var(--emuwing-page-list-gap);
}

/* Refund and Returns and Security open with the company name and address.
 * Each page keeps that paragraph first; bold it as the document's sender line.
 * Security renders its blocks directly in #main-content, without .entry-content.
 */
body.page-id-1884 #main-content .entry-content > p:first-of-type,
body.page-id-1907 #main-content > p:first-of-type {
	font-weight: 600;
}

/* The verified international-shipping widget contains label/country pairs,
 * plus Payments and Customs labels. This groups them without rewriting the
 * source, country order, emphasis or footnotes, including split Zone 10.
 */
body.page-id-29496 #main-content .elementor-element-3d0087f .title-after_title > p:has(> strong) {
	font-size: var(--emuwing-page-zone-heading-size);
	font-weight: var(--emuwing-page-heading-weight);
	margin-top: var(--emuwing-page-zone-gap);
	margin-bottom: var(--emuwing-page-zone-label-gap);
	padding-top: 20px;
	border-top: 1px solid var(--emuwing-page-divider-color);
}

@media (max-width: 767px) {
	:root {
		--emuwing-page-heading-size: 26px;
		--emuwing-page-heading-line: 34px;
		--emuwing-page-title-padding: 36px;
		--emuwing-page-content-start-gap: 36px;
		--emuwing-page-section-gap: 32px;
	}
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content :is(p, li, .wd-text-block, .emuwing-policy-document) {
	font-size: 16px;
	line-height: 1.6 !important;
}

body:is(.page-id-3, .page-id-1898, .page-id-1884, .page-id-1907, .page-id-29475, .page-id-29488, .page-id-29496, .page-id-29349) #main-content p {
	margin-bottom: 20px;
}

body:is(.page-id-3, .page-id-1898) #main-content .emuwing-policy-document {
	max-width: none !important;
}

/* Suppress only the two known duplicate titles, not section headings. */
body.page-id-1884 #post-1884 > h1.wp-block-heading:first-child,
body.page-id-1907 #main-content > h1.wp-block-heading:first-of-type {
	display: none;
}
