/* Editorial and support pages */
body.nsd-redesign {
	--nsd-reading: 50rem;
	--nsd-editorial: 73rem;
	--nsd-page-gutter: clamp(1.15rem, 4.2vw, 3rem);
}

body.nsd-redesign :is(.nsd-page-intro, .nsd-editorial-intro) {
	padding-block: clamp(2.75rem, 8vw, 6.5rem);
	color: var(--nsd-white);
	background-color: var(--nsd-action);
}

body.nsd-redesign :is(.nsd-page-intro, .nsd-editorial-intro) h1 {
	max-width: 17ch;
	margin: 0;
	color: inherit;
	font-family: var(--nsd-display);
	font-size: clamp(2.3rem, 6vw, 4.7rem);
	line-height: 1;
	letter-spacing: -.055em;
	text-wrap: balance;
}

body.nsd-redesign :is(.nsd-page-intro, .nsd-editorial-intro) p {
	max-width: 57ch;
	margin-block: 1rem 0;
	color: inherit;
	line-height: 1.65;
}

body.nsd-redesign :is(.nsd-page-intro, .nsd-editorial-intro) :is(.nsd-kicker, .nsd-eyebrow) {
	margin-block: 0 1rem;
	color: var(--nsd-accent);
}

/* Go layouts remain the fallback for standard content and archives. */
body.nsd-redesign:is(.nsd-info-page, .nsd-slug-sale-page, .nsd-slug-sale, .blog, .search, .error404, .category, .tag, .date, .author)
	#site-content .page-header.entry-header,
body.nsd-redesign.single-post #site-content .type-post > .entry-header {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0 auto clamp(1.75rem, 4.5vw, 3.75rem);
	padding: clamp(2.5rem, 7vw, 5.25rem) max(var(--nsd-page-gutter), calc((100% - var(--nsd-editorial)) / 2));
	color: var(--nsd-white);
	background: var(--nsd-action);
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-sale-page, .nsd-slug-sale, .blog, .search, .error404, .category, .tag, .date, .author)
	#site-content .page-header.entry-header h1,
body.nsd-redesign.single-post #site-content .type-post > .entry-header h1 {
	max-width: 25ch;
	margin: 0;
	color: inherit;
	font-family: var(--nsd-display);
	font-size: clamp(2.2rem, 5.3vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.052em;
	text-align: start;
	text-wrap: balance;
}

body.nsd-redesign.single-post #site-content .type-post > .entry-header :is(a, .post-meta, .post__meta) {
	color: var(--nsd-white);
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > :where(p, ul, ol, h2, h3, h4, h5, h6, dl, blockquote, pre, .wp-block-table, .wp-block-details, .wp-block-quote, .wp-block-image, .wp-block-buttons):not(.alignwide, .alignfull),
body.nsd-redesign .nsd-prose {
	box-sizing: border-box;
	width: calc(100% - var(--nsd-page-gutter) * 2);
	max-width: var(--nsd-reading);
	margin-inline: auto;
}

