/**
 * Ask in AI Search card. All four colours arrive as CSS custom properties
 * set inline on the card from the module's settings (defaults mirror the
 * reference implementation: yellow card, near-black buttons, white
 * text/icons) — everything else inherits the page's own type.
 */

/* The card keeps its own (settable) background — yellow by default — but
   everything typographic inherits from the theme so it reads as part of the
   site, not a pasted-in widget. Text stays dark for contrast on the light
   card background regardless of the theme's own text colour. */
.sbg-askai {
	background: var( --sbg-askai-card, #f7d54a );
	border-radius: 12px;
	padding: 1.4em 1.6em;
	margin: 2em 0;
	font: inherit;
	color: #16171b;
}

.sbg-askai__heading {
	font-weight: 700;
	font-size: 1.15em;
	margin: 0 0 0.35em;
}

.sbg-askai__body {
	margin: 0 0 1em;
	font-size: 0.95em;
	line-height: 1.5;
}

.sbg-askai__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* No uppercase/letter-spacing transform — labels keep the theme's own
   sentence case and font, so the buttons don't mimic the reference
   implementation's look. */
.sbg-askai__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var( --sbg-askai-btn, #16171b );
	color: var( --sbg-askai-btn-text, #fff );
	border: 0;
	border-radius: 8px;
	padding: 0.6em 1.1em;
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
}

.sbg-askai__btn:hover {
	opacity: 0.85;
	color: var( --sbg-askai-btn-text, #fff );
	text-decoration: none;
}

.sbg-askai__btn:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.sbg-askai__icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	color: var( --sbg-askai-icon, #fff );
	flex: 0 0 auto;
}

.sbg-askai__icon svg {
	width: 100%;
	height: 100%;
}

.sbg-askai__toast {
	margin: 0.8em 0 0;
	font-size: 0.85em;
	font-weight: 700;
}

.sbg-askai__fallback {
	margin-top: 0.8em;
	font-size: 0.85em;
}

.sbg-askai__fallback textarea {
	width: 100%;
	font-size: 0.9em;
	margin-top: 0.4em;
}

.sbg-askai__disclaimer {
	margin: 1em 0 0;
	font-size: 0.75em;
	opacity: 0.75;
}
