/* AIKU Chat widget */
.aikuc, .aikuc * { box-sizing: border-box; }
.aikuc {
	--aikuc-accent: #111111;
	--aikuc-accent-fg: #ffffff;
	--aikuc-launch-bg: #111111;
	--aikuc-launch-fg: #ffffff;
	--aikuc-head-bg: #111111;
	--aikuc-head-fg: #ffffff;
	--aikuc-bot-bg: #ffffff;
	--aikuc-bot-fg: #111111;
	--aikuc-gold: #B8966A;
	--aikuc-cream: #F7F1E8;
	--aikuc-beige: #EDE3D4;
	--aikuc-ink: #111111;
	--aikuc-muted: #6b6259;
	position: fixed; bottom: 20px; right: 20px; z-index: 99990;
	font-family: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--aikuc-ink); font-size: 15px; line-height: 1.45;
}
.aikuc.is-left { right: auto; left: 20px; }

/* Launcher */
.aikuc-launch {
	display: flex; align-items: center; gap: 10px;
	height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--aikuc-launch-bg); color: var(--aikuc-launch-fg); font: inherit; font-size: 14px; letter-spacing: .04em;
	box-shadow: 0 10px 30px rgba(17,17,17,.22); transition: transform .2s ease, box-shadow .2s ease;
}
.aikuc-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17,17,17,.28); }
.aikuc-launch:focus-visible, .aikuc button:focus-visible, .aikuc textarea:focus-visible, .aikuc a:focus-visible { outline: 2px solid var(--aikuc-gold); outline-offset: 2px; }
.aikuc-launch svg { width: 24px; height: 24px; flex: none; }
.aikuc-launch .aikuc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aikuc-gold); margin-left: -2px; }
.aikuc.is-open .aikuc-launch { display: none; }

/* Gold glow: a light that travels around the button's border (1.5.2) */
@property --aikuc-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.aikuc.is-glow .aikuc-launch {
	position: relative; border: 2px solid transparent;
	background:
		linear-gradient(var(--aikuc-launch-bg), var(--aikuc-launch-bg)) padding-box,
		conic-gradient(from var(--aikuc-spin), color-mix(in srgb, var(--aikuc-gold) 35%, transparent) 0deg, color-mix(in srgb, var(--aikuc-gold) 35%, transparent) 250deg, var(--aikuc-gold) 300deg, #fff6e2 330deg, var(--aikuc-gold) 345deg, color-mix(in srgb, var(--aikuc-gold) 35%, transparent) 360deg) border-box;
	animation: aikuc-spin 3.2s linear infinite;
}
.aikuc.is-glow .aikuc-launch::before {
	content: ""; position: absolute; inset: -5px; border-radius: inherit; z-index: -1; pointer-events: none;
	background: conic-gradient(from var(--aikuc-spin), transparent 0deg, transparent 260deg, var(--aikuc-gold) 310deg, #fff1cf 330deg, var(--aikuc-gold) 345deg, transparent 360deg);
	filter: blur(7px); opacity: .9; animation: aikuc-spin 3.2s linear infinite;
}
@keyframes aikuc-spin { to { --aikuc-spin: 360deg; } }

/* Panel */
.aikuc-panel {
	position: absolute; bottom: 0; right: 0; width: 380px; height: min(620px, calc(100vh - 100px));
	display: none; flex-direction: column; overflow: hidden;
	background: var(--aikuc-cream); border-radius: 18px; box-shadow: 0 24px 60px rgba(17,17,17,.28);
	animation: aikuc-in .22s ease-out;
}
.aikuc.is-left .aikuc-panel { right: auto; left: 0; }
.aikuc.is-open .aikuc-panel { display: flex; }
@keyframes aikuc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.aikuc-head {
	display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
	background: var(--aikuc-head-bg); color: var(--aikuc-head-fg);
}
.aikuc-avatar {
	width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
	background: var(--aikuc-gold); color: #fff; font-family: "Cormorant Garamond", Georgia, serif; font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.aikuc-title { flex: 1; min-width: 0; }
.aikuc-title strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: .03em; }
.aikuc-title span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .8; }
.aikuc-title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; }
.aikuc-icon-btn {
	width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
	display: grid; place-items: center; opacity: .85;
}
.aikuc-icon-btn:hover { background: rgba(128,128,128,.18); opacity: 1; }
.aikuc-icon-btn svg { width: 20px; height: 20px; }

