/* Yaazh Smart Search - mic button + voice list panel. Colours follow the YAAZH theme. */
:root { --yzss-red: #e30613; --yzss-yellow: #ffc107; --yzss-ink: #1a1410; --yzss-line: #e6e7ea; }

/* header mic, sits inside form.yz-search next to the round search button */
.yzss-mic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 4px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--yzss-ink); cursor: pointer; }
.yzss-mic:hover, .yzss-mic:focus-visible { background: rgba(0, 0, 0, .07); outline: none; }

/* shopping list page call-to-action */
.yzss-speak { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--yzss-line); border-radius: 14px; background: #fff; }
.yzss-speak-btn { padding: 11px 18px; border: 0; border-radius: 12px; background: var(--yzss-yellow); color: #212529; font: inherit; font-weight: 700; cursor: pointer; }
.yzss-speak span { color: #6c757d; font-size: 14px; }

/* panel */
html.yzss-lock, html.yzss-lock body { overflow: hidden; }
.yzss-overlay { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 12, .55); font-family: inherit; }
.yzss-overlay.is-open { display: flex; }
.yzss-sheet { display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(92vh, 900px); border-radius: 18px; background: #fff; color: #212529; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.yzss-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.yzss-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.yzss-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f3f5; font-size: 22px; line-height: 1; cursor: pointer; }
.yzss-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 18px 12px; }
.yzss-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.yzss-langs button { padding: 7px 14px; border: 1px solid var(--yzss-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.yzss-langs button.is-on { border-color: var(--yzss-ink); background: var(--yzss-ink); color: #fff; }
.yzss-microw { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.yzss-bigmic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: var(--yzss-red); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(227, 6, 19, .35); }
.is-listening .yzss-bigmic { animation: yzss-pulse 1.2s ease-in-out infinite; }
@keyframes yzss-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, .45); } 50% { box-shadow: 0 0 0 14px rgba(227, 6, 19, 0); } }
@media (prefers-reduced-motion: reduce) { .is-listening .yzss-bigmic { animation: none; outline: 4px solid rgba(227, 6, 19, .35); } }
.yzss-status { font-weight: 700; }
.yzss-example { color: #6c757d; font-size: 13px; margin-top: 2px; }
.yzss-interim { min-height: 1.3em; margin: 4px 0 8px; color: #6c757d; font-style: italic; }
.yzss-label { display: block; margin-bottom: 4px; font-size: 13px; color: #495057; }
.yzss-body textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--yzss-line); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; }
.yzss-actions { display: flex; gap: 8px; margin: 10px 0 6px; }
.yzss-find, .yzss-clear { padding: 10px 16px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.yzss-find { background: var(--yzss-ink); color: #fff; }
.yzss-clear { background: #f2f3f5; color: #212529; font-weight: 600; }
.yzss-msg { min-height: 1.2em; margin: 6px 0; font-size: 14px; }
.yzss-msg.is-err { color: var(--yzss-red); }
.yzss-msg a { font-weight: 700; color: inherit; }
.yzss-results h3 { margin: 10px 0 6px; font-size: 15px; }
.yzss-list { margin: 0; padding: 0; list-style: none; }
.yzss-row { display: grid; grid-template-columns: 22px 52px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--yzss-line); }
.yzss-row.is-missing { display: block; }
.yzss-row.is-out .yzss-img, .yzss-row.is-out .yzss-name { opacity: .55; }
.yzss-on { width: 20px; height: 20px; accent-color: var(--yzss-ink); }
.yzss-img { width: 52px; height: 52px; border-radius: 10px; background: #f2f3f5; overflow: hidden; }
.yzss-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yzss-said { font-size: 12px; color: #6c757d; }
.yzss-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.yzss-name a { color: inherit; text-decoration: none; }
.yzss-price { font-size: 14px; }
.yzss-outlbl, .yzss-miss { color: var(--yzss-red); font-weight: 600; }
.yzss-miss a { color: inherit; }
.yzss-alt { max-width: 100%; margin-top: 4px; padding: 4px 6px; border: 1px solid var(--yzss-line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.yzss-qty { display: inline-flex; align-items: center; border: 1px solid var(--yzss-line); border-radius: 999px; }
.yzss-qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.yzss-qty span { min-width: 20px; text-align: center; font-weight: 700; }
.yzss-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--yzss-line); background: #fff; }
.yzss-total { font-weight: 800; }
.yzss-add { padding: 12px 18px; border: 0; border-radius: 12px; background: var(--yzss-red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.yzss-add:disabled { opacity: .45; cursor: default; }

@media (max-width: 640px) {
	.yzss-overlay { align-items: flex-end; }
	.yzss-sheet { max-height: 94vh; border-radius: 18px 18px 0 0; }
	.yzss-row { grid-template-columns: 22px 44px 1fr; }
	.yzss-img { width: 44px; height: 44px; }
	.yzss-qty { grid-column: 3; justify-self: start; }
}
