/* Striker Assistant — chat bubble (bottom-left: the floating cart and Jetpack Subscribe sit bottom-right) in the Striker Style theme language (ink, pills, Inter/Barlow). */
.sa {
	--sa-ink: #111111;
	--sa-paper: #ffffff;
	--sa-stage: #f5f5f5;
	--sa-line: #e5e5e5;
	--sa-mute: #6b6b6e;
	position: fixed;
	left: 16px;
	bottom: 20px;
	z-index: 99990;
	font-family: inherit;
	color: var(--sa-ink);
}

.sa__launch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--sa-ink);
	color: #fff;
	font: 600 15px/1 inherit;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: transform .15s ease;
}

.sa__launch:hover { transform: translateY(-1px); }
.sa__launch:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
.sa--open .sa__launch { display: none; }

.sa__panel {
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	height: min(600px, calc(100vh - 120px));
	overflow: hidden;
	border: 1px solid var(--sa-line);
	border-radius: 18px;
	background: var(--sa-paper);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.sa__panel[hidden] { display: none; }

.sa__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: var(--sa-ink); color: #fff; }
.sa__title { margin: 0; font-weight: 700; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.sa__sub { margin: 2px 0 0; color: #bdbdc0; font-size: 12px; }
.sa__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.sa__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sa__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--sa-stage); }

.sa__msg { max-width: 86%; margin: 0 0 10px; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sa__msg p { margin: 0 0 6px; }
.sa__msg p:last-child, .sa__msg ul:last-child { margin-bottom: 0; }
.sa__msg ul { margin: 4px 0 6px; padding-left: 18px; }
.sa__msg a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sa__msg--bot { border-bottom-left-radius: 4px; background: var(--sa-paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.sa__msg--me { margin-left: auto; border-bottom-right-radius: 4px; background: var(--sa-ink); color: #fff; }

.sa__typing { display: inline-flex; gap: 4px; }
.sa__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sa-mute); animation: sa-dot 1s infinite ease-in-out; }
.sa__typing i:nth-child(2) { animation-delay: .15s; }
.sa__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sa-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.sa__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--sa-stage); }
.sa__chips:empty { display: none; }
.sa__chip { padding: 7px 12px; border: 1px solid var(--sa-line); border-radius: 999px; background: var(--sa-paper); color: var(--sa-ink); font: 500 13px/1.2 inherit; cursor: pointer; }
.sa__chip:hover { border-color: var(--sa-ink); }

.sa__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--sa-line); }
.sa__input { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 14px; border: 1px solid var(--sa-line); border-radius: 21px; font: 14px/1.4 inherit; resize: none; }
.sa__input:focus { border-color: var(--sa-ink); outline: none; }
.sa__send { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 0; border-radius: 50%; background: var(--sa-ink); color: #fff; cursor: pointer; }
.sa__send:disabled { opacity: .4; cursor: default; }
.sa__note { margin: 0; padding: 0 14px 10px; color: var(--sa-mute); font-size: 11px; text-align: center; }
.sa__note a { color: inherit; }

@media (max-width: 600px) {
	.sa { left: 12px; bottom: 16px; }
	.sa--open { inset: 0; }
	.sa--open .sa__panel { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
	.sa__launch-text { display: none; }
	.sa__launch { width: 52px; height: 52px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sa__launch, .sa__typing i { transition: none; animation: none; }
}

/* v2: product cards, links, order form */
.sa__msg ol { margin: 4px 0 6px; padding-left: 20px; }
.sa__hint { color: var(--sa-mute); font-size: 12px; }
.sa__more { font-weight: 600; }
.sa__cards { display: grid; gap: 8px; margin: 8px 0; }
.sa__card { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--sa-line); border-radius: 12px; background: var(--sa-paper); color: var(--sa-ink) !important; text-decoration: none !important; font-weight: 400 !important; }
.sa__card:hover { border-color: var(--sa-ink); }
.sa__card img, .sa__ph { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; background: var(--sa-stage); object-fit: contain; }
.sa__card-body { display: grid; gap: 2px; min-width: 0; }
.sa__card-name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.sa__card-price { font-size: 13px; }
.sa__card-price s { color: var(--sa-mute); }
.sa__wa { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #1fa855; color: #fff !important; font: 600 14px/1 inherit; text-decoration: none !important; cursor: pointer; }
.sa__wa:hover { background: #178a45; }
.sa__order { display: grid; gap: 8px; }
.sa__order label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; }
.sa__order input, .sa__order select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--sa-line); border-radius: 10px; background: #fff; font: 14px/1.3 inherit; }
.sa__order input:focus, .sa__order select:focus { border-color: var(--sa-ink); outline: none; }
.sa__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa__msg--bot:has(.sa__order) { max-width: 100%; }
