:root {
	--wcaia-accent: #123f72;
	--wcaia-accent-strong: #0b2e55;
	--wcaia-ink: #10243e;
	--wcaia-muted: #66758a;
	--wcaia-surface: #ffffff;
	--wcaia-soft: #f4f7fb;
	--wcaia-border: rgba(16, 36, 62, .1);
	--wcaia-shadow: 0 24px 70px rgba(16, 36, 62, .2);
}
.wcaia-widget,
.wcaia-widget * { box-sizing: border-box; }
.wcaia-widget {
	position: fixed;
	z-index: 999999;
	bottom: max(22px, env(safe-area-inset-bottom));
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wcaia-ink);
}
.wcaia-widget--right { right: max(22px, env(safe-area-inset-right)); }
.wcaia-widget--left { left: max(22px, env(safe-area-inset-left)); }
.wcaia-launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin-inline-start: auto;
	border: 0;
	border-radius: 22px;
	background: linear-gradient(145deg, var(--wcaia-accent), var(--wcaia-accent-strong));
	box-shadow: 0 14px 38px rgba(18, 63, 114, .34);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.wcaia-widget--left .wcaia-launcher { margin-inline-start: 0; margin-inline-end: auto; }
.wcaia-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(18, 63, 114, .4); }
.wcaia-launcher:focus-visible,
.wcaia-icon-button:focus-visible,
.wcaia-send:focus-visible,
.wcaia-composer textarea:focus-visible { outline: 3px solid rgba(18, 63, 114, .24); outline-offset: 3px; }
.wcaia-launcher svg { width: 31px; height: 31px; fill: #fff; position: relative; z-index: 2; }
.wcaia-launcher__pulse {
	position: absolute;
	inset: -5px;
	border: 1px solid rgba(18, 63, 114, .24);
	border-radius: 26px;
	animation: wcaia-pulse 2.4s ease-out infinite;
}
@keyframes wcaia-pulse { 0% { transform: scale(.9); opacity: .8; } 70%,100% { transform: scale(1.2); opacity: 0; } }
.wcaia-panel {
	position: absolute;
	bottom: 76px;
	width: min(390px, calc(100vw - 32px));
	height: min(610px, calc(100vh - 125px));
	display: flex;
	flex-direction: column;
	background: var(--wcaia-surface);
	border: 1px solid var(--wcaia-border);
	border-radius: 24px;
	box-shadow: var(--wcaia-shadow);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(.98);
	transform-origin: bottom center;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.wcaia-widget--right .wcaia-panel { right: 0; }
.wcaia-widget--left .wcaia-panel { left: 0; }
.wcaia-widget.is-open .wcaia-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.wcaia-widget.is-open .wcaia-launcher { transform: scale(.92); }
.wcaia-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 14px;
	border-bottom: 1px solid var(--wcaia-border);
	background: rgba(255,255,255,.96);
}
.wcaia-panel__identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.wcaia-panel__identity strong { display: block; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcaia-panel__identity span:not(.wcaia-panel__avatar) { display: block; margin-top: 2px; font-size: 12px; color: var(--wcaia-muted); }
.wcaia-panel__avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 14px;
	background: var(--wcaia-soft);
}
.wcaia-panel__avatar svg { width: 22px; height: 22px; fill: var(--wcaia-accent); }
.wcaia-panel__actions { display: flex; align-items: center; gap: 4px; }
.wcaia-icon-button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
}
.wcaia-icon-button:hover { background: var(--wcaia-soft); }
.wcaia-icon-button svg { width: 19px; height: 19px; fill: var(--wcaia-muted); }
.wcaia-messages {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 16px 10px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
	scrollbar-width: thin;
}
.wcaia-message { display: flex; margin: 0 0 12px; }
.wcaia-message--assistant { justify-content: flex-start; }
.wcaia-message--user { justify-content: flex-end; }
.wcaia-message__content {
	max-width: 84%;
	padding: 11px 13px;
	border-radius: 17px;
	white-space: pre-wrap;
	word-break: break-word;
	box-shadow: 0 2px 8px rgba(16,36,62,.04);
}
.wcaia-message--assistant .wcaia-message__content {
	background: #fff;
	border: 1px solid var(--wcaia-border);
	border-start-start-radius: 6px;
}
.wcaia-message--user .wcaia-message__content {
	background: var(--wcaia-accent);
	color: #fff;
	border-end-end-radius: 6px;
}
.wcaia-typing {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 18px 5px;
	background: #f7f9fc;
	color: var(--wcaia-muted);
	font-size: 12px;
}
.wcaia-typing[hidden] { display: none; }
.wcaia-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--wcaia-muted); animation: wcaia-dot 1s infinite ease-in-out; }
.wcaia-typing span:nth-child(2) { animation-delay: .15s; }
.wcaia-typing span:nth-child(3) { animation-delay: .3s; }
.wcaia-typing em { font-style: normal; margin-inline-start: 3px; }
@keyframes wcaia-dot { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wcaia-composer {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	padding: 11px 12px;
	background: #fff;
	border-top: 1px solid var(--wcaia-border);
}
.wcaia-composer textarea {
	width: 100%;
	min-height: 44px;
	max-height: 112px;
	resize: none;
	padding: 10px 12px;
	border: 1px solid var(--wcaia-border);
	border-radius: 14px;
	background: var(--wcaia-soft);
	box-shadow: none;
	font: inherit;
	line-height: 1.45;
	color: var(--wcaia-ink);
}
.wcaia-composer textarea:focus { border-color: rgba(18,63,114,.35); background: #fff; }
.wcaia-send {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--wcaia-accent);
	cursor: pointer;
}
.wcaia-send:hover { background: var(--wcaia-accent-strong); }
.wcaia-send:disabled { opacity: .5; cursor: wait; }
.wcaia-send svg { width: 21px; height: 21px; fill: #fff; }
[dir="rtl"] .wcaia-send svg { transform: scaleX(-1); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
	.wcaia-widget { bottom: max(14px, env(safe-area-inset-bottom)); }
	.wcaia-widget--right { right: max(14px, env(safe-area-inset-right)); }
	.wcaia-widget--left { left: max(14px, env(safe-area-inset-left)); }
	.wcaia-panel {
		position: fixed;
		left: 10px !important;
		right: 10px !important;
		bottom: max(86px, calc(env(safe-area-inset-bottom) + 76px));
		width: auto;
		height: min(72vh, 600px);
		border-radius: 22px;
	}
	.wcaia-launcher { width: 58px; height: 58px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.wcaia-launcher,
	.wcaia-panel,
	.wcaia-launcher__pulse,
	.wcaia-typing span { animation: none !important; transition: none !important; }
}

#wcaia-widget .wcaia-product-card__order {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d8dfed;
  border-radius: 10px;
  background: #f5f7fb;
  color: #394b72;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
#wcaia-widget .wcaia-product-card__order:hover,
#wcaia-widget .wcaia-product-card__order:focus-visible {
  background: #e7edf8;
  border-color: #b9c6df;
  color: #29395d;
}

#wcaia-widget .wcaia-order-form-card {
  margin: 10px 0 4px;
  padding: 13px;
  border: 1px solid #d8dfed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(35, 53, 87, .08);
}
#wcaia-widget .wcaia-order-form-card h4 { margin: 0 0 5px; color: #29395d; font-size: 14px; }
#wcaia-widget .wcaia-order-form__summary { margin: 0 0 5px; color: #394b72; font-size: 12px; font-weight: 700; }
#wcaia-widget .wcaia-order-form__note { margin: 0 0 9px; color: #667085; font-size: 11px; line-height: 1.5; }
#wcaia-widget .wcaia-order-form { display: grid; gap: 7px; }
#wcaia-widget .wcaia-order-form__field { display: grid; gap: 3px; color: #475467; font-size: 11px; font-weight: 700; }
#wcaia-widget .wcaia-order-form__field input,
#wcaia-widget .wcaia-order-form__field textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d8dfed;
  border-radius: 8px;
  background: #fbfcfe;
  color: #1d2939;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
}
#wcaia-widget .wcaia-order-form__field textarea { min-height: 55px; resize: vertical; }
#wcaia-widget .wcaia-order-form__field input:focus,
#wcaia-widget .wcaia-order-form__field textarea:focus { outline: 2px solid rgba(57, 75, 114, .18); border-color: #8ea3c8; }
#wcaia-widget .wcaia-order-form__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 3px; }
#wcaia-widget .wcaia-order-interruption__actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 10px; }
#wcaia-widget .wcaia-order-interruption__actions button { min-height: 38px; }
#wcaia-widget .wcaia-order-form__actions button { min-height: 34px; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
#wcaia-widget .wcaia-order-form__cancel { border: 1px solid #d8dfed; background: #fff; color: #667085; }
#wcaia-widget .wcaia-order-form__submit { border: 1px solid #394b72; background: #394b72; color: #fff; }
#wcaia-widget .wcaia-order-form__submit:hover { background: #29395d; }

