/* Eget søgefelt med forslag (soegefelt.php). Farver som resten af Temptations (lilla #7d3f94). */
.ths { position: relative; width: 100%; margin: 0; }
form.ths input.ths-in {
	width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px 0 42px; margin: 0;
	border: 1px solid #e6dcea; border-radius: 10px; background: #f7f3f9 no-repeat 15px 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d3f94' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
	font-size: 16px; color: #2b2230; box-shadow: none; -webkit-appearance: none; appearance: none;
}
form.ths input.ths-in:focus { outline: none; border-color: #7d3f94; background-color: #fff; box-shadow: 0 0 0 3px rgba(125, 63, 148, .15); }
.ths-in::-webkit-search-cancel-button { cursor: pointer; }
form.ths.is-loading input.ths-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b993c6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E"); }

.ths-l {
	position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 6px);
	max-height: min(70vh, 520px); overflow-y: auto; background: #fff; border: 1px solid #eee5f1;
	border-radius: 12px; box-shadow: 0 12px 32px rgba(43, 34, 48, .14); padding: 6px; text-align: left;
}
form.ths .ths-l a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #2b2230; border-radius: 8px; }
form.ths .ths-l a:hover, form.ths .ths-l a.is-on { background: #f7f3f9; }

.ths-kat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 10px; border-bottom: 1px solid #f1ebf3; margin-bottom: 4px; }
.ths-kat span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8a7d90; margin-right: 4px; }
form.ths .ths-kat a { display: inline-flex; gap: 5px; padding: 5px 11px; border: 1px solid #e6dcea; border-radius: 999px; font-size: 14px; color: #7d3f94; }
.ths-kat a small { color: #a395a9; font-size: 12px; }

.ths-v { padding: 8px; }
.ths-v img, .ths-noimg { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; border-radius: 6px; background: #faf8fb; }
.ths-n { flex: 1; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ths-n b { font-weight: 700; color: #000; }
.ths-p { flex: 0 0 auto; text-align: right; font-size: 15px; white-space: nowrap; }
.ths-p ins { text-decoration: none; font-weight: 700; color: #7d3f94; }
.ths-p del { display: block; font-size: 12px; color: #a395a9; }

form.ths .ths-l a.ths-alle { justify-content: center; margin-top: 4px; padding: 12px; border-top: 1px solid #f1ebf3; border-radius: 0 0 8px 8px; font-weight: 600; color: #7d3f94; }
.ths-tom { margin: 0; padding: 14px 10px; color: #6f6375; font-size: 14px; }

@media (max-width: 600px) {
	.ths-l { position: static; margin-top: 8px; max-height: none; box-shadow: none; border: 0; padding: 0; }
	.ths-n { font-size: 14px; }
}

/* I temaets søgevindue: listen ligger i vinduet (vinduet vokser), ikke ovenpå. */
.search-main-modal .ths-l { position: static; max-height: none; margin-top: 10px; box-shadow: none; border: 0; padding: 0; }
.search-main-modal .modal-content { overflow: visible; }
