/* SoftX AI Chat — customer widget */
#sxac-root {
	--sxac-gold: #E2AD45;
	--sxac-gold-deep: #C38F2C;
	--sxac-gold-soft: #FBF1DC;
	--sxac-ink: #2B2118;
	--sxac-ink-2: #75695A;
	--sxac-ivory: #FBF8F2;
	--sxac-line: #EDE3D0;
	--sxac-white: #FFFFFF;
	position: fixed;
	--sxac-size: 62px;
	--sxac-side: 22px;
	--sxac-bottom: 22px;
	--sxac-bottom-m: 16px;
	bottom: max(var(--sxac-bottom), calc(env(safe-area-inset-bottom) + 10px));
	z-index: 99990;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sxac-ink);
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
/* WoodMart side cart / menu / login drawer open: the chat goes under its overlay (z-index 400) instead of on top of the drawer. */
body:has(.wd-close-side-opened) #sxac-root:not(.sxac-open),
body:has(.wd-side-hidden.wd-opened) #sxac-root:not(.sxac-open) { z-index: 390; }
body:has(.wd-close-side-opened) #sxac-root .sxac-teaser,
body:has(.wd-side-hidden.wd-opened) #sxac-root .sxac-teaser { display: none; }
#sxac-root.sxac-right { right: var(--sxac-side); }
#sxac-root.sxac-left { left: var(--sxac-side); }
#sxac-root *, #sxac-root *::before, #sxac-root *::after { box-sizing: border-box; }
#sxac-root [hidden] { display: none !important; }
#sxac-root button { font: inherit; color: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; min-width: 0; line-height: 1.3; }
#sxac-root :focus:not(:focus-visible) { outline: none; }
#sxac-root :focus-visible { outline: 2px solid var(--sxac-gold); outline-offset: 2px; }
#sxac-root svg { width: 22px; height: 22px; display: block; }
#sxac-root img { max-width: 100%; }

/* ---------- avatars ---------- */
#sxac-root .sxac-av {
	position: relative; flex: none; border-radius: 50%; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, #F3CB6E, var(--sxac-gold) 55%, var(--sxac-gold-deep));
	color: var(--sxac-white); font-weight: 700;
}
#sxac-root .sxac-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--sxac-white); }
#sxac-root .sxac-av-sm { width: 28px; height: 28px; font-size: 12px; }
#sxac-root .sxac-av-md { width: 42px; height: 42px; font-size: 17px; }
#sxac-root .sxac-av-lg { width: 52px; height: 52px; font-size: 20px; box-shadow: 0 0 0 3px var(--sxac-white), 0 0 0 4px var(--sxac-gold); }
#sxac-root .sxac-av-gap { width: 28px; flex: none; }

