/* Coveti Fashion Agent — widget styles (loaded inside the shadow root). */

:host { all: initial; }

.cais, .cais * { box-sizing: border-box; }
.cais {
	--accent: var(--cais-accent, #1a1712);
	/* ── Official Coveti brand palette (Brand Manual 2016) ── */
	--gold: #BC964E;           /* primary gold */
	--gold-light: #F9CC82;     /* light gold */
	--gold-soft: #AD9E67;      /* muted gold */
	--wine: #780926;           /* secondary burgundy */
	--olive: #4C4F3E;          /* secondary olive */
	--bg: #ffffff;
	--panel: #faf8f4;          /* warm off-white canvas */
	--ink: #1a1712;            /* warm near-black */
	--muted: #8a8275;          /* warm grey */
	--line: #ece7df;           /* warm hairline */
	--chip: #f2eee7;           /* soft chip fill */
	--radius: 24px;
	--card-radius: 18px;
	--shadow: 0 30px 80px -28px rgba(40,33,20,.32);
	--serif: "Hoefler Text", Garamond, Georgia, "Times New Roman", serif;
	font-family: var(--cais-font, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- launcher ---------- */
.cais.mode-floating { position: fixed; bottom: 22px; z-index: 2147483000; }
.cais.pos-right { right: 22px; }
.cais.pos-left  { left: 22px; }

.cais-launcher {
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--accent); color: #fff; border: 0;
	padding: 14px 24px; border-radius: 999px; cursor: pointer;
	font-size: 14px; font-weight: 600; letter-spacing: .3px;
	box-shadow: 0 12px 36px -10px rgba(40,33,20,.5);
	transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease;
}
.cais-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -10px rgba(40,33,20,.55); }
.cais-spark { font-size: 15px; opacity: .92; color: var(--gold, #BC964E); }
.cais.is-open .cais-launcher { transform: scale(.9); opacity: 0; pointer-events: none; }

/* ---------- panel ---------- */
.cais-panel {
	display: none; flex-direction: column; background: var(--bg);
	width: 424px; max-width: calc(100vw - 32px);
	height: 660px; max-height: calc(100vh - 104px);
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); border: 1px solid var(--line);
}
.cais.mode-floating .cais-panel { position: fixed; bottom: 22px; }
.cais.mode-floating.pos-right .cais-panel { right: 22px; }
.cais.mode-floating.pos-left  .cais-panel { left: 22px; }
.cais.is-open .cais-panel { display: flex; animation: cais-in .22s ease; }
.cais.mode-inline .cais-panel { display: flex; position: relative; width: 100%; height: 600px; }
.cais.intent-cart .cais-panel { height: auto; max-height: 560px; }

/* ---------- full-page (daydream-style) experience ---------- */
.cais.mode-page { display: block; width: 100%; }
.cais.mode-page .cais-page {
	display: flex; flex-direction: column;
	width: 100%; max-width: 1120px; margin: 0 auto;
	height: min(88vh, 940px);
	background: radial-gradient(130% 70% at 50% 0%, #fffdf9, var(--panel) 70%);
}
.cais.mode-page .cais-head { border-bottom: 0; padding: 18px 12px 8px; background: transparent; }
.cais.mode-page .cais-title { font-size: 17px; }

/* hero (initial state) — hero + composer are centered together as a cluster */
.cais-hero { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px 10px; gap: 6px; animation: cais-rise .4s ease; }
.cais.mode-page:not(.is-chatting) .cais-hero { margin-top: auto; }
.cais.mode-page:not(.is-chatting) .cais-compose { margin-bottom: auto; }
.cais-hero-mark { font-family: var(--cais-serif, var(--serif)); color: var(--muted); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.cais-hero-title { font-family: var(--cais-serif, var(--serif)); font-weight: 500; font-size: clamp(30px, 5.5vw, 60px); line-height: 1.04; margin: 8px 0 4px; max-width: 18ch; color: var(--ink); }
.cais-hero-sub { color: var(--muted); font-size: 15px; max-width: 46ch; margin: 0; }

/* conversation (after first message) */
.cais.mode-page .cais-log { background: transparent; display: none; padding: 8px 16px 4px; }
.cais.mode-page.is-chatting .cais-hero { display: none; }
.cais.mode-page.is-chatting .cais-log { display: flex; flex: 1; overflow-y: auto; }

/* composer — centered, large; pinned to bottom while chatting */
.cais.mode-page .cais-compose { border-top: 0; background: transparent; padding: 6px 16px 22px; }
.cais.mode-page .cais-chips { justify-content: center; max-width: 760px; margin: 0 auto 10px; }
.cais.mode-page .cais-form { max-width: 760px; margin: 0 auto; width: 100%; }
.cais.mode-page .cais-input { padding: 16px 22px; font-size: 16px; border-radius: 999px; background: #fff;
	box-shadow: 0 14px 40px -20px rgba(40,33,20,.45); }
.cais.mode-page .cais-send { width: 48px; height: 48px; font-size: 19px; }

/* wider editorial gallery + roomier bubbles in page mode */
.cais.mode-page .cais-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cais.mode-page .cais-bubble { max-width: 760px; font-size: 15.5px; }
.cais.mode-page .cais-cards-msg { width: 100%; }

/* ---------- editorial refinement (page) — less "chat", more magazine ---------- */
/* Assistant replies become borderless, typographic text (no bubble) */
.cais.mode-page .cais-msg.assistant .cais-bubble {
	border: 0; background: transparent; box-shadow: none; border-radius: 0;
	padding: 2px 2px; max-width: 760px; font-size: 16.5px; line-height: 1.65; color: var(--ink);
}
.cais.mode-page .cais-msg.user { justify-content: flex-end; }
.cais.mode-page .cais-msg.user .cais-bubble {
	background: var(--chip); color: var(--ink); border: 0; border-radius: 16px;
	padding: 10px 16px; font-size: 14.5px; max-width: 78%; box-shadow: none;
}
.cais-hero-title { font-weight: 400; letter-spacing: -.015em; }

/* Borderless, editorial product cards */
.cais.mode-page .cais-card { border: 0; background: transparent; border-radius: 0; }
.cais.mode-page .cais-card:hover { transform: none; box-shadow: none; }
.cais.mode-page .cais-card-img { border-radius: 14px; }
.cais.mode-page .cais-card-body { padding: 12px 2px 6px; gap: 4px; }
.cais.mode-page .cais-card-title { font-size: 14px; }
.cais.mode-page .cais-brand { letter-spacing: 1.4px; }
.cais.mode-page .cais-card-foot { margin-top: 8px; }

/* Reveal actions on hover (desktop); always visible on touch */
.cais.mode-page .cais-card-actions,
.cais.mode-page .cais-morelike { opacity: 0; transform: translateY(5px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.cais.mode-page .cais-card:hover .cais-card-actions,
.cais.mode-page .cais-card:hover .cais-morelike { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .cais.mode-page .cais-card-actions,
.cais.mode-page .cais-morelike { opacity: 1; transform: none; pointer-events: auto; } }

/* Quiet, outlined chips */
.cais.mode-page .cais-chip { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 10px 17px; font-size: 13px; }
.cais.mode-page .cais-chip:hover { background: var(--chip); border-color: transparent; transform: translateY(-1px); }
.cais.mode-page .cais-chip.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Roomier gallery */
.cais.mode-page .cais-grid { gap: 22px 18px; }
@media (max-width: 600px) {
	.cais.mode-page .cais-page { height: auto; min-height: 80vh; }
	.cais.mode-page .cais-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- slide-in cart drawer ---------- */
.cais.mode-drawer { position: fixed; top: 0; bottom: 0; z-index: 2147483000; pointer-events: none; }
.cais.mode-drawer.pos-right { right: 0; }
.cais.mode-drawer.pos-left { left: 0; }
.cais.mode-drawer .cais-panel {
	display: flex; position: fixed; top: 0; bottom: 0; height: 100vh; max-height: 100vh;
	width: 420px; max-width: 92vw; border-radius: 0; pointer-events: auto;
	box-shadow: -18px 0 60px rgba(0,0,0,.22);
	transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.cais.mode-drawer.pos-right .cais-panel { right: 0; transform: translateX(112%); }
.cais.mode-drawer.pos-left .cais-panel { left: 0; box-shadow: 18px 0 60px rgba(0,0,0,.22); transform: translateX(-112%); }
.cais.mode-drawer.is-open .cais-panel { transform: translateX(0); animation: none; }
.cais.mode-drawer .cais-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cais.mode-drawer.is-open .cais-backdrop { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cais.mode-drawer .cais-panel, .cais.mode-drawer .cais-backdrop { transition: none; } }

/* draggable collection chips (touch + mouse) */
.cais-coll-chip { cursor: grab; touch-action: none; display: inline-flex; align-items: center; gap: 6px; padding-left: 6px; }
.cais-coll-chip:active { cursor: grabbing; }
.cais-coll-chip.dragging { opacity: .45; }
.cais-coll-cover { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; flex: 0 0 auto; }
.cais-coll-name { line-height: 1; }

/* RTL languages */
.cais[dir="rtl"] .cais-input { text-align: right; }
.cais[dir="rtl"] .cais-msg.user { justify-content: flex-start; }
.cais[dir="rtl"] .cais-msg.assistant { justify-content: flex-end; }
@keyframes cais-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cais-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 18px 14px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.cais-title { font-family: var(--cais-serif, var(--serif)); font-weight: 500; font-size: 20px; letter-spacing: .2px; display: flex; align-items: center; gap: 9px; }
.cais-title .cais-spark { color: var(--gold, #BC964E); font-size: 16px; }
.cais-head-actions { display: flex; gap: 2px; }
.cais-icon {
	border: 0; background: transparent; cursor: pointer; font-size: 16px;
	width: 36px; height: 36px; border-radius: 50%; color: var(--muted);
	transition: background .15s ease, color .15s ease;
}
.cais-icon:hover { background: var(--chip); color: var(--ink); }

/* ---------- log / messages ---------- */
.cais-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth;
	background: radial-gradient(120% 60% at 100% 0%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%), var(--panel); }
.cais-msg { display: flex; animation: cais-rise .26s cubic-bezier(.22,.61,.36,1); }
@keyframes cais-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cais-msg.user { justify-content: flex-end; }
.cais-bubble {
	max-width: 86%; padding: 12px 16px; border-radius: 18px;
	background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word;
	box-shadow: 0 1px 2px rgba(40,33,20,.03);
}
.cais-msg.assistant .cais-bubble { border-bottom-left-radius: 6px; }
.cais-msg.user .cais-bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-right-radius: 6px; box-shadow: none; }
.cais-cards-msg { display: block; }

.cais-typing { display: inline-flex; gap: 4px; align-items: center; }
.cais-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: cais-blink 1.2s infinite both; }
.cais-dot:nth-child(2) { animation-delay: .2s; }
.cais-dot:nth-child(3) { animation-delay: .4s; }
@keyframes cais-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- product grid ---------- */
.cais-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.cais-card { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease; }
.cais-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(40,33,20,.4); }
.cais-card-img { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--chip); }
.cais-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.cais-card:hover .cais-card-img img { transform: scale(1.05); }
.cais-badge { position: absolute; top: 10px; left: 10px; background: rgba(26,23,18,.92); color: #fff; font-size: 9.5px; padding: 4px 9px; border-radius: 999px; letter-spacing: .8px; text-transform: uppercase; backdrop-filter: blur(4px); }
.cais-card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.cais-brand { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cais-why { font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.cais-card-title { font-size: 13.5px; color: var(--ink); text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cais-card-title:hover { color: var(--muted); }
.cais-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cais-price { font-size: 13px; }
.cais-price .cais-now { font-weight: 700; }
.cais-price .cais-was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; font-size: 12px; }
.cais-save { border: 0; background: transparent; cursor: pointer; font-size: 17px; color: var(--accent); line-height: 1; }
.cais-save.is-saved { color: #b00020; }

.cais-badge.oos { background: #444; left: auto; right: 8px; }
.cais-badge.sale { left: auto; right: 8px; background: #7a1f2b; }
.cais-badge.blind { background: rgba(26,23,18,.86); color: var(--gold-light, #F9CC82); letter-spacing: 1px; }
.cais-scarce { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--wine, #780926); font-weight: 700; margin-bottom: 1px; }
.cais-insize { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: var(--olive, #4C4F3E); background: rgba(76,79,62,.12); border-radius: 2px; padding: 2px 7px; font-weight: 700; margin-bottom: 3px; align-self: flex-start; }
.cais-similar-card .cais-insize { display: inline-flex; margin: 6px 0 2px; }
/* inline similar cards carry badges too */
.cais-similar-imgwrap { position: relative; }
.cais-similar-imgwrap .cais-badge { font-size: 9px; padding: 3px 8px; }
.cais-similar-card .cais-scarce { display: block; margin: 8px 0 2px; }
/* allocation hold countdown in the sticky cart bar */
.cais-cart-toast-hold { font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .3px; white-space: nowrap; }

/* ---------- card actions: add to cart + complete the look ---------- */
.cais-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.cais-add {
	flex: 1; border: 1px solid var(--accent); background: var(--accent); color: #fff;
	border-radius: 11px; padding: 9px 10px; font-size: 12px; font-weight: 600; letter-spacing: .2px; cursor: pointer;
	text-align: center; text-decoration: none; line-height: 1.3; transition: opacity .15s ease, transform .15s ease;
}
.cais-add:hover { opacity: .92; transform: translateY(-1px); }
.cais-add:disabled { opacity: .6; cursor: default; }
.cais-add.done { background: #137333; border-color: #137333; }
.cais-look {
	flex: 0 0 auto; width: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink);
	border-radius: 11px; cursor: pointer; font-size: 14px; line-height: 1; transition: background .15s ease;
}
.cais-look:hover { background: var(--chip); }
.cais-look.busy { opacity: .5; pointer-events: none; }
.cais-tryon { flex: 0 0 auto; width: 38px; border: 1px solid var(--line); background: #fff; border-radius: 11px; cursor: pointer; font-size: 14px; line-height: 1; transition: background .15s ease; }
.cais-tryon:hover { background: var(--chip); }

/* per-card "More like this" — full-width ghost row under the actions */
.cais-morelike {
	width: 100%; margin-top: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink);
	border-radius: 11px; padding: 9px 10px; font-size: 12px; font-weight: 600; letter-spacing: .2px;
	cursor: pointer; line-height: 1.3; text-align: center; font-family: inherit;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cais-morelike:hover { background: var(--chip); border-color: transparent; transform: translateY(-1px); }
.cais-morelike:active { transform: none; }

/* virtual try-on */
.cais-tryon-loading { position: relative; }
.cais-tryon-loading::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: cais-spin .8s linear infinite; vertical-align: middle; }
@keyframes cais-spin { to { transform: rotate(360deg); } }
.cais-tryon-result img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px; background: #f6f6f6; display: block; }
.cais-tryon-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.cais-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cais-gallery-thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #f2f2f2; aspect-ratio: 3/4; }
.cais-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cais-gallery-thumb:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cais-tryon-loading::after { animation: none; } }

.cais-sizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.cais-sizes-load { font-size: 11.5px; color: var(--muted); }
.cais-size {
	border: 1px solid var(--line); background: #fff; color: var(--ink);
	border-radius: 7px; padding: 5px 9px; font-size: 11.5px; cursor: pointer;
}
.cais-size:hover { border-color: var(--accent); }
.cais-size-link { text-decoration: none; }
.cais-size.rec { border-color: var(--accent); font-weight: 700; }
.cais-size.oos { color: var(--muted); text-decoration: line-through; border-style: dashed; }

/* returns & exchanges */
.cais-return-order { width: 100%; max-width: 100%; }
.cais-return-head { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.cais-return-item { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.cais-return-name { flex: 1; font-size: 12.5px; line-height: 1.3; }
.cais-return-act { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; padding: 4px 9px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.cais-return-act:hover { border-color: var(--accent); }
.cais-size.oos:hover { color: var(--accent); border-color: var(--accent); }
.cais-add.notify { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.cais-add.notify:hover { background: #f4f4f4; opacity: 1; }

/* ---------- restock notify form ---------- */
.cais-notify { margin-top: 7px; }
.cais-notify-form { display: flex; gap: 5px; }
.cais-notify-input {
	flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
	padding: 7px 10px; font-size: 12px; outline: none;
}
.cais-notify-input:focus { border-color: var(--accent); }
.cais-notify-send {
	border: 0; background: var(--accent); color: #fff; border-radius: 8px;
	padding: 7px 11px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cais-notify-done { font-size: 12px; color: #137333; font-weight: 600; }

/* ---------- outfit ---------- */
.cais-outfit-label {
	font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
	margin: 12px 0 6px; font-weight: 700;
}
.cais-outfit-label:first-child { margin-top: 2px; }
.cais-lookbook-copy { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0 0 8px; line-height: 1.4; }

/* ---------- toast ---------- */
.cais-toast {
	position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(12px);
	background: var(--accent); color: #fff; padding: 13px 20px; border-radius: 999px;
	font-size: 13px; display: flex; align-items: center; gap: 14px; z-index: 2147483600;
	box-shadow: 0 16px 40px -12px rgba(40,33,20,.5); opacity: 0; transition: opacity .25s ease, transform .25s ease;
	max-width: calc(100vw - 32px);
}
.cais-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cais-toast-link { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ---------- chips ---------- */
.cais-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 10px; }
.cais-chip {
	border: 1px solid transparent; background: var(--chip); color: var(--ink);
	padding: 9px 15px; border-radius: 999px; font-size: 12.5px; cursor: pointer; line-height: 1.1;
	white-space: nowrap; max-width: 100%;
	transition: background .15s ease, transform .15s ease, color .15s ease;
}
.cais-chip:hover { background: #e9e2d6; transform: translateY(-1px); }
.cais-chip.sel { border-color: var(--accent); background: var(--accent); color: #fff; }
.cais-chip.primary { background: var(--accent); color: #fff; }
.cais-chip.primary:hover { background: var(--accent); opacity: .9; }

/* ---------- compose ---------- */
.cais-compose { border-top: 1px solid var(--line); background: var(--bg); padding-top: 8px; }
.cais-form { display: flex; align-items: center; gap: 6px; padding: 10px 14px 14px; }
.cais-input {
	flex: 1; border: 1px solid var(--line); border-radius: 999px;
	padding: 13px 18px; font-size: 14px; outline: none; color: var(--ink); background: var(--panel);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cais-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(26,23,18,.06); }
.cais-mic-btn.listening { color: #c5221f; animation: cais-pulse 1.1s ease-in-out infinite; }
@keyframes cais-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .cais-mic-btn.listening { animation: none; } }

.cais-send {
	border: 0; background: var(--accent); color: #fff; width: 44px; height: 44px;
	border-radius: 50%; cursor: pointer; font-size: 18px; flex: 0 0 auto;
	transition: transform .15s ease, opacity .15s ease;
}
.cais-send:hover { opacity: .92; transform: scale(1.05); }

@media (max-width: 480px) {
	.cais.mode-floating .cais-panel { width: 100vw; height: 100vh; max-height: 100vh; bottom: 0; right: 0; left: 0; border-radius: 0; }
	.cais.mode-floating { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.cais-launcher, .cais-card-img img, .cais.is-open .cais-panel { transition: none; animation: none; }
}

/* ---------- line icons (replace emoji) ---------- */
.cais-icon { display: inline-flex; align-items: center; justify-content: center; }
.cais-icon svg { width: 18px; height: 18px; display: block; }
.cais-save { display: inline-flex; align-items: center; justify-content: center; }
.cais-save svg { width: 18px; height: 18px; display: block; }
.cais-save.is-saved { color: #b00020; }
.cais-save.is-saved svg { fill: currentColor; }
.cais-tryon { display: inline-flex; align-items: center; justify-content: center; }
.cais-tryon svg { width: 17px; height: 17px; }
.cais-look { display: inline-flex; align-items: center; justify-content: center; }
.cais-send { display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.cais-send svg { width: 19px; height: 19px; stroke: #fff; }
.cais-img-btn svg, .cais-mic-btn svg { width: 19px; height: 19px; }

/* ── Store-wide embeds (product pages + category/shop archives) ── */
.cais-embed { display: block; clear: both; }
.cais-embed-product { margin: 30px 0 8px; border-top: 1px solid #ece7df; padding-top: 22px; }
.cais-embed-category { margin: 34px 0 6px; border-top: 1px solid #ece7df; padding-top: 22px; }
.cais-embed-category .cais-ssr { margin: 0 !important; }
.cais-embed-category .cais-ssr-heading { font-family: 'Fraunces', Garamond, Georgia, serif; font-weight: 500; }

/* ── Archive loop-card buttons (light DOM, page-side) ── */
/* Refined, slim actions — overrides themes (e.g. WoodMart) that uppercase/bold/pad all buttons */
.cais-loop-actions { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; width: 100%; clear: both; }
.cais-loop-btn {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	width: 100% !important; min-width: 0; flex: none !important; cursor: pointer;
	font-family: inherit !important; font-size: 10.5px !important; font-weight: 500 !important;
	letter-spacing: .5px !important; text-transform: none !important; line-height: 1.25 !important;
	padding: 8px 11px !important; min-height: 0 !important; height: auto !important;
	border-radius: 0 !important; border: 1px solid #e2ddd3 !important;
	background: #fff !important; color: #1a1712 !important; text-align: center; white-space: nowrap;
	box-shadow: none !important; text-shadow: none !important; text-decoration: none !important;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cais-loop-btn:hover,
.cais-loop-btn:focus-visible { background: #1a1712 !important; border-color: #1a1712 !important; color: #fff !important; outline: none; transform: none !important; }
.cais-loop-btn.cais-loop-busy { opacity: .5; pointer-events: none; }
/* "Add to cart" is the primary, filled action */
.cais-loop-cart { background: #1a1712 !important; border-color: #1a1712 !important; color: #fff !important; font-weight: 600 !important; }
.cais-loop-cart:hover,
.cais-loop-cart:focus-visible { background: #000 !important; border-color: #000 !important; color: #fff !important; }
.cais-loop-cart.cais-added { background: #137333 !important; border-color: #137333 !important; color: #fff !important; pointer-events: none; }
.cais-loop-oos { background: #f3efe8 !important; border-color: #e2ddd3 !important; color: #8a8275 !important; }
.cais-loop-oos:hover { background: #ece7df !important; color: #1a1712 !important; }
/* Inline size picker for variable products (mirrors the widget chips) */
.cais-similar-sizes { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 2px 0 0; }
.cais-similar-sizes-load { font-size: 11px; color: #8a8275; letter-spacing: .3px; }
.cais-similar-sizelink { font-size: 12px; color: #1a1712; text-decoration: underline; text-underline-offset: 3px; }
.cais-similar-size {
	appearance: none !important; -webkit-appearance: none !important; cursor: pointer;
	font-family: inherit !important; font-size: 11px !important; font-weight: 500 !important;
	letter-spacing: .3px !important; text-transform: none !important; line-height: 1 !important;
	padding: 7px 10px !important; min-height: 0 !important; height: auto !important; min-width: 34px;
	border: 1px solid #e2ddd3 !important; border-radius: 0 !important;
	background: #fff !important; color: #1a1712 !important; box-shadow: none !important; text-shadow: none !important;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cais-similar-size:hover { background: #1a1712 !important; border-color: #1a1712 !important; color: #fff !important; }
.cais-similar-size.rec { border-color: #1a1712 !important; font-weight: 600 !important; }
.cais-similar-size.oos { opacity: .4 !important; text-decoration: line-through; cursor: default; pointer-events: none; }

/* "Try it on" reads as the quieter, secondary action */
.cais-loop-tryon { border-color: transparent !important; color: #8a8275 !important; letter-spacing: .8px !important; }
.cais-loop-tryon:hover,
.cais-loop-tryon:focus-visible { background: transparent !important; border-color: transparent !important; color: #1a1712 !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Inline "More like this" results panel — expands right on the category page */
.cais-similar-panel {
	grid-column: 1 / -1 !important; flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important;
	float: none !important; clear: both !important; box-sizing: border-box; list-style: none !important;
	margin: 14px 0 22px; padding: 20px 20px 22px; border-radius: 14px;
	background: #faf8f4; border: 1px solid #ece7df;
	font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	animation: cais-similar-in .28s ease;
}
@keyframes cais-similar-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cais-similar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.cais-similar-eyebrow {
	font-family: 'Fraunces', Garamond, Georgia, 'Times New Roman', serif;
	font-size: 16px; font-weight: 500; color: #1a1712; letter-spacing: .2px;
}
.cais-similar-close {
	appearance: none; -webkit-appearance: none; cursor: pointer; border: 0; background: none;
	font-size: 24px; line-height: 1; color: #8a8275; padding: 0 4px; transition: color .15s ease;
}
.cais-similar-close:hover { color: #1a1712; }
.cais-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; }
.cais-similar-card { display: flex; flex-direction: column; }
.cais-similar-link { display: block; text-decoration: none; color: inherit; }
.cais-similar-imgwrap { display: block; overflow: hidden; border-radius: 10px; background: #f2f2f2; }
.cais-similar-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .4s ease; }
.cais-similar-card:hover img { transform: scale(1.04); }
.cais-similar-card .cais-loop-actions { margin-top: auto; padding-top: 8px; }
.cais-similar-brand { display: block; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #8a8275; margin-top: 8px; }
.cais-similar-title { display: block; font-size: 13px; line-height: 1.35; margin-top: 2px; color: #1a1712; }
.cais-similar-price { display: block; font-weight: 700; font-size: 13px; margin-top: 4px; color: #1a1712; }
.cais-similar-price .cais-was { color: #999; font-weight: 400; text-decoration: line-through; margin-right: 6px; }
.cais-similar-empty { font-size: 14px; color: #8a8275; margin: 4px 0; }
.cais-similar-loading { display: flex; gap: 6px; padding: 8px 0; }
.cais-similar-loading span { width: 8px; height: 8px; border-radius: 50%; background: #cfc8bd; animation: cais-similar-dot 1s infinite ease-in-out; }
.cais-similar-loading span:nth-child(2) { animation-delay: .15s; }
.cais-similar-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes cais-similar-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ── WoodMart theme compatibility ── */
/* Keep our buttons visible & in normal flow inside WoodMart cards (they live in
   .product-wrapper, not the hover overlay). */
.wd-product .cais-loop-actions,
ul.products li.product .cais-loop-actions { width: 100%; position: static; opacity: 1; visibility: visible; }
.cais-loop-actions { z-index: 2; position: relative; }
/* The inline similar panel must span all of WoodMart's flex/grid product columns. */
.products .cais-similar-panel,
ul.products .cais-similar-panel,
.wd-products .cais-similar-panel {
	grid-column: 1 / -1 !important; flex: 0 0 100% !important; width: 100% !important;
	max-width: 100% !important; min-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
}
/* WoodMart equalises card heights with min-height — exempt our panel. */
.cais-similar-panel { min-height: 0 !important; }

/* ── Compact full-width "bar" variant (inline search composer) ── */
/* Stays slim until the shopper searches; never reserves empty vertical space. */
.cais.mode-inline.variant-bar { width: 100%; }
.cais.mode-inline.variant-bar .cais-panel {
	height: auto !important; max-height: none !important; width: 100%;
	border: 0; box-shadow: none; background: transparent; border-radius: 0;
}
.cais.mode-inline.variant-bar .cais-head { display: none; }
.cais.mode-inline.variant-bar .cais-bar-title {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--cais-serif, var(--serif)); font-weight: 500;
	font-size: 18px; letter-spacing: .2px; color: var(--ink);
	padding: 16px 18px 0;
}
.cais.mode-inline.variant-bar .cais-bar-title .cais-spark { color: var(--gold, #BC964E); font-size: 16px; }
.cais.mode-inline.variant-bar .cais-log {
	flex: 0 1 auto; background: transparent; padding: 14px 16px 2px; max-height: 64vh; overflow-y: auto;
}
/* Collapse the results area entirely while empty so only the search bar shows. */
.cais.mode-inline.variant-bar .cais-log:empty { display: none; padding: 0; }
.cais.mode-inline.variant-bar .cais-compose { border-top: 0; padding: 14px 16px; }
.cais.mode-inline.variant-bar .cais-input { font-size: 15px; }

/* ── Style Passport quiz ([coveti_style_quiz] / view="quiz") ── */
.cais.mode-quiz { display: block; width: 100%; }
.cais-quiz-stage {
	width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 20px 40px;
	min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cais-quiz-prog { width: 100%; max-width: 520px; height: 3px; background: #ece7df; border-radius: 999px; overflow: hidden; }
.cais-quiz-prog-bar { height: 100%; background: var(--cais-accent, #1a1712); border-radius: 999px; transition: width .4s cubic-bezier(.22,.61,.36,1); }
.cais-quiz-count { margin: 10px 0 18px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #8a8275; }
.cais-quiz-card {
	width: 100%; max-width: 560px; text-align: center; animation: cais-quiz-in .35s ease;
	font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@keyframes cais-quiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cais-quiz-mark { font-family: 'Fraunces', Garamond, Georgia, serif; font-size: 30px; color: var(--cais-accent, #1a1712); margin-bottom: 6px; }
.cais-quiz-q { font-family: 'Fraunces', Garamond, Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 24px; line-height: 1.18; color: #1a1712; margin: 0 0 6px; }
.cais-quiz-q-lg { font-size: clamp(28px, 4.5vw, 40px); }
.cais-quiz-sub { color: #8a8275; font-size: 15px; line-height: 1.5; margin: 0 auto 24px; max-width: 42ch; }

.cais-quiz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 auto 8px; }
.cais-quiz-opt {
	cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: #1a1712;
	padding: 15px 14px; background: #fff; border: 1px solid #e2ddd3; border-radius: 0;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.cais-quiz-opt:hover { border-color: #1a1712; transform: translateY(-1px); }
.cais-quiz-opt.sel { background: #1a1712; border-color: #1a1712; color: #fff; }

.cais-quiz-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 auto 8px; }
.cais-quiz-swatch {
	display: flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: #1a1712;
	padding: 12px 14px; background: #fff; border: 1px solid #e2ddd3; border-radius: 0; text-align: left;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.cais-quiz-swatch:hover { border-color: #1a1712; transform: translateY(-1px); }
.cais-quiz-swatch.sel { border-color: #1a1712; box-shadow: inset 0 0 0 1px #1a1712; }
.cais-quiz-dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.cais-quiz-fields { display: flex; flex-direction: column; gap: 14px; max-width: 380px; margin: 0 auto 8px; text-align: left; }
.cais-quiz-field span { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #8a8275; margin-bottom: 6px; }
.cais-quiz-input { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #e2ddd3; border-radius: 0; background: #fff; color: #1a1712; }
.cais-quiz-input:focus { outline: none; border-color: #1a1712; }

.cais-quiz-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.cais-quiz-cta {
	cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .6px;
	color: #fff; background: #1a1712; border: 1px solid #1a1712; border-radius: 0; padding: 14px 34px;
	transition: background .15s ease, transform .15s ease;
}
.cais-quiz-cta:hover { background: #000; transform: translateY(-1px); }
.cais-quiz-back, .cais-quiz-skip {
	cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: #8a8275;
	background: none; border: 0; padding: 10px 8px; transition: color .15s ease;
}
.cais-quiz-back:hover, .cais-quiz-skip:hover { color: #1a1712; }

.cais-quiz-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px auto 22px; max-width: 460px; }
.cais-quiz-tag { font-size: 12px; letter-spacing: .4px; color: #1a1712; background: #f3efe8; border: 1px solid #ece7df; padding: 6px 12px; }
.cais-quiz-done .cais-quiz-cta { margin: 6px auto 0; display: inline-block; }

/* Style Passport analysing interstitial */
.cais-quiz-loading { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; }
.cais-quiz-loader {
	width: 42px; height: 42px; border-radius: 50%;
	border: 2px solid #ece7df; border-top-color: var(--cais-accent, #1a1712);
	animation: cais-quiz-spin .8s linear infinite;
}
@keyframes cais-quiz-spin { to { transform: rotate(360deg); } }
.cais-quiz-loadmsg {
	font-family: 'Fraunces', Garamond, Georgia, 'Times New Roman', serif;
	font-size: 18px; color: #1a1712; letter-spacing: .2px; margin: 0;
	animation: cais-quiz-fade .5s ease;
}
@keyframes cais-quiz-fade { from { opacity: 0; } to { opacity: 1; } }

/* Style-icon picker (quiz) */
.cais-quiz-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 0 auto 6px; }
.cais-quiz-icon {
	cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 18px 12px; background: #fff; border: 1px solid #e2ddd3; border-radius: 0;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cais-quiz-icon:hover { border-color: #1a1712; transform: translateY(-2px); }
.cais-quiz-icon.sel { border-color: #1a1712; box-shadow: inset 0 0 0 2px #1a1712; }
.cais-quiz-mono {
	width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-family: 'Fraunces', Garamond, Georgia, serif; font-size: 19px; font-weight: 500; color: #1a1712;
	background: linear-gradient(135deg, #f3efe8, #e7e0f0);
}
.cais-quiz-icon.sel .cais-quiz-mono { background: #1a1712; color: #fff; }
.cais-quiz-iconname { font-size: 12.5px; font-weight: 500; color: #1a1712; line-height: 1.25; text-align: center; }
.cais-quiz-counter { margin-top: 14px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #8a8275; }

/* ── My Account → Style Passport page ── */
.cais-dna { font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1a1712; }
.cais-dna-title { font-family: 'Fraunces', Garamond, Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 26px; margin: 0 0 6px; }
.cais-dna-lead { color: #8a8275; font-size: 15px; margin: 0 0 4px; max-width: 56ch; }
.cais-dna-updated { color: #b3aa9a; font-size: 12px; letter-spacing: .3px; margin: 0 0 8px; }
.cais-dna-sec { margin: 22px 0; }
.cais-dna-h { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #8a8275; margin: 0 0 10px; font-weight: 600; }
.cais-dna-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cais-dna-chip { font-size: 13px; color: #1a1712; background: #f3efe8; border: 1px solid #ece7df; padding: 7px 13px; }
.cais-dna-note { font-size: 15px; color: #1a1712; margin: 0; }
.cais-dna-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.cais-dna-icon { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; background: #fff; border: 1px solid #e2ddd3; padding: 7px 14px 7px 7px; }
.cais-dna-mono { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Fraunces', Garamond, Georgia, serif; font-size: 14px; color: #1a1712; background: linear-gradient(135deg, #f3efe8, #e7e0f0); }
.cais-dna-edit { margin-top: 30px; border-top: 1px solid #ece7df; padding-top: 18px; }
.cais-dna-edit > summary { cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .3px; color: #1a1712; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.cais-dna-edit > summary::before { content: '✦'; color: var(--cais-accent, #1a1712); }
.cais-dna-edit > summary::-webkit-details-marker { display: none; }
.cais-dna-edit[open] > summary { margin-bottom: 8px; }
.cais-dna-quizwrap { margin-top: 6px; }

/* ── Fix: clear the Intercom / live-chat launcher (bottom-right) so the send
   button isn't hidden behind it; sit above it in the stacking order. ── */
.cais.mode-floating { bottom: 92px; z-index: 2147483400; }
.cais.mode-floating .cais-panel { bottom: 92px; max-height: calc(100vh - 174px); }
@media (max-width: 600px) {
	.cais.mode-floating { bottom: 88px; }
	.cais.mode-floating .cais-panel { bottom: 0; max-height: 86vh; }

	/* Roomier, easy-to-tap card actions — no more cramped buttons. */
	.cais-card-actions { gap: 8px; margin-top: 10px; }
	.cais-add { padding: 12px 10px; font-size: 12.5px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.cais-look, .cais-tryon { width: 44px; min-height: 44px; }
	.cais-morelike { padding: 12px 10px; min-height: 44px; margin-top: 8px; }
}

/* ── Add-to-cart confirmation with View bag + Checkout (works site-wide) ── */
.cais-cart-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
	background: #1a1712; color: #fff; padding: 13px 20px; border-radius: 0;
	box-shadow: 0 20px 60px -18px rgba(0,0,0,.5); z-index: 2147483600;
	font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 13.5px; transform: translateX(-50%); transition: opacity .3s ease; max-width: calc(100vw - 32px);
}
.cais-cart-toast.show { opacity: 1; pointer-events: auto; }
.cais-cart-toast-msg { font-weight: 500; letter-spacing: .2px; }
.cais-cart-toast a, .cais-cart-toast-look { text-decoration: none; font-weight: 600; letter-spacing: .4px; font-size: 12px; padding: 8px 16px; cursor: pointer; }
.cais-cart-toast-look { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; font-family: inherit; }
.cais-cart-toast-look:hover { border-color: #fff; }
.cais-cart-toast-bag { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.cais-cart-toast-bag:hover { border-color: #fff; }
.cais-cart-toast-go { color: #1a1712; background: #fff; }
.cais-cart-toast-go:hover { opacity: .9; }
.cais-cart-toast-x { background: transparent; border: 0; color: rgba(255,255,255,.6); font-size: 14px; cursor: pointer; padding: 6px 4px 6px 8px; line-height: 1; }
.cais-cart-toast-x:hover { color: #fff; }

/* ── Accessibility ── */
.cais button:focus-visible, .cais a:focus-visible, .cais input:focus-visible, .cais textarea:focus-visible,
.cais-loop-btn:focus-visible, .cais-similar-card:focus-visible, .cais-cart-toast a:focus-visible {
	outline: 2px solid var(--cais-accent, #1a1712); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.cais *, .cais-cart-toast, .cais-similar-panel, .cais-quiz-card, .cais-quiz-loader { animation: none !important; transition: none !important; }
}

/* ── Composer autocomplete (Algolia) ── */
.cais-form { position: relative; }
.cais-suggest { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 6; max-height: 240px; overflow-y: auto; }
.cais-suggest-opt { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 11px 15px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.cais-suggest-opt:hover { background: var(--chip); }

/* ── Zero-result search → stylist handoff (light DOM) ── */
.cais-search-miss { margin: 18px auto; max-width: 640px; text-align: center; font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1a1712; }
.cais-search-miss span { color: #8a8275; font-size: 14px; }
.cais-search-miss a { display: inline-block; margin-top: 10px; background: #1a1712; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .4px; padding: 12px 24px; }
.cais-search-miss a:hover { background: #000; }

/* ============================================================================
   Agentic Concierge hero console ([coveti_concierge])
   ========================================================================== */
.cais-hero-wrap { font-family: var(--cais-font, 'Inter', -apple-system, sans-serif); color: #1a1712; box-sizing: border-box; width: 100%; }
.cais-hero-wrap *, .cais-hero-wrap *::before, .cais-hero-wrap *::after { box-sizing: border-box; }
.cais-hero-stage { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6vh 20px; position: relative; }
.cais-hero-idle { width: 100%; max-width: 780px; text-align: center; transition: opacity .3s ease; }
.cais-hero-h1 { font-family: var(--cais-serif, Georgia, serif); font-weight: 400; font-size: clamp(30px, 5vw, 52px); letter-spacing: .5px; margin: 0 0 10px; line-height: 1.05; }
.cais-hero-tag { font-size: clamp(14px, 1.6vw, 17px); color: #6b6259; margin: 0 0 30px; letter-spacing: .2px; transition: opacity .3s ease; }
.cais-hero-wrap.is-typing .cais-hero-tag { opacity: .35; }

.cais-hero-form { position: relative; width: 100%; }
.cais-hero-bar { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e4e0d9; border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 10px 40px -22px rgba(0,0,0,.45); transition: box-shadow .25s ease, border-color .25s ease; }
.cais-hero-wrap.is-typing .cais-hero-bar { box-shadow: 0 18px 60px -20px rgba(0,0,0,.55); border-color: #cfc8bd; }
.cais-hero-input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: clamp(15px, 1.7vw, 18px); color: #1a1712; padding: 10px 6px; min-width: 0; }
.cais-hero-input::placeholder { color: #a39a8d; }
.cais-hero-cam { flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: transparent; color: #6b6259; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cais-hero-cam:hover { background: #f3f0ea; }
.cais-hero-cam svg { width: 19px; height: 19px; }
.cais-hero-go { flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--cais-accent, #1a1712); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, opacity .15s ease; }
.cais-hero-go:hover { transform: scale(1.05); }
.cais-hero-go svg { width: 18px; height: 18px; }

.cais-hero-drop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid #ece8e1; border-radius: 18px; box-shadow: 0 24px 70px -28px rgba(0,0,0,.5); padding: 10px; z-index: 5; text-align: left; }
.cais-hero-sugg { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.cais-hero-sgi { text-align: left; border: 0; background: transparent; font: inherit; font-size: 14px; color: #2a251f; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.cais-hero-sgi:hover { background: #f5f2ec; }
.cais-hero-passport { font-size: 12px; color: #6b6259; padding: 8px 10px; border-top: 1px solid #f0ece5; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cais-hero-passport.cais-hero-pp-muted { border-top: 0; }
.cais-hero-pp-dot { color: #1d6b3f; font-size: 9px; }
.cais-hero-pp-badge { background: #f3f0ea; border-radius: 4px; padding: 3px 8px; font-weight: 600; color: #2a251f; }
.cais-hero-inlineerr { color: #b00020; font-size: 13px; padding: 8px 10px; }

.cais-hero-pills { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cais-hero-suglabel { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: #a39a8d; margin-right: 2px; }
.cais-hero-pill { border: 1px solid #e0dbd2; background: #fff; color: #2a251f; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.cais-hero-pill:hover { background: #1a1712; color: #fff; border-color: #1a1712; }

/* Processing */
.cais-hero-proc { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cais-hero-loader { width: 38px; height: 38px; border: 2px solid #e4e0d9; border-top-color: var(--cais-accent, #1a1712); border-radius: 50%; animation: cais-spin .9s linear infinite; }
.cais-hero-proc-txt { font-size: 15px; color: #6b6259; letter-spacing: .2px; max-width: 460px; min-height: 22px; }

/* Results split */
.cais-hero-results { width: 100%; max-width: 1100px; }
.cais-hero-resbar { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #eee6db; }
.cais-hero-newsearch { border: 0; background: transparent; font: inherit; font-size: 13px; color: #6b6259; cursor: pointer; }
.cais-hero-newsearch:hover { color: #1a1712; }
.cais-hero-curation { font-family: var(--cais-serif, serif); font-size: 17px; }
.cais-hero-split { display: grid; grid-template-columns: 35% 65%; gap: 28px; align-items: start; }
.cais-hero-saylabel, .cais-hero-lblabel { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #a39a8d; margin-bottom: 10px; }
.cais-hero-say { font-family: var(--cais-serif, Georgia, serif); font-size: 17px; line-height: 1.55; color: #2a251f; min-height: 40px; white-space: pre-wrap; }
.cais-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cais-hero-chip { border: 1px solid #e0dbd2; background: #fff; color: #2a251f; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.cais-hero-chip:hover { background: #f3f0ea; }
.cais-hero-gemma { border: 1px solid var(--cais-accent, #1a1712); background: var(--cais-accent, #1a1712); color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cais-hero-gemma:hover { opacity: .92; }
.cais-hero-refine { display: flex; align-items: center; gap: 6px; margin-top: 18px; border: 1px solid #e4e0d9; border-radius: 999px; padding: 4px 4px 4px 16px; }
.cais-hero-refine input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 0; }
.cais-hero-refine button { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cais-accent, #1a1712); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cais-hero-refine svg { width: 16px; height: 16px; }

/* Active-intent chips — what the agent understood from the query. */
.cais-hero-intent { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 14px; }
.cais-hero-intent-lab { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: #a39a8d; }
.cais-hero-intent-chip { font-size: 12px; letter-spacing: .2px; color: #2a251f; background: rgba(188,150,78,.12); border: 1px solid rgba(188,150,78,.4); border-radius: 999px; padding: 3px 11px; }
/* Agentic "shop the full look" CTA + plan modal */
.cais-hero-clook { width: 100%; margin-top: 6px; border: 1px solid var(--gold, #BC964E); background: var(--gold, #BC964E); color: #1a1712; border-radius: 0; padding: 9px 8px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s ease; }
.cais-hero-clook:hover { background: var(--gold-light, #F9CC82); }
.cais-lookplan { position: fixed; inset: 0; z-index: 2147483600; background: rgba(26,23,18,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cais-lookplan-card { background: #fff; max-width: 460px; width: 100%; max-height: 86vh; overflow: auto; border-radius: 16px; padding: 22px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.3); font-family: var(--cais-serif, Georgia, serif); }
.cais-lookplan-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #8a8275; }
.cais-lookplan-h { font-size: 18px; margin: 2px 0 16px; display: flex; align-items: center; gap: 8px; }
.cais-lookplan-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.cais-lookplan-item { display: flex; gap: 12px; align-items: center; }
.cais-lookplan-item img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; background: #f2f2f2; flex: 0 0 auto; }
.cais-lookplan-meta { display: flex; flex-direction: column; gap: 2px; font-family: var(--cais-font, system-ui, sans-serif); }
.cais-lookplan-meta .t { font-size: 13px; color: #2a251f; }
.cais-lookplan-meta .m { font-size: 12px; color: #8a8275; }
.cais-lookplan-meta .m a { color: var(--wine, #780926); }
.cais-lookplan-go { width: 100%; border: 0; background: #1a1712; color: #fff; border-radius: 999px; padding: 13px 16px; font-family: var(--cais-font, system-ui, sans-serif); font-size: 14px; font-weight: 700; letter-spacing: .3px; cursor: pointer; }
.cais-lookplan-go:hover { background: var(--wine, #780926); }
.cais-lookplan-note { font-family: var(--cais-font, system-ui, sans-serif); font-size: 11px; color: #8a8275; margin: 10px 2px 0; text-align: center; }
.cais-hero-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cais-hero-card { display: flex; flex-direction: column; }
.cais-hero-cimg { display: block; position: relative; aspect-ratio: 3/4; background: #f6f4ef; border-radius: 8px; overflow: hidden; }
.cais-hero-cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cais-hero-cbrand { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #a39a8d; margin: 10px 0 2px; }
.cais-hero-ctitle { font-size: 14px; color: #1a1712; text-decoration: none; line-height: 1.3; }
.cais-hero-ctitle:hover { text-decoration: underline; }
.cais-hero-cprice { font-size: 14px; font-weight: 600; margin: 6px 0 10px; }
.cais-hero-qadd { border: 1px solid var(--cais-accent, #1a1712); background: #fff; color: var(--cais-accent, #1a1712); border-radius: 0; padding: 10px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .3px; cursor: pointer; transition: background .15s ease, color .15s ease; margin-top: auto; }
.cais-hero-qadd:hover { background: var(--cais-accent, #1a1712); color: #fff; }
.cais-hero-qadd.done { background: #137333; border-color: #137333; color: #fff; }
.cais-hero-bag { margin-top: 20px; }
.cais-hero-fulllook { width: 100%; border: 0; background: var(--cais-accent, #1a1712); color: #fff; border-radius: 0; padding: 16px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .4px; cursor: pointer; }
.cais-hero-fulllook:hover { opacity: .92; }
.cais-hero-fulllook.done { background: #137333; }

@media (max-width: 760px) {
	.cais-hero-stage { min-height: auto; padding: 4vh 16px; }
	.cais-hero-split { grid-template-columns: 1fr; gap: 22px; }
	.cais-hero-grid { gap: 12px; }
	.cais-hero-refine { margin-bottom: 6px; }
}

/* Mobile: compress the hero so the search bar + suggestions stay above the fold */
@media (max-width: 600px) {
	.cais-hero-stage { min-height: auto; padding: 10px 14px 18px; justify-content: flex-start; }
	.cais-hero-nav { margin-bottom: 8px; gap: 16px; }
	.cais-hero-nav, .cais-hero-navlink { font-size: 11px; }
	.cais-hero-h1 { font-size: clamp(24px, 7.6vw, 30px); margin: 0 0 1px; }
	.cais-hero-protocol { font-size: 14px; margin: 1px 0 6px; }
	.cais-hero-tag { font-size: 12px; line-height: 1.38; margin: 0 0 10px; max-width: none; }
	.cais-hero-bar { padding: 5px 5px 5px 13px; }
	.cais-hero-input { font-size: 15px; padding: 8px 6px; }
	.cais-hero-go { width: 40px; height: 40px; }
	.cais-hero-mic, .cais-hero-cam { width: 36px; height: 36px; }
	/* Hide review stars + "Trained by Coveti editorial team" on mobile to save fold space. */
	.cais-hero-credit { display: none !important; }
	/* compact suggestion pills — smaller type so more fit per row */
	.cais-hero-pills { margin-top: 9px; gap: 6px; }
	.cais-hero-suglabel { font-size: 10px; }
	.cais-hero-pill { font-size: 12px; padding: 6px 12px; }
	/* compact "style me by" + trust */
	.cais-hero-imports { margin-top: 7px; gap: 6px; flex-wrap: wrap; }
	.cais-hero-import { font-size: 12px; padding: 5px 10px; }
	.cais-hero-trust { margin-top: 8px; gap: 6px; }
	.cais-hero-trustitem { font-size: 11px; }
	/* compact onboarding nudge (frees the most vertical space) */
	.cais-hero-onboard { margin-top: 8px; padding: 8px 12px; gap: 7px; font-size: 12px; }
	.cais-hero-onboard-txt { font-size: 12px; line-height: 1.35; }
	.cais-hero-onboard-go { padding: 6px 13px; font-size: 11px; }
}

/* Concierge hero — "style me by" imports + per-card actions */
.cais-hero-imports { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cais-hero-import { border: 0; background: transparent; color: #6b6259; font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.cais-hero-import:hover { color: #1a1712; background: #f3f0ea; }
.cais-hero-cacts { display: flex; gap: 6px; margin-top: 8px; }
.cais-hero-cmore, .cais-hero-ctry { flex: 1; border: 1px solid #e0dbd2; background: #fff; color: #2a251f; border-radius: 0; padding: 9px 8px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2px; cursor: pointer; line-height: 1.2; transition: background .15s ease, border-color .15s ease; }
.cais-hero-cmore:hover, .cais-hero-ctry:hover { background: #f3f0ea; border-color: transparent; }
.cais-hero-ctry { flex: 0 0 auto; }

/* Concierge hero — nav (P1), credit (P5), onboarding (P2), trust (P4), outfit pairing (P3) */
.cais-hero-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 22px; }
.cais-hero-navlink { border: 0; background: transparent; font: inherit; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #8a8275; cursor: pointer; padding: 4px 2px; position: relative; }
.cais-hero-navlink:hover { color: #1a1712; }
.cais-hero-credit { font-size: 12.5px; color: #8a8275; margin-top: 12px; letter-spacing: .2px; }
.cais-hero-credit .cais-hero-spark { color: var(--gold, #BC964E); }
.cais-hero-onboard { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: #faf7f1; border: 1px solid #ece4d7; border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: 13px; color: #4a443b; }
.cais-hero-onboard-txt { letter-spacing: .1px; }
.cais-hero-onboard-go { border: 0; background: var(--cais-accent, #1a1712); color: #fff; border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cais-hero-onboard-x { border: 0; background: transparent; color: #a39a8d; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.cais-hero-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cais-hero-trustitem { font-size: 12px; letter-spacing: .3px; color: #8a8275; }
.cais-hero-trustdot { color: #cfc8bd; }
.cais-hero-complete { margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee6db; }
.cais-hero-cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .cais-hero-nav { gap: 16px; } }

/* Concierge hero — review stars (P5 social proof) */
.cais-hero-rating { text-decoration: none; color: inherit; }
.cais-hero-stars { color: var(--gold, #BC964E); letter-spacing: 1px; }
.cais-hero-rnum { font-weight: 600; color: #4a443b; }
.cais-hero-rcount, .cais-hero-creddot { color: #a39a8d; margin: 0 4px; }
.cais-hero-rating:hover .cais-hero-rnum { text-decoration: underline; }

/* Concierge hero — "style me by" brand-logo buttons */
.cais-hero-import { display: inline-flex; align-items: center; gap: 7px; }
.cais-hero-import-ic { display: inline-flex; align-items: center; }
.cais-hero-import-ic svg { display: block; border-radius: 50%; }

/* ── Coveti symbol mark — replaces the ✦ glyph everywhere (recolorable mask) ── */
.cais-spark, .cais-hero-spark, .cais-sym, .cais-quiz-mark {
	display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em;
	background-color: var(--gold, #BC964E);
	color: transparent !important;          /* hide the underlying ✦ glyph */
	-webkit-mask: url(img/coveti-symbol.png) center / contain no-repeat;
	        mask: url(img/coveti-symbol.png) center / contain no-repeat;
}
.cais-hero-credit .cais-hero-spark { background-color: var(--gold, #BC964E); }
.cais-quiz-mark { width: 1.1em; height: 1.1em; vertical-align: middle; }

/* Inline size picker inside a Concierge hero card */
.cais-hero-card .cais-similar-sizes { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }

/* Concierge hero — real logo wordmark + symbol loader */
.cais-hero-logo { display: inline-block; width: clamp(180px, 30vw, 320px); height: auto; }
.cais-hero-h1.cais-hero-haslogo { margin: 0 0 6px; line-height: 1; }
/* Replace the plain ring with the breathing Coveti symbol (gold) */
.cais-hero-loader { width: 48px; height: 48px; border: 0 !important; border-radius: 0; background-color: var(--gold, #BC964E);
	-webkit-mask: url(img/coveti-symbol.png) center / contain no-repeat;
	        mask: url(img/coveti-symbol.png) center / contain no-repeat;
	animation: cais-symbeat 1.4s ease-in-out infinite; }
@keyframes cais-symbeat { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .cais-hero-loader { animation: none; opacity: .8; } }

/* Concierge hero — protocol line (between headline and body) */
.cais-hero-protocol { font-family: var(--cais-serif, Georgia, serif); font-size: clamp(15px, 1.9vw, 21px); letter-spacing: .4px; color: #2a251f; margin: 2px 0 16px; }
.cais-hero-h1 + .cais-hero-protocol { margin-top: 6px; }

/* Concierge hero — voice (mic) button */
.cais-hero-mic { flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: transparent; color: #6b6259; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cais-hero-mic:hover { background: #f3f0ea; }
.cais-hero-mic svg { width: 18px; height: 18px; }
.cais-hero-mic.listening { color: var(--gold, #BC964E); background: rgba(188,150,78,.14); animation: cais-micpulse 1.2s ease-in-out infinite; }
@keyframes cais-micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(188,150,78,.4); } 50% { box-shadow: 0 0 0 6px rgba(188,150,78,0); } }
@media (prefers-reduced-motion: reduce) { .cais-hero-mic.listening { animation: none; } }

/* Brand word "Coveti" rendered in the script font; the rest of the title stays serif */
.cais-script { font-family: var(--cais-script, inherit); font-weight: 400; font-style: normal; }
.cais-hero-h1 .cais-script { font-size: 1.14em; }
.cais-hero-protocol .cais-script { font-size: 1.08em; }

/* Ensure [hidden] hero sections truly hide (class display rules were overriding it,
   leaving an empty pill where the processing/onboarding state sits). */
.cais-hero-wrap [hidden] { display: none !important; }

/* Unify the category-page "bar" composer with the homepage hero pill (style only) */
.cais.mode-inline.variant-bar .cais-form {
	display: flex; align-items: center; gap: 6px;
	background: #fff; border: 1px solid #e4e0d9; border-radius: 999px;
	padding: 7px 7px 7px 16px;
	box-shadow: 0 10px 40px -22px rgba(0,0,0,.45);
	transition: box-shadow .25s ease, border-color .25s ease;
}
.cais.mode-inline.variant-bar .cais-form:focus-within { box-shadow: 0 18px 60px -20px rgba(0,0,0,.55); border-color: #cfc8bd; }
.cais.mode-inline.variant-bar .cais-input {
	flex: 1; border: 0; background: transparent; box-shadow: none; border-radius: 0;
	padding: 10px 6px; font-size: 15px; color: var(--ink); min-width: 0;
}
.cais.mode-inline.variant-bar .cais-input:focus { border: 0; background: transparent; box-shadow: none; }
.cais.mode-inline.variant-bar .cais-img-btn,
.cais.mode-inline.variant-bar .cais-mic-btn {
	flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: transparent; color: #6b6259;
	border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	transition: background .15s ease;
}
.cais.mode-inline.variant-bar .cais-img-btn:hover,
.cais.mode-inline.variant-bar .cais-mic-btn:hover { background: #f3f0ea; }
.cais.mode-inline.variant-bar .cais-send {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
}

/* Thumbs feedback (learn-to-rank) — always-visible pill overlaid on the product
   image (bottom-right), so it can't be squeezed out by the action-row layout or
   clipped by the card's overflow:hidden. */
.cais-card-imgwrap, .cais-hero-imgwrap { position: relative; }
.cais-fb { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: inline-flex; gap: 2px; padding: 3px; margin: 0; background: rgba(255,255,255,.93); border-radius: 999px; box-shadow: 0 1px 6px rgba(26,23,18,.20); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cais-fb-up, .cais-fb-down { border: 0; background: transparent; color: #5f574c; cursor: pointer; padding: 5px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: color .15s ease, background .15s ease; }
.cais-fb-up svg, .cais-fb-down svg { width: 16px; height: 16px; display: block; }
.cais-fb-up:hover { color: var(--olive, #4C4F3E); background: rgba(76,79,62,.12); }
.cais-fb-down:hover { color: var(--wine, #780926); background: rgba(120,9,38,.10); }
.cais-fb-up.active { color: #fff; background: var(--olive, #4C4F3E); }
.cais-fb-down.active { color: #fff; background: var(--wine, #780926); }

/* Daydream-style ✕ dismiss — top-left of the product image; soft glass pill.
   Dismissing fades + collapses the card and down-ranks similar pieces. */
.cais-dismiss {
	position: absolute; left: 8px; top: 8px; z-index: 4;
	width: 28px; height: 28px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.93); color: #5f574c; cursor: pointer;
	font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 1px 6px rgba(26,23,18,.20);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.cais-card:hover .cais-dismiss, .cais-card:focus-within .cais-dismiss { opacity: 1; }
@media (hover: none) { .cais-dismiss { opacity: .85; } }
.cais-dismiss:hover { color: var(--wine, #780926); background: #fff; }
.cais-card.is-dismissed { opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }

/* Daily Edit personalized swap-ins */
.cais-de-sub { display: block; font-size: 12px; font-weight: 400; letter-spacing: .2px; color: #8a8378; margin-top: 3px; }
.cais-de-card .cais-de-x {
	position: absolute; left: 8px; top: 8px; z-index: 3;
	width: 26px; height: 26px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.93); color: #5f574c; cursor: pointer;
	font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 1px 6px rgba(26,23,18,.18);
	opacity: 0; transition: opacity .15s ease;
}
.cais-de-card:hover .cais-de-x, .cais-de-card:focus-within .cais-de-x { opacity: 1; }
@media (hover: none) { .cais-de-card .cais-de-x { opacity: .85; } }
