/* The legacy TKD theme uses a fixed right sidebar on normal pages. The cable
 * catalogue needs the full content width to keep filters and product cards
 * readable. These selectors are deliberately limited to the generated shop
 * page so the rest of the website remains untouched. */
.tkd-cable-store-page .tkd-content > .widget_search,
.tkd-cable-store-page .tkd-sidebar1,
.tkd-cable-store-page .tkd-content > .tkd-post:not(.widget) > .tkd-postheader,
.tkd-cable-store-page .tkd-postheadericons,
.tkd-cable-store-page .post-edit-link {
	display: none !important;
}

.tkd-cable-store-page .tkd-content-layout-row,
.tkd-cable-store-page .tkd-layout-cell.tkd-content {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
}

.tkd-cable-store-page .tkd-content > .tkd-post:not(.widget),
.tkd-cable-store-page .tkd-content > .tkd-post:not(.widget) > .tkd-postcontent {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.tkd-cs-discount-note {
	margin-top: 14px !important;
	padding: 10px 14px;
	border-left: 4px solid #f28c00;
	background: rgba(255, 255, 255, .82);
	color: #1f2937 !important;
	border-radius: 0 10px 10px 0;
}

.tkd-cs-discount-note strong {
	color: #a45100;
}

/* Keep the market indicators visible without letting them dominate the first
 * screen. The main hero can now use the full catalogue width. */
.tkd-cs > .tkd-cs-rates {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	align-items: center;
	gap: 4px;
	margin: 8px 0 10px auto;
	padding: 5px 7px;
	border: 0;
	border-radius: 9px;
	background: #243447;
	box-shadow: 0 8px 20px rgba(20, 39, 64, .12);
	float: right;
	clear: both;
}

.tkd-cs > .tkd-cs-rates > a {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 4px 9px;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	text-decoration: none;
}

.tkd-cs > .tkd-cs-rates > a + a {
	border-left: 1px solid rgba(255, 255, 255, .18);
	border-radius: 0 6px 6px 0;
}

.tkd-cs > .tkd-cs-rates > a:hover,
.tkd-cs > .tkd-cs-rates > a:focus {
	background: rgba(255, 255, 255, .09);
}

.tkd-cs > .tkd-cs-rates span,
.tkd-cs > .tkd-cs-rates strong {
	display: inline;
	margin: 0;
}

.tkd-cs > .tkd-cs-rates span {
	color: #cdd7df;
	font-size: 11px;
}

.tkd-cs > .tkd-cs-rates strong {
	color: #fff;
	font-size: 14px;
	white-space: nowrap;
}

.tkd-cs .tkd-cs-hero {
	clear: both;
	display: block;
	margin: 0 0 14px;
	padding: 22px 30px;
	border-radius: 14px;
}

.tkd-cs .tkd-cs-hero h1 {
	margin-bottom: 9px;
	font-size: clamp(30px, 3.4vw, 42px);
}

.tkd-cs .tkd-cs-hero__content > p:not(.tkd-cs-eyebrow):not(.tkd-cs-discount-note) {
	margin: 0;
}

.tkd-cs .tkd-cs-discount-note {
	max-width: 920px;
	margin-top: 10px !important;
	padding: 8px 12px;
}

/* On desktop, show the market indicators beside the payment menu item. */
.tkd-nav.desktop-nav .tkd-hmenu > .tkd-cs-nav-rates {
	display: block !important;
	position: absolute;
	float: none;
	margin: 0;
	padding: 0 !important;
	background: transparent !important;
}

.tkd-nav.desktop-nav .tkd-hmenu {
	position: relative;
	overflow: visible;
}

.tkd-nav.desktop-nav .tkd-cs-nav-rates > .tkd-cs-rates {
	display: flex;
	width: 134px;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 7px;
	background: #243447;
	box-shadow: none;
}

.tkd-nav.desktop-nav .tkd-cs-nav-rates .tkd-cs-rates > a {
	display: flex !important;
	min-height: 0 !important;
	align-items: baseline;
	justify-content: space-between;
	gap: 3px;
	margin: 0 !important;
	padding: 2px 1px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	text-decoration: none !important;
}

.tkd-nav.desktop-nav .tkd-cs-nav-rates .tkd-cs-rates > a + a {
	border-top: 1px solid rgba(255, 255, 255, .15) !important;
}

.tkd-nav.desktop-nav .tkd-cs-nav-rates .tkd-cs-rates span {
	color: #cdd7df !important;
	font-size: 8px !important;
}

.tkd-nav.desktop-nav .tkd-cs-nav-rates .tkd-cs-rates strong {
	color: #fff !important;
	font-size: 9px !important;
	white-space: nowrap;
}

.tkd-cs-application-nav {
	margin: 0 0 18px;
	padding: 20px;
	background: #fff;
	border: 1px solid #dbe3ec;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(20, 39, 64, .06);
}

.tkd-cs-application-nav h2 {
	margin: 0 0 12px;
	font-size: 20px;
	color: #15273e;
}

.tkd-cs-application-nav div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tkd-cs-application-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid #cbd6e2;
	border-radius: 999px;
	background: #f7f9fc;
	color: #213b5c;
	font-weight: 700;
	text-decoration: none;
}

.tkd-cs-application-nav a:hover,
.tkd-cs-application-nav a:focus,
.tkd-cs-application-nav a.is-active {
	border-color: #f28c00;
	background: #fff3e1;
	color: #a45100;
}

.tkd-cs-filters {
	grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(145px, 1fr)) !important;
}

.tkd-cs-summary span {
	display: block;
	margin-top: 5px;
	color: #52657b;
	font-size: 13px;
}

@media (max-width: 1050px) {
	.tkd-cs-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.tkd-cs > .tkd-cs-rates {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
		gap: 5px;
		margin-top: 6px;
		padding: 10px 12px;
		float: none;
	}

	.tkd-cs > .tkd-cs-rates > a {
		justify-content: space-between;
		padding: 2px 0;
		border-right: 0;
	}

	.tkd-cs > .tkd-cs-rates > a + a {
		padding-top: 6px;
		border-top: 1px solid rgba(255, 255, 255, .18);
		border-left: 0;
		border-radius: 0;
	}

	.tkd-cs .tkd-cs-hero {
		padding: 20px 18px;
	}

	.tkd-cs-application-nav {
		padding: 16px;
	}

	.tkd-cs-application-nav a {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.tkd-cs-filters {
		grid-template-columns: 1fr !important;
	}
}