/* ---------- launcher ---------- */
#sxac-root .sxac-launcher {
	position: relative; width: var(--sxac-size); height: var(--sxac-size); border-radius: 50%; border: 0; padding: 0;
	background: radial-gradient(circle at 32% 28%, #F6D58A 0%, var(--sxac-gold) 48%, var(--sxac-gold-deep) 100%);
	color: var(--sxac-white);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 28px rgba(195, 143, 44, .45), 0 2px 6px rgba(43, 33, 24, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
#sxac-root .sxac-launcher:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px rgba(195, 143, 44, .55), 0 2px 6px rgba(43, 33, 24, .18), inset 0 1px 0 rgba(255, 255, 255, .45); }
#sxac-root .sxac-launcher svg { width: calc(var(--sxac-size) * .48); height: calc(var(--sxac-size) * .48); filter: drop-shadow(0 1px 1px rgba(110, 70, 10, .35)); }
#sxac-root .sxac-launcher .sxac-ico-close svg { width: calc(var(--sxac-size) * .38); height: calc(var(--sxac-size) * .38); }
#sxac-root .sxac-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sxac-gold); animation: sxac-pulse 2.6s ease-out infinite; pointer-events: none; }
#sxac-root.sxac-open .sxac-pulse { display: none; }
#sxac-root .sxac-ico-chat, #sxac-root .sxac-ico-close { display: flex; transition: transform .35s ease, opacity .25s ease; }
#sxac-root .sxac-ico-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
#sxac-root.sxac-open .sxac-ico-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
#sxac-root.sxac-open .sxac-ico-close { opacity: 1; transform: none; }
#sxac-root .sxac-badge {
	position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
	border-radius: 11px; background: #D23F3F; color: #fff; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; border: 2px solid var(--sxac-white);
	animation: sxac-pop .35s ease;
}

/* ---------- teaser ---------- */
#sxac-root .sxac-teaser {
	position: absolute; bottom: calc(var(--sxac-size) + 14px); width: 270px; display: flex; align-items: center; gap: 12px;
	padding: 14px 34px 14px 14px; background: var(--sxac-white); border: 1px solid var(--sxac-line); border-radius: 16px;
	box-shadow: 0 18px 40px rgba(43, 33, 24, .16); cursor: pointer;
	opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
#sxac-root.sxac-right .sxac-teaser { right: 0; border-bottom-right-radius: 4px; }
#sxac-root.sxac-left .sxac-teaser { left: 0; border-bottom-left-radius: 4px; }
#sxac-root .sxac-teaser.sxac-show { opacity: 1; transform: none; }
#sxac-root.sxac-open .sxac-teaser { display: none; }
#sxac-root .sxac-teaser-text { display: flex; flex-direction: column; min-width: 0; }
#sxac-root .sxac-teaser-text strong { font-size: 14px; font-weight: 600; color: var(--sxac-ink); }
#sxac-root .sxac-teaser-text span { font-size: 13px; color: var(--sxac-ink-2); line-height: 1.4; }
#sxac-root .sxac-teaser-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--sxac-ink-2); display: flex; align-items: center; justify-content: center; }
#sxac-root .sxac-teaser-x:hover { background: var(--sxac-ivory); }
#sxac-root .sxac-teaser-x svg { width: 14px; height: 14px; }

/* ---------- panel ---------- */
#sxac-root .sxac-panel {
	position: absolute; bottom: calc(var(--sxac-size) + 18px); width: 384px; height: min(640px, calc(100vh - var(--sxac-size) - var(--sxac-bottom) - 40px));
	background: var(--sxac-ivory); border: 1px solid var(--sxac-line); border-radius: 20px; overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: 0 28px 70px rgba(43, 33, 24, .24);
	opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; visibility: hidden;
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
#sxac-root.sxac-right .sxac-panel { right: 0; transform-origin: bottom right; }
#sxac-root.sxac-left .sxac-panel { left: 0; transform-origin: bottom left; }
#sxac-root.sxac-open .sxac-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

/* header */
#sxac-root .sxac-head {
	display: flex; align-items: center; gap: 12px; padding: 15px 12px 15px 16px;
	background: linear-gradient(135deg, #33271C, var(--sxac-ink)); color: var(--sxac-ivory);
	border-bottom: 2px solid var(--sxac-gold); position: relative;
}
#sxac-root .sxac-head-av .sxac-av { box-shadow: 0 0 0 2px var(--sxac-gold); }
#sxac-root .sxac-head-text { flex: 1; min-width: 0; }
#sxac-root .sxac-head-name { font-size: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sxac-ivory); }
#sxac-root .sxac-head-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(251, 248, 242, .72); white-space: nowrap; overflow: hidden; }
#sxac-root .sxac-head-sub span { overflow: hidden; text-overflow: ellipsis; }
#sxac-root .sxac-dot { width: 7px; height: 7px; border-radius: 50%; background: #9A8F80; flex: none; }
#sxac-root .sxac-dot.sxac-on { background: #4CC17A; box-shadow: 0 0 0 3px rgba(76, 193, 122, .22); }
#sxac-root .sxac-icon-btn {
	width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; padding: 0;
	display: flex; align-items: center; justify-content: center; color: inherit; opacity: .9; flex: none; text-decoration: none;
}
#sxac-root .sxac-icon-btn:hover { opacity: 1; background: rgba(226, 173, 69, .16); }
#sxac-root .sxac-head .sxac-icon-btn { color: var(--sxac-ivory); }
#sxac-root .sxac-wa-mini svg { width: 20px; height: 20px; }

