/* TradeKompass UI refresh — intentionally scoped to WooCommerce/report areas. */

:root {
	--tk-primary: #22968d;
	--tk-accent: #79c084;
	--tk-ink: #233142;
	--tk-muted: #68727d;
	--tk-border: #dfe5e8;
	--tk-surface: #f7f9fa;
	--tk-white: #fff;
}

/* Keep the large discovery hero on Home; make internal pages faster to scan. */
body:not(.home) .header-search {
	padding: 34px 20px;
	margin-bottom: 24px;
}
body:not(.home) .header-search h2 {
	font-size: 38px;
}
body:not(.home) .header-search .list-type {
	display: none;
}
body:not(.home) .header-search .woocommerce-product-search {
	max-width: 540px;
	margin-top: 14px;
}

/* Home preview: short, readable and visibly separate from the filter. */
.home .home-pro {
	padding: 20px;
	border: 1px solid var(--tk-border);
	background: var(--tk-white);
}
.home .home-pro ul.products .tk-report-card:nth-child(n+9) {
	display: none !important; /* visual fallback if a shortcode/plugin ignores the query limit */
}
.tk-home-reports-footer {
	padding-top: 20px;
	text-align: center;
}
.tk-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--tk-primary);
	color: var(--tk-primary) !important;
	background: var(--tk-white);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}
.tk-secondary-button:hover,
.tk-secondary-button:focus {
	background: var(--tk-primary);
	color: var(--tk-white) !important;
}

/* Report lists: one compact information card per row, no cart action. */
.home-pro ul.products,
.archive.woocommerce ul.products,
.search.woocommerce ul.products,
.related.products ul.products {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.woocommerce ul.products li.product.tk-report-card,
.woocommerce-page ul.products li.product.tk-report-card,
.home-pro ul.products li.tk-report-card {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--tk-border) !important;
	background: var(--tk-white) !important;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.woocommerce ul.products li.product.tk-report-card:hover,
.woocommerce ul.products li.product.tk-report-card:focus-within {
	border-color: #a9c9c5 !important;
	box-shadow: 0 8px 22px rgba(35, 49, 66, .08);
	transform: translateY(-1px);
}
.tk-report-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	min-height: 104px;
	padding: 18px 20px;
	color: var(--tk-ink) !important;
	text-decoration: none !important;
}
.tk-report-card__body,
.tk-report-card__aside {
	display: flex;
	flex-direction: column;
}
.tk-report-card__eyebrow {
	margin-bottom: 5px;
	color: var(--tk-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tk-report-card__title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--tk-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.42;
	text-align: left !important;
}
.tk-report-card__availability {
	margin-top: 7px;
	color: var(--tk-muted);
	font-size: 12px;
}
.tk-report-card__aside {
	min-width: 126px;
	align-items: flex-end;
	text-align: right;
}
.tk-report-card__price,
.tk-report-card__price .price,
.tk-report-card__price .woocommerce-Price-amount {
	color: var(--tk-primary) !important;
	font-size: 16px !important;
	font-weight: 700;
}
.tk-report-card__cta {
	margin-top: 9px;
	color: var(--tk-ink);
	font-size: 13px;
	font-weight: 600;
}

/* Full catalogue: retain familiar sidebar, but give results more room and rhythm. */
.archive.woocommerce .more_size,
.search.woocommerce .more_size {
	max-width: 1180px;
}
.archive.woocommerce aside#secondary,
.search.woocommerce aside#secondary {
	width: 25%;
	margin-right: 30px;
}
.archive.woocommerce #container,
.search.woocommerce #container {
	width: calc(75% - 30px);
}
.archive.woocommerce header.woocommerce-products-header,
.search.woocommerce header.woocommerce-products-header {
	margin-bottom: 22px;
}
.archive.woocommerce .woocommerce-result-count,
.archive.woocommerce .woocommerce-ordering,
.search.woocommerce .woocommerce-result-count,
.search.woocommerce .woocommerce-ordering {
	margin-bottom: 18px;
}
.woocommerce nav.woocommerce-pagination {
	margin-top: 26px;
}

