body {
	counter-reset: footnote-index;
}
.footnote-reference {
	counter-increment: footnote-index;
	position: relative;
	color: unset;

	&::after {
		background-color: var(--wp--preset--color--primary);
		color: #fff;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		content: counter(footnote-index);
		display: inline-flex;
		justify-content: center;
		align-items: center;
		font-size: 11px !important;
		font-weight: 600;
		margin-left: 0px;
		margin-right: 3px;
	}
}

// Editor
.footnote-reference {
	.wp-block-post-content & {
		text-decoration: underline;
		text-decoration-style: dotted;
		text-decoration-color: var(--wp--preset--color--primary);
		text-decoration-thickness: 2px;
		text-underline-offset: 2px;
	}
}

.popover_footnote_field {
	.components-popover__content {
		padding: 10px !important;
		min-width: 500px;
	}
	.popover_footnote_field_buttons {
		display: flex;
		justify-content: flex-end;
		gap: 10px;
		margin-top: 10px;

		button.is-destructive {
			background-color: #cc1818 !important;
			color: #fff !important;
		}

		button.is-primary {
			background-color: var(--wp--preset--color--primary) !important;
			color: #fff !important;
		}
	}
}