/* body */
#sxac-root .sxac-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
#sxac-root .sxac-home { flex: 1; overflow-y: auto; padding: 22px 18px 12px; }
#sxac-root .sxac-hero h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--sxac-ink); font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif; letter-spacing: .01em; }
#sxac-root .sxac-hero p { margin: 0 0 16px; color: var(--sxac-ink-2); }
#sxac-root .sxac-ai-card {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px;
	border-radius: 16px; background: linear-gradient(135deg, var(--sxac-gold-soft), var(--sxac-white)); border: 1px solid #F1DDB1;
}
#sxac-root .sxac-ai-card strong { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; }
#sxac-root .sxac-ai-card small { display: block; color: var(--sxac-ink-2); font-size: 12px; }
#sxac-root .sxac-spark { color: var(--sxac-gold); display: inline-flex; }
#sxac-root .sxac-spark svg { width: 15px; height: 15px; }
#sxac-root .sxac-card {
	display: block; background: var(--sxac-white); border: 1px solid var(--sxac-line); border-radius: 16px;
	padding: 16px; margin-bottom: 12px; color: var(--sxac-ink); text-decoration: none;
}
#sxac-root .sxac-card-title { font-weight: 600; margin-bottom: 12px; }
#sxac-root .sxac-form input {
	display: block; width: 100%; height: 44px; margin: 0 0 10px; padding: 0 14px;
	border: 1px solid var(--sxac-line); border-radius: 12px; background: var(--sxac-ivory);
	font: inherit; font-size: 15px; color: var(--sxac-ink); box-shadow: none; outline: none; transition: border-color .2s, background .2s;
}
#sxac-root .sxac-form input:focus { border-color: var(--sxac-gold); background: var(--sxac-white); }
#sxac-root .sxac-btn {
	width: 100%; height: 46px; border: 0; border-radius: 12px;
	background: linear-gradient(135deg, #EBBE62, var(--sxac-gold) 50%, var(--sxac-gold-deep));
	color: var(--sxac-white); font-weight: 600; font-size: 15px; letter-spacing: .03em;
	box-shadow: 0 8px 18px rgba(195, 143, 44, .3); text-shadow: 0 1px 1px rgba(110, 70, 10, .3);
	transition: transform .2s, opacity .2s;
}
#sxac-root .sxac-btn:hover { transform: translateY(-1px); }
#sxac-root .sxac-btn:disabled { opacity: .6; transform: none; }
#sxac-root .sxac-error { color: #B03A2E; font-size: 13px; margin: -2px 0 10px; }
#sxac-root .sxac-wa-card { display: flex; align-items: center; gap: 12px; transition: border-color .2s, transform .2s; }
#sxac-root .sxac-wa-card:hover { border-color: #25D366; transform: translateY(-1px); }
#sxac-root .sxac-wa-card strong { display: block; font-weight: 600; }
#sxac-root .sxac-wa-card small { color: #1C9D50; font-size: 13px; }
#sxac-root .sxac-wa-ico { width: 42px; height: 42px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* chat */
#sxac-root .sxac-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#sxac-root .sxac-list { flex: 1; overflow-y: auto; padding: 16px 14px 6px; overscroll-behavior: contain; }
#sxac-root .sxac-msg { display: flex; gap: 8px; margin-bottom: 4px; max-width: 88%; align-items: flex-end; }
#sxac-root .sxac-msg.sxac-first { margin-top: 10px; }
#sxac-root .sxac-col { display: flex; flex-direction: column; min-width: 0; }
#sxac-root .sxac-visitor { margin-left: auto; justify-content: flex-end; }
#sxac-root .sxac-visitor .sxac-col { align-items: flex-end; }
#sxac-root .sxac-staff .sxac-col { align-items: flex-start; }
#sxac-root .sxac-staff .sxac-av-sm { margin-bottom: 18px; }
#sxac-root .sxac-system { max-width: 100%; justify-content: center; margin: 14px 0; }
#sxac-root .sxac-sys { font-size: 12px; color: var(--sxac-ink-2); text-align: center; padding: 6px 14px; background: rgba(226, 173, 69, .1); border-radius: 12px; line-height: 1.45; }
#sxac-root .sxac-who { font-size: 11px; color: var(--sxac-ink-2); margin: 0 0 3px 4px; letter-spacing: .03em; font-weight: 600; }
#sxac-root .sxac-bubble {
	padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
	animation: sxac-in .3s ease; font-size: 14.5px;
}
#sxac-root .sxac-staff .sxac-bubble { background: var(--sxac-white); border: 1px solid var(--sxac-line); border-bottom-left-radius: 6px; }
#sxac-root .sxac-ai .sxac-bubble { background: linear-gradient(180deg, var(--sxac-white), #FFFCF5); border-color: #F1DDB1; }
#sxac-root .sxac-visitor .sxac-bubble { background: linear-gradient(135deg, #EBBE62, var(--sxac-gold)); color: var(--sxac-ink); border-bottom-right-radius: 6px; box-shadow: 0 4px 12px rgba(195, 143, 44, .2); }
#sxac-root .sxac-bubble a { color: inherit; text-decoration: underline; }
#sxac-root .sxac-bubble img { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin-bottom: 4px; }
#sxac-root .sxac-msg time { font-size: 10px; color: var(--sxac-ink-2); margin: 3px 6px 0; }
#sxac-root .sxac-sending { opacity: .6; }
#sxac-root .sxac-failed .sxac-bubble { background: #8E3B30; color: #fff; cursor: pointer; }
#sxac-root .sxac-failed time { color: #B03A2E; }