/* Single report: one readable column; description comes before purchase. */
.single-product .tk-single-report-shell {
	max-width: 1040px;
}
.single-product #secondary {
	display: none !important;
}
.single-product #container {
	float: none !important;
	width: 100% !important;
	max-width: 900px;
	margin: 0 auto 48px;
}
.single-product #content {
	width: 100%;
}
.tk-back-to-reports {
	margin: 14px 0 18px;
}
.tk-back-to-reports a {
	color: var(--tk-primary);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.single-product div.product {
	margin: 0;
}
.single-product div.product .summary.entry-summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 30px !important;
	border: 1px solid var(--tk-border);
	background: var(--tk-white);
}
.single-product h1.product_title.entry-title {
	margin: 0 0 10px !important;
	color: var(--tk-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.28;
	text-transform: none;
}
.tk-report-intro {
	margin-bottom: 26px;
	color: var(--tk-muted);
	font-size: 13px;
}
.tk-report-intro a {
	color: var(--tk-primary);
}
.tk-report-description {
	padding-top: 26px;
	border-top: 1px solid var(--tk-border);
}
.tk-report-description h2,
.tk-purchase-panel h2,
.related.products > h2 {
	margin: 0 0 16px;
	color: var(--tk-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.tk-report-lead {
	margin-bottom: 18px;
	color: var(--tk-ink);
	font-size: 17px;
	line-height: 1.6;
}
.tk-report-description__content,
.tk-report-description__content p,
.tk-report-description__content li {
	color: #394553;
	font-size: 15px;
	line-height: 1.7;
}
.tk-report-description__content ul,
.tk-report-description__content ol {
	margin: 0 0 20px 22px;
}
.tk-purchase-panel {
	margin-top: 30px;
	padding: 24px;
	border: 1px solid #cfe2df;
	background: #f3f9f8;
}
.tk-purchase-panel__copy p {
	margin: -8px 0 18px;
	color: var(--tk-muted);
	font-size: 14px;
}
.tk-purchase-panel__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.tk-purchase-panel__action .price {
	margin: 0 !important;
	color: var(--tk-primary) !important;
	font-size: 25px !important;
	font-weight: 700;
}
.tk-purchase-panel__action .price .woocommerce-Price-amount {
	font-size: inherit !important;
}
.single-product .tk-purchase-panel form.cart {
	display: flex;
	align-items: center;
	width: auto;
	margin: 0 !important;
}
.single-product .tk-purchase-panel .single_add_to_cart_button {
	min-height: 46px;
	padding: 12px 22px !important;
	border-radius: 2px;
	background: var(--tk-accent) !important;
	color: var(--tk-white) !important;
	font-size: 15px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	text-transform: none;
}
.single-product .tk-purchase-panel .single_add_to_cart_button:hover,
.single-product .tk-purchase-panel .single_add_to_cart_button:focus {
	background: var(--tk-primary) !important;
}
.single-product .wc_quick_buy_button {
	display: none !important;
}
.tk-purchase-help {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #d9e8e6;
}
.tk-purchase-help a {
	color: var(--tk-primary);
	font-size: 14px;
	font-weight: 500;
}
.single-product .related.products {
	max-width: 900px;
	margin: 42px auto 0;
	padding-top: 0;
}
.single-product .related.products ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.single-product .related.products .tk-report-card__link {
	min-height: 126px;
}

@media (max-width: 900px) {
	.archive.woocommerce aside#secondary,
	.search.woocommerce aside#secondary,
	.archive.woocommerce #container,
	.search.woocommerce #container {
		float: none !important;
		width: 100% !important;
		margin-right: 0;
	}
	.archive.woocommerce aside#secondary,
	.search.woocommerce aside#secondary {
		margin-bottom: 24px;
	}
}

@media (max-width: 700px) {
	body:not(.home) .header-search {
		padding: 26px 16px;
	}
	body:not(.home) .header-search h2 {
		font-size: 30px;
	}
	.tk-report-card__link {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding: 16px;
	}
	.tk-report-card__aside {
		min-width: 0;
		align-items: flex-start;
		text-align: left;
	}
	.tk-report-card__cta {
		margin-top: 5px;
	}
	.single-product div.product .summary.entry-summary {
		padding: 22px !important;
	}
	.single-product h1.product_title.entry-title {
		font-size: 24px;
	}
	.tk-purchase-panel__action {
		align-items: flex-start;
		flex-direction: column;
	}
	.single-product .tk-purchase-panel form.cart,
	.single-product .tk-purchase-panel .single_add_to_cart_button {
		width: 100%;
	}
	.single-product .related.products ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================
   Step 2 — report catalogue, metadata and filter usability
   ========================================================== */

.tk-catalog-shell {
	max-width: 1180px;
}

.tk-catalog-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
	gap: 34px;
	align-items: end;
	margin: 18px 0 28px !important;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--tk-border);
}
.tk-catalog-header h1.page-title {
	margin: 0 0 7px !important;
	color: var(--tk-ink);
	font-size: 34px;
	line-height: 1.15;
}
.tk-catalog-header__intro {
	margin: 0;
	color: var(--tk-muted);
	font-size: 15px;
	line-height: 1.5;
}
.tk-catalog-header .term-description,
.tk-catalog-header .page-description {
	margin-top: 10px;
}
.tk-catalog-search {
	display: flex;
	width: 100%;
	min-height: 46px;
}
.tk-catalog-search input[type="search"] {
	min-width: 0;
	flex: 1;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--tk-border);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background: var(--tk-white);
	color: var(--tk-ink);
	font-size: 14px;
}
.tk-catalog-search input[type="search"]:focus {
	border-color: var(--tk-primary);
	outline: 2px solid rgba(34, 150, 141, .12);
	outline-offset: 0;
}
.tk-catalog-search button {
	min-width: 96px;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid var(--tk-primary);
	border-radius: 0 3px 3px 0;
	background: var(--tk-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: none;
}
.tk-catalog-search button:hover,
.tk-catalog-search button:focus {
	background: #197d76;
}

/* Retain the existing widget/filter engine, but make it easier to scan. */
.archive.woocommerce aside#secondary,
.search.woocommerce aside#secondary {
	position: sticky;
	top: 24px;
	align-self: flex-start;
	padding: 0 0 18px;
	background: var(--tk-white);
}
.archive.woocommerce aside#secondary > .widget,
.search.woocommerce aside#secondary > .widget {
	margin: 0 0 18px;
	padding: 18px;
	border: 1px solid var(--tk-border);
	background: var(--tk-white);
}
.archive.woocommerce aside#secondary .widget-title,
.search.woocommerce aside#secondary .widget-title,
.archive.woocommerce aside#secondary h2,
.search.woocommerce aside#secondary h2,
.archive.woocommerce aside#secondary h3,
.search.woocommerce aside#secondary h3 {
	margin: 0 0 13px !important;
	color: var(--tk-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.35;
	text-transform: uppercase;
}
.archive.woocommerce aside#secondary label,
.search.woocommerce aside#secondary label,
.archive.woocommerce aside#secondary li,
.search.woocommerce aside#secondary li {
	color: #3d4854;
	font-size: 13px;
	line-height: 1.45;
}
.archive.woocommerce aside#secondary input[type="checkbox"],
.search.woocommerce aside#secondary input[type="checkbox"],
.archive.woocommerce aside#secondary input[type="radio"],
.search.woocommerce aside#secondary input[type="radio"] {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -3px;
}
.archive.woocommerce aside#secondary .prdctfltr_filter label,
.search.woocommerce aside#secondary .prdctfltr_filter label {
	display: block;
	margin: 0;
	padding: 7px 2px;
	font-size: 13px;
	font-weight: 400;
}

