/* Pretpot Search Form – Minimalist with working border radius */

/* BASE STYLES */
.pretpot-search-form {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	background: #fff;
	border: 1px solid #e6e6e6;
	overflow: hidden; /* FIX: Ensures child elements respect border radius */
	transition: border-color .3s;
}

.pretpot-search-form:focus-within {
	border-color: #007cba;
}

.pretpot-search-inner {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	height: 100%;
	min-width: 0;
	margin-top: 10px;
}

.pretpot-search-input {
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0 16px;
	font-size: 15px;
	background: transparent; /* FIX: Ensures no background overflows border radius */
	outline: none;
	box-sizing: border-box;
}

.pretpot-search-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	flex-shrink: 0;
	flex-basis: auto;
	margin: 0;
	padding: 0;
}

/* Icon button - MINIMAL */
.pretpot-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: none; /* REMOVED: No hover transitions */
	padding: 0;
	margin: 0;
	min-width: 40px;
	box-sizing: border-box;
}

.pretpot-search-submit svg {
	width: 1em;
	height: 1em;
}

/* REMOVED: All hover selectors */
/* Icon position left */
.pretpot-search-form.icon-position-left {
	flex-direction: row-reverse;
}

/* MOBILE */
@media (max-width: 767px) {
	.pretpot-search-form {
		display: inline-flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}
	
	.pretpot-search-form[data-unfold=yes] .pretpot-search-inner {
		position: relative !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		margin-top: 10px !important;
	}
	
	.pretpot-search-input {
		padding: 0 12px !important;
	}
	
	.pretpot-search-submit {
		min-width: 35px !important;
	}
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
	.pretpot-search-form {
		display: inline-flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}
}

/* ============================================
   Pretpot SEARCH ICON+ WIDGET
   ============================================ */
.pretpot-search-icon-plus {
    display: inline-flex;
    align-items: center;
    position: relative;
    max-width: fit-content;
}

.pretpot-search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.pretpot-search-input-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: visible; /* Changed from hidden to visible */
    transition: width 0.3s ease, opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Unfold RIGHT - input appears to the RIGHT of icon */
.pretpot-search-icon-plus.pretpot-unfold-right .pretpot-search-input-wrap {
    left: 100%;
    transform: translateY(-50%);
    transform-origin: left center;
}

/* Unfold LEFT - input appears to the LEFT of icon */
.pretpot-search-icon-plus.pretpot-unfold-left .pretpot-search-input-wrap {
    right: 100%;
    transform: translateY(-50%);
    transform-origin: right center;
}

/* Expanded state */
.pretpot-search-icon-plus.pretpot-expanded .pretpot-search-input-wrap {
    width: var(--pretpot-input-width, 250px);
    opacity: 1;
    pointer-events: auto;
}

/* Form and Input styling */
.pretpot-search-icon-form {
    width: 100%;
    height: auto;
    margin: 0;
    display: block;
}

.pretpot-search-input {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    display: block;
}

.pretpot-search-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.pretpot-search-input::placeholder {
    color: #999;
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .pretpot-search-icon-plus.pretpot-expanded .pretpot-search-input-wrap {
        width: 200px !important;
    }
    
    .pretpot-search-input {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
}