/* product cards */
#sxac-root .sxac-products { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 6px 2px 2px; scrollbar-width: thin; }
#sxac-root .sxac-product {
	flex: none; width: 150px; background: var(--sxac-white); border: 1px solid var(--sxac-line); border-radius: 14px; overflow: hidden;
	text-decoration: none; color: var(--sxac-ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
#sxac-root .sxac-product:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43, 33, 24, .12); }
#sxac-root .sxac-product-img { display: block; height: 150px; background: var(--sxac-ivory); }
#sxac-root .sxac-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#sxac-root .sxac-product-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
#sxac-root .sxac-product-info strong { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#sxac-root .sxac-product-price { font-size: 13px; color: var(--sxac-gold-deep); font-weight: 600; }
#sxac-root .sxac-product-cta { font-size: 12px; color: var(--sxac-ink-2); }

#sxac-root .sxac-typing { display: flex; align-items: center; gap: 8px; padding: 2px 18px 8px; font-size: 12px; color: var(--sxac-ink-2); }
#sxac-root .sxac-dots { display: inline-flex; gap: 4px; padding: 8px 10px; background: var(--sxac-white); border: 1px solid var(--sxac-line); border-radius: 14px; }
#sxac-root .sxac-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sxac-gold); animation: sxac-blink 1.2s infinite; }
#sxac-root .sxac-dots i:nth-child(2) { animation-delay: .2s; }
#sxac-root .sxac-dots i:nth-child(3) { animation-delay: .4s; }
#sxac-root .sxac-rate { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: var(--sxac-ink-2); border-top: 1px solid var(--sxac-line); }

/* quick replies */
#sxac-root .sxac-quick { display: flex; gap: 6px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; }
#sxac-root .sxac-quick::-webkit-scrollbar { display: none; }
#sxac-root .sxac-quick button {
	flex: none; border: 1px solid var(--sxac-gold); background: var(--sxac-white); color: var(--sxac-ink);
	border-radius: 20px; padding: 6px 13px; font-size: 13px; white-space: nowrap; transition: background .2s, color .2s;
}
#sxac-root .sxac-quick button:hover { background: var(--sxac-gold); color: var(--sxac-white); }