.nsd-empty-checkout {
	margin-block: clamp(1.25rem, 4vw, 3rem);
	padding: clamp(1rem, 4vw, 2rem);
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

.nsd-empty-checkout h2 { margin-block: 0 .6rem; }
.nsd-empty-checkout p { margin-block: 0 1rem; }

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content,
body.nsd-redesign .nsd-prose {
	color: var(--nsd-ink);
	font-size: clamp(.94rem, 1.05vw, 1rem);
	line-height: 1.75;
	overflow-wrap: break-word;
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > :is(h2, h3, h4),
body.nsd-redesign .nsd-prose :is(h2, h3, h4) {
	margin-block: 1.65em .55em;
	color: var(--nsd-action);
	font-family: var(--nsd-display);
	line-height: 1.12;
	letter-spacing: -.028em;
	text-wrap: balance;
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > h2,
body.nsd-redesign .nsd-prose h2 {
	font-size: clamp(1.5rem, 2.65vw, 2.05rem);
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > h3,
body.nsd-redesign .nsd-prose h3 {
	font-size: clamp(1.3rem, 2.3vw, 1.7rem);
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > .wp-block-table,
body.nsd-redesign .nsd-prose .wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .entry-content > .wp-block-table th,
body.nsd-redesign .nsd-prose .wp-block-table th {
	background: var(--nsd-action);
	color: var(--nsd-white);
}

body.nsd-redesign .nsd-prose :is(ul, ol) {
	padding-inline-start: 1.5em;
}

body.nsd-redesign :is(.nsd-prose, .nsd-article-card, .nsd-page-intro) :where(a):focus-visible,
body.nsd-redesign:where(.nsd-slug-about-us, .nsd-slug-faq, .nsd-slug-contact-us, .nsd-slug-cookie-policy) [data-elementor-type="wp-page"]
	:is(summary, [role="tab"], .elementor-field, .elementor-button):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

body.nsd-redesign:is(.nsd-info-page, .nsd-slug-refund_returns, .nsd-slug-shipping-information, .nsd-slug-communication-preferences, .single-post)
	#site-content .content-area__wrapper {
	padding-block-end: clamp(2.5rem, 7vw, 5.5rem);
}

body.nsd-redesign.nsd-info-page #site-content .entry-content > p:empty {
	display: none;
}

body.nsd-redesign:is(.nsd-slug-sale-page, .nsd-slug-sale) #site-content .entry-content > .woocommerce,
body.nsd-redesign.nsd-slug-communication-preferences #site-content .entry-content .aw-communication-page {
	box-sizing: border-box;
	width: calc(100% - var(--nsd-page-gutter) * 2);
	max-width: var(--nsd-editorial);
	margin: 0 auto clamp(2.5rem, 7vw, 5.5rem);
}

body.nsd-redesign:is(.nsd-slug-sale-page, .nsd-slug-sale) #site-content .entry-content > .woocommerce > p:only-child,
body.nsd-redesign.nsd-slug-communication-preferences #site-content .entry-content .aw-communication-page {
	max-width: var(--nsd-reading);
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

body.nsd-redesign:is(.nsd-slug-sale-page, .nsd-slug-sale) #site-content .entry-content > .woocommerce > p:only-child {
	margin: 0 auto;
}

body.nsd-redesign.nsd-slug-communication-preferences #site-content .entry-content .aw-communication-page {
	max-width: 42rem;
}

/* Presentation for the retained Elementor pages. */
body.nsd-redesign:is(.nsd-slug-about-us, .nsd-slug-faq, .nsd-slug-contact-us, .nsd-slug-cookie-policy, .single-post)
	:is([data-elementor-type="wp-page"], .elementor-location-single) {
	--e-global-color-primary: var(--nsd-action);
	--e-global-color-secondary: var(--nsd-ink);
	--e-global-color-text: var(--nsd-muted);
	--e-global-color-accent: var(--nsd-accent);
}

body.nsd-redesign :is(
	[data-elementor-type="wp-page"]:where(.nsd-slug-faq *, .nsd-slug-contact-us *, .nsd-slug-nicotine_pouches *) > .e-con.e-parent:where(:nth-child(1 of .e-parent)),
	[data-elementor-type="archive"]:where(.blog *) > .e-con.e-parent:where(:nth-child(1 of .e-parent))
) {
	--padding-block-start: clamp(2.5rem, 7vw, 5.25rem);
	--padding-block-end: clamp(2.5rem, 7vw, 5.25rem);
	--padding-inline-start: var(--nsd-page-gutter);
	--padding-inline-end: var(--nsd-page-gutter);
	background: var(--nsd-dark);
}

body.nsd-redesign :is(
	[data-elementor-type="wp-page"]:where(.nsd-slug-faq *, .nsd-slug-contact-us *, .nsd-slug-nicotine_pouches *) > .e-con.e-parent:where(:nth-child(1 of .e-parent)),
	[data-elementor-type="archive"]:where(.blog *) > .e-con.e-parent:where(:nth-child(1 of .e-parent))
)::before {
	opacity: 0;
}