/* Phase 6 — recommendation cards */
.wcaia-recommendations {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
}
.wcaia-product-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 11px;
	padding: 10px;
	border: 1px solid var(--wcaia-border);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(16,36,62,.055);
}
.wcaia-product-card__image {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 13px;
	overflow: hidden;
	background: var(--wcaia-soft);
}
.wcaia-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.wcaia-product-card__body { min-width: 0; }
.wcaia-product-card__title {
	display: block;
	color: var(--wcaia-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}
.wcaia-product-card__title:hover { color: var(--wcaia-accent); }
.wcaia-product-card__price {
	margin-top: 4px;
	color: var(--wcaia-accent-strong);
	font-size: 13px;
	font-weight: 700;
}
.wcaia-product-card__price del { opacity: .55; font-weight: 500; }
.wcaia-product-card__price ins { text-decoration: none; }
.wcaia-product-card__reason {
	margin: 5px 0 0;
	color: var(--wcaia-muted);
	font-size: 11.5px;
	line-height: 1.45;
}
.wcaia-product-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.wcaia-product-card__primary,
.wcaia-product-card__secondary,
.wcaia-product-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 31px;
	padding: 6px 9px;
	border-radius: 9px;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.wcaia-product-card__primary {
	border: 1px solid var(--wcaia-accent);
	background: var(--wcaia-accent);
	color: #fff;
}
.wcaia-product-card__primary:hover { background: var(--wcaia-accent-strong); border-color: var(--wcaia-accent-strong); color: #fff; }
.wcaia-product-card__primary:disabled { opacity: .65; cursor: wait; }
.wcaia-product-card__primary.is-added { background: #176b3a; border-color: #176b3a; }
.wcaia-product-card__secondary,
.wcaia-product-card__cart {
	border: 1px solid var(--wcaia-border);
	background: var(--wcaia-soft);
	color: var(--wcaia-ink);
}
.wcaia-product-card__secondary:hover,
.wcaia-product-card__cart:hover { background: #eaf0f8; color: var(--wcaia-accent-strong); }
.wcaia-category-card {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 10px 11px;
	border: 1px solid rgba(18,63,114,.14);
	border-radius: 15px;
	background: linear-gradient(135deg, rgba(18,63,114,.06), rgba(18,63,114,.025));
	color: var(--wcaia-ink);
	text-decoration: none;
}
.wcaia-category-card:hover { border-color: rgba(18,63,114,.28); color: var(--wcaia-accent-strong); }
.wcaia-category-card img {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 11px;
	object-fit: contain;
	background: #fff;
}
.wcaia-category-card__text { min-width: 0; flex: 1; }
.wcaia-category-card__text strong {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wcaia-category-card__text span {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--wcaia-muted);
}
.wcaia-category-card__arrow {
	font-size: 18px;
	line-height: 1;
	color: var(--wcaia-accent);
}
[dir="ltr"] .wcaia-category-card__arrow { transform: scaleX(-1); }

@media (max-width: 420px) {
	.wcaia-product-card { grid-template-columns: 68px minmax(0, 1fr); }
	.wcaia-product-card__image { width: 68px; height: 68px; }
	.wcaia-product-card__actions { gap: 5px; }
	.wcaia-product-card__primary,
	.wcaia-product-card__secondary,
	.wcaia-product-card__cart { padding: 6px 8px; }
}

/* Phase 9 — medical safety / review notices */
.wcaia-safety-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 10px;
	padding: 10px 11px;
	border: 1px solid rgba(131, 101, 17, .22);
	border-radius: 14px;
	background: #fffaf0;
	color: #5f4a0d;
	font-size: 11.5px;
	line-height: 1.5;
}
.wcaia-safety-notice__icon {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 50%;
	background: rgba(131, 101, 17, .12);
	font-weight: 800;
}
.wcaia-safety-notice.is-review-required {
	border-color: rgba(159, 83, 20, .24);
	background: #fff7ed;
	color: #7a3e10;
}
.wcaia-safety-notice.is-review-recommended {
	border-color: rgba(29, 91, 145, .20);
	background: #f3f8fd;
	color: #194f7d;
}
.wcaia-safety-notice.is-urgent {
	border-color: rgba(169, 38, 38, .28);
	background: #fff1f1;
	color: #8f2020;
	font-weight: 650;
}
.wcaia-safety-notice.is-urgent .wcaia-safety-notice__icon {
	background: rgba(169, 38, 38, .12);
}
.wcaia-product-card__safety {
	display: inline-flex;
	align-items: center;
	margin-top: 5px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #f3f8fd;
	color: #1f5c8c;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
}
.wcaia-product-card__safety.is-required {
	background: #fff3e7;
	color: #8a4610;
}

/* Phase 12 beta — branded mascot. Entirely optional; classic chat SVG remains unchanged. */
.wcaia-widget--mascot { --wcaia-mascot-scale: 1; }
.wcaia-widget--mascot .wcaia-launcher {
  width: 112px;
  height: 164px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  overflow: visible;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.wcaia-widget--mascot .wcaia-launcher:hover { box-shadow: none; transform: translateY(-3px); }
.wcaia-widget--mascot .wcaia-launcher:focus-visible { outline-offset: 0; border-radius: 12px; }
.wcaia-mascot__halo {
  position: absolute;
  z-index: -1;
  bottom: 7px;
  left: 12%;
  right: 12%;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(18, 63, 114, .18), transparent 73%);
  pointer-events: none;
}
.wcaia-widget--mascot .wcaia-mascot__full-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 12px rgba(13, 43, 77, .13));
  pointer-events: none;
}
.wcaia-mascot__online {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #18a773;
  box-shadow: 0 2px 8px rgba(20, 75, 67, .25);
  pointer-events: none;
}
.wcaia-widget--mascot .wcaia-panel { bottom: 174px; height: min(580px, calc(100dvh - 220px)); }
.wcaia-widget--mascot .wcaia-panel__avatar { border-radius: 13px; overflow: hidden; }
.wcaia-mascot__avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.wcaia-widget--mascot.is-open .wcaia-launcher { transform: none; }
/* Limit the floating footprint on mobile; full body is still available on desktop. */
@media (max-width: 600px) {
  .wcaia-widget--mascot .wcaia-launcher { width: 76px; height: 99px; }
  .wcaia-widget--mascot .wcaia-panel {
    bottom: max(112px, calc(env(safe-area-inset-bottom) + 104px));
    height: min(72dvh, 580px);
  }
  .wcaia-widget--mascot .wcaia-mascot__online { bottom: 11px; right: 2px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .wcaia-widget--mascot .wcaia-launcher { height: 124px; width: 88px; }
  .wcaia-widget--mascot .wcaia-panel { bottom: 135px; height: min(440px, calc(100dvh - 155px)); }
}
@media (prefers-reduced-motion: reduce) {
  .wcaia-widget--mascot .wcaia-launcher,
  .wcaia-widget--mascot .wcaia-mascot__full-img { transition: none !important; animation: none !important; }
}

/* Keep chat controls visible across themes that apply global button rules. */
.wcaia-panel .wcaia-panel__actions { display: flex !important; align-items: center !important; gap: 8px !important; }
.wcaia-panel button.wcaia-icon-button {
  display: grid !important; place-items: center !important; visibility: visible !important; opacity: 1 !important;
  width: 38px !important; min-width: 38px !important; height: 38px !important; flex: 0 0 38px !important;
  padding: 0 !important; border: 1px solid #d8e1ed !important; border-radius: 12px !important;
  background: #f3f6fa !important; color: #123f72 !important; cursor: pointer !important;
}
.wcaia-panel button.wcaia-icon-button:hover { background: #e6edf6 !important; border-color: #b9c9dc !important; }
.wcaia-panel button.wcaia-icon-button svg { display: block !important; width: 19px !important; height: 19px !important; fill: #123f72 !important; }
.wcaia-panel button.wcaia-send { display: grid !important; place-items: center !important; visibility: visible !important; opacity: 1 !important; background: #123f72 !important; color: #fff !important; }
.wcaia-panel button.wcaia-send:hover:not(:disabled) { background: #0d315a !important; }
.wcaia-panel button.wcaia-send:disabled { opacity: .62 !important; cursor: wait !important; }

/* Keep the transparent mascot launcher clear of theme button hover backgrounds. */
.wcaia-widget--mascot .wcaia-launcher,
.wcaia-widget--mascot .wcaia-launcher:hover,
.wcaia-widget--mascot .wcaia-launcher:focus,
.wcaia-widget--mascot .wcaia-launcher:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Version 3 chat refresh: compact slate palette, clear hierarchy, mascot retained. */
:root {
  --wcaia-accent: #394b72;
  --wcaia-accent-strong: #29395d;
  --wcaia-ink: #182238;
  --wcaia-muted: #68748a;
  --wcaia-soft: #f0f3fb;
  --wcaia-border: rgba(41, 57, 93, .12);
  --wcaia-shadow: 0 18px 48px rgba(24, 34, 56, .18);
}
.wcaia-widget { line-height: 1.55; }
.wcaia-panel {
  border-radius: 18px;
  box-shadow: var(--wcaia-shadow);
}
.wcaia-panel__header {
  padding: 13px 15px;
  background: #fff;
  border-bottom-color: rgba(41, 57, 93, .1);
}
.wcaia-panel__identity { gap: 10px; }
.wcaia-panel__identity strong { font-size: 14px; letter-spacing: -.01em; }
.wcaia-panel__identity span:not(.wcaia-panel__avatar) { font-size: 11px; }
.wcaia-panel__avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
  background: #f0f3fb;
}
.wcaia-mascot__avatar-img { object-position: 50% 23%; }
.wcaia-panel .wcaia-panel__actions { gap: 6px !important; }
.wcaia-panel button.wcaia-icon-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  border-color: rgba(57, 75, 114, .12) !important;
  border-radius: 11px !important;
  background: #f0f3fb !important;
  color: #394b72 !important;
}
.wcaia-panel button.wcaia-icon-button:hover { background: #e5eaf6 !important; }
.wcaia-panel button.wcaia-icon-button svg { fill: #394b72 !important; }
.wcaia-messages {
  padding: 15px 14px 9px;
  background: linear-gradient(180deg, #f6f7fb 0%, #fbfcfe 100%);
}
.wcaia-message { margin-bottom: 10px; }
.wcaia-message__content {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: 0 2px 7px rgba(24, 34, 56, .035);
}
.wcaia-message--assistant .wcaia-message__content { border-start-start-radius: 5px; }
.wcaia-message--user .wcaia-message__content { border-end-end-radius: 5px; }
.wcaia-typing { padding: 7px 15px 4px; background: #f6f7fb; }
.wcaia-recommendations { gap: 8px; margin-bottom: 11px; }
.wcaia-product-card {
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(24, 34, 56, .045);
}
.wcaia-product-card__image { width: 66px; height: 66px; border-radius: 9px; }
.wcaia-product-card__title { font-size: 12.5px; line-height: 1.45; }
.wcaia-product-card__price { margin-top: 3px; font-size: 12px; }
.wcaia-product-card__reason { margin-top: 3px; font-size: 11px; line-height: 1.5; }
.wcaia-product-card__actions { gap: 6px; margin-top: 7px; }
.wcaia-product-card__primary,
.wcaia-product-card__secondary,
.wcaia-product-card__cart { min-height: 32px; padding: 6px 9px; border-radius: 9px; font-size: 11px; }
.wcaia-product-card__primary { background: #394b72; border-color: #394b72; }
.wcaia-product-card__primary:hover { background: #29395d; border-color: #29395d; }
.wcaia-product-card__secondary,
.wcaia-product-card__cart { background: #f0f3fb; color: #394b72; }
.wcaia-product-card__secondary:hover,
.wcaia-product-card__cart:hover { background: #e5eaf6; color: #29395d; }
.wcaia-category-card { border-radius: 12px; }
.wcaia-composer { gap: 8px; padding: 9px 11px; }
.wcaia-composer textarea {
  min-height: 42px;
  max-height: 96px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f7f8fc;
  font-size: 13px;
}
.wcaia-composer textarea:focus { border-color: rgba(57, 75, 114, .36); }
.wcaia-send {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
  background: #394b72 !important;
}
.wcaia-panel button.wcaia-send:hover:not(:disabled) { background: #29395d !important; }
.wcaia-launcher:focus-visible,
.wcaia-icon-button:focus-visible,
.wcaia-send:focus-visible,
.wcaia-composer textarea:focus-visible { outline-color: rgba(57, 75, 114, .26); }
@media (max-width: 600px) {
  .wcaia-widget--mascot .wcaia-panel { border-radius: 16px; }
  .wcaia-messages { padding: 12px 11px 7px; }
  .wcaia-product-card { grid-template-columns: 60px minmax(0, 1fr); }
  .wcaia-product-card__image { width: 60px; height: 60px; }
  .wcaia-composer { padding: 8px 9px; }
}

/* Enforce the compact composer size against storefront theme form styles. */
#wcaia-widget .wcaia-composer textarea {
  min-height: 42px !important;
  max-height: 96px !important;
  padding-block: 9px !important;
  border-radius: 12px !important;
}

/* Keep the primary cart action readable inside Woodmart's global button reset. */
#wcaia-widget .wcaia-product-card__primary {
  min-height: 40px !important;
  padding: 9px 14px !important;
  border: 1px solid #394b72 !important;
  border-radius: 12px !important;
  background: #394b72 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(57, 75, 114, .16);
}

#wcaia-widget .wcaia-product-card__primary:hover,
#wcaia-widget .wcaia-product-card__primary:focus-visible {
  border-color: #29395d !important;
  background: #29395d !important;
  color: #fff !important;
  box-shadow: 0 5px 12px rgba(41, 57, 93, .24);
}

#wcaia-widget .wcaia-product-card__primary:disabled {
  opacity: .7;
  box-shadow: none;
}

@media (max-width: 420px) {
  #wcaia-widget .wcaia-product-card__primary {
    min-height: 38px !important;
    padding-inline: 11px !important;
    font-size: 11.5px !important;
  }
}

/* Searching pose: a subtle scan motion while the assistant is fetching products. */
@keyframes wcaia-searching-scan {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -4px, 0) rotate(1deg); }
}

#wcaia-widget[data-mascot-state="searching"] .wcaia-mascot__full-img {
  animation: wcaia-searching-scan 1.35s ease-in-out infinite;
  transform-origin: bottom center;
}

#wcaia-widget[data-mascot-state="searching"] .wcaia-mascot__avatar-img {
  animation: wcaia-searching-scan 1.35s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@media (prefers-reduced-motion: reduce) {
  #wcaia-widget[data-mascot-state="searching"] .wcaia-mascot__full-img,
  #wcaia-widget[data-mascot-state="searching"] .wcaia-mascot__avatar-img {
    animation: none;
  }
}
