.distill {
	--distill-surface: rgba(128, 128, 128, 0.07);
	--distill-border: rgba(128, 128, 128, 0.28);
	--distill-heading: inherit;
	--distill-button-bg: #fff;
	--distill-button-text: #1d2327;
	--distill-button-border: rgba(0, 0, 0, 0.14);
	--distill-button-hover-bg: #f6f7f7;
	--distill-button-hover-text: #1d2327;
	--distill-button-hover-border: rgba(0, 0, 0, 0.3);
	--distill-focus: #2271b1;
	--distill-radius: 12px;
	--distill-button-radius: 8px;
	--distill-gap: 8px;
	--distill-icon: 18px;

	box-sizing: border-box;
	margin-block: 1.5em;
	padding-block: 16px;
	padding-inline: 18px;
	background: var(--distill-surface);
	border: 1px solid var(--distill-border);
	border-radius: var(--distill-radius);
	font: inherit;
	color: inherit;
}

.distill *,
.distill *::before,
.distill *::after {
	box-sizing: inherit;
}

.distill__heading {
	margin-block: 0 12px;
	margin-inline: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	color: var(--distill-heading);
}

.distill__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--distill-gap);
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.distill__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding-block: 8px;
	padding-inline: 14px;
	background: var(--distill-button-bg);
	border: 1px solid var(--distill-button-border);
	border-radius: var(--distill-button-radius);
	box-shadow: none;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--distill-button-text);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.distill__button:hover,
.distill__button:focus {
	background: var(--distill-button-hover-bg);
	border-color: var(--distill-button-hover-border);
	color: var(--distill-button-hover-text);
	text-decoration: none;
}

.distill__button:focus {
	outline: none;
}

.distill__button:focus-visible {
	outline: 2px solid var(--distill-focus);
	outline-offset: 2px;
}

.distill__icon {
	display: inline-flex;
	flex: none;
	width: var(--distill-icon);
	height: var(--distill-icon);
}

.distill__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.distill--align-center .distill__heading {
	text-align: center;
}

.distill--align-center .distill__buttons {
	justify-content: center;
}

.distill--align-end .distill__heading {
	text-align: end;
}

.distill--align-end .distill__buttons {
	justify-content: flex-end;
}

.distill--stacked .distill__buttons {
	flex-direction: column;
	align-items: stretch;
}

.distill--stacked.distill--align-center .distill__button {
	justify-content: center;
}

.distill--stacked.distill--align-end .distill__button {
	justify-content: flex-end;
}

.distill--icons .distill__button {
	justify-content: center;
	min-width: 40px;
	padding: 10px;
}

.distill--editor .distill__button {
	cursor: default;
}

.distill__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.distill__toast {
	position: fixed;
	z-index: 99999;
	inset-block-end: 24px;
	inset-inline: 16px;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-inline: auto;
	padding-block: 10px;
	padding-inline: 14px;
	background: #1d2327;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.distill__toast.is-visible {
	opacity: 1;
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.distill__button,
	.distill__toast {
		transition: none;
	}
}

.distill__description {
	margin-block: 10px 0;
	margin-inline: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	opacity: 0.8;
}

.distill--align-center .distill__description {
	text-align: center;
}

.distill--align-end .distill__description {
	text-align: end;
}

.distill__button--source {
	white-space: normal;
}
