/* Kontener wyszukiwania */
.custom-search-container {
	position: relative;
	min-height: 44px;
    display: flex;
    align-items: center;
}

/* Stylizacja formularza wyszukiwania */
.woocommerce-product-search {
	display: flex;
	width: 365px;
	height: 44px;
	padding: 8px 16px;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	border-radius: 100px;
	border: 1px solid #B7B7B7;
}
.woocommerce-product-search .search-field {
	border: none;
	outline: none;
	flex: 1;
	padding-left: 10px;
	font-size: 18px;
	color: #656565 !important;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	height: 100% !important;
	padding-bottom: 0;
	padding-top: 4px;
	padding-left: 0;
}
.woocommerce-product-search button {
	display: flex;
	width: 44px;
	height: 44px;
	padding: 10px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	  border-radius: 0;
  background: var(--CZ-Primary, #000);
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  padding-right: 15px;
}
.woocommerce-product-search button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.mobile-search-icon {
	display: none;
}
.close-search-icon {
	display: none;
}



/* Inline | https://cudozwierz.dstdesign.website/ */

#live-search-results {
  position: absolute;
  top: 43px;
  left: 0;
  width: 100%;
  display: none;
  background: #fff;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #e6b09a;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 1rem;
    font-size: 14px;
}

.live-search-item a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.live-search-item a .product-image {
  width: 50px;
  height: auto;
  border-radius: 5px;
  flex: 0 0 50px;
  overflow: hidden;
}

.live-search-item a .product-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 16px;
  color: #000;
  font-weight: 500;
  gap: 10px;
}

.live-search-item a .product-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.live-search-item a .product-info .product-price {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 10px;
  line-height: 1;
}

.live-search-item a .product-info .product-price del {
  color: #aaa;
  font-weight: 400;
}

.live-search-item a .product-info .product-price ins {
  color: #0a993c;
  font-weight: bold;
  font-size: 120%;
}

.live-search-item a .product-info {
  /* gap: 10px; */
  gap: 2px;
}

.live-search-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.live-search-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.live-search-item:hover .product-title {
	color: #CF142B;
}

/* Styl dla "ab" (od) przed ceną konfiguratora */
.live-search-item .product-price .price-from {
	font-weight: 400;
	color: #666;
	font-style: italic;
	margin-right: 2px;
	font-size: 10px;
	line-height: 1;
}

/* Suffix VAT w live search */
.live-search-item .product-price .tax-info-suffix {
	display: inline-block;
	font-size: 10px;
	color: #666;
	font-weight: normal;
	opacity: 0.8;
	margin: 0;
}

/* Link "Konfigurieren" dla produktów z konfiguratorem */
.live-search-item .product-configure-link {
	display: inline-block;
	color: #CF142B;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 2px;
	transition: opacity 0.2s ease;
}

.live-search-item:hover .product-configure-link {
	opacity: 0.8;
	text-decoration: underline;
}

@media (max-width: 980px) {
.woocommerce-product-search {
  width: 275px;
}

}



/* Mobile-first stylizacja */
@media (max-width: 767px) {
	.woocommerce-product-search {
		position: fixed;
		top: 9px;
		display: flex;
		    transform: translateY(53px) scale(0);
		right: 10px;
		left: 10px;
		max-width: 100%;
		background-color: #fff;
		z-index: 9999;
		transition: transform 0.3s ease-in-out; 
		height: 44px;
    border-radius: 9px;
    box-shadow: 0 4px 45px rgba(0, 0, 0, 0.4);
    width: calc(100% - 20px);
    border: 0;
	}
	.woocommerce-product-search.open {
    transform: translateY(116px) scale(1);
	}

	.mobile-search-icon {
		display: block;
		cursor: pointer;
		width: 35px;
		position: absolute;
		z-index: 10000;
		right: 6px;
		top: 6px;
	}

	.woocommerce-product-search .search-field {
		display: block;
		flex: 0 0 auto;
		margin-right: auto;
	}
	
	.custom-search-container {
		min-height: 40px;
	}

	.mobile-search-icon {
		width: 25px;
		top: 8px;
	}
	
	
	  
	.close-search-icon {
		order: -1;
	    max-width: 23px;
	    margin-left: 0;
	    width: 23px !important;
	    height: 23px;
	    flex: 0 0 24px;
	    padding-right: 10px;
	    margin-right: 10px;
	    border-right: 1px solid #eee;
		display: block;
	}

	.live-search-item a .product-info {
	  font-size: 14px;
	}
	.close-search-icon img {
	  width: 25px !important;
	  height: 25px !important;
	  object-fit: contain;
	}

	.mobile-search-icon img {
	  width: 26px;
	      filter: brightness(0);
	}
	
}














