/* Colours/fonts follow the Elementor global kit on julieehealth.com; override in Settings > Shopify Search. */
.jhss-form,.jhss-panel{
	--jhss-accent:var(--e-global-color-primary,#2f6f4e);
	--jhss-text:var(--e-global-color-text,#1f2937);
	--jhss-radius:30px;
	--jhss-muted:#6b7280;
	--jhss-line:rgba(0,0,0,.12);
	--jhss-hover:#f4f6f5;
	font-family:inherit;
}
@supports (background:color-mix(in srgb,red 10%,white)){
	.jhss-form,.jhss-panel{--jhss-hover:color-mix(in srgb,var(--jhss-accent) 8%,#fff)}
}

/* Search box */
.jhss-form{position:relative;display:flex;align-items:center;gap:4px;width:100%;max-width:520px;margin:0;padding:4px 4px 4px 18px;box-sizing:border-box;background:#fff;border:1px solid var(--jhss-line);border-radius:var(--jhss-radius);transition:border-color .15s,box-shadow .15s}
.jhss-form:focus-within{border-color:var(--jhss-accent);box-shadow:0 0 0 3px rgba(0,0,0,.06)}
@supports (background:color-mix(in srgb,red 10%,white)){
	.jhss-form:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--jhss-accent) 20%,transparent)}
}
.jhss-form .jhss-input{flex:1;min-width:0;height:auto;margin:0;padding:9px 6px 9px 0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font:inherit;font-size:15px;line-height:1.4;color:var(--jhss-text);-webkit-appearance:none;appearance:none}
.jhss-form .jhss-input::placeholder{color:var(--jhss-muted);opacity:1}
.jhss-form .jhss-input::-webkit-search-cancel-button{-webkit-appearance:none}
.jhss-form .jhss-submit{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:max(0px,calc(var(--jhss-radius) - 4px));background:var(--jhss-accent);color:#fff;cursor:pointer;line-height:1;box-shadow:none;transition:filter .15s,transform .15s}
.jhss-form .jhss-submit:hover,.jhss-form .jhss-submit:focus{background:var(--jhss-accent);color:#fff;filter:brightness(1.08)}
.jhss-form .jhss-submit:active{transform:scale(.95)}
.jhss-form .jhss-submit .jhss-icon{display:block;width:20px;height:20px}
.jhss-input.jhss-busy{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.05),transparent)!important;background-size:200% 100%!important;animation:jhss-load 1s linear infinite}
@keyframes jhss-load{from{background-position:200% 0}to{background-position:-200% 0}}

/* Dropdown */
.jhss-panel{position:absolute;z-index:99999;box-sizing:border-box;max-height:70vh;overflow:auto;background:#fff;color:var(--jhss-text);border:1px solid var(--jhss-line);border-radius:14px;box-shadow:0 14px 36px rgba(0,0,0,.14);font-size:14px;line-height:1.4}
.jhss-panel[hidden]{display:none}
.jhss-head{padding:12px 16px 4px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--jhss-muted)}
.jhss-item{display:flex;gap:12px;align-items:center;padding:8px 16px;color:inherit;text-decoration:none;border:0}
.jhss-item:hover,.jhss-item.is-active{background:var(--jhss-hover);color:inherit}
.jhss-thumb{flex:none;width:48px;height:48px;object-fit:cover;border-radius:8px;background:var(--jhss-hover)}
.jhss-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.jhss-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.jhss-price{font-weight:600;color:var(--jhss-accent)}
.jhss-compare{margin-left:6px;font-weight:400;color:var(--jhss-muted)}
.jhss-soldout{font-size:12px;color:#b45309}
.jhss-col .jhss-title{font-weight:500}
.jhss-empty{padding:16px;color:var(--jhss-muted)}
.jhss-all{display:block;padding:13px 16px;margin-top:6px;border-top:1px solid var(--jhss-line);text-align:center;font-weight:600;color:var(--jhss-accent);text-decoration:none}
.jhss-all:hover,.jhss-all.is-active{background:var(--jhss-hover);color:var(--jhss-accent)}

/* Loading state */
.jhss-loading{display:flex;align-items:center;gap:10px;padding:14px 16px 8px;color:var(--jhss-muted);font-weight:500}
.jhss-loading-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jhss-spinner{flex:none;width:16px;height:16px;border:2px solid var(--jhss-line);border-top-color:var(--jhss-accent);border-radius:50%;animation:jhss-spin .7s linear infinite}
@keyframes jhss-spin{to{transform:rotate(360deg)}}
.jhss-skel{display:flex;gap:12px;align-items:center;padding:8px 16px}
.jhss-skel-thumb{flex:none;width:48px;height:48px;border-radius:8px}
.jhss-skel-lines{display:flex;flex-direction:column;gap:8px;flex:1}
.jhss-skel-line{display:block;height:10px;border-radius:5px}
.jhss-skel-line.jhss-short{width:40%}
.jhss-skel-thumb,.jhss-skel-line{background:linear-gradient(90deg,#eceeed 25%,#f6f7f6 50%,#eceeed 75%);background-size:200% 100%;animation:jhss-shimmer 1.2s ease-in-out infinite}
@keyframes jhss-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.jhss-spinner,.jhss-skel-thumb,.jhss-skel-line,.jhss-input.jhss-busy{animation:none}}
