[talash-search-tooltip]:hover:after,
[talash-tooltip]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}
[talash-search-tooltip]:after,
[talash-tooltip]:after {
    background-color: rgba(35, 35, 35, 0.9);
    color: #fff;
    font-size: 12px;
    position: absolute;
    padding: 2px 5px;
    bottom: -35px;
    white-space: nowrap;
    box-shadow: 1px 1px 3px #222222;
    opacity: 0;
    z-index: 999991;
    visibility: hidden;
}
[talash-tooltip]:after {
	font-family: Arial, Helvetica, sans-serif;
	content: attr(talash-tooltip);
	left: 5px;
}
[talash-search-tooltip]:after {
	font-family: Arial, Helvetica, sans-serif;
	content: attr(talash-search-tooltip);
	right: 5px;
}

.talash {
	position: relative;
}

.talash-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
}
.talash-overlay.show {
	display: block;
}

#talash-form {
	display: flex;
	justify-content: center;
}

.search-bar {
	display: flex;
	width: 100%;
	box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
	border-radius: 40px;
}
.search-bar.unfold {
	box-shadow: 1px -2px 10px rgba(0, 0, 0, 0.20);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-top-left-radius: 20px;
    border-top-right-radius: 20px;
	background-color: transparent
}

.search-bar__inner {
	display: flex;
    align-items: center;
	flex: 1;
	position: relative;
}

.search-bar .search-bar__input {
	flex: 1;
	background-color: #f2f2f2;
	color: #646464;
	padding: 15px 10px 15px 20px;
	margin: 0;
	border: none;
	border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
	font-size: 16px;
	height: 100%;
	transition: all .15s;
}
.search-bar .search-bar__input:focus {
    outline: none;
	border: none;
}
.search-bar.unfold .search-bar__input {
	border-top-left-radius: 20px;
	border-bottom-left-radius: 0;
	background-color: #f2f2f2;
}
.search-bar .search-bar__input::placeholder {
    color: #9e9e9e;
}

.search-bar__clear-input {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	display: none;
	position: absolute;
	right: 0;
	padding: 5px 10px;
	color: #adadad;
	cursor: pointer;
}
.search-bar__clear-input.show {
	display: block;
}

.talash form .search-bar button.search-bar__btn-search {
	display: flex;
	align-items: center;
	justify-content: center;
    background-color: #fff;
	border: none;
	outline: none;
	cursor: pointer;
	position: relative;
	border-top-right-radius: 40px;
	border-bottom-right-radius: 40px;
	transition: all .15s;
	padding: 10px 30px;
	transition: background-color .5s;
}
.talash form .search-bar.unfold button.search-bar__btn-search {
	background-color: #f2f2f2;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 0;
}
.talash form .search-bar button.search-bar__btn-search:hover {
	background-color: #ffdf00;
}

.talash button.search-bar__btn-search svg {
	fill: #4fbd86;
}
.talash button.search-bar__btn-search path {
	stroke: #4fbd86;
}
.talash button.search-bar__btn-search:hover svg {
	fill: #000000;
}
.talash button.search-bar__btn-search:hover path {
	stroke: #000000;
}

.search-bar .search-bar__btn-search img {
	display: block;
	width: 20px;
	max-width: 20px;
	height: 20px;
}

.talash-advanced {
	display: flex;
	flex-direction: column;
    position: absolute;
	z-index: 9999;
    width: 100%;
	height: 215px;
    background-color: #fff;
    padding: 50px 20px 20px;
    margin: 0;
	border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
	box-shadow: 2px 8px 10px rgba(0, 0, 0, 0.2);
	transform: translate(0, 48px);
    visibility: hidden;
	opacity: 0;
	transition: transform .15s ease-in-out;
}
.talash-advanced.show {
	transform: translate(0, 45px);
    visibility: visible;
	opacity: 1;
}

.talash-advanced__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 35px;
}

.talash-advanced__inner > * {
	width: 55%;
	justify-self: center;
}

