.speechify {
	--speechify-accent: #79b62f;
	--speechify-accent-dark: #4f8f1f;
	--speechify-bg: #f5f7f2;
	--speechify-border: #dfe7d8;
	--speechify-text: #20251d;
	--speechify-muted: #66705f;
	--speechify-track: #d8e1d2;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	width: min(100%, 620px);
	margin: 22px 0;
	padding: 12px 14px;
	border: 1px solid var(--speechify-border);
	border-radius: 8px;
	color: var(--speechify-text);
	background: var(--speechify-bg);
}

.speechify__button {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: var(--speechify-accent-dark);
	box-shadow: 0 7px 18px rgba(79, 143, 31, .22);
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.speechify__button:hover {
	background: #407817;
	transform: translateY(-1px);
}

.speechify__button:disabled {
	cursor: wait;
	opacity: .7;
	transform: none;
}

.speechify__button:focus-visible {
	outline: 2px solid var(--speechify-accent);
	outline-offset: 3px;
}

.speechify__icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 2px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
}

.speechify[data-state="playing"] .speechify__icon {
	width: 12px;
	height: 15px;
	margin-left: 0;
	border: 0;
	border-right: 3px solid currentColor;
	border-left: 3px solid currentColor;
}

.speechify[data-state="generating"] .speechify__icon,
.speechify[data-state="loading"] .speechify__icon {
	width: 16px;
	height: 16px;
	margin-left: 0;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: speechify-spin .8s linear infinite;
}

.speechify__main {
	min-width: 0;
}

.speechify__controls {
	display: grid;
	grid-template-columns: minmax(90px, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.speechify__track {
	position: relative;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--speechify-track);
	cursor: pointer;
}

.speechify__buffer,
.speechify__progress {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: left center;
}

.speechify__buffer {
	background: rgba(79, 143, 31, .18);
}

.speechify__progress {
	background: var(--speechify-accent);
}

.speechify__time {
	color: var(--speechify-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.speechify__audio {
	display: none;
}

.speechify--notice {
	margin: 16px 0;
	color: #8a5a00;
	font-size: 14px;
	display: flex;
}

.speechify--pending {
	grid-template-columns: 38px minmax(0, 1fr) 22px;
	gap: 12px;
	align-items: center;
	width: min(100%, 620px);
	min-height: 76px;
	padding: 12px 14px;
	border-color: var(--speechify-border);
	color: var(--speechify-text);
	background: var(--speechify-bg);
}

.speechify__pending-loader {
	display: block;
	width: 34px;
	height: 34px;
	border: 5px solid var(--speechify-accent-dark);
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	transform: rotate(-26deg);
}

.speechify__pending-main {
	min-width: 0;
}

.speechify__pending-title {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.speechify__pending-post {
	color: var(--speechify-muted);
	font-size: 13px;
	line-height: 1.3;
}

.speechify__pending-info {
	display: inline-grid;
	place-items: center;
	align-self: start;
	width: 22px;
	height: 22px;
	margin-top: 4px;
	border: 2px solid var(--speechify-accent-dark);
	border-radius: 50%;
	color: var(--speechify-accent-dark);
	font-size: 15px;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
}

@keyframes speechify-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 560px) {
	.speechify {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.speechify__button {
		width: 40px;
		height: 40px;
	}

	.speechify__controls {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.speechify--pending {
		grid-template-columns: 34px minmax(0, 1fr) 20px;
		gap: 10px;
		min-height: 68px;
		padding: 12px;
	}

	.speechify__pending-loader {
		width: 30px;
		height: 30px;
		border-width: 4px;
	}

	.speechify__pending-title {
		margin-bottom: 4px;
		font-size: 14px;
	}

	.speechify__pending-post {
		font-size: 12px;
	}

	.speechify__pending-info {
		width: 20px;
		height: 20px;
		border-width: 2px;
		font-size: 13px;
	}
}
