/* WP EasyCart Site Search: the window and the /search/ page.
   Every rule starts at .ecws or .ecws-page, so the theme's own button and link rules ( Hello Elementor's [type=button]:hover is 0,2,0 )
   never reach it, and nothing here reaches the theme. The colours are the website's ( the Site Kit's --ecw-* ). */
.ecws, .ecws-page {
	--ecws-font: var(--ecw-font, 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif);
	--ecws-ground: #F6F8F3; --ecws-surface: #FFFFFF; --ecws-raise: #FBFCFA; --ecws-ink: #1F2420; --ecws-text: #474C44; --ecws-muted: #5E645A;
	--ecws-line: #E4E7E1; --ecws-line-2: #D5DACF; --ecws-green: #4E7230; --ecws-green-dk: #2E4119; --ecws-tint: #EEF4E6; --ecws-mark: #E2EFC9;
	--ecws-btn: #2E4119; --ecws-btn-fg: #FFFFFF; --ecws-btn-hover: #1F2A17; --ecws-ring: rgba(78, 114, 48, .35);
	--ecws-pro: #1F2420; --ecws-prem-a: #3F5F25; --ecws-prem-b: #4E7230;
	--ecws-shadow: 0 24px 60px rgba(30, 42, 20, .18), 0 2px 8px rgba(30, 42, 20, .06);
}
html.ecws-lock { overflow: hidden; }

/* The theme's buttons, inputs and links start from nothing inside the window. */
.ecws, .ecws *, .ecws *::before, .ecws *::after { box-sizing: border-box; }
.ecws button, .ecws input {
	font: inherit; color: inherit; background: none; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none;
	text-transform: none; letter-spacing: normal; min-height: 0; width: auto; height: auto; line-height: inherit; text-decoration: none; transition: none;
}
/* Hover, focus and pressed: only what a theme changes there. Sizes stay out, or these would outrank each button's own padding,
   height and corners and the button would shrink under the pointer. */
.ecws button:hover, .ecws button:focus, .ecws button:active, .ecws input:focus {
	color: inherit; background: none; box-shadow: none; text-decoration: none; transition: none;
}
.ecws a, .ecws a:hover, .ecws a:focus { text-decoration: none; box-shadow: none; }
.ecws :focus-visible { outline: 3px solid var(--ecws-green); outline-offset: 2px; }
.ecws h3, .ecws h4, .ecws p, .ecws ul, .ecws dl, .ecws dd { margin: 0; padding: 0; }
.ecws kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--ecws-line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--ecws-surface); color: var(--ecws-muted); font: 600 11.5px/1 var(--ecws-font); }
.ecws mark { background: var(--ecws-mark); color: inherit; border-radius: 3px; padding: 0 1px; }

/* The window */
.ecws { width: min(1060px, calc(100vw - 32px)); max-width: none; height: min(680px, calc(100dvh - 48px)); max-height: none; margin: 4vh auto auto; padding: 0;
	border: 1px solid var(--ecws-line); border-radius: 18px; background: var(--ecws-surface); color: var(--ecws-text); box-shadow: var(--ecws-shadow); overflow: hidden;
	font: 400 15px/1.55 var(--ecws-font); -webkit-font-smoothing: antialiased; }
