/* TASSEL Search */

.tsrch {
	--tsrch-bg: #fff;
	--tsrch-text: #1a1a1a;
	--tsrch-border: #d0d0d0;
	--tsrch-btn-bg: #fff;
	--tsrch-btn-text: #1a1a1a;
	--tsrch-accent: #a98a5a;
	--tsrch-hover: #f4f1eb;
	--tsrch-radius: 3px;
	--tsrch-height: 36px;
	position: relative;
	width: 100%;
	font: inherit;
}

.tsrch--dark {
	--tsrch-bg: #4a4a4a;
	--tsrch-text: #fff;
	--tsrch-border: #4a4a4a;
	--tsrch-btn-bg: #111;
	--tsrch-btn-text: #fff;
	--tsrch-height: 42px;
}

.tsrch .tsrch__form {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
}

.tsrch .tsrch__input {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--tsrch-height);
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--tsrch-border);
	border-right: 0;
	border-radius: var(--tsrch-radius) 0 0 var(--tsrch-radius);
	background: var(--tsrch-bg);
	color: var(--tsrch-text);
	font-size: 14px;
	line-height: normal;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.tsrch .tsrch__input:focus {
	outline: 2px solid var(--tsrch-accent);
	outline-offset: -2px;
	box-shadow: none;
}

.tsrch .tsrch__input::placeholder {
	color: currentColor;
	opacity: .55;
}

.tsrch .tsrch__btn,
.tsrch .tsrch__btn:hover,
.tsrch .tsrch__btn:focus {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tsrch-height);
	height: var(--tsrch-height);
	margin: 0;
	padding: 0;
	border: 1px solid var(--tsrch-border);
	border-left: 0;
	border-radius: 0 var(--tsrch-radius) var(--tsrch-radius) 0;
	background: var(--tsrch-btn-bg);
	color: var(--tsrch-btn-text);
	box-shadow: none;
	cursor: pointer;
}

.tsrch--dark .tsrch__btn,
.tsrch--dark .tsrch__btn:hover,
.tsrch--dark .tsrch__btn:focus {
	border-color: var(--tsrch-btn-bg);
}

.tsrch .tsrch__btn svg {
	width: 16px;
	height: 16px;
}

.tsrch.is-loading .tsrch__btn svg {
	animation: tsrch-pulse .7s ease-in-out infinite alternate;
}

@keyframes tsrch-pulse {
	to { opacity: .25; }
}

/* Lista podpowiedzi */

.tsrch__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 100000;
	width: max(100%, 440px);
	max-width: calc(100vw - 20px);
	max-height: min(70vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	color: #1a1a1a;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
	text-align: left;
	font-size: 14px;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: normal;
}

.tsrch__dropdown[hidden] {
	display: none;
}

.tsrch--dark .tsrch__dropdown {
	right: auto;
	left: 0;
}

.tsrch__group {
	padding: 10px 14px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}

.tsrch .tsrch__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	color: inherit;
	text-decoration: none;
}

.tsrch .tsrch__item:hover,
.tsrch .tsrch__item[aria-selected="true"] {
	background: var(--tsrch-hover);
	color: inherit;
}

/* Motyw (Kadence) podkreśla linki w nagłówku - w liście podpowiedzi bez podkreśleń. */
.tsrch .tsrch__dropdown a,
.tsrch .tsrch__dropdown a:hover,
.tsrch .tsrch__dropdown a:focus,
.tsrch .tsrch__dropdown a * {
	text-decoration: none !important;
}

.tsrch__img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}

.tsrch__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tsrch__name {
	font-weight: 600;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tsrch__meta,
.tsrch__count {
	font-size: 12px;
	color: #777;
}

.tsrch__stock {
	font-size: 11px;
	color: #b3261e;
}

.tsrch__item.is-out .tsrch__img {
	opacity: .6;
}

.tsrch__price {
	flex: 0 0 auto;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.tsrch__price del {
	display: block;
	font-weight: 400;
	font-size: 12px;
	color: #999;
}

.tsrch__price ins {
	text-decoration: none;
}

.tsrch__price small,
.tsrch__price .woocommerce-price-suffix {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #777;
}

.tsrch mark {
	background: #f1e4c6;
	color: inherit;
	padding: 0;
	border-radius: 2px;
}

.tsrch .tsrch__all {
	position: sticky;
	bottom: 0;
	justify-content: center;
	padding: 12px 14px;
	border-top: 1px solid #eee;
	background: #fff;
	color: #7d6237;
	font-weight: 600;
}

.tsrch .tsrch__all:hover,
.tsrch .tsrch__all[aria-selected="true"] {
	background: var(--tsrch-hover);
	color: #7d6237;
}

.tsrch .tsrch__more {
	padding: 6px 14px 10px 74px;
	font-size: 13px;
	color: #7d6237;
}

.tsrch__empty {
	padding: 16px 14px;
	color: #555;
}