.post-type-list,
.category-list,
.author-list {
	display: flex;
	cursor: pointer;
	border-radius: 5px;
	box-shadow: 1px 1.5px 5px rgba(0, 0, 0, 0.3);
	padding: 5px 10px;
	position: relative;
}
.post-type-list:hover,
.category-list:hover,
.author-list:hover {
	box-shadow: 3px 2px 20px rgba(0, 0, 0, 0.2);
}

.post-type-li,
.cat-li,
.author-li {
	list-style: none;
	justify-self: center;
	font-size: 12px;
}
.post-type-li:last-child
.cat-li:last-child,
.author-li:last-child {
	margin-bottom: 20px;
}


.post-type-li__inner,
.cat-li__inner,
.author-li__inner {
	cursor: pointer;
	padding: 10px 20px;
	border: 2px solid transparent;
	text-transform: capitalize;
	color: #5e5e5e;
}
.post-type-li__inner:hover,
.cat-li__inner:hover,
.author-li__inner:hover {
	box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.18);
}

.author-li__inner {
    display: flex;
    flex-direction: column;
	align-items: center;
}
.author-li__inner img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
	border-radius: 50%;
}

.post-type-list .postType-label,
.category-list .cat-label,
.author-list .author-label {
	font-size: 12.9px;
    padding: 0;
	margin: 0;
    color: #9e9e9e;
	cursor: pointer;
	text-transform: CAPITALIZE;
	white-space: nowrap;
	overflow: hidden;
}

.post-type-list .post-type {
	display: none;
}
.talash-inner-popup .post-type {
	display: block;
}

.talash-inner-popup {
	display: none;
}
.talash-inner-popup.show {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
	z-index: 99991;
    background-color: #fff;
    padding: 30px 20px 20px;
    max-height: 215px;
    overflow-y: auto;
	overflow-x: hidden;
	border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.talash-popup__input {
	display: none;
}
.talash-popup__input.show {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	width: 100%;
}
.talash-popup__input.show h2.talash-title {
	font-size: 18px;
}

.talash-popup__input-close {
	position: relative;
}
.talash-popup__input-close a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	cursor: pointer;
	text-decoration: none;
    position: fixed;
    right: 8px;
    top: 5px;
    color: #9e9e9e;
    padding: 0 10px;
}

#postType-data,
#cat-data,
#author-data {
	display: none;
}

.author {
	display: flex;
	flex-direction: column;
	align-items: center;
	list-style: none;
	cursor: pointer;
	padding: 8px;
    border-radius: 10px;
	border: 2px solid transparent;
}
.author:hover {
    box-shadow: 1px 2px 10px rgb(0, 0, 0, 0.3);
}
.author div {
	font-size: 12px;
	margin-top: 6px;
}
.author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.date-range__input .dateRange {
	display: none;
}
.date-range .date-range__input {
    border: none;
    font-size: 12.9px;
	color: #9e9e9e;
	box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	border-radius: 5px;
	padding: 5px;
}
.date-range__input:hover {
	box-shadow: 3px 2px 20px rgba(0, 0, 0, 0.25);
}

.daterangepicker {
	z-index: 9999;
}

.talash-loader {
	display: none;
}
.talash-loader.show {
	display: block;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
}
.talash-loader div {
	position: absolute;
	border: 1px solid #ffd300;
	animation: talash-loader 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes talash-loader {
	0% {
		width: 1%;
	}
	20% {
		width: 20%;
	}
	40% {
		width: 40%;
	}
	60% {
		width: 60%;
	}
	80% {
		width: 80%;
	}
	100% {
		width: 100%;
	}
}

.talash-result {
    position: absolute;
	z-index: 99999;
    background-color: #fff;
	width: 135%;
	height: 365px;
    padding: 0 5px;
    margin: 0;
	border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
	box-shadow: 2px 10px 10px rgba(0, 0, 0, 0.2);
	transform: translate(0, 48px);
    visibility: hidden;
	overflow: hidden;
	opacity: 0;
	transition: transform .15s ease-in-out;
}
.talash-result.show {
	transform: translate(0, 45.65px);
    visibility: visible;
	opacity: 1;
}

.talash-search-by {
	font-size: 11px;
	color: #9e9e9e;
	cursor: pointer;
}

.talash-result__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 0 8px;
}
.talash-result-close {
    position: relative;
	display: flex;
	justify-content: flex-end;
}
.talash-result-close a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #9e9e9e;
	padding: 0 5px;
	cursor: pointer;
	text-decoration: none;
}