body.nsd-redesign :is(
	[data-elementor-type="wp-page"]:where(.nsd-slug-faq *, .nsd-slug-contact-us *, .nsd-slug-nicotine_pouches *) > .e-parent:where(:nth-child(1 of .e-parent)),
	[data-elementor-type="archive"]:where(.blog *) > .e-parent:where(:nth-child(1 of .e-parent))
) > .e-con-inner {
	max-width: var(--nsd-editorial);
}

body.nsd-redesign:is(.nsd-slug-about-us, .nsd-slug-faq, .nsd-slug-contact-us, .nsd-slug-cookie-policy)
	[data-elementor-type="wp-page"]
	:is(.elementor-widget-heading h1.elementor-heading-title, .elementor-widget-theme-post-title h1.elementor-heading-title),
body.nsd-redesign:where(.nsd-slug-about-us) [data-elementor-type="wp-page"] .elementor-widget-html:where(:has(h1)) h1 {
	color: var(--nsd-action);
	font-family: var(--nsd-display);
	font-size: clamp(2.15rem, 5.25vw, 4.15rem);
	line-height: 1.03;
	letter-spacing: -.052em;
	text-wrap: balance;
}

body.nsd-redesign :is(
	[data-elementor-type="wp-page"]:where(.nsd-slug-faq *, .nsd-slug-contact-us *, .nsd-slug-nicotine_pouches *) > .e-parent:where(:nth-child(1 of .e-parent)),
	[data-elementor-type="archive"]:where(.blog *) > .e-parent:where(:nth-child(1 of .e-parent))
) :is(.elementor-widget-heading h1.elementor-heading-title) {
	margin-block: 0;
	color: var(--nsd-white);
	font-family: var(--nsd-display);
	font-size: clamp(2.15rem, 5.25vw, 4.15rem);
	line-height: 1.03;
	letter-spacing: -.052em;
	text-align: start;
	text-transform: none;
	text-wrap: balance;
}

body.nsd-redesign:where(.nsd-slug-about-us) [data-elementor-type="wp-page"] .elementor-widget-html:where(:has(h1)) {
	width: 100%;
	max-width: var(--nsd-reading);
	margin: 0 auto;
	padding-block: clamp(2rem, 6vw, 5.5rem);
	color: var(--nsd-ink);
	font-size: clamp(.94rem, 1.05vw, 1rem);
	line-height: 1.75;
}

body.nsd-redesign:where(.nsd-slug-about-us) [data-elementor-type="wp-page"] .elementor-widget-html:where(:has(h1)) h1 {
	max-width: 14ch;
	margin-block: 0 .6em;
}

body.nsd-redesign:where(.nsd-slug-about-us) [data-elementor-type="wp-page"] .elementor-widget-html:where(:has(h1)) h2 {
	margin-block: 1.55em .55em;
	color: var(--nsd-action);
	font-family: var(--nsd-display);
	font-size: clamp(1.6rem, 3.5vw, 2.35rem);
	line-height: 1.1;
	letter-spacing: -.035em;
}

body.nsd-redesign.nsd-slug-cookie-policy [data-elementor-type="wp-page"] .elementor-widget-text-editor {
	width: 100%;
	max-width: var(--nsd-reading);
	margin: 0 auto;
	padding-block: clamp(2rem, 6vw, 5.5rem);
}

body.nsd-redesign:is(.nsd-slug-about-us, .nsd-slug-faq, .nsd-slug-contact-us, .nsd-slug-cookie-policy)
	[data-elementor-type="wp-page"] .elementor-widget-text-editor {
	color: var(--nsd-ink);
	line-height: 1.75;
}

