/*
 * [nordchecker_lookup]. Loaded only where the shortcode is used. Built on the
 * tokens and components in nordchecker.css; the two parts of the result are
 * the plugins' own widgets, styled by their bridges.
 */
.nc-lookup {
	color: var(--nc-text);
}
.nc-lookup__heading {
	margin: 0 0 8px;
}
.nc-lookup__intro {
	margin: 0 0 20px;
	color: var(--nc-muted);
}

/* Search field and suggestions. */
/* The search card (0.7.0): the field and the popular searches as one object.
   The field's label is for screen readers; the placeholder says it on screen. */
.nc-lookup__card {
	padding: 22px 24px;
	background: var(--nc-paper);
	border: 1px solid var(--nc-line);
	border-radius: var(--nc-radius-card);
	box-shadow: var(--nc-shadow);
}
.nc-lookup__card .nc-lookup__input {
	background: var(--nc-soft);
	box-shadow: none;
}
.nc-lookup__card .nc-lookup__input:focus {
	background: var(--nc-paper);
	box-shadow: var(--nc-focus);
}
.nc-lookup__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.nc-lookup__field {
	position: relative;
}
.nc-lookup__clear {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nc-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.nc-lookup__clear:hover,
.nc-lookup__clear:focus-visible {
	background: var(--nc-soft);
	color: var(--nc-text);
}
.nc-lookup__suggest {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 420px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--nc-paper);
	border: 1px solid var(--nc-line);
	border-radius: var(--nc-radius-control);
	box-shadow: 0 8px 24px rgba(31, 41, 55, .10);
}
.nc-lookup__option {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
}
.nc-lookup__option:hover,
.nc-lookup__option[aria-selected="true"] {
	background: var(--nc-soft);
}
.nc-lookup__option-name {
	font-weight: 700;
}
.nc-lookup__option-domain,
.nc-lookup__option-matched {
	color: var(--nc-muted);
	font-size: 14px;
}
.nc-lookup__option-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex-basis: 100%;
}
.nc-lookup__suggest-empty {
	padding: 10px 12px;
	color: var(--nc-muted);
}
.nc-lookup__hint {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--nc-muted);
}
.nc-lookup.is-busy .nc-lookup__input {
	cursor: progress;
}

/* Messages. */
.nc-lookup__message {
	margin: 16px 0 0;
	color: var(--nc-muted);
}
.nc-lookup__message--ambiguous {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-left: 4px solid var(--nc-blue);
	background: var(--nc-soft);
	border-radius: 8px;
	color: var(--nc-text);
}

/* The two parts. */
.nc-lookup__result {
	margin-top: 28px;
	/* Clear the sticky header when a result is scrolled into view. */
	scroll-margin-top: 120px;
}
.nc-lookup__part[hidden] + .nc-lookup__part {
	margin-top: 0;
}
.nc-lookup__part + .nc-lookup__part {
	margin-top: 36px;
}
.nc-lookup .nc-lookup__part-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nc-blue);
}
.nc-lookup__note {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--nc-muted);
}
.nc-lookup__empty {
	margin: 0;
	padding: 18px 22px;
	border: 1px dashed var(--nc-line);
	border-radius: var(--nc-radius-card);
	color: var(--nc-muted);
}

/* The embedded widgets bring their own outer spacing for standalone use. */
.nc-lookup__host .cll-app,
.nc-lookup__host .cins {
	margin: 0;
}

/* With both parts shown the licence part names the site, so the profile's
   own heading would repeat it. */
.nc-lookup--both:not(.nc-lookup--lens-payments) .nc-lookup__part--insights .cins-card__head {
	display: none;
}

/* Knowledge entries and curated popular searches (0.5.0). Present only when
   the site allows them and the shortcode asks. */
.nc-lookup__popular {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.nc-lookup__popular-item {
	padding: 7px 14px;
	border: 1px solid var(--nc-line);
	border-radius: 999px;
	background: var(--nc-paper);
	color: var(--nc-navy);
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}
.nc-lookup__popular-item:hover,
.nc-lookup__popular-item:focus-visible {
	border-color: var(--nc-navy);
	background: var(--nc-soft);
}
.nc-lookup__option--knowledge {
	align-items: center;
}
.nc-lookup__option-kind {
	background: var(--nc-navy);
	color: #fff;
}
.nc-lookup__knowledge {
	margin-top: 28px;
	scroll-margin-top: 120px;
}
.nc-lookup__entry {
	padding: 24px 28px;
	background: var(--nc-paper);
	border: 1px solid var(--nc-line);
	border-left: 4px solid var(--nc-blue);
	border-radius: var(--nc-radius-card);
}
.nc-lookup .nc-lookup__entry-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	color: var(--nc-text);
}
.nc-lookup__entry-text {
	margin: 0 0 12px;
	line-height: 1.7;
	white-space: pre-line;
}
.nc-lookup__entry-button {
	display: inline-block;
	margin-top: 6px;
	padding: 11px 22px;
	border-radius: var(--nc-radius-control);
	background: var(--nc-navy);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.nc-lookup__entry-button:hover,
.nc-lookup__entry-button:focus-visible {
	background: var(--nc-blue);
	color: #fff;
}

/* Editor-chosen icons and the heading over popular searches (0.6.0). */
.nc-lookup__icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.nc-lookup__popular {
	align-items: center;
}
/* display:flex above would otherwise show the empty container before the
   list has loaded, or when there is none. */
.nc-lookup__popular[hidden] {
	display: none;
}
.nc-lookup__popular-heading {
	margin-right: 2px;
	font-size: 14px;
	color: var(--nc-muted);
}
.nc-lookup__popular-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Jump links right after a lookup: a plain line of text links, so the only
   buttons near the field are the popular searches. */
.nc-slot:has(.nc-lookup) + .nc-chips {
	display: block;
	margin-top: 20px;
	font-size: 14px;
	line-height: 2;
	color: var(--nc-muted);
}
.nc-slot:has(.nc-lookup) + .nc-chips li {
	display: inline;
}
.nc-slot:has(.nc-lookup) + .nc-chips li:not(:last-child)::after {
	content: "·";
	margin: 0 2px 0 8px;
}
.nc-slot:has(.nc-lookup) + .nc-chips li a {
	display: inline;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	text-decoration: none;
	white-space: nowrap;
}
.nc-slot:has(.nc-lookup) + .nc-chips li a:hover {
	text-decoration: underline;
}
@media (max-width: 480px) {
	.nc-lookup__card {
		padding: 16px;
	}
}

/* The same search inside a [casino_license_lookup] widget (0.8.0). */
.cll-app .nc-lookup--licence {
	margin-bottom: 28px;
}
.cll-app .nc-lookup--licence .nc-lookup__knowledge {
	margin-top: 28px;
}

/* lens="payments" with methods: the named methods, marked in the casino's
   own payment list (0.9.0). */
.nc-lookup .cins-table tr.nc-lookup__method-hit td {
	background: var(--nc-warn-soft);
}
.nc-lookup .cins-table tr.nc-lookup__method-hit .cins-table__method {
	font-weight: 700;
}

