#search .search_group {
	box-sizing: content-box;
}

/* Flex layout: [input wrapper (with magnifying glass inside)] [platform btn] */
.search_group {
	display: flex;
	align-items: stretch;
	min-height: 50px;
}
/* Wrapper around input + magnifying glass — takes available space */
.search_group .search-input-wrap {
	flex: 1;
	min-width: 0;
	position: relative;
	height: 50px;
}
.search_group .search-input-wrap input[name="search"] {
	width: 100%;
	height: 50px;
	border-radius: 4px 0 0 4px !important;
	padding-right: 50px !important; /* space for magnifying glass */
}
.search_group .search-input-wrap input[name="search"]::-webkit-input-placeholder {
	font-size: 15px;
}
.search_group .search-input-wrap input[name="search"]::-moz-placeholder {
	font-size: 15px;
}
.search_group .search-input-wrap input[name="search"]:-ms-input-placeholder {
	font-size: 15px;
}
.search_group .search-input-wrap input[name="search"]::placeholder {
	font-size: 15px;
}
/* Magnifying glass stays absolutely positioned inside the input wrapper */
.search_group .search-input-wrap .search_btn {
	position: absolute !important;
	right: 0 !important;
	top: 50% !important;
	transform: translateY(-50%);
	height: 45px;
	width: 50px;
	z-index: 20000;
}

.live-search {
	width:100%;
	position:absolute;
	z-index:20000;
	padding: 0 15px 0 15px ;
	margin-top: 0;
	background: #fff;
	left: 0;
	display:none;
}
.live-search-inner {
	background-color:#FFF;
	border: 1px solid #DDD;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	box-shadow: 0 2px 2px #DDDDDD;
	overflow: hidden;
}
.live-type-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
	border-bottom: 1px solid #e8edf2;
	background: #f8fbfd;
}
.live-type-tab {
	border: 1px solid #d9e2ea;
	background: #fff;
	color: #4a5b6a;
	border-radius: 14px;
	padding: 2px 9px;
	font-size: 11px;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}
.live-type-tab:hover {
	background: #eef5fb;
}
.live-type-tab.active {
	background: #e7f0fa;
	border-color: #1a73e8;
	color: #1a73e8;
}
.live-type-tab-count {
	font-weight: 700;
}
.live-search .loading{
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.live-search .loading-spinner,
.platform-picker .loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #23a1d1;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.live-search ul {
	list-style-type: none;
	margin:0px;
	padding:0px;
	max-height: 420px;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}
.live-search ul::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}
.live-search ul li {
	cursor:pointer;
	padding:5px;
	height: 70px;
	vertical-align: middle;
	margin:0px 5px;
	background-color:#FFF;
	min-height:40px;
	clear:both;
}
.live-search ul li:nth-child(even) {
	background-color: #FAFAFA;
}
.live-search ul li:hover {
	background-color:#F0F7FA;
}
.live-search ul li a{
	text-decoration: none;
	display:block;
}
.live-search ul li .product-image{
	float:left;
	margin-right:5px;
}
.live-search ul li .product-image img{
	display:block;
	width:51px;
	height:51px;
	object-fit:contain;
}
.live-search ul li .product-name p{
	font-weight: normal;
	font-style: italic;
	font-size: 10px;
	color:#555555;
	margin:0px;
	padding:0px;
}
.live-search ul li .product-name{
	font-weight: bold;
	float: left;
	width:50%;
}
.live-search ul li .product-price {
	text-align: right;
	font-size: 12px;
	font-weight: bold;
	float:right;
	margin-top:10px;
	width:25%;
}
.live-search ul li .product-price .price{
	color: #333333;
	display:block;
}
.live-search ul li .product-price .special{
	color: #FF0000;
	text-decoration: line-through;
	display:block;
}

.live-search .product-price > .special {
	margin-top: -5px;
}

.live-search .result-text{
	font-weight: bold;
	text-align: center;
	font-size: 15px;
	color:#fff;
	background: #23a1d1;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}
.live-search .view-all-results:hover {
	color: #fff;
	text-decoration: none;
}
.live-search .view-all-results {
	color: #fff;
	display: block;
	padding: 12px 0;
	font-size: 15px;
	letter-spacing: 0.3px;
}
a {
cursor: pointer;
}

/* =============================================
   Platform Picker Button & Dropdown
   ============================================= */

.platform-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f4f8;
	border: 1px solid #ccc;
	border-left: 1px solid #d0d7de;
	border-radius: 0 4px 4px 0;
	padding: 0 14px;
	font-size: 14px;
	font-family: lato, sans-serif;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	z-index: 20000;
	user-select: none;
	transition: background 0.15s;
	flex-shrink: 0;
	height: 50px;
	line-height: 1;
	gap: 5px;
}
.platform-btn:hover {
	background: #e4eaf0;
}
.platform-btn.has-platform {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
}
.platform-btn.has-platform:hover {
	background: #1565c0;
}
.platform-btn-caret {
	font-size: 11px;
	opacity: 0.6;
}
.platform-btn-name {
	/* no extra spacing needed */
}
.platform-btn-clear {
	font-size: 16px;
	font-weight: bold;
	opacity: 0.8;
	cursor: pointer;
	line-height: 1;
}
.platform-btn-clear:hover {
	opacity: 1;
}

