/* Wallet Safety Checker. Fonts and text colors come from the theme. */
.tcl-wc {
	--tcl-wc-line: rgba(127, 127, 127, .3);
	--tcl-wc-soft: rgba(127, 127, 127, .08);
	--tcl-wc-critical: #b42318;
	--tcl-wc-high: #c4320a;
	--tcl-wc-medium: #a15c07;
	--tcl-wc-low: #1f6f8b;
	--tcl-wc-info: #5b6472;
	--tcl-wc-good: #157f3b;
	display: block;
	margin: 2rem 0;
	scroll-margin-top: 6rem;
}
.tcl-wc * { box-sizing: border-box; }
.tcl-wc-trust {
	border-left: 4px solid var(--tcl-wc-good);
	background: var(--tcl-wc-soft);
	padding: .8rem 1rem;
	margin: 0 0 1rem;
	border-radius: 4px;
	line-height: 1.5;
}
.tcl-wc-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.tcl-wc-field { display: flex; flex-direction: column; gap: .3rem; }
.tcl-wc-field label { font-weight: 600; }
.tcl-wc-field-address { flex: 1 1 22rem; min-width: 0; }
.tcl-wc-field-chain { flex: 0 1 11rem; }
.tcl-wc-field-button { flex: 0 0 auto; }
.tcl-wc input[type="text"], .tcl-wc select {
	width: 100%;
	min-height: 2.75rem;
	padding: .5rem .7rem;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid var(--tcl-wc-line);
	border-radius: 6px;
}
.tcl-wc input[type="text"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.tcl-wc select option { color: #111; background: #fff; }
.tcl-wc input[aria-invalid="true"] { border-color: var(--tcl-wc-critical); }
.tcl-wc-button {
	min-height: 2.75rem;
	padding: .5rem 1.3rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #1d4ed8;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.tcl-wc-button:hover { background: #1e40af; }
.tcl-wc-button:disabled { opacity: .65; cursor: wait; }
.tcl-wc-hint, .tcl-wc-small { font-size: .9em; opacity: .8; margin: .5rem 0 0; }
.tcl-wc-status p { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 6px; background: var(--tcl-wc-soft); }
.tcl-wc-status-error p { border-left: 4px solid var(--tcl-wc-critical); }
.tcl-wc-status-busy p { border-left: 4px solid var(--tcl-wc-low); }
.tcl-wc-results:focus { outline: none; }
.tcl-wc-results > * { margin-top: 1.25rem; }

.tcl-wc-head { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--tcl-wc-line); border-radius: 8px; }
.tcl-wc-grade {
	flex: 0 0 4.5rem;
	height: 4.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	border-radius: 8px;
}
.tcl-wc-grade-a .tcl-wc-grade { background: var(--tcl-wc-good); }
.tcl-wc-grade-b .tcl-wc-grade { background: #3f7d20; }
.tcl-wc-grade-c .tcl-wc-grade { background: var(--tcl-wc-medium); }
.tcl-wc-grade-d .tcl-wc-grade { background: var(--tcl-wc-high); }
.tcl-wc-grade-f .tcl-wc-grade { background: var(--tcl-wc-critical); }
.tcl-wc-head-text { min-width: 0; }
.tcl-wc-title { margin: 0; font-size: 1.25rem; }
.tcl-wc-summary { margin: .2rem 0 0; font-weight: 600; }
.tcl-wc-meta { margin: .3rem 0 0; font-size: .9em; opacity: .8; overflow-wrap: anywhere; }

.tcl-wc-findings, .tcl-wc-rows, .tcl-wc-simple, .tcl-wc-sources { list-style: none; margin: 0; padding: 0; }
.tcl-wc-finding, .tcl-wc-row {
	position: relative;
	margin: 0 0 .75rem;
	padding: .8rem 1rem;
	border: 1px solid var(--tcl-wc-line);
	border-left-width: 5px;
	border-radius: 6px;
}
.tcl-wc-finding p, .tcl-wc-row p { margin: .4rem 0 0; }
.tcl-wc-finding-title { display: block; margin-top: .35rem; }
.tcl-wc-tag {
	display: inline-block;
	padding: .1rem .5rem;
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	border-radius: 3px;
}
.tcl-wc-sev-critical { border-left-color: var(--tcl-wc-critical); }
.tcl-wc-sev-critical .tcl-wc-tag { background: var(--tcl-wc-critical); }
.tcl-wc-sev-high { border-left-color: var(--tcl-wc-high); }
.tcl-wc-sev-high .tcl-wc-tag { background: var(--tcl-wc-high); }
.tcl-wc-sev-medium { border-left-color: var(--tcl-wc-medium); }
.tcl-wc-sev-medium .tcl-wc-tag { background: var(--tcl-wc-medium); }
.tcl-wc-sev-low { border-left-color: var(--tcl-wc-low); }
.tcl-wc-sev-low .tcl-wc-tag { background: var(--tcl-wc-low); }
.tcl-wc-sev-info { border-left-color: var(--tcl-wc-info); }
.tcl-wc-sev-info .tcl-wc-tag { background: var(--tcl-wc-info); }

.tcl-wc-howto { padding: 1rem; border-radius: 8px; background: var(--tcl-wc-soft); }
.tcl-wc-howto h4 { margin: 0 0 .5rem; }
.tcl-wc-howto ol { margin: 0; padding-left: 1.3rem; }
.tcl-wc-howto li { margin: .3rem 0; }

.tcl-wc-section { border: 1px solid var(--tcl-wc-line); border-radius: 8px; padding: .2rem 1rem; }
.tcl-wc-section > summary { cursor: pointer; font-weight: 600; padding: .6rem 0; }
.tcl-wc-section[open] > summary { margin-bottom: .5rem; }
.tcl-wc-section > *:last-child { margin-bottom: .8rem; }

.tcl-wc-row dl { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem .75rem; margin: .5rem 0 0; }
.tcl-wc-row dt { font-weight: 600; opacity: .8; }
.tcl-wc-row dd { margin: 0; overflow-wrap: anywhere; }
.tcl-wc-reason { font-size: .95em; }
.tcl-wc-simple li { padding: .45rem 0; border-bottom: 1px solid var(--tcl-wc-line); overflow-wrap: anywhere; }
.tcl-wc-sources li { padding: .3rem 0; }
.tcl-wc-sources li::before { content: "\2713"; display: inline-block; width: 1.3em; font-weight: 700; color: var(--tcl-wc-good); }
.tcl-wc-sources .tcl-wc-src-failed::before,
.tcl-wc-sources .tcl-wc-src-unsupported::before,
.tcl-wc-sources .tcl-wc-src-off::before { content: "\2013"; color: var(--tcl-wc-info); }
.tcl-wc-sources .tcl-wc-src-partial::before { content: "!"; color: var(--tcl-wc-medium); }
.tcl-wc-clean { padding: .8rem 1rem; border-left: 4px solid var(--tcl-wc-good); background: var(--tcl-wc-soft); border-radius: 4px; }
.tcl-wc-disclaimer { font-size: .88em; opacity: .75; }
.tcl-wc-review { font-weight: 600; }
.tcl-wc-link-button {
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.tcl-wc-intro { padding: .8rem 1rem; border-radius: 6px; background: var(--tcl-wc-soft); }
.tcl-wc-overview { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.tcl-wc-overview > div { flex: 1 1 9rem; padding: .7rem 1rem; border: 1px solid var(--tcl-wc-line); border-radius: 8px; }
.tcl-wc-overview dt { font-size: .85em; opacity: .75; }
.tcl-wc-overview dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.1em; }
.tcl-wc-poison li { display: flex; flex-direction: column; gap: .2rem; }
.tcl-wc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.tcl-wc-mono strong { font-family: inherit; }

.tcl-wc-explainer { margin-top: 2.5rem; }
.tcl-wc-explainer table { width: 100%; border-collapse: collapse; }
.tcl-wc-explainer th, .tcl-wc-explainer td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid rgba(127, 127, 127, .3); }
.tcl-wc-explainer td:first-child { width: 4.5rem; font-weight: 700; }

@media (max-width: 560px) {
	.tcl-wc-field-chain, .tcl-wc-field-button { flex: 1 1 100%; }
	.tcl-wc-button { width: 100%; }
	.tcl-wc-row dl { grid-template-columns: 1fr; }
	.tcl-wc-row dd { margin-bottom: .35rem; }
	.tcl-wc-grade { flex-basis: 3.5rem; height: 3.5rem; font-size: 1.9rem; }
}
@media (prefers-color-scheme: dark) {
	.tcl-wc { --tcl-wc-soft: rgba(127, 127, 127, .14); }
}
.tcl-wc-results > ul { margin-top: 1.25rem; }