.ecws[open] { display: flex; flex-direction: column; }
.ecws::backdrop { background: rgba(22, 28, 20, .46); backdrop-filter: blur(2px); }
.ecws .ecws-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--ecws-line); flex: 0 0 auto; }
.ecws .ecws-head > svg { width: 22px; height: 22px; color: var(--ecws-green-dk); flex: 0 0 auto; }
.ecws .ecws-in { flex: 1 1 auto; min-width: 0; height: 44px; outline: 0; color: var(--ecws-ink); font: 500 19px/1.2 var(--ecws-font); background: transparent; }
.ecws .ecws-in::placeholder { color: var(--ecws-muted); opacity: 1; }
.ecws .ecws-in::-webkit-search-cancel-button { display: none; }
.ecws .ecws-clear, .ecws .ecws-x { flex: 0 0 auto; color: var(--ecws-muted); cursor: pointer; border-radius: 8px; height: 34px; padding: 0 8px; font: 600 13px/1 var(--ecws-font); display: inline-flex; align-items: center; gap: 6px; }
.ecws .ecws-clear:hover, .ecws .ecws-x:hover, .ecws .ecws-clear:focus-visible, .ecws .ecws-x:focus-visible { background: var(--ecws-tint); color: var(--ecws-ink); }
.ecws .ecws-x-ico { display: none; font-size: 17px; }
.ecws .ecws-filters { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ecws-line); overflow-x: auto; flex: 0 0 auto; scrollbar-width: none; }
.ecws .ecws-filters button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ecws-font); color: var(--ecws-muted); background: var(--ecws-surface); border: 1px solid var(--ecws-line); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.ecws .ecws-filters button:hover { border-color: var(--ecws-green); color: var(--ecws-ink); background: var(--ecws-surface); }
.ecws .ecws-filters button[aria-pressed="true"], .ecws .ecws-filters button[aria-pressed="true"]:hover { background: var(--ecws-ink); border-color: var(--ecws-ink); color: var(--ecws-surface); }
.ecws .ecws-filters button span { font-variant-numeric: tabular-nums; }
.ecws .ecws-filters button[disabled], .ecws .ecws-filters button[disabled]:hover { opacity: .45; cursor: default; border-color: var(--ecws-line); color: var(--ecws-muted); }
.ecws .ecws-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.ecws .ecws-list { overflow-y: auto; padding: 10px 10px 16px; min-width: 0; overscroll-behavior: contain; }
.ecws .ecws-pv { border-left: 1px solid var(--ecws-line); background: var(--ecws-raise); overflow-y: auto; padding: 18px 18px 22px; min-width: 0; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.ecws .ecws-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 16px; border-top: 1px solid var(--ecws-line); font-size: 12.5px; color: var(--ecws-muted); flex: 0 0 auto; background: var(--ecws-raise); }
.ecws .ecws-foot span { display: inline-flex; align-items: center; gap: 5px; }
.ecws .ecws-sp { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Groups and rows */
.ecws .ecws-h { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ecws-muted); padding: 14px 10px 6px; display: flex; align-items: center; gap: 8px; }
.ecws .ecws-lb > .ecws-group:first-child > .ecws-h { padding-top: 4px; }
.ecws .ecws-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ecws .ecws-msg:empty { display: none; }
.ecws .ecws-opt { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.ecws .ecws-opt[aria-selected="true"] { background: var(--ecws-tint); border-color: var(--ecws-ring); }
/* A row: the option, then its extra links for the mouse ( Jump to, the card's buttons ). The whole row lights up. */
.ecws .ecws-row { position: relative; border-radius: 12px; border: 1px solid transparent; }
.ecws .ecws-row.is-active { background: var(--ecws-tint); border-color: var(--ecws-ring); }
.ecws .ecws-row > .ecws-opt, .ecws .ecws-row > .ecws-opt[aria-selected="true"] { background: none; border-color: transparent; }
.ecws .ecws-row.is-active .ecws-ico { background: var(--ecws-surface); }
.ecws .ecws-extra { padding: 0 10px 10px 56px; margin-top: -4px; }
.ecws .ecws-more .ecws-t { color: var(--ecws-green-dk); font-size: 14px; }
.ecws .ecws-more .ecws-ico { background: transparent; border-color: transparent; }
.ecws .ecws-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ecws-raise); border: 1px solid var(--ecws-line); color: var(--ecws-green-dk); flex: 0 0 auto; }
.ecws .ecws-opt[aria-selected="true"] .ecws-ico { background: var(--ecws-surface); }
.ecws .ecws-ico svg { width: 17px; height: 17px; }
.ecws .ecws-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ecws .ecws-t { font-weight: 700; color: var(--ecws-ink); font-size: 15px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ecws .ecws-tt { min-width: 0; }
.ecws .ecws-s { font-size: 12.5px; color: var(--ecws-muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecws .ecws-d { font-size: 13.5px; line-height: 1.5; color: var(--ecws-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecws .ecws-jump { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ecws-muted); align-items: center; }
.ecws .ecws-jump a { color: var(--ecws-green-dk); font-weight: 600; background: var(--ecws-surface); border: 1px solid var(--ecws-line); padding: 3px 8px; border-radius: 999px; }
.ecws .ecws-jump a:hover { border-color: var(--ecws-green); color: var(--ecws-green-dk); }
.ecws .ecws-enter { color: var(--ecws-muted); opacity: 0; font-size: 14px; padding-top: 6px; }
.ecws .ecws-opt[aria-selected="true"] .ecws-enter { opacity: 1; }
.ecws .ecws-row.is-active .ecws-enter { opacity: 1; }
.ecws .ecws-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.ecws .ecws-free { background: var(--ecws-tint); color: var(--ecws-green-dk); box-shadow: inset 0 0 0 1.5px var(--ecws-ring); }
.ecws .ecws-pro { background: var(--ecws-pro); color: #FFFFFF; }
.ecws .ecws-premium { background: linear-gradient(135deg, var(--ecws-prem-a), var(--ecws-prem-b)); color: #FFFFFF; }

/* Best match */
.ecws .ecws-card { display: block; padding: 0; margin: 2px 0 6px; border-radius: 16px; border: 1px solid var(--ecws-line-2); background: radial-gradient(ellipse 70% 120% at 100% 0%, var(--ecws-tint), transparent 62%), var(--ecws-surface); }
.ecws .ecws-card.is-active { border-color: var(--ecws-green); box-shadow: 0 0 0 3px var(--ecws-ring); background: radial-gradient(ellipse 70% 120% at 100% 0%, var(--ecws-tint), transparent 62%), var(--ecws-surface); }
.ecws .ecws-card .ecws-card-opt { display: block; padding: 16px 16px 6px; }
.ecws .ecws-card .ecws-extra { padding: 0 16px 14px; margin: 0; }
.ecws .ecws-card .ecws-t { font-size: 19px; }
.ecws .ecws-card .ecws-d { -webkit-line-clamp: 3; font-size: 14.5px; }
.ecws .ecws-tagline { font-size: 13.5px; color: var(--ecws-green-dk); font-weight: 600; }
.ecws .ecws-best { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ecws-green-dk); }
.ecws .ecws-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: 13.5px; }
.ecws .ecws-card li { display: flex; gap: 7px; align-items: baseline; margin: 0; }
.ecws .ecws-card li::before, .ecws .ecws-ticks li::before { content: "✓"; color: var(--ecws-green); font-weight: 800; }
.ecws .ecws-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ecws .ecws-btns a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 13px; border-radius: 999px; font: 700 13px/1.2 var(--ecws-font); border: 1px solid var(--ecws-line-2); color: var(--ecws-ink); background: var(--ecws-surface); }
.ecws .ecws-btns a:hover { border-color: var(--ecws-green); color: var(--ecws-ink); background: var(--ecws-surface); }
.ecws .ecws-btns a.ecws-pri, .ecws .ecws-btns a.ecws-pri:hover { background: var(--ecws-btn); color: var(--ecws-btn-fg); border-color: var(--ecws-btn); }
.ecws .ecws-btns a.ecws-pri:hover { background: var(--ecws-btn-hover); border-color: var(--ecws-btn-hover); }
.ecws .ecws-qa .ecws-ico { background: var(--ecws-tint); border-color: transparent; }
.ecws .ecws-qa .ecws-d { -webkit-line-clamp: 3; }

/* Empty, loading and nothing found */
/* Before anything is typed: recent and popular searches, Start here */
.ecws .ecws-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 10px; }
.ecws .ecws-chips > .ecws-h, .ecws .ecws-starts > .ecws-h { flex: 0 0 100%; grid-column: 1 / -1; padding-left: 4px; }
.ecws .ecws-opt.ecws-chip { display: inline-flex; grid-template-columns: none; }
.ecws .ecws-opt.ecws-chip[aria-selected="true"] { border-color: var(--ecws-green); background: var(--ecws-tint); box-shadow: 0 0 0 2px var(--ecws-ring); }
.ecws .ecws-chip, .ecws a.ecws-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1.2 var(--ecws-font); color: var(--ecws-ink); background: var(--ecws-surface); border: 1px solid var(--ecws-line-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; text-align: left; }
.ecws .ecws-chip:hover, .ecws a.ecws-chip:hover { border-color: var(--ecws-green); background: var(--ecws-tint); color: var(--ecws-ink); }
.ecws .ecws-chip svg { width: 14px; height: 14px; color: var(--ecws-green); flex: 0 0 auto; }
.ecws .ecws-starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 6px; }
.ecws .ecws-opt.ecws-start { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--ecws-line); border-radius: 12px; color: var(--ecws-text); background: var(--ecws-surface); }
.ecws .ecws-opt.ecws-start[aria-selected="true"], .ecws .ecws-opt.ecws-start:hover { border-color: var(--ecws-green); background: var(--ecws-tint); color: var(--ecws-text); }
.ecws .ecws-start b { display: block; color: var(--ecws-ink); font-size: 14px; }
.ecws .ecws-start small { font-size: 12.5px; color: var(--ecws-muted); line-height: 1.4; }
.ecws .ecws-none, .ecws .ecws-wait { padding: 18px 12px; display: flex; flex-direction: column; gap: 12px; }
.ecws .ecws-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ecws .ecws-none p, .ecws .ecws-wait p { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ecws .ecws-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ecws-line-2); border-top-color: var(--ecws-green); animation: ecws-spin .8s linear infinite; }
@keyframes ecws-spin { to { transform: rotate(360deg); } }