/* Platform picker dropdown — anchored to the button */
.platform-picker {
	position: absolute;
	top: 100%;
	right: 0;
	width: 250px;
	z-index: 20001;
	margin-top: 0;
}
.platform-picker-inner {
	background: #2d2d3f;
	border: none;
	border-top: none;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	overflow: hidden;
}
.platform-picker ul {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 340px;
	overflow-y: auto;
}
.platform-picker ul::-webkit-scrollbar {
	width: 6px;
}
.platform-picker ul::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,.15);
	border-radius: 3px;
}
.platform-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	font-family: lato, sans-serif;
	color: rgba(255,255,255,.85);
	transition: background 0.1s;
}
.platform-item:hover {
	background: rgba(255,255,255,.08);
	color: #fff;
}
.platform-item.active {
	background: rgba(242,58,64,.15);
	color: var(--hdr-accent, #f23a40);
	font-weight: 600;
}
.platform-item-name {
	flex: 1;
}
.platform-item-count {
	font-size: 11px;
	color: rgba(255,255,255,.5);
	background: rgba(255,255,255,.1);
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 8px;
}
.platform-item.active .platform-item-count {
	background: rgba(242,58,64,.25);
	color: var(--hdr-accent, #f23a40);
}
.platform-loading {
	text-align: center;
	padding: 16px !important;
}

/* =============================================
   Offer Table Column Filter Dropdowns
   ============================================= */

#comparasion thead td {
	text-transform: none;
}

.col-filter-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.col-filter-btn {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 1px;
	text-transform: none;
	padding: 3px 8px;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
}
.col-filter-btn:hover {
	background: rgba(0,0,0,0.05);
}
.col-filter-btn .col-filter-caret {
	font-size: 28px;
	line-height: 0.5;
	opacity: 0.6;
	transition: transform 0.2s;
	margin-left: -2px;
}
.col-filter-btn.open .col-filter-caret {
	transform: rotate(180deg);
}
.col-filter-btn.active {
	color: #1a73e8;
	font-weight: 600;
	background: #e8f0fe;
}
.col-filter-btn.active:hover {
	background: #d2e3fc;
}
.col-filter-btn.active .col-filter-clear {
	font-size: 13px;
	font-weight: bold;
	opacity: 0.7;
	cursor: pointer;
	line-height: 1;
	margin-left: 2px;
}
.col-filter-btn.active .col-filter-clear:hover {
	opacity: 1;
}
.col-filter-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 190px;
	z-index: 20001;
}
.col-filter-dropdown.open {
	display: block;
}
.col-filter-dropdown-inner {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	overflow: hidden;
}
.col-filter-dropdown ul {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 280px;
	overflow-y: auto;
}
.col-filter-dropdown ul::-webkit-scrollbar {
	width: 5px;
}
.col-filter-dropdown ul::-webkit-scrollbar-thumb {
	background: #c1c7cd;
	border-radius: 3px;
}
.col-filter-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
	font-family: lato, sans-serif;
	color: #444;
	transition: background 0.1s;
	text-transform: none;
}
.col-filter-item:hover {
	background: #f5f7fa;
}
.col-filter-item.active {
	background: #e8f0fe;
	color: #1a73e8;
	font-weight: 600;
}
.col-filter-item-name {
	flex: 1;
}
.col-filter-item-count {
	font-size: 11px;
	color: #999;
	background: #f0f0f0;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 10px;
	min-width: 20px;
	text-align: center;
}
.col-filter-item.active .col-filter-item-count {
	background: #d2e3fc;
	color: #1a73e8;
}

/* Mobile adjustments */
@media (max-width: 991px) {
	#mobile_search.search {
		padding: 8px 0;
		display: flex;
		align-items: center;
	}
	#mobile_search .search__inner {
		padding: 0 16px !important;
		width: 100%;
	}
	#mobile_search .search_group {
		min-height: 42px;
	}
	#mobile_search .search_group .search-input-wrap,
	#mobile_search .search_group .search-input-wrap input[name="search"],
	#mobile_search .platform-btn {
		height: 42px;
	}
	#mobile_search .search_group .search-input-wrap .search_btn {
		height: 38px;
		width: 42px;
	}
	.platform-btn {
		font-size: 12px;
		padding: 0 12px;
	}
	.platform-picker {
		right: 0;
		left: 0;
		width: auto;
	}
}
@media (max-width: 767px) {
	.platform-btn {
		font-size: 12px;
		padding: 0 10px;
		max-width: 120px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.search_group .search-input-wrap input[name="search"]::-webkit-input-placeholder {
		font-size: 14px;
	}
	.search_group .search-input-wrap input[name="search"]::-moz-placeholder {
		font-size: 14px;
	}
	.search_group .search-input-wrap input[name="search"]:-ms-input-placeholder {
		font-size: 14px;
	}
	.search_group .search-input-wrap input[name="search"]::placeholder {
		font-size: 14px;
	}
}

/* Suppress nav dropdowns when search is active */
body.live-search-active .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: none !important;
}
body.live-search-active .navbar-nav > li.dropdown > .dropdown-menu {
    display: none !important;
}