body.nsd-redesign:is(.nsd-slug-about-us, .nsd-slug-faq, .nsd-slug-contact-us, .nsd-slug-cookie-policy)
	[data-elementor-type="wp-page"] .elementor-widget-image img {
	border-radius: var(--nsd-radius);
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] :is(.elementor-accordion-item, .elementor-toggle-item, .e-n-accordion-item) {
	margin-block: .75rem;
	overflow: hidden;
	border: 1px solid var(--nsd-line);
	border-radius: min(var(--nsd-radius), 12px);
	background: var(--nsd-white);
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] :is(.elementor-tab-title, .e-n-accordion-item-title) {
	min-height: 3.25rem;
	padding: .85rem clamp(.9rem, 2.5vw, 1.35rem);
	color: var(--nsd-action);
	background: var(--nsd-white);
	line-height: 1.4;
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] :is(.elementor-tab-title.elementor-active, .e-n-accordion-item[open] > .e-n-accordion-item-title) {
	background: var(--nsd-paper);
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] :is(.elementor-tab-title, .e-n-accordion-item-title):focus-visible {
	outline-offset: -4px;
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] .elementor-tab-content {
	padding: .95rem clamp(.9rem, 2.5vw, 1.35rem);
	border-color: var(--nsd-line);
	color: var(--nsd-ink);
	line-height: 1.65;
}

body.nsd-redesign.nsd-slug-faq [data-elementor-type="wp-page"] .e-n-accordion-item-title .e-n-accordion-item-title-text {
	color: inherit;
	font-weight: 650;
}

