/* AI Summarise Button — shared styles */

.asb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .35 );
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.asb-modal-box {
	background: #fff;
	color: #000;
	color-scheme: light;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, .15 );
	padding: 16px;
	width: min( 92vw, 420px );
	border: 1px solid #e5e7eb;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.asb-modal-title {
	color: #000;
	font-weight: 700;
	margin-bottom: 10px;
}

.asb-modal-select {
	width: 100%;
	height: 36px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0 .5rem;
	margin-bottom: 10px;
	background: #fff;
	color: #000;
	font: inherit;
}

.asb-modal-hint {
	color: #000;
	font-size: 12px;
	margin-bottom: 12px;
}

.asb-modal-actions {
	display: flex;
	gap: .5rem;
	justify-content: flex-end;
}

.asb-btn {
	height: 32px;
	border-radius: 8px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #000;
	font: inherit;
	cursor: pointer;
}

.asb-btn-primary {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/*
 * Themes frequently style form controls and text with selectors more specific
 * than the ones above (and dark themes often set -webkit-text-fill-color, which
 * leaves the select looking empty until the browser repaints it). The modal is
 * always white, so its text is pinned black.
 */
.asb-modal-overlay .asb-modal-box,
.asb-modal-overlay .asb-modal-title,
.asb-modal-overlay .asb-modal-hint,
.asb-modal-overlay .asb-modal-select,
.asb-modal-overlay .asb-modal-select option,
.asb-modal-overlay .asb-btn {
	color: #000 !important;
	-webkit-text-fill-color: #000;
	opacity: 1;
}

.asb-modal-overlay .asb-modal-select,
.asb-modal-overlay .asb-modal-select option,
.asb-modal-overlay .asb-btn {
	background-color: #fff !important;
	color-scheme: light;
}

.asb-modal-overlay .asb-btn-primary {
	background-color: #111827 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	border-color: #111827;
}

.asb-toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX( -50% ) translateY( 16px );
	background: #111827;
	color: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 10000;
	font: 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.asb-toast.show {
	opacity: 1;
	transform: translateX( -50% ) translateY( 0 );
}

@media ( prefers-reduced-motion: reduce ) {

	.asb-toast {
		transition: none;
	}
}

.ai-summarise-logo {
	vertical-align: middle;
	display: inline-block;
	height: 15px;
	width: 15px;
	margin-right: 12px;
	line-height: 0;
	flex: 0 0 auto;
}

.ai-summarise-logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ai-summarise-logo.right {
	margin-right: 0;
	margin-left: 12px;
}

.ai-summarise-logo-wrap {
	display: inline-flex;
	align-items: center;
}