.aikuc-body { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.aikuc-body > * { flex-shrink: 0; }
.aikuc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-line; word-wrap: break-word; }
.aikuc-msg p { margin: 0; white-space: normal; }
.aikuc-msg p + p { margin-top: 9px; }
.aikuc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.aikuc-bot { align-self: flex-start; background: var(--aikuc-bot-bg); color: var(--aikuc-bot-fg); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(17,17,17,.06); }
.aikuc-user { align-self: flex-end; background: var(--aikuc-accent); color: var(--aikuc-accent-fg); border-bottom-right-radius: 4px; }
.aikuc-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.aikuc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--aikuc-sand, #c9b79c); animation: aikuc-b 1s infinite ease-in-out; }
.aikuc-typing i:nth-child(2) { animation-delay: .15s; } .aikuc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aikuc-b { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Product cards */
.aikuc-cards { align-self: stretch; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--aikuc-beige) transparent; }
.aikuc-card {
	flex: 0 0 148px; scroll-snap-align: start; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
	box-shadow: 0 1px 2px rgba(17,17,17,.08); display: flex; flex-direction: column; transition: transform .15s;
}
.aikuc-card:hover { transform: translateY(-2px); }
.aikuc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--aikuc-beige); display: block; }
.aikuc-card .aikuc-ph { width: 100%; aspect-ratio: 1; background: var(--aikuc-beige); }
.aikuc-card-b { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.aikuc-card-n { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aikuc-card-p { font-size: 13px; font-weight: 600; }
.aikuc-card-p s { font-weight: 400; color: var(--aikuc-muted); margin-left: 4px; }
.aikuc-card-t { font-size: 11px; color: var(--aikuc-muted); }
.aikuc-card-t.is-out { color: #b3412e; }

/* Chips & actions */
.aikuc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.aikuc-chip {
	border: 1px solid var(--aikuc-sand, #d9c7ae); background: transparent; color: var(--aikuc-ink); border-radius: 999px;
	padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.aikuc-chip:hover { background: #fff; border-color: var(--aikuc-gold); }
.aikuc-wa {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
	background: #1f8f4e; color: #fff !important; text-decoration: none !important; font-size: 14px;
}
.aikuc-wa:hover { background: #1a7a43; }
.aikuc-wa svg { width: 18px; height: 18px; }
.aikuc-more { align-self: flex-start; font-size: 13px; color: var(--aikuc-ink); }

/* Composer */
.aikuc-foot { padding: 10px 12px 12px; background: var(--aikuc-cream); border-top: 1px solid var(--aikuc-beige); }
.aikuc-form { display: flex; align-items: flex-end; gap: 8px; background: #fff; border-radius: 22px; padding: 6px 6px 6px 14px; box-shadow: 0 1px 2px rgba(17,17,17,.06); }
.aikuc .aikuc-form textarea {
	flex: 1; width: auto; margin: 0; border: 0 !important; outline: none !important; box-shadow: none !important; resize: none;
	background: transparent !important; font: inherit; font-size: 16px; color: inherit; border-radius: 0;
	height: 38px; max-height: 110px; min-height: 0; padding: 8px 0; line-height: 1.4; overflow-y: auto; scrollbar-width: none;
}
.aikuc .aikuc-form textarea::-webkit-scrollbar { display: none; }
.aikuc-head, .aikuc-foot { position: static !important; top: auto !important; }
.aikuc button { text-transform: none; letter-spacing: normal; min-height: 0; }
.aikuc-send {
	width: 38px; height: 38px; border: 0; border-radius: 50%; flex: none; cursor: pointer;
	background: var(--aikuc-accent); color: var(--aikuc-accent-fg); display: grid; place-items: center;
}
.aikuc-send:disabled { opacity: .35; cursor: default; }
.aikuc-send svg { width: 18px; height: 18px; }
.aikuc-note { margin-top: 7px; text-align: center; font-size: 11px; color: var(--aikuc-muted); }
.aikuc-note a { color: inherit; }

@media (max-width: 520px) {
	.aikuc { bottom: 14px; right: 14px; }
	.aikuc.is-left { left: 14px; }
	.aikuc-launch { height: 52px; padding: 0 16px; }
	.aikuc-launch .aikuc-label { display: none; }
	.aikuc-panel { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: calc(100vh - 110px); height: calc(100dvh - 110px); max-height: 640px; border-radius: 18px; box-shadow: 0 18px 50px rgba(17,17,17,.35); }
	.aikuc.is-left .aikuc-panel { left: 12px; }
	.aikuc-panel { animation: none; }
	/* Keyboard open: compact header and footer so more of the conversation shows. */
	.aikuc.is-kb .aikuc-head { padding: 8px 10px 8px 14px; }
	.aikuc.is-kb .aikuc-avatar { width: 32px; height: 32px; font-size: 10px; }
	.aikuc.is-kb .aikuc-title span, .aikuc.is-kb .aikuc-note { display: none; }
	.aikuc.is-kb .aikuc-foot { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.aikuc-panel, .aikuc-typing i, .aikuc-launch, .aikuc-card { animation: none; transition: none; }
	.aikuc.is-glow .aikuc-launch { border-color: var(--aikuc-gold); background: var(--aikuc-launch-bg); }
	.aikuc.is-glow .aikuc-launch::before { animation: none; display: none; }
}
.aikuc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Home screen ---------- */
.aikuc-home { padding: 4px 2px 6px; }
.aikuc-spark { width: 50px; height: 50px; border-radius: 15px; background: var(--aikuc-head-bg); color: var(--aikuc-gold); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(17,17,17,.16); }
.aikuc-spark svg { width: 24px; height: 24px; }
.aikuc-home h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.12; margin: 14px 0 4px; color: var(--aikuc-ink); letter-spacing: 0; text-transform: none; }
.aikuc-home-sub { color: var(--aikuc-muted); font-size: 14px; margin: 0 0 16px; }
.aikuc .aikuc-hero { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 17px 15px 17px 18px; cursor: pointer; position: relative; overflow: hidden; font: inherit;
	background: var(--aikuc-head-bg); color: var(--aikuc-head-fg); box-shadow: 0 10px 24px rgba(17,17,17,.14); }
.aikuc .aikuc-hero::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(184,150,106,.38), transparent 70%); pointer-events: none; }
.aikuc-hero-t { flex: 1; position: relative; z-index: 1; }
.aikuc-hero-t b { display: block; font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.aikuc-hero-t span { display: block; font-size: 13.5px; opacity: .78; line-height: 1.45; }
.aikuc-hero-go { width: 40px; height: 40px; border-radius: 50%; background: var(--aikuc-gold); color: #111; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.aikuc-hero-go svg { width: 18px; height: 18px; }
.aikuc-or { display: flex; align-items: center; gap: 10px; color: var(--aikuc-muted); font-size: 13px; margin: 16px 2px 10px; }
.aikuc-or::after { content: ""; flex: 1; height: 1px; background: var(--aikuc-beige); }
.aikuc .aikuc-opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; font: inherit; border: 1px solid var(--aikuc-beige); background: #fff; border-radius: 14px; padding: 11px 14px; margin: 0 0 8px; cursor: pointer; color: var(--aikuc-ink); }
.aikuc .aikuc-opt:hover { border-color: var(--aikuc-gold); }
.aikuc-opt i { width: 38px; height: 38px; border-radius: 11px; background: var(--aikuc-cream); display: grid; place-items: center; flex: none; font-style: normal; }
.aikuc-opt i svg { width: 19px; height: 19px; }
.aikuc-opt-t { flex: 1; min-width: 0; }
.aikuc-opt-t b { display: block; font-weight: 500; font-size: 14.5px; }
.aikuc-opt-t small { display: block; color: var(--aikuc-muted); font-size: 12.5px; margin-top: 1px; }
.aikuc-opt-c { color: #a99a88; font-size: 20px; line-height: 1; }

/* ---------- Guided steps ---------- */
.aikuc-step { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--aikuc-gold); margin: -2px 2px 0; }
.aikuc-swatches { display: flex; flex-wrap: wrap; gap: 10px 8px; align-self: stretch; }
.aikuc .aikuc-swatches button { width: 50px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; color: var(--aikuc-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; }
.aikuc-swatches span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--aikuc-sand, #d9c7ae); }
.aikuc-swatches span.is-any { background: conic-gradient(#B3282D, #C9A45C, #2F6B4F, #1F4E8C, #6A4C93, #E8A6B8, #B3282D); }
.aikuc .aikuc-swatches button:hover span { box-shadow: 0 0 0 2px var(--aikuc-gold); }
.aikuc-card-why { font-size: 11.5px; line-height: 1.35; color: var(--aikuc-gold); margin-top: 3px; }
.aikuc-cards.is-pick .aikuc-card { border: 2px solid transparent; cursor: pointer; font: inherit; text-align: left; padding: 0; }
.aikuc-cards.is-pick .aikuc-card.is-on { border-color: var(--aikuc-gold); }
.aikuc-card-sel { font-size: 12px; color: var(--aikuc-gold); margin-top: 2px; }
.aikuc-cmp { align-self: stretch; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: 0 1px 2px rgba(17,17,17,.06); table-layout: fixed; width: 100%; }
.aikuc-cmp th, .aikuc-cmp td { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--aikuc-beige); vertical-align: top; word-wrap: break-word; }
.aikuc-cmp th { width: 26%; font-weight: 500; color: var(--aikuc-muted); font-size: 12px; }
.aikuc-cmp tr:last-child th, .aikuc-cmp tr:last-child td { border-bottom: 0; }
.aikuc .aikuc-cmp img { width: 64px !important; height: 64px !important; max-width: 100% !important; min-height: 0 !important; aspect-ratio: auto; object-fit: cover; border-radius: 10px; display: block; background: var(--aikuc-beige); }
.aikuc-cmp tr:first-child td { padding-top: 10px; padding-bottom: 4px; }

/* Continue your last chat (1.5.3) */
.aikuc .aikuc-resume { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 10px; padding: 12px 14px; border: 1px solid var(--aikuc-gold); border-radius: 14px; background: #fff; color: var(--aikuc-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgba(184,150,106,.18); text-transform: none; letter-spacing: 0; }
.aikuc .aikuc-resume:hover { background: var(--aikuc-cream); color: var(--aikuc-ink); }
.aikuc-resume i { width: 36px; height: 36px; border-radius: 50%; background: var(--aikuc-cream); color: var(--aikuc-gold); display: grid; place-items: center; flex: none; }
.aikuc-resume i svg { width: 18px; height: 18px; }
.aikuc-resume .aikuc-opt-t { flex: 1; min-width: 0; }
.aikuc-resume b { display: block; font-weight: 500; }
.aikuc-resume small { display: block; color: var(--aikuc-muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.aikuc-resume em { display: block; font-style: normal; color: var(--aikuc-gold); font-size: 12px; margin-top: 3px; letter-spacing: .02em; }

/* WhatsApp hand-off note (1.5.5) */
.aikuc-wa-sub { align-self: flex-start; margin: -2px 0 4px 6px; font-size: 12px; color: var(--aikuc-muted); }