.talash-result__inner {
	display: none;
}
.talash-result__inner.show {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 10px;
	padding: 30px 25px 0;
	height: calc(360px - 40px);
	overflow-y: scroll;
}

.talash-card {
    display: grid;
    grid-template-columns: .36fr 1fr;
    padding: 10px;
    grid-column-gap: 10px;
}
.talash-thumbnail {
	width: 80px;
	height: 75px;
	margin-right: 20px;
	border-radius: 50%;
}

.talash-card__inner {
	display: flex;
	flex-direction: column;
}
.talash-card h2.talash-title {
	font-size: 18px;
	font-weight: 550;
	margin: 8px 0 0;
}
h2.talash-title a {
	text-decoration: none;
	color: #5e5e5e;
}
h2.talash-title a:hover {
	color: #9e9e9e;
}

.talash-post-meta {
	display: flex;
}
.cat-meta,
.author-meta {
    font-size: 12px;
    margin: 5px 5px 0 0;
    color: #9e9e9e;
}

.cat-meta {
	background-color: #eee;
	border-radius: 10px;
	padding: 2px 5px;
}

.talash-inner-popup.show::-webkit-scrollbar,
.talash-result__inner::-webkit-scrollbar {
    width: 4px;
}
.talash-inner-popup.show::-webkit-scrollbar-track,
.talash-result__inner::-webkit-scrollbar-track {
    background: transparent;
}
.talash-inner-popup.show::-webkit-scrollbar-thumb,
.talash-result__inner::-webkit-scrollbar-thumb {
    background-color: #7dbdff;
    border-radius: 20px;
}

.talash-reset-wrapper {
	display: flex;
	justify-content: flex-end;
}
a.talash-reset {
    background-color: transparent;
    font-size: 12.9px;
    color: #9e9e9e;
    cursor: pointer;
    position: absolute;
    padding: 10px;
    right: 8px;
    bottom: 8px;
	text-decoration: none;
}
a.talash-reset:hover {
    color: #808080;
}


@media only screen and (max-width: 767px) {
	.talash form .search-bar button.search-bar__btn-search {
		padding: 10px 15px;
	}

	.search-bar {
		width: auto;
	}

	.search-bar .search-bar__input {
		padding: 5px 0 5px 10px;
	}

	.search-bar__clear-input {
		padding: 0 5px;
	}

	.talash-advanced__inner {
		grid-template-columns: 1fr;
	}

	.talash-advanced {
		height: 40vh;
		/* overflow-y: auto; */
	}
	.talash-advanced.show,
	.talash-result.show {
		transform: translate(0, 40px);
	}
	
	.talash-inner-popup.show {
		max-height: 40vh;
	}
	
	.talash-popup__input.show {
		grid-template-columns: 1fr 1fr;
	}
	
	.cat-li__inner, 
	.post-type-li__inner {
		padding: 10px;
	}

	.talash-result {
		width: 95vw;
		height: 41vh;
	}
	.talash-result__inner.show {
		grid-template-columns: 1fr;
		padding: 30px 10px 0;
	}
	.talash-card {
		grid-template-columns: 1fr;
	}
	.talash-thumbnail-wrap {
		display: flex;
		justify-content: center;
	}
	.talash-thumbnail {
		margin-right: 0;
	}
	.talash-card__inner {
		flex-direction: column-reverse;
	}
	h2.talash-title {
		margin-top: 5px;
		text-align: center;
	}
	.talash-post-meta {
		justify-content: center;
	}
}
