/* Copyright 2017-2021 Sean Williams This file is part of Modern Footnotes. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */

.modern-footnotes-footnote {
	position: relative;
	top: -3px;
	margin-left: 4px;
	font-family: Poppins, sans-serif;
	font-size: .6em;
	font-weight: bold;
	padding: 0 2px;
	background: transparent;
	border: none;
	box-shadow: none;
	line-height: 1 !important;
}

.modern-footnotes-footnote--selected {
	background: transparent;
	border-radius: 0;
}

.modern-footnotes-footnote__connector {
	background: #99e59d;
	position: absolute;
	width: 2px;
	margin-left: 3px;
}

.modern-footnotes-footnote a {
	display: inline-block;
	width: 2.6em;
	box-sizing: border-box;
	text-align: center;
	color: #fff !important;
	padding: 1px 0 !important;
	text-decoration: none !important;
	border: 3px solid #c7ced4;
	background-color: #c7ced4;
	border-radius: 15px;
	font-style: normal;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	transition: 0.2s linear;
}

.modern-footnotes-footnote a:hover {
	color: #4a9d3a !important;
	background-color: #99e59d;
	border-color: #99e59d;
	text-decoration: none;
	letter-spacing: normal !important;
}

.modern-footnotes-footnote.modern-footnotes-footnote--selected a {
	color: #4a9d3a !important;
	background-color: #99e59d;
	border-color: #99e59d;
}

.modern-footnotes-footnote a:focus,
.modern-footnotes-footnote a:active,
.modern-footnotes-footnote a:focus-visible {
	outline: none;
	box-shadow: none;
	text-decoration: none;
}

.modern-footnotes-footnote a i.fa-times,
.modern-footnotes-footnote a i.fas,
.modern-footnotes-footnote a i.fa-solid {
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
	font-weight: 900 !important;
	font-style: normal !important;
	line-height: 1 !important;
	display: inline-block !important;
	transition: transform 0.2s linear !important;
}

.modern-footnotes-footnote__note {
	display: none;
	font-family: inherit;
	font-size: inherit !important;
	line-height: inherit !important;
	text-transform: none !important;
	color: #4a9d3a;
	padding: 15px;
	text-align: left;
	font-style: normal;
	font-weight: normal;
	border-radius: 10px;
	max-height: 40vh;
	overflow-y: auto;
	box-sizing: border-box;
}

.modern-footnotes-footnote__note a {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.modern-footnotes-footnote__note--tooltip {
	position: absolute;
	left: 0;
	font-size: 1.2em !important;
	line-height: inherit !important;
	text-transform: none !important;
	border: 2px solid #99e59d;
	background: #fff;
	padding: 15px;
	border-radius: 10px;
	width: max-content;
	max-width: 850px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	z-index: 9999;
	text-align: left;
	text-indent: 0;
}

.modern-footnotes-footnote__note--tooltip p {
	text-align: left;
	text-indent: 0;
	margin: 0;
	padding: 0;
}

.modern-footnotes-footnote__note--tooltip:focus {
	outline: 0;
}

.modern-footnotes-footnote__note--expandable {
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	border: 2px solid #99e59d;
	background: #fff;
	padding: 15px;
	border-radius: 10px;
	box-shadow: none;
	text-align: left;
	text-indent: 0;
}

.modern-footnotes-footnote__note--expandable p {
	text-align: left;
	text-indent: 0;
	margin: 0;
	padding: 0;
}

.modern-footnotes-scroll-to-reference {
	font-size: 110%;
	margin-left: .2em;
}

.modern-footnotes-list {
	list-style-type: none;
	font-size: .8em;
	margin: 1em 0;
	padding-left: 0;
}

.modern-footnotes-list li {
	display: flex;
	margin-bottom: .3em;
}

.modern-footnotes-list li > span {
	margin-right: 1.5em;
	color: #777;
	word-wrap: normal;
	word-break: normal;
}

.modern-footnotes-list--show-only-for-print,
.modern-footnotes-list-heading--show-only-for-print {
	display: none;
}

@media print {
	.modern-footnotes-list--show-only-for-print,
	.modern-footnotes-list-heading--show-only-for-print {
		display: block;
	}

	.modern-footnotes-list--hide-for-print,
	.modern-footnotes-list-heading--hide-for-print,
	.modern-footnotes-scroll-to-footnote,
	.modern-footnotes-scroll-to-reference {
		display: none;
	}
}