/* WC Product Search — icon + modal */

/* Trigger icon */
body .wcps-icon-btn,
body .wcps-icon-btn:hover,
body .wcps-icon-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	transition: background 0.15s ease;
}



.wcps-icon-btn svg {
	display: block;
}

/* Modal overlay */
.wcps-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 15vh 16px 16px;
	background: #0000004a;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.wcps-modal.is-open {
	display: flex;
	animation: wcps-fade 0.15s ease;
}

@keyframes wcps-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.wcps-modal-box {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 430px;
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 30px;
	box-sizing: border-box;
}

body .wcps-modal-close, body .wcps-modal-close:hover {
	position: absolute;
	top: 1px;
	right: 6px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #333;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}



/* Search box */
.wcps-wrap {
	position: relative;
	max-width: 100%;
	margin: 0;
	font-size: 16px;
}

.wcps-search-row {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-top: 6px;
}

body .wcps-input {
	flex: 1 1 auto;
	box-sizing: border-box;
	padding: 12px 28px 12px 28px;
	font-size: 16px;
	line-height: 1.4;
	border-radius: 50px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	height: 50px;
	background: var(--e-global-color-00e7ed2);
	color: #ffffff !important;
	position: relative;

}

input.wcps-input{
	border-radius: 50px !important;
}

span.wcps-thumb{
	flex-shrink: 0 !important;
}

body .wcps-input:focus {
	border-color: #60553C;
	box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.0);
}

body .wcps-button {
	
	flex: 0 0 auto;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #60553C;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
	min-width: 140px;
}

body .wcps-button:hover,
body .wcps-button:focus {
	background: #60553C;
}

body .wcps-spinner {
	display: none;
	position: absolute;
	top: 50%;
	right: 15px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid #cfcfcf;
	border-top-color: #60553C;
	border-radius: 50%;
	animation: wcps-spin 0.7s linear infinite;
}

@keyframes wcps-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Live results list */
body .wcps-results {
	margin-top: 12px;
}

body .wcps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	
	border-radius: 8px;
	overflow: hidden;
}

body .wcps-item {
	margin: 0;
	
}

body .wcps-item:last-child {
	border-bottom: 0;
}

body .wcps-item-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--e-global-color-86ba278);
	transition: background 0.12s ease;
}

body .wcps-thumb img {
	display: block;
	width: 95px;
	height: 95px;
	object-fit: cover;
	border-radius: 10px;
}

body .wcps-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body .wcps-title {
	font-weight: 500;
	line-height: 1.3;
	overflow: hidden;
	
}

body .wcps-price {
	font-size: 14px;
	color: #555;
	margin-top: 2px;
}

body .wcps-price del {
	color: #999;
	margin-right: 6px;
}

body .wcps-no-results {
	margin: 12px 0 0;
	padding: 12px 14px;
	color: #777;
	font-style: italic;
	border: 1px dashed #e2e2e2;
	border-radius: 8px;
}

/* ---- Results page ---- */

body h2.wcps-results-heading {
	margin: 8px 0 16px;
	font-size: 22px;
}

body .wcps-results-page .wcps-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

body .wcps-results-page .wcps-item {
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
}

body .wcps-results-page .wcps-item-link {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 14px;
	text-decoration: none;
}

body .wcps-results-page span.wcps-thumb {
	width: 100%;
}

body .wcps-results-page .wcps-thumb img {
	width: 100%;
	height: 180px;
}

body .wcps-results-page .wcps-title {
	white-space: normal;
}

/* =========================================================================
 * Results-page card grid (e123-card) — matches the blinds card design.
 * ====================================================================== */
body .entry-content .e123-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

body .entry-content .e123-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #60553C;
	/* olive/taupe surround */
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body .entry-content .e123-card:hover,
body .entry-content .e123-card:focus {
	/* transform: translateY( -3px ); */
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.0);
}

/* Image area sits inside a small padded frame, like the screenshot */
body .entry-content .e123-card-__img-wrapper {
	display: block;
	padding: 9px 9px 0;
}

body .entry-content .e123-card__img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 2px;
}

body .entry-content .e123-card__img--placeholder {
	background: #d9d4c7 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>') center / 48px no-repeat;
}

/* Bottom bar: icon + title + arrow */
body .entry-content .e123-card__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
}

body .entry-content .e123-card__icon {
	flex: 0 0 auto;
	height: 48px;
	width: 48px;
	display: grid;
	place-items: center;
	background: transparent;
	color: #fff;
	transition: background .2s;
}

body .entry-content .e123-card__icon img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

body .entry-content .e123-card__text {
	flex: 1 1 auto;
	min-width: 0;
}

body .entry-content .e123-card__title {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Boxed arrow on the right (lighter inset square) */
body .entry-content .e123-card__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #b4a888;
	border-radius: 0;
	color: #fff;
}

body .entry-content .e123-card__arrow svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 480px) {
	body .entry-content .e123-card__title {
		font-size: 19px;
	}

	body .entry-content .e123-card__img {
		height: 190px;
	}

	.wcps-modal-box {
		padding: 30px 20px 25px;
	}
}


.wcps-results.wcps-has-results {
    max-height: 71dvh !important;
    overflow-y: scroll;
	scrollbar-width: thin;
  	scrollbar-color: var(--e-global-color-86ba278) #80808024;
}


/* WebKit - Width/Height */
.wcps-results.wcps-has-results::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* WebKit - Track */
.wcps-results.wcps-has-results::-webkit-scrollbar-track {
  background: #80808024;
  border-radius: 10px;
}


.wcps-results.wcps-has-results::-webkit-scrollbar-thumb {
  background: var(--e-global-color-86ba278);
  border-radius: 10px;
  border: 1px solid var(--e-global-color-86ba278);
}

/* WebKit - Thumb Hover */
.wcps-results.wcps-has-results::-webkit-scrollbar-thumb:hover {
  background: var(--e-global-color-86ba278);
}

/* WebKit - Thumb Active */
.wcps-results.wcps-has-results::-webkit-scrollbar-thumb:active {
  background: var(--e-global-color-86ba278);
}

/* WebKit - Hide buttons for a cleaner look */
.wcps-results.wcps-has-results::-webkit-scrollbar-button {
  display: none;
}


a.wcps-item-link:hover{
	color: var(--e-global-color-text) !important;
}