/* Credential Verification Registry: embeddable search-component styles.
   Scoped strictly under .cvr-search so host themes and the canonical
   credential page are never affected. No external requests. */

.cvr-search,
.cvr-search *,
.cvr-search *::before,
.cvr-search *::after {
	box-sizing: border-box;
}

.cvr-search {
	--cvr-page-bg: #f3f5f9;
	--cvr-primary: #1f3a5f;
	--cvr-accent: #0e7c6b;
	--cvr-card: #ffffff;
	--cvr-line: #dde4ee;
	--cvr-muted: #5b6b7d;
	--cvr-radius: 14px;
	color: #1d2733;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.cvr-search .cvr-verification-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: var(--cvr-card);
	border: 1px solid var(--cvr-line);
	border-radius: var(--cvr-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.cvr-search .cvr-verification-search label {
	flex-basis: 100%;
	font-weight: 600;
	color: var(--cvr-primary);
}

.cvr-search .cvr-verification-search input[type="search"] {
	flex: 1 1 220px;
	height: 44px;
	min-height: 44px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 14px;
	line-height: normal;
	vertical-align: middle;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid var(--cvr-line);
	border-radius: 8px;
	font-size: 1rem;
}

.cvr-search .cvr-verification-search input[type="submit"] {
	height: 44px;
	min-height: 44px;
	margin: 0;
	box-sizing: border-box;
	padding: 0 24px;
	line-height: 1;
	border: 0;
	border-radius: 8px;
	background: var(--cvr-primary);
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
}

.cvr-search .cvr-results-card {
	background: var(--cvr-card);
	border: 1px solid var(--cvr-line);
	border-radius: var(--cvr-radius);
	padding: 20px;
}

.cvr-search .cvr-section-title {
	margin: 0 0 12px;
	font-size: 1.1rem;
	color: var(--cvr-primary);
}

.cvr-search .cvr-credential-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.cvr-search .cvr-credential-results li {
	border: 1px solid var(--cvr-line);
	border-radius: 10px;
}

.cvr-search .cvr-credential-results a {
	display: block;
	padding: 12px 16px;
	min-height: 44px;
	color: var(--cvr-primary);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.cvr-search .cvr-credential-results a:hover {
	text-decoration: underline;
}

.cvr-search .cvr-verification-unavailable {
	background: var(--cvr-card);
	border: 1px solid var(--cvr-line);
	border-radius: var(--cvr-radius);
	padding: 20px;
}

.cvr-search .cvr-search-results:empty {
	display: none;
}

.cvr-search .cvr-search-results {
	margin-bottom: 20px;
}

.cvr-search .cvr-redirect-card {
	background: var(--cvr-card);
	border: 1px solid var(--cvr-line);
	border-radius: var(--cvr-radius);
	padding: 20px;
}

.cvr-search .cvr-redirect-card .cvr-button {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	padding: 0 24px;
	border-radius: 8px;
	background: var(--cvr-primary);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
}

.cvr-search a:focus-visible,
.cvr-search input:focus-visible {
	outline: 3px solid var(--cvr-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cvr-search *,
	.cvr-search *::before,
	.cvr-search *::after {
		transition: none;
		animation: none;
	}
}

@media (max-width: 480px) {
	.cvr-search .cvr-verification-search {
		padding: 16px 14px;
	}

	.cvr-search .cvr-verification-search input[type="submit"] {
		width: 100%;
	}
}

/* 1.7.56: universal search, several public matches. */
.cvr-search .cvr-search-choices {
	list-style: none;
	margin: 0.5em 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

/* 1.7.184: portal search card and not-found message (owner mockup
   "Verify Your Credential"). Only [cvr_portal_search] gets the
   cvr-search--card class; the IOSHQ and CIMFA searches are unchanged. */
.cvr-search--card {
	--cvr-navy: #12305c;
	--cvr-amber: #e8961e;
	--cvr-amber-ink: #a35a00;
	--cvr-amber-bg: #fdf3e3;
	background: #ffffff;
	border: 1px solid #dfe5ee;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(18, 48, 92, 0.10), 0 2px 6px rgba(18, 48, 92, 0.06);
	overflow: hidden;
}

.cvr-search--card .cvr-search-ico {
	display: block;
	flex: none;
	width: 24px;
	height: 24px;
}

.cvr-search--card .cvr-search-card__head {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px 32px 22px;
	border-bottom: 1px solid #e6ebf2;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(120, 165, 230, 0.28) 0%, rgba(120, 165, 230, 0.10) 34%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
}

.cvr-search--card .cvr-search-ico--shield {
	width: 46px;
	height: 46px;
	color: var(--cvr-navy);
	margin-top: 2px;
}

.cvr-search--card .cvr-search-card__title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 1.6rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--cvr-navy);
}

.cvr-search--card .cvr-search-card__subtitle {
	margin: 0;
	color: #3b4757;
	font-size: 1rem;
}

.cvr-search--card .cvr-verification-search {
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 22px 32px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.cvr-search--card .cvr-verification-search label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cvr-search--card .cvr-verification-search input[type="search"] {
	flex: 1 1 260px;
	min-height: 54px;
	padding: 12px 20px;
	border: 1.5px solid #b9c3d2;
	border-radius: 12px;
	font-size: 1.1rem;
	color: #1d2733;
	background: #ffffff;
}

.cvr-search--card .cvr-verification-search input[type="search"]:focus {
	outline: none;
	border-color: var(--cvr-navy);
	box-shadow: 0 0 0 3px rgba(18, 48, 92, 0.15);
}

.cvr-search--card .cvr-verification-search .cvr-search-submit {
	flex: 0 0 auto;
	min-height: 54px;
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 28px;
	border: 0;
	border-radius: 12px;
	background: var(--cvr-navy);
	color: #ffffff;
	cursor: pointer;
	font-size: 1.15rem;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(18, 48, 92, 0.25);
}

.cvr-search--card .cvr-verification-search .cvr-search-submit:hover,
.cvr-search--card .cvr-verification-search .cvr-search-submit:focus {
	background-color: #0b2244;
}

.cvr-search--card .cvr-search-results {
	margin: 0 32px 28px;
	padding-top: 22px;
	border-top: 1px solid #e3e8ef;
}

.cvr-search--card .cvr-search-results:empty {
	display: none;
}

.cvr-search .cvr-verification-unavailable--rich,
.cvr-search--card .cvr-verification-unavailable {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.cvr-search .cvr-verification-unavailable--rich p {
	margin: 0;
}

.cvr-search .cvr-nf__head {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.cvr-search .cvr-search-ico--info {
	width: 46px;
	height: 46px;
	color: var(--cvr-amber, #e8961e);
}

.cvr-search .cvr-verification-unavailable__title {
	font-size: 1.45rem;
	line-height: 1.25;
	color: var(--cvr-navy, #12305c);
	margin: 2px 0 4px;
}

.cvr-search .cvr-nf__text {
	color: #3b4757;
	font-size: 1rem;
}

.cvr-search .cvr-verification-unavailable--rich .cvr-nf__help {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 0;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--cvr-amber-bg, #fdf3e3);
	color: var(--cvr-amber-ink, #a35a00);
	font-size: 1rem;
	font-weight: 500;
}

.cvr-search--card .cvr-search-ico--search {
	width: 26px;
	height: 26px;
}

.cvr-search .cvr-search-ico--mail {
	width: 28px;
	height: 28px;
	color: var(--cvr-amber, #e8961e);
}

@media (max-width: 600px) {
	.cvr-search--card .cvr-search-card__head {
		padding: 20px 18px 18px;
		gap: 12px;
	}
	.cvr-search--card .cvr-search-ico--shield,
	.cvr-search .cvr-search-ico--info {
		width: 36px;
		height: 36px;
	}
	.cvr-search--card .cvr-search-card__title {
		font-size: 1.3rem;
	}
	.cvr-search--card .cvr-verification-search {
		padding: 18px;
	}
	.cvr-search--card .cvr-verification-search .cvr-search-submit {
		flex: 1 1 100%;
	}
	.cvr-search--card .cvr-search-results {
		margin: 0 18px 20px;
		padding-top: 18px;
	}
	.cvr-search .cvr-verification-unavailable__title {
		font-size: 1.2rem;
	}
}

/* 1.7.184: "Multiple Records Found" results (owner mockup). */
.cvr-search .cvr-multi {
	--cvr-navy: #12305c;
}

.cvr-search .cvr-multi p {
	margin: 0;
}

.cvr-search .cvr-multi__notice {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	margin: 0 0 22px;
	border: 1px solid #cfe0f6;
	border-radius: 14px;
	background: linear-gradient(90deg, #eef5fe 0%, #f5f9ff 100%);
}

.cvr-search .cvr-multi__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #b9d4f6;
	color: var(--cvr-navy);
}

.cvr-search .cvr-multi .cvr-search-ico {
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
}

.cvr-search .cvr-multi__badge .cvr-search-ico {
	width: 34px;
	height: 34px;
}

.cvr-search .cvr-multi__title {
	font-size: 1.4rem;
	line-height: 1.25;
	color: var(--cvr-navy);
	margin-bottom: 4px;
}

.cvr-search .cvr-multi__text {
	color: #2d3846;
}

.cvr-search .cvr-multi__scroll {
	overflow-x: auto;
	max-width: 100%;
	border: 1px solid #dfe5ee;
	border-radius: 14px;
	background: #ffffff;
}

.cvr-search .cvr-multi__table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	font-size: 1rem;
}

.cvr-search .cvr-multi__table th {
	background: #0f3b70;
	color: #ffffff;
	text-align: left;
	font-weight: 600;
	padding: 14px 16px;
	white-space: nowrap;
}

.cvr-search .cvr-multi__table td {
	padding: 12px 16px;
	border-top: 1px solid #edf0f4;
	vertical-align: middle;
	color: #1d2733;
}

.cvr-search .cvr-multi__table tbody tr:nth-child(even) td {
	background: #f6f8fc;
}

.cvr-search .cvr-multi__table th:first-child,
.cvr-search .cvr-multi__n {
	width: 56px;
	text-align: center;
}

.cvr-search .cvr-multi__no {
	color: #1d4fa0;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.cvr-search .cvr-multi__no:hover,
.cvr-search .cvr-multi__no:focus {
	text-decoration: underline;
}

.cvr-search .cvr-multi__type,
.cvr-search .cvr-multi__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 16px;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
}

.cvr-search .cvr-multi__type {
	border: 1px solid #c9daf2;
	background: #e9f1fd;
	color: var(--cvr-navy);
}

.cvr-search .cvr-multi__status.is-valid {
	border: 1px solid #b7e2bf;
	background: #e7f6ea;
	color: #1c7a31;
}

.cvr-search .cvr-multi__status.is-bad {
	border: 1px solid #f1c4c4;
	background: #fdeeee;
	color: #a12626;
}

.cvr-search .cvr-multi__status.is-pending {
	border: 1px solid #f2d9a8;
	background: #fdf5e4;
	color: #8a5a00;
}

.cvr-search .cvr-multi__status.is-neutral {
	border: 1px solid #d8dee8;
	background: #f2f4f8;
	color: #3b4757;
}

.cvr-search .cvr-multi__status.is-none {
	padding: 0;
	color: #5b6b7d;
}

.cvr-search .cvr-multi__view {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 22px;
	border: 1.5px solid #c3cddb;
	border-radius: 999px;
	background: #ffffff;
	color: var(--cvr-navy);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.cvr-search .cvr-multi__view:hover,
.cvr-search .cvr-multi__view:focus {
	border-color: var(--cvr-navy);
	background: #f3f6fb;
}

@media (max-width: 600px) {
	.cvr-search .cvr-multi__notice {
		align-items: flex-start;
		padding: 16px;
		gap: 12px;
	}
	.cvr-search .cvr-multi__badge {
		width: 44px;
		height: 44px;
	}
	.cvr-search .cvr-multi__badge .cvr-search-ico {
		width: 24px;
		height: 24px;
	}
	.cvr-search .cvr-multi__title {
		font-size: 1.15rem;
	}
}

/* 1.7.184 rev: desktop search look (owner mockup 2026-11-03): divider
   after the shield, larger heading, one rounded field with a search
   icon and the Verify button inside it. */
.cvr-search--card .cvr-search-card__head {
	align-items: center;
	gap: 26px;
	padding: 30px 40px 28px;
}

.cvr-search--card .cvr-search-card__head .cvr-search-ico--shield {
	width: 66px;
	height: 66px;
	margin: 0;
	color: #0f3b80;
}

.cvr-search--card .cvr-search-card__rule {
	flex: none;
	align-self: stretch;
	width: 1px;
	min-height: 64px;
	background: #c9d3e1;
}

.cvr-search--card .cvr-search-card__title {
	font-size: 2.1rem;
	font-weight: 800;
	color: #0f3b80;
	letter-spacing: -0.01em;
}

.cvr-search--card .cvr-search-card__subtitle {
	font-size: 1.15rem;
	color: #3d4a5c;
}

.cvr-search--card .cvr-verification-search {
	display: block;
	padding: 26px 40px 30px;
}

.cvr-search--card .cvr-search-pill {
	display: flex;
	align-items: center;
	gap: 0;
	height: 66px;
	min-height: 66px;
	padding: 0 4px 0 26px;
	border: 2px solid #0f3b80;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(15, 59, 128, 0.12);
}

.cvr-search--card .cvr-search-pill:focus-within {
	box-shadow: 0 0 0 4px rgba(15, 59, 128, 0.15), 0 8px 22px rgba(15, 59, 128, 0.12);
}

.cvr-search--card .cvr-search-pill > .cvr-search-ico--search {
	width: 28px;
	height: 28px;
	color: #4a5566;
}

.cvr-search--card .cvr-search-pill input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	align-self: stretch;
	padding: 0 18px;
	line-height: normal;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 1.3rem;
}

.cvr-search--card .cvr-search-pill input[type="search"]:focus {
	border: 0;
	box-shadow: none;
}

.cvr-search--card .cvr-search-pill input[type="search"]::placeholder {
	color: #6b7686;
	opacity: 1;
}

.cvr-search--card .cvr-verification-search .cvr-search-pill .cvr-search-submit {
	align-self: center;
	height: 58px;
	min-height: 58px;
	min-width: 180px;
	margin: 0;
	padding: 0 34px;
	line-height: 1;
	border-radius: 999px;
	background: linear-gradient(180deg, #164d9e 0%, #0b3478 100%);
	font-size: 1.35rem;
	box-shadow: 0 6px 14px rgba(11, 52, 120, 0.30);
}

.cvr-search--card .cvr-verification-search .cvr-search-pill .cvr-search-submit:hover,
.cvr-search--card .cvr-verification-search .cvr-search-pill .cvr-search-submit:focus {
	background: #0b2c66;
}

.cvr-search--card .cvr-search-pill .cvr-search-submit .cvr-search-ico--search {
	width: 28px;
	height: 28px;
}

.cvr-search--card .cvr-search-results {
	margin: 0 40px 30px;
}

@media (max-width: 600px) {
	.cvr-search--card .cvr-search-card__head {
		padding: 20px 18px 18px;
		gap: 12px;
	}
	.cvr-search--card .cvr-search-card__head .cvr-search-ico--shield {
		width: 40px;
		height: 40px;
	}
	.cvr-search--card .cvr-search-card__rule {
		display: none;
	}
	.cvr-search--card .cvr-search-card__title {
		font-size: 1.4rem;
	}
	.cvr-search--card .cvr-search-card__subtitle {
		font-size: 1rem;
	}
	.cvr-search--card .cvr-verification-search {
		padding: 18px;
	}
	.cvr-search--card .cvr-search-pill {
		flex-wrap: wrap;
		height: auto;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		gap: 12px;
	}
	.cvr-search--card .cvr-search-pill > .cvr-search-ico--search {
		display: none;
	}
	.cvr-search--card .cvr-search-pill input[type="search"] {
		flex: 1 1 100%;
		height: 52px;
		min-height: 52px;
		align-self: auto;
		padding: 0 18px;
		border: 2px solid #0f3b80;
		border-radius: 999px;
		background: #ffffff;
		font-size: 1rem;
	}
	.cvr-search--card .cvr-verification-search .cvr-search-pill .cvr-search-submit {
		flex: 1 1 100%;
		height: 52px;
		min-height: 52px;
		align-self: auto;
		font-size: 1.15rem;
	}
	.cvr-search--card .cvr-search-results {
		margin: 0 18px 20px;
	}
}

/* 1.7.184: Credential Status pill colours from the owner's status list. */
.cvr-search .cvr-multi__status.is-tone-green { border: 1px solid #abefc6; background: #ecfdf3; color: #16803d; }
.cvr-search .cvr-multi__status.is-tone-blue { border: 1px solid #b2ddff; background: #eff8ff; color: #175cd3; }
.cvr-search .cvr-multi__status.is-tone-orange { border: 1px solid #fedf89; background: #fffaeb; color: #b65d08; }
.cvr-search .cvr-multi__status.is-tone-red { border: 1px solid #fecdca; background: #fef3f2; color: #c62828; }

/* 1.7.213: one line of help under a verification search label. */
.cvr-search .cvr-verification-search .cvr-search-help {
	flex: 0 0 100%;
	margin: 0;
	color: var(--cvr-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}