/* composer */
#sxac-root .sxac-compose {
	display: flex; align-items: flex-end; gap: 4px; padding: 10px 10px 8px 6px;
	background: var(--sxac-white); border-top: 1px solid var(--sxac-line); margin: 0;
}
#sxac-root .sxac-compose .sxac-icon-btn { color: var(--sxac-ink-2); }
#sxac-root .sxac-compose textarea {
	flex: 1; resize: none; border: 0; outline: none; background: transparent; box-shadow: none;
	font: inherit; font-size: 15px; color: var(--sxac-ink); padding: 8px 6px; margin: 0; min-height: 36px; max-height: 120px; line-height: 1.4;
}
#sxac-root .sxac-send {
	width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; flex: none;
	background: linear-gradient(135deg, #EBBE62, var(--sxac-gold) 50%, var(--sxac-gold-deep)); color: var(--sxac-white);
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(195, 143, 44, .35); transition: transform .2s;
}
#sxac-root .sxac-send:hover { transform: scale(1.06); }
#sxac-root .sxac-send svg { width: 19px; height: 19px; margin-left: -1px; }

/* powered by */
#sxac-root .sxac-powered {
	background: var(--sxac-white); text-align: center; font-size: 10.5px; letter-spacing: .02em; color: #A69B8B;
	padding: 0 0 calc(7px + env(safe-area-inset-bottom)); line-height: 1.4;
}
#sxac-root .sxac-powered a { color: var(--sxac-gold-deep); text-decoration: none; font-weight: 600; }
#sxac-root .sxac-powered a:hover { text-decoration: underline; }
#sxac-root .sxac-home ~ .sxac-powered { padding-top: 6px; }

@keyframes sxac-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sxac-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes sxac-pulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }
@keyframes sxac-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* ---------- mobile ---------- */
@media (max-width: 520px) {
	#sxac-root { bottom: max(var(--sxac-bottom-m), calc(env(safe-area-inset-bottom) + 10px)); }
	#sxac-root.sxac-right { right: min(var(--sxac-side), 16px); }
	#sxac-root.sxac-left { left: min(var(--sxac-side), 16px); }
	#sxac-root .sxac-teaser { width: min(270px, calc(100vw - 32px)); }
	#sxac-root .sxac-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
	#sxac-root.sxac-open .sxac-launcher, #sxac-root.sxac-open .sxac-teaser { display: none; }
	#sxac-root .sxac-head { padding-top: max(15px, env(safe-area-inset-top)); }
	#sxac-root .sxac-msg { max-width: 92%; }
	html.sxac-lock, html.sxac-lock body { overflow: hidden !important; }
}
@media (prefers-reduced-motion: reduce) {
	#sxac-root * { animation: none !important; transition: none !important; }
}

/* ---------- WoodMart compatibility ---------- */
body.sxac-widget-right .scrollToTop { bottom: 100px; }
@media (max-width: 1024px) {
	body.sticky-toolbar-on #sxac-root { bottom: calc(70px + env(safe-area-inset-bottom)); }
	body.sticky-toolbar-on.sxac-widget-right .scrollToTop { bottom: 148px; }
}