.tk-catalog-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 48px;
	margin: 0 0 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tk-border);
}
.tk-catalog-toolbar__native {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	flex: 1;
}
.tk-catalog-toolbar .woocommerce-result-count,
.tk-catalog-toolbar .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}
.tk-catalog-toolbar .woocommerce-result-count {
	color: var(--tk-muted);
	font-size: 13px;
}
.tk-catalog-toolbar .woocommerce-ordering select {
	min-height: 38px;
	padding: 7px 34px 7px 11px;
	border: 1px solid var(--tk-border);
	border-radius: 3px;
	background-color: var(--tk-white);
	color: var(--tk-ink);
	font-size: 13px;
}
.tk-clear-filters {
	white-space: nowrap;
	color: var(--tk-primary) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.tk-mobile-filter-button {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 13px;
	border: 1px solid var(--tk-primary);
	border-radius: 3px;
	background: var(--tk-white);
	color: var(--tk-primary);
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
}
.tk-mobile-filter-button__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tk-primary);
	color: #fff;
	font-size: 11px;
}

/* Structured report cards. */
.tk-report-card--v2 .tk-report-card__link {
	min-height: 132px;
	padding: 20px 22px;
}
.tk-report-card__subtitle {
	display: block;
	max-width: 720px;
	margin-top: 5px;
	color: var(--tk-muted);
	font-size: 13px;
	line-height: 1.45;
}
.tk-report-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}
.tk-report-card__meta-item {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 4px 9px;
	border: 1px solid #d8e5e3;
	border-radius: 999px;
	background: #f6faf9;
	color: #50605f;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}

.tk-custom-report-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 24px 0 6px;
	padding: 22px 24px;
	border: 1px solid #cfe2df;
	background: #f3f9f8;
}
.tk-custom-report-callout strong,
.tk-custom-report-callout span {
	display: block;
}
.tk-custom-report-callout strong {
	margin-bottom: 5px;
	color: var(--tk-ink);
	font-size: 16px;
}
.tk-custom-report-callout span {
	color: var(--tk-muted);
	font-size: 13px;
	line-height: 1.5;
}