/* Preview */
.ecws .ecws-pv-s { font-size: 12.5px; color: var(--ecws-muted); }
.ecws .ecws-pv h3 { font: 700 19px/1.3 var(--ecws-font); color: var(--ecws-ink); letter-spacing: -.01em; }
.ecws .ecws-pv-d { font-size: 14px; line-height: 1.6; }
.ecws .ecws-pv-chip { color: var(--ecws-green-dk); font-weight: 600; }
.ecws .ecws-pv h4 { font: 800 11.5px/1.4 var(--ecws-font); letter-spacing: .09em; text-transform: uppercase; color: var(--ecws-muted); margin-top: 4px; }
.ecws .ecws-pv ul { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.45; }
.ecws .ecws-pv li { margin: 0; }
.ecws .ecws-ticks li { display: flex; gap: 7px; }
.ecws .ecws-toc a { color: var(--ecws-ink); display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.ecws .ecws-toc a::before { content: "#"; color: var(--ecws-green); font-weight: 700; }
.ecws .ecws-toc a:hover { color: var(--ecws-green-dk); text-decoration: underline; }
.ecws .ecws-tiers { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ecws .ecws-tier { border: 1px solid var(--ecws-line); border-radius: 12px; padding: 10px 12px; background: var(--ecws-surface); display: flex; flex-direction: column; gap: 5px; }
.ecws .ecws-tier b { font-size: 13.5px; color: var(--ecws-ink); display: flex; align-items: center; gap: 8px; }
.ecws .ecws-tier ul { font-size: 12.5px; }
.ecws .ecws-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.ecws .ecws-facts dt { color: var(--ecws-muted); }
.ecws .ecws-facts dd { color: var(--ecws-ink); }
.ecws .ecws-pv-empty { margin: auto 0; color: var(--ecws-muted); font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.ecws .ecws-pv-empty div { display: flex; gap: 8px; align-items: center; color: var(--ecws-ink); }
.ecws .ecws-pv-empty svg { width: 18px; height: 18px; color: var(--ecws-green); }

/* Narrow screens: no preview; phones: the whole screen */
@media (max-width: 960px) {
	.ecws .ecws-body { grid-template-columns: minmax(0, 1fr); }
	.ecws .ecws-pv { display: none; }
}
@media (max-width: 640px) {
	.ecws { width: 100vw; height: 100%; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
	.ecws .ecws-head { padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 14px; }
	.ecws .ecws-in { font-size: 17px; }
	.ecws .ecws-x kbd { display: none; }
	.ecws .ecws-x-ico { display: inline; }
	.ecws .ecws-x { width: 40px; height: 40px; justify-content: center; }
	.ecws .ecws-foot .ecws-k { display: none; }
	.ecws .ecws-starts { grid-template-columns: 1fr; }
	.ecws .ecws-card .ecws-t { font-size: 17px; }
}
@media (hover: none) {
	.ecws .ecws-foot .ecws-k { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.ecws[open] { animation: ecws-in .16s ease-out; }
	@keyframes ecws-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) {
	.ecws .ecws-opt[aria-selected="true"], .ecws .ecws-row.is-active { outline: 2px solid Highlight; }
}

/* The /search/ page */
.ecws-page { background: var(--ecws-ground); padding: 64px 16px 88px; font-family: var(--ecws-font); }
.ecws-page .ecws-page-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ecws-page .ecws-page-title { font: 800 clamp(30px, 5vw, 44px)/1.15 var(--ecws-font); color: var(--ecws-ink); letter-spacing: -.02em; margin: 0; }
.ecws-page .ecws-page-lead { font-size: 17px; color: var(--ecws-text); margin: 0; }
.ecws-page .ecws-page-form { display: flex; gap: 8px; margin-top: 8px; }
.ecws-page .ecws-page-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ecws-page .ecws-page-q { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--ecws-line-2); border-radius: 12px; background: var(--ecws-surface); color: var(--ecws-ink); font: 500 17px/1.2 var(--ecws-font); }
.ecws-page .ecws-page-q:focus { outline: 3px solid var(--ecws-ring); border-color: var(--ecws-green); }
.ecws-page .ecws-page-go, .ecws-page .ecws-page-go:hover, .ecws-page .ecws-page-go:focus { height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ecws-btn); color: var(--ecws-btn-fg); font: 700 15px/1 var(--ecws-font); cursor: pointer; }
.ecws-page .ecws-page-go:hover { background: var(--ecws-btn-hover); }