/* ---------- show on desktop / mobile only ---------- */
@media (max-width: 768px) { #sxac-root.sxac-only-desktop { display: none !important; } }
@media (min-width: 769px) { #sxac-root.sxac-only-mobile { display: none !important; } }

/* ---------- phone with country code ---------- */
#sxac-root .sxac-phone { display: flex; gap: 8px; margin: 0 0 10px; }
#sxac-root .sxac-phone input { margin: 0 !important; flex: 1; min-width: 0; }
#sxac-root .sxac-cc-wrap { position: relative; flex: none; display: flex; align-items: center; height: 44px; padding: 0 28px 0 12px; border: 1px solid var(--sxac-line); border-radius: 12px; background: var(--sxac-ivory); font-size: 15px; cursor: pointer; white-space: nowrap; }
#sxac-root .sxac-cc-wrap::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid var(--sxac-ink-2); border-bottom: 1.6px solid var(--sxac-ink-2); transform: rotate(45deg); pointer-events: none; }
#sxac-root .sxac-cc-wrap:focus-within { border-color: var(--sxac-gold); background: var(--sxac-white); }
#sxac-root .sxac-cc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; margin: 0; padding: 0; border: 0; }

/* ---------- end chat confirm ---------- */
#sxac-root .sxac-confirm { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(43, 33, 24, .35); backdrop-filter: blur(2px); animation: sxac-in .2s ease; }
#sxac-root .sxac-confirm-card { width: 100%; max-width: 280px; background: var(--sxac-white); border-radius: 16px; padding: 20px; text-align: center; box-shadow: 0 20px 50px rgba(43, 33, 24, .25); }
#sxac-root .sxac-confirm-card strong { display: block; font-size: 16px; margin-bottom: 16px; }
#sxac-root .sxac-confirm-actions { display: flex; gap: 8px; }
#sxac-root .sxac-confirm-actions button { flex: 1; }
#sxac-root .sxac-btn-ghost { height: 40px; border: 1px solid var(--sxac-line); background: var(--sxac-white); border-radius: 10px; font-weight: 600; }
#sxac-root .sxac-btn-sm { height: 40px; font-size: 14px; width: auto; padding: 0 14px; white-space: nowrap; letter-spacing: 0; }
#sxac-root .sxac-confirm-card { max-width: 300px; }

/* ---------- feedback ---------- */
#sxac-root .sxac-rate { flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--sxac-white); }
#sxac-root .sxac-rate strong { color: var(--sxac-ink); font-size: 14px; }
#sxac-root .sxac-rate-done { flex-direction: row; padding: 10px 16px; }
#sxac-root .sxac-stars { display: flex; gap: 4px; }
#sxac-root .sxac-rate .sxac-star { border: 0; background: none; padding: 2px; border-radius: 6px; color: #DED3C0; transition: transform .15s, color .15s; }
#sxac-root .sxac-rate .sxac-star svg { width: 30px; height: 30px; }
#sxac-root .sxac-rate .sxac-star.is-on { color: var(--sxac-gold); }
#sxac-root .sxac-rate .sxac-star:hover { transform: scale(1.12); }
#sxac-root .sxac-star-hint { font-size: 12px; color: var(--sxac-gold-deep); min-height: 16px; font-weight: 600; }
#sxac-root .sxac-rate textarea { width: 100%; resize: none; border: 1px solid var(--sxac-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--sxac-ivory); outline: none; box-shadow: none; margin: 0; }
#sxac-root .sxac-rate textarea:focus { border-color: var(--sxac-gold); background: var(--sxac-white); }
#sxac-root .sxac-rate .sxac-btn:disabled { opacity: .45; }
#sxac-root .sxac-rate-done { flex-direction: column; gap: 10px; padding: 16px; }
#sxac-root .sxac-btn-new { width: auto; padding: 0 22px; height: 42px; }
#sxac-root .sxac-link-btn { border: 0; background: none; color: var(--sxac-ink-2); font-size: 12px; text-decoration: underline; padding: 2px; }

/* ---------- v0.5: labelled End chat, minimize, always-visible form ---------- */
#sxac-root .sxac-head { gap: 10px; padding-right: 10px; }
#sxac-root .sxac-end {
	flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 16px;
	border: 1px solid rgba(251, 248, 242, .38); background: rgba(255, 255, 255, .06); color: var(--sxac-ivory);
	font-size: 12.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: background .2s, border-color .2s;
}
#sxac-root .sxac-end:hover, #sxac-root .sxac-end:focus-visible { background: #C0392B; border-color: #C0392B; color: #fff; }
#sxac-root .sxac-end-ico svg { width: 14px; height: 14px; }
#sxac-root .sxac-min svg { width: 24px; height: 24px; }
#sxac-root .sxac-form textarea {
	display: block; width: 100%; min-height: 64px; margin: 0 0 10px; padding: 10px 14px; resize: none;
	border: 1px solid var(--sxac-line); border-radius: 12px; background: var(--sxac-ivory);
	font: inherit; font-size: 15px; line-height: 1.4; color: var(--sxac-ink); box-shadow: none; outline: none;
}
#sxac-root .sxac-form textarea:focus { border-color: var(--sxac-gold); background: var(--sxac-white); }
@media (max-width: 380px) {
	#sxac-root .sxac-end { padding: 0 10px 0 8px; font-size: 12px; }
	#sxac-root .sxac-head-av .sxac-av-md { width: 36px; height: 36px; }
}