.tk-filter-drawer__header,
.tk-filter-overlay {
	display: none;
}

@media (max-width: 900px) {
	.tk-catalog-header {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.tk-mobile-filter-button {
		display: inline-flex;
	}
	.tk-catalog-toolbar {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.tk-catalog-toolbar__native {
		flex: 1 1 330px;
	}

	.archive.woocommerce aside#secondary,
	.search.woocommerce aside#secondary {
		position: fixed !important;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100002;
		display: block !important;
		width: min(88vw, 380px) !important;
		margin: 0 !important;
		padding: 0 18px 30px !important;
		overflow-y: auto;
		background: #fff;
		box-shadow: 16px 0 40px rgba(21, 36, 48, .2);
		transform: translateX(-110%);
		transition: transform .22s ease;
	}
	.tk-filter-open.archive.woocommerce aside#secondary,
	.tk-filter-open.search.woocommerce aside#secondary {
		transform: translateX(0);
	}
	.tk-filter-drawer__header {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 64px;
		margin: 0 -18px 18px;
		padding: 0 18px;
		border-bottom: 1px solid var(--tk-border);
		background: #fff;
		color: var(--tk-ink);
		font-size: 17px;
	}
	.tk-filter-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--tk-ink);
		font-size: 30px;
		font-weight: 400;
		line-height: 1;
	}
	.tk-filter-overlay {
		position: fixed;
		inset: 0;
		z-index: 100001;
		display: block;
		background: rgba(16, 28, 38, .48);
	}
	.tk-filter-overlay[hidden] {
		display: none;
	}
	body.tk-filter-open {
		overflow: hidden;
	}
}

