/*
 * Extraprívlač FiboSearch UI
 *
 * Scoped to FiboSearch. Product and catalog price components outside the
 * autocomplete keep their complete club-price presentation.
 */

.dgwt-wcas-search-wrapp,
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp,
.dgwt-wcas-search-wrapp *,
.dgwt-wcas-suggestions-wrapp *,
.dgwt-wcas-details-wrapp * {
	box-sizing: border-box;
}

.dgwt-wcas-search-wrapp {
	width: 100%;
	max-width: 680px;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	min-height: 50px;
	font-size: 16px;
	line-height: 1.35;
}

.dgwt-wcas-suggestions-wrapp {
	max-width: calc(100vw - 32px) !important;
	overflow-x: hidden !important;
	border: 1px solid #d7e1ec !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 22px 60px rgba(15, 23, 42, .18) !important;
	color: #111827;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
	color: #111827;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
	display: grid !important;
	grid-template-columns: 64px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 14px !important;
	min-height: 90px !important;
	padding: 12px 16px !important;
	border-bottom: 1px solid #e8eef5 !important;
	background: #fff !important;
	text-decoration: none !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
	background: #f5f9fe !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 64px !important;
	height: 64px !important;
	min-width: 64px !important;
	margin: 0 !important;
	padding: 4px !important;
	overflow: hidden !important;
	border: 1px solid #edf1f6;
	border-radius: 10px;
	background: #fff;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 56px !important;
	max-height: 56px !important;
	margin: 0 !important;
	object-fit: contain !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	align-items: center !important;
	gap: 8px 18px !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-meta {
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
	display: -webkit-box !important;
	overflow: hidden !important;
	color: #182235 !important;
	font-size: 15px !important;
	font-weight: 650 !important;
	line-height: 1.35 !important;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title strong {
	font-weight: 850 !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp,
.dgwt-wcas-details-wrapp .dgwt-wcas-tpd-price {
	display: flex !important;
	align-items: baseline !important;
	justify-content: flex-end !important;
	width: auto !important;
	min-width: 82px !important;
	max-width: 150px !important;
	margin: 0 !important;
	color: #111827 !important;
	text-align: right !important;
	white-space: nowrap !important;
}

.dgwt-wcas-suggestions-wrapp .ep-klub-price,
.dgwt-wcas-details-wrapp .ep-klub-price {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
}

.dgwt-wcas-suggestions-wrapp .ep-klub-price__main,
.dgwt-wcas-details-wrapp .ep-klub-price__main {
	display: flex !important;
	align-items: baseline !important;
	justify-content: flex-end !important;
	gap: 4px !important;
	white-space: nowrap !important;
}

.dgwt-wcas-suggestions-wrapp .ep-klub-price__label,
.dgwt-wcas-details-wrapp .ep-klub-price__label {
	display: inline !important;
	margin: 0 !important;
	color: #667085 !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

.dgwt-wcas-suggestions-wrapp .ep-klub-price__current,
.dgwt-wcas-suggestions-wrapp .ep-klub-price__current .amount,
.dgwt-wcas-details-wrapp .ep-klub-price__current,
.dgwt-wcas-details-wrapp .ep-klub-price__current .amount {
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 4px !important;
	margin: 0 !important;
	color: #111827 !important;
	font-size: 16px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

/* Secondary price facts belong on the product page, not in a narrow row. */
.dgwt-wcas-suggestions-wrapp .ep-klub-price__suffix,
.dgwt-wcas-suggestions-wrapp .ep-klub-price__meta,
.dgwt-wcas-suggestions-wrapp .ep-klub-badge,
.dgwt-wcas-details-wrapp .ep-klub-price__suffix,
.dgwt-wcas-details-wrapp .ep-klub-price__meta,
.dgwt-wcas-details-wrapp .ep-klub-badge {
	display: none !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
	padding: 14px 16px 7px !important;
	color: #667085 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax {
	min-height: 44px !important;
	padding: 10px 16px !important;
	color: #334155 !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 52px !important;
	padding: 12px 16px !important;
	color: #285899 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	text-align: center !important;
	text-decoration: none !important;
}

.dgwt-wcas-details-wrapp {
	max-width: 440px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	border: 1px solid #d7e1ec !important;
	background: #fff !important;
	box-shadow: 0 22px 60px rgba(15, 23, 42, .18) !important;
	color: #111827 !important;
	overscroll-behavior: contain;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-inner {
	padding: 22px !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-product-details {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-product-details > a:first-child,
.dgwt-wcas-details-wrapp .dgwt-wcas-details-space {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-main-image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 220px !important;
	margin: 0 !important;
	padding: 18px !important;
	overflow: hidden !important;
	border: 1px solid #e4ebf3 !important;
	border-radius: 12px !important;
	background: #fff !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-main-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-product-title {
	display: block !important;
	margin: 0 0 5px !important;
	color: #182235 !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	line-height: 1.28 !important;
	overflow-wrap: anywhere;
	text-decoration: none !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-product-sku {
	display: block !important;
	margin-bottom: 8px !important;
	color: #7b8798 !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	line-height: 1.2 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price {
	margin: 7px 0 3px !important;
	text-align: left !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price .ep-klub-price__main {
	justify-content: flex-start !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price .ep-klub-price__current,
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price .ep-klub-price__current .amount {
	font-size: 22px !important;
	line-height: 1.2 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-desc {
	margin: 10px 0 0 !important;
	color: #536174 !important;
	font-size: 14.5px !important;
	line-height: 1.55 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-hr {
	margin: 10px 0 !important;
	border-color: #e8eef5 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc {
	margin-top: 10px !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc,
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form,
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc .add_to_cart_inline {
	display: block !important;
	width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc .add_to_cart_inline {
	padding: 0 !important;
	border: 0 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc .button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 50px !important;
	margin: 0 !important;
	padding: 10px 16px !important;
	border-radius: 10px !important;
	background: #285899 !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	text-align: center !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-details-title-tax {
	display: block !important;
	margin: 0 0 14px !important;
	color: #182235 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-tax-product-details {
	display: grid !important;
	grid-template-columns: 62px minmax(0, 1fr) !important;
	gap: 12px !important;
	align-items: center !important;
	min-height: 88px !important;
	padding: 10px 0 !important;
	border-bottom: 1px solid #e8eef5 !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-tpd-image {
	width: 62px !important;
	height: 62px !important;
	margin: 0 !important;
	padding: 5px !important;
	border: 1px solid #e4ebf3 !important;
	border-radius: 10px !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-tpd-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.dgwt-wcas-details-wrapp .dgwt-wcas-tpd-rest-title {
	color: #182235 !important;
	font-size: 14px !important;
	font-weight: 750 !important;
	line-height: 1.3 !important;
	overflow-wrap: anywhere;
}

@media (min-width: 986px) and (max-width: 1199px) {
	body.dgwt-wcas-open .dgwt-wcas-suggestions-wrapp:not(.dgwt-wcas-suggestions-wrapp-mobile) {
		left: 50% !important;
		right: auto !important;
		width: min(680px, calc(100vw - 40px)) !important;
		max-width: 680px !important;
		max-height: min(72vh, 720px) !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		transform: translateX(-50%) !important;
		-webkit-overflow-scrolling: touch;
	}

	body.dgwt-wcas-open .dgwt-wcas-details-wrapp {
		display: none !important;
	}
}

@media (min-width: 1200px) {
	body.dgwt-wcas-open .dgwt-wcas-suggestions-wrapp:not(.dgwt-wcas-suggestions-wrapp-mobile) {
		left: calc(50% - 520px) !important;
		right: auto !important;
		width: 600px !important;
		max-width: 600px !important;
		max-height: min(72vh, 720px) !important;
		overflow-y: auto !important;
		border-radius: 16px 0 0 16px !important;
		transform: none !important;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	/* FiboSearch may write a very narrow inline width for a centred header. */
	body.dgwt-wcas-open .dgwt-wcas-details-wrapp {
		display: block !important;
		left: calc(50% + 80px) !important;
		right: auto !important;
		width: 440px !important;
		min-width: 440px !important;
		max-width: 440px !important;
		max-height: min(72vh, 720px) !important;
		border-left: 0 !important;
		border-radius: 0 16px 16px 0 !important;
		transform: none !important;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 985px) {
	body.dgwt-wcas-open {
		overflow: hidden !important;
	}

	.dgwt-wcas-details-wrapp {
		display: none !important;
	}

	.dgwt-wcas-search-wrapp {
		width: 100% !important;
		max-width: none !important;
	}

	.dgwt-wcas-suggestions-wrapp {
		left: 0 !important;
		right: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
		padding: 8px 16px calc(24px + env(safe-area-inset-bottom)) !important;
		overflow-x: hidden !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
		grid-template-columns: 68px minmax(0, 1fr) !important;
		gap: 14px !important;
		min-height: 104px !important;
		padding: 14px 0 !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
		width: 68px !important;
		height: 68px !important;
		min-width: 68px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
		max-width: 60px !important;
		max-height: 60px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		gap: 7px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
		font-size: 16px !important;
		line-height: 1.32 !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-meta,
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
		justify-content: flex-start !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		text-align: left !important;
	}

	.dgwt-wcas-suggestions-wrapp .ep-klub-price__main {
		justify-content: flex-start !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .ep-klub-price__current,
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .ep-klub-price__current .amount {
		color: #0f1b30 !important;
		font-size: 18px !important;
		font-weight: 900 !important;
		line-height: 1.15 !important;
		letter-spacing: -.01em;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
		padding: 18px 0 8px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax {
		padding: 11px 0 !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
		min-height: 52px !important;
		margin-top: 4px !important;
		padding: 13px 8px !important;
		border-top: 1px solid #e8eef5 !important;
	}
}

@media (max-width: 374px) {
	.dgwt-wcas-suggestions-wrapp {
		padding-right: 12px !important;
		padding-left: 12px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
		grid-template-columns: 60px minmax(0, 1fr) !important;
		gap: 11px !important;
		min-height: 96px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
		width: 60px !important;
		height: 60px !important;
		min-width: 60px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
		max-width: 52px !important;
		max-height: 52px !important;
	}

	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
		font-size: 15px !important;
	}
}
