/* Variables from global.css */
:root {
	--color-text: #231f20;
	--color-grey: #f3f3f3;
	--color-grey-600: #e3e3e3;
	--color-grey-800: #7b7979;
	--color-red: #bf1c2d;
	--font-primary: "PFDinTextPro", sans-serif;
}

div.title-search-result {
	background-color: #fff;
	border: 1px solid #1e2758; /* Changed border color */
	border-radius: 0; /* Removed rounded corners */
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	display: none;
	overflow-y: auto;
	max-height: 70vh; /* Limit height and allow scrolling */
	height: min-content; /* Ensure it wraps content tightly */
	z-index: 205;
	font-family: var(--font-primary);
}

table.title-search-result {
	width: 100%;
	border-collapse: collapse;
	border: none;
	margin: 0; /* Ensure no extra margin */
	padding: 0; /* Ensure no extra padding */
}

/* Hide the category column as requested */
table.title-search-result th {
	display: none;
}

table.title-search-result td {
	background-color: white;
	color: var(--color-text);
	font-weight: normal;
	padding: 0;
	text-align: left;
	white-space: normal;
	border-top: 1px solid var(--color-grey);
}

table.title-search-result tr:first-child td {
	border-top: none;
}

table.title-search-result td.title-search-item a {
	padding: 8px 16px; /* Reduced vertical padding */
	text-decoration: none;
	color: var(--color-text);
	vertical-align: middle;
	display: block;
	transition: background-color 0.2s ease-in-out;
}

/* Hide images for a more minimal look */
table.title-search-result td.title-search-item img {
	display: none;
}

table.title-search-result td.title-search-item b {
	color: var(--color-red);
	font-weight: 500;
}

table.title-search-result tr.title-search-selected td,
table.title-search-result tr.title-search-selected td.title-search-item a {
	background-color: var(--color-grey);
}

table.title-search-result td.title-search-item a:hover {
	background-color: var(--color-grey);
}


table.title-search-result td.title-search-more,
table.title-search-result td.title-search-all {
	padding: 0;
}

table.title-search-result td.title-search-more a,
table.title-search-result td.title-search-all a
{
	display: block;
	padding: 10px 16px; /* Reduced padding */
	text-decoration: none;
	color: var(--color-grey-800);
	font-weight: 500;
	transition: background-color 0.2s ease-in-out;
}

table.title-search-result td.title-search-all a:hover,
table.title-search-result td.title-search-more a:hover {
	background-color: var(--color-grey);
}

table.title-search-result td.title-search-separator,
table.title-search-result th.title-search-separator {
	display: none; /* Hide separators as well */
	line-height: 0; /* Ensure no vertical space */
	font-size: 0; /* Ensure no vertical space */
}

div.title-search-fader {
	display:none; /* Modern scrollbars are better */
}
.title-search-fader {
	display: none!important;
}