@media (max-width: 700px) {
	.tk-catalog-header h1.page-title {
		font-size: 29px;
	}
	.tk-catalog-search {
		min-height: 44px;
	}
	.tk-catalog-search button {
		min-width: 82px;
		padding-inline: 13px;
	}
	.tk-catalog-toolbar__native {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.tk-report-card--v2 .tk-report-card__link {
		min-height: 0;
		padding: 18px;
	}
	.tk-report-card__meta {
		margin-top: 10px;
	}
	.tk-custom-report-callout {
		align-items: stretch;
		flex-direction: column;
	}
	.tk-custom-report-callout .tk-secondary-button {
		width: 100%;
	}
}

/* Step 3 — a compact, integrated end-of-list action area on Home. */
.home .home-pro {
	padding: 0;
	border: 0;
	background: transparent;
}
.home .home-pro > p {
	display: none;
}
.tk-home-reports-actions {
	margin-top: 24px;
}
.tk-home-reports-footer {
	display: flex;
	justify-content: center;
	padding: 0;
}
.tk-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 24px;
	border: 1px solid var(--tk-primary);
	border-radius: 4px;
	background: var(--tk-primary);
	color: #fff !important;
	font-family: 'Roboto', sans-serif;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.tk-primary-button:hover,
.tk-primary-button:focus {
	border-color: #187e77;
	background: #187e77;
	color: #fff !important;
	transform: translateY(-1px);
}
.tk-view-all-reports {
	min-width: 190px;
}
.tk-home-custom-report {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-top: 30px;
	padding: 26px 28px;
	border: 1px solid #d6e7e4;
	border-left: 4px solid var(--tk-primary);
	border-radius: 5px;
	background: #f4f9f8;
}
.tk-home-custom-report__copy {
	min-width: 0;
}
.tk-home-custom-report__eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--tk-primary);
	font-family: 'Roboto', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.2;
	text-transform: uppercase;
}
.tk-home-custom-report h3 {
	margin: 0 0 7px !important;
	padding: 0 !important;
	color: var(--tk-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 21px !important;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}
.tk-home-custom-report p {
	max-width: 650px;
	margin: 0 !important;
	color: var(--tk-muted);
	font-family: 'Roboto', sans-serif;
	font-size: 14px !important;
	line-height: 1.55;
}
.tk-custom-report-button {
	flex: 0 0 auto;
	min-width: 190px;
	border-radius: 4px;
	background: #fff;
	font-size: 14px !important;
	text-transform: none;
}

@media (max-width: 700px) {
	.tk-home-reports-actions {
		margin-top: 20px;
	}
	.tk-view-all-reports {
		width: 100%;
		min-width: 0;
	}
	.tk-home-custom-report {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
		margin-top: 22px;
		padding: 22px 20px;
	}
	.tk-home-custom-report h3 {
		font-size: 19px !important;
	}
	.tk-custom-report-button {
		width: 100%;
		min-width: 0;
	}
}

/* Hide the Smart WooCommerce Search empty-state illustration until a query exists. */
.smart-search-results.tk-smart-search-empty-hidden {
	display: none !important;
}

/* Defensive cleanup for empty archive/search illustrations from older plugins. */
.woocommerce .no-mtch .product-category img,
.woocommerce .no-mtch .woocommerce-loop-category__title,
.woocommerce .no-mtch ul.products {
	display: none !important;
}

.tk-no-reports {
	margin: 8px 0 32px;
	padding: 32px;
	border: 1px solid #d7e3e2;
	background: #f7faf9;
	text-align: center;
}
.tk-no-reports h2 {
	margin: 0 0 8px;
	color: #1c2d3f;
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
	font-weight: 700;
}
.tk-no-reports p {
	margin: 0 auto 20px;
	color: #65727e;
	font-size: 15px;
}
.tk-no-reports__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
@media (max-width: 600px) {
	.tk-no-reports {
		padding: 24px 18px;
	}
	.tk-no-reports__actions a {
		width: 100%;
	}
}

/* Old duplicated Home prompt: final visual fallback. */
.home .smart-inform-personal-report {
	display: none !important;
}

/* Step 7 — remove the obsolete WOOF auto-hide search icon above the catalogue.
 * The site already has a permanent desktop sidebar and its own mobile filter drawer.
 */
body.woocommerce a.woof_show_auto_form.woof_btn_default,
body.woocommerce a.woof_hide_auto_form.woof_btn_default,
body.woocommerce main a.woof_show_auto_form,
body.woocommerce main a.woof_hide_auto_form,
body.woocommerce #primary a.woof_show_auto_form,
body.woocommerce #primary a.woof_hide_auto_form {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}


/* ==========================================================
   Step 8 — modern purchase button on single report pages
   ========================================================== */

.single-product .tk-purchase-panel {
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(35, 49, 66, .05);
}
.single-product .tk-purchase-panel__action {
	align-items: center;
}
.single-product .tk-purchase-panel .single_add_to_cart_button,
.single-product .tk-purchase-panel .single_add_to_cart_button.button,
.single-product .tk-purchase-panel .single_add_to_cart_button.button.alt {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 48px;
	padding: 12px 24px !important;
	border: 1px solid var(--tk-primary) !important;
	border-radius: 8px !important;
	background: linear-gradient(180deg, #22968d 0%, #1f8c84 100%) !important;
	box-shadow: 0 8px 18px rgba(34, 150, 141, .18);
	color: var(--tk-white) !important;
	font-size: 16px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.single-product .tk-purchase-panel .single_add_to_cart_button:hover,
.single-product .tk-purchase-panel .single_add_to_cart_button:focus {
	border-color: #18736d !important;
	background: linear-gradient(180deg, #1f8c84 0%, #18736d 100%) !important;
	box-shadow: 0 12px 24px rgba(24, 115, 109, .22);
	transform: translateY(-1px);
}
.single-product .tk-purchase-panel .single_add_to_cart_button:active {
	transform: translateY(0);
	box-shadow: 0 6px 14px rgba(24, 115, 109, .16);
}
.single-product .tk-purchase-panel .single_add_to_cart_button:after,
.single-product .tk-purchase-panel .single_add_to_cart_button.button:after,
.single-product .tk-purchase-panel .single_add_to_cart_button.button.alt:after {
	content: none !important;
	display: none !important;
}
.single-product .tk-purchase-panel .single_add_to_cart_button img,
.single-product .tk-purchase-panel .single_add_to_cart_button svg,
.single-product .tk-purchase-panel .single_add_to_cart_button i {
	display: none !important;
}
.single-product .tk-purchase-panel form.cart {
	margin-left: auto !important;
}
.single-product .tk-purchase-panel .quantity {
	display: none !important;
}
@media (max-width: 700px) {
	.single-product .tk-purchase-panel .single_add_to_cart_button,
	.single-product .tk-purchase-panel .single_add_to_cart_button.button,
	.single-product .tk-purchase-panel .single_add_to_cart_button.button.alt {
		min-width: 0;
		width: 100%;
	}
	.single-product .tk-purchase-panel form.cart {
		margin-left: 0 !important;
	}
}


/* ==========================================================
   Step 9 — remove the obsolete Stay Informed/newsletter area
   ========================================================== */

/* Standard newsletter wrappers and the old dedicated widget area. */
body:not(.wp-admin) .products-newsletter,
body:not(.wp-admin) .product-newsletter,
body:not(.wp-admin) #sidebar-5,
body:not(.wp-admin) [id*="products-newsletter" i],
body:not(.wp-admin) [class*="products-newsletter" i] {
	display: none !important;
}

/* SiteOrigin restored row: remove Name + Email + Subscribe as one full row. */
@supports selector(.panel-grid:has(input)) {
	body:not(.wp-admin) .panel-grid:has(input[type="submit"][value*="subscribe" i]),
	body:not(.wp-admin) .siteorigin-panels-stretch:has(input[type="submit"][value*="subscribe" i]),
	body:not(.wp-admin) .panel-grid:has(button[type="submit"][name*="subscribe" i]),
	body:not(.wp-admin) .siteorigin-panels-stretch:has(button[type="submit"][name*="subscribe" i]) {
		display: none !important;
		margin: 0 !important;
		padding: 0 !important;
		min-height: 0 !important;
	}
}

/* ==========================================================
   Step 10.5 — WOOF DOM normalizer
   Layout is applied to a dedicated wrapper created by JS.
   The <li> itself remains under WOOF control for show/hide.
   ========================================================== */

body:not(.wp-admin) .woof .woof_container {
	margin: 0 0 18px !important;
	padding: 0 !important;
}

body:not(.wp-admin) .woof .woof_container_inner > h4,
body:not(.wp-admin) .woof .woof_container_inner > h3,
body:not(.wp-admin) .woof .woof_container_inner > h2 {
	min-height: 0 !important;
	margin: 0 0 8px !important;
	padding: 10px 14px 8px !important;
	background: var(--tk-primary) !important;
	color: #fff !important;
	font-family: 'BebasNeueBold', sans-serif !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
}

body:not(.wp-admin) .woof ul.woof_list {
	margin: 0 !important;
	padding: 5px 0 0 !important;
	list-style: none !important;
}

/* Do not use flex/grid on the LI. WOOF owns its display state. */
body:not(.wp-admin) .woof ul.woof_list > li:not(.woof_open_hidden_li) {
	position: relative !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-sizing: border-box !important;
}

body:not(.wp-admin) .woof .tk-woof-option {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 0 !important;
	box-sizing: border-box !important;
}

body:not(.wp-admin) .woof .tk-woof-control {
	position: static !important;
	inset: auto !important;
	float: none !important;
	display: block !important;
	flex: 0 0 15px !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	min-height: 15px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	transform: none !important;
	box-sizing: border-box !important;
}

/* iCheck/other wrappers around the real input. */
body:not(.wp-admin) .woof .tk-woof-control-wrap {
	position: relative !important;
	inset: auto !important;
	float: none !important;
	display: block !important;
	flex: 0 0 15px !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	min-height: 15px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	transform: none !important;
}

body:not(.wp-admin) .woof .tk-woof-label {
	position: static !important;
	inset: auto !important;
	float: none !important;
	display: block !important;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #17212b !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.38 !important;
	text-align: left !important;
	text-transform: uppercase !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: anywhere !important;
	transform: none !important;
	box-sizing: border-box !important;
}

body:not(.wp-admin) .woof .tk-woof-label > * {
	margin: 0 !important;
	padding: 0 !important;
	line-height: inherit !important;
}

body:not(.wp-admin) .woof ul.woof_list > li.tk-woof-row-hidden,
body:not(.wp-admin) .woof ul.woof_list > li.woof_hidden_term,
body:not(.wp-admin) .woof ul.woof_list > li.woof_term_hide,
body:not(.wp-admin) .woof ul.woof_list > li[hidden] {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body:not(.wp-admin) .woof ul.woof_list > li.woof_open_hidden_li {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 20px !important;
	margin: 6px 0 16px !important;
	padding: 0 !important;
	font-size: 12px !important;
	line-height: 20px !important;
	text-align: left !important;
	cursor: pointer;
}

body:not(.wp-admin) .woof ul.woof_list > li.woof_open_hidden_li::after {
	content: '' !important;
	display: inline-block !important;
	width: calc(100% - 92px) !important;
	height: 1px !important;
	margin-left: 10px !important;
	position: relative !important;
	top: -3px !important;
	background: #d7dde0 !important;
}

body:not(.wp-admin) .woof .woof_checkbox_count,
body:not(.wp-admin) .woof .tk-woof-option > br {
	display: none !important;
}

body:not(.wp-admin) #content > .woof_autohide_wrapper > a.woof_show_auto_form,
body:not(.wp-admin) #content > .woof_autohide_wrapper > a.woof_hide_auto_form,
body:not(.wp-admin) a.woof_show_auto_form.woof_btn_default,
body:not(.wp-admin) a.woof_hide_auto_form.woof_btn_default {
	display: none !important;
}

body:not(.wp-admin) #content .prdctfltr_wc > .prdctfltr_filter_title {
	display: none !important;
}


/* ==========================================================
   Step 10.6 — remove anonymous line boxes inside WOOF rows
   WOOF leaves whitespace text nodes and hidden inputs as direct
   children of <li>. After the visual option is wrapped in a DIV,
   those inline remnants create extra blank line boxes.
   ========================================================== */
body:not(.wp-admin) .woof ul.woof_list > li:not(.woof_open_hidden_li) {
	font-size: 0 !important;
	line-height: 0 !important;
}

body:not(.wp-admin) .woof ul.woof_list > li:not(.woof_open_hidden_li) > input[type='hidden'],
body:not(.wp-admin) .woof ul.woof_list > li:not(.woof_open_hidden_li) > br,
body:not(.wp-admin) .woof ul.woof_list > li:not(.woof_open_hidden_li) > .woof_checkbox_count {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:not(.wp-admin) .woof .tk-woof-option {
	font-size: 13px !important;
	line-height: 1.38 !important;
}

body:not(.wp-admin) .woof .tk-woof-label {
	font-size: 13px !important;
	line-height: 1.38 !important;
}
