/* WC Relabel & Search – search bar */
.wc-relabel-search-wrap {
	width: 100%;
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Tekst iznad searcha */
.wc-relabel-search__top {
	width: 100%;
	max-width: 700px;
	margin: 0 0 12px;
	text-align: center;
}

.wc-relabel-search__top p {
	margin: 0 0 6px;
}

.wc-relabel-search__top :last-child {
	margin-bottom: 0;
}

/* Okvir oko celog searcha — jedan jedinstven ram */
.wc-relabel-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 700px;
	height: 52px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	box-sizing: border-box;
}

/* Zajednička pravila za sva tri elementa — da ram bude isti svuda */
.wc-relabel-search__cat,
.wc-relabel-search__input,
.wc-relabel-search__btn {
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	font-size: 15px;
	line-height: normal;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.wc-relabel-search__cat {
	border-right: 1px solid #e3e3e3;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23777' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
	padding: 0 32px 0 16px;
	color: #555;
	min-width: 160px;
	max-width: 220px;
	cursor: pointer;
}

.wc-relabel-search__input {
	flex: 1 1 auto;
	background: #fff;
	padding: 0 16px;
	color: #333;
	min-width: 0;
}

.wc-relabel-search__input::placeholder {
	color: #8a8a8a;
	font-weight: 600;
	opacity: 1;
}

.wc-relabel-search__btn {
	flex: 0 0 auto;
	background: #1a7ee0;
	color: #fff;
	padding: 0 22px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}

.wc-relabel-search__btn:hover {
	background: #1567ba;
}

/* Bela ikonica (SVG koristi currentColor) */
.wc-relabel-search__icon {
	display: block;
	color: #fff;
	stroke: #fff;
}

@media (max-width: 520px) {
	.wc-relabel-search {
		flex-wrap: wrap;
		height: auto;
	}
	.wc-relabel-search__cat {
		flex: 1 1 100%;
		max-width: none;
		height: 48px;
		border-right: 0;
		border-bottom: 1px solid #e3e3e3;
	}
	.wc-relabel-search__input {
		flex: 1 1 auto;
		height: 48px;
	}
	.wc-relabel-search__btn {
		height: 48px;
	}
}