body.nsd-redesign:where(.nsd-slug-faq, .nsd-slug-contact-us) [data-elementor-type="wp-page"] :is(.faq_page_cont, .contact_page_form) {
	--padding-block-start: clamp(2rem, 5vw, 4.5rem);
	--padding-block-end: clamp(2rem, 5vw, 4.5rem);
	--padding-inline-start: var(--nsd-page-gutter);
	--padding-inline-end: var(--nsd-page-gutter);
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-widget-form {
	padding: clamp(1rem, 3vw, 2.25rem);
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-form .elementor-field-label {
	margin-block-end: .35rem;
	color: var(--nsd-ink);
	font-weight: 600;
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-form :is(input:not([type]), input:is([type="text"], [type="email"], [type="url"], [type="tel"], [type="number"]), textarea, select).elementor-field {
	min-height: 2.9rem;
	padding: .7rem .85rem;
	border: 1px solid var(--nsd-line);
	border-radius: .55rem;
	color: var(--nsd-ink);
	background: var(--nsd-paper);
	font: inherit;
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-form textarea.elementor-field {
	min-height: 8.5rem;
	resize: vertical;
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-form .elementor-button[type="submit"] {
	min-height: 2.85rem;
	padding: .75rem 1.3rem;
	border: 1px solid transparent;
	border-radius: .55rem;
	color: var(--nsd-white);
	background: var(--nsd-action);
	font-weight: 650;
	text-transform: none;
}

body.nsd-redesign.nsd-slug-contact-us [data-elementor-type="wp-page"] .contact_page_form .elementor-form .elementor-button[type="submit"]:hover {
	filter: brightness(1.15);
}

body.nsd-redesign [data-elementor-type="section"] .newsletter_sec .e-form__buttons .elementor-button[type="submit"] {
	color: var(--nsd-white);
	background: var(--nsd-action);
	text-transform: none;
}

body.nsd-redesign [data-elementor-type="section"] .newsletter_sec .elementor-field:focus-visible {
	outline: 2px solid var(--nsd-action) !important;
	outline-offset: -2px;
}

/* Article lists, results, and their WordPress fallback templates. */
body.nsd-redesign .nsd-article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1rem, 3vw, 1.6rem);
	margin-block: clamp(1.75rem, 5vw, 3.75rem);
}

body.nsd-redesign .nsd-article-card,
body.nsd-redesign:is(.blog, .search, .category, .tag, .date, .author) #site-content > article:is(.type-post, .type-page),
body.nsd-redesign.blog .elementor-location-archive .elementor-post {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

body.nsd-redesign .nsd-article-card {
	display: flex;
	flex-direction: column;
}

body.nsd-redesign .nsd-article-card :is(.nsd-article-image, .nsd-article-media, img) {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

body.nsd-redesign .nsd-article-card :is(.nsd-article-content, .nsd-article-card-body),
body.nsd-redesign.blog [data-elementor-type="archive"] .elementor-post .elementor-post__text {
	display: grid;
	align-content: start;
	flex: 1;
	gap: .7rem;
	padding: clamp(1.1rem, 3vw, 1.5rem);
}

body.nsd-redesign .nsd-article-card :is(h2, h3),
body.nsd-redesign.blog .elementor-location-archive .elementor-post__title {
	margin-block: 0;
	color: var(--nsd-action);
	font-family: var(--nsd-display);
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.18;
	letter-spacing: -.023em;
	text-wrap: balance;
}

body.nsd-redesign .nsd-article-card :is(h2, h3) a,
body.nsd-redesign.blog .elementor-location-archive .elementor-post__title a {
	color: inherit;
	text-decoration: none;
}

body.nsd-redesign .nsd-article-card :is(h2, h3) a:hover,
body.nsd-redesign.blog .elementor-location-archive .elementor-post__title a:hover {
	text-decoration: underline;
	text-underline-offset: .15em;
}

body.nsd-redesign .nsd-article-card :is(time, p) {
	margin-block: 0;
	color: var(--nsd-muted);
}

body.nsd-redesign .nsd-article-card time {
	font-size: .85rem;
}

body.nsd-redesign:is(.blog, .search, .category, .tag, .date, .author) #site-content > article:is(.type-post, .type-page) {
	box-sizing: border-box;
	width: calc(100% - var(--nsd-page-gutter) * 2);
	max-width: var(--nsd-reading);
	margin: 0 auto 1rem;
	padding: clamp(1rem, 3vw, 1.6rem);
}

body.nsd-redesign:is(.blog, .search, .category, .tag, .date, .author) #site-content > article:is(.type-post, .type-page) :is(.entry-header, .entry-content > *) {
	width: auto;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

body.nsd-redesign:is(.blog, .search, .category, .tag, .date, .author) #site-content > article:is(.type-post, .type-page) h2 {
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.2;
}

body.nsd-redesign :is(.nsd-pagination, .nsd-editorial-results .pagination, #site-content .pagination-wrapper) {
	margin-block: 1.75rem 3rem;
}

body.nsd-redesign :is(.nsd-pagination, .nsd-editorial-results .pagination, #site-content .pagination-wrapper) .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35rem;
}

body.nsd-redesign :is(.nsd-pagination, .nsd-editorial-results .pagination, #site-content .pagination-wrapper) .page-numbers {
	padding: .45rem .8rem;
	border: 1px solid transparent;
	border-radius: .45rem;
	color: var(--nsd-action);
}

body.nsd-redesign :is(.nsd-pagination, .nsd-editorial-results .pagination, #site-content .pagination-wrapper) .page-numbers.current {
	border-color: var(--nsd-line);
	background: var(--nsd-white);
}

body.nsd-redesign:is(.error404, .search-no-results) #site-content .not-found {
	box-sizing: border-box;
	width: calc(100% - var(--nsd-page-gutter) * 2);
	max-width: var(--nsd-reading);
	margin: 0 auto clamp(2.75rem, 7vw, 5rem);
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--nsd-line);
	border-radius: var(--nsd-radius);
	background: var(--nsd-white);
}

body.nsd-redesign:is(.error404, .search-no-results) #site-content .not-found .search-form {
	display: flex;
	align-items: center;
	gap: .6rem;
}

body.nsd-redesign:is(.error404, .search-no-results) #site-content .not-found .search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 2.9rem;
	padding: .7rem .85rem;
	border: 1px solid var(--nsd-line);
	border-radius: .55rem;
	color: var(--nsd-ink);
	background: var(--nsd-paper);
	font: inherit;
}

body.nsd-redesign:is(.error404, .search-no-results) #site-content .not-found .search-input__button {
	position: static;
	flex: none;
	min-height: 2.9rem;
	padding: .7rem .95rem;
	transform: none;
	border-radius: .55rem;
	color: var(--nsd-white);
	background: var(--nsd-action);
	fill: currentColor;
}

body.nsd-redesign:is(.error404, .search-no-results) #site-content .not-found .search-input__arrow-icon {
	width: 1rem;
	height: 1rem;
}
