/* Licence search – loaded by plugin so layout is not dependent on theme build */

.licence-container {
	background-color: #f7f7f7;
	padding: 1rem;
	margin-bottom: 0.75rem;
}

.licence-container .licence-header {
	margin-bottom: 0.75rem;
}

.licence-container .licence-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #020027;
}

.licence-container .licence-hint {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #6b7280;
}

.licence-container .licence-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.licence-container .licence-country-switch select {
	width: 100%;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	padding: 0.625rem 2rem 0.625rem 0.75rem;
	font-size: 0.875rem;
	color: #111;
	cursor: pointer;
	outline: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.licence-container .licence-country-switch select:hover {
	border-color: #9ca3af;
}

.licence-container .licence-country-switch select:focus {
	border-color: #3c5fac;
	box-shadow: 0 0 0 3px rgba(60, 95, 172, 0.15);
}

.licence-container .plate-field {
	width: 100%;
	min-width: 0;
}

/* Grid layout: EU strip | input + button */
.licence-container .plate-container {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	align-items: stretch;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.15s ease;
}

.licence-container .plate-container:focus-within {
	box-shadow: 0 0 0 3px rgba(60, 95, 172, 0.2);
}

.licence-container .plate-container.has-error {
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
}

.licence-container .plate-container.has-error .plate-input {
	border-color: #e74c3c;
}

.licence-container .plate-eu-strip {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(180deg, #003da5 0%, #002b75 100%);
	padding: 0.3125rem 0 0.25rem;
	color: #fff;
}

.licence-container .plate-body {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 3rem;
	align-items: stretch;
	min-width: 0;
}

.licence-container .plate-eu-stars {
	width: 1.125rem;
	height: 0.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cg fill='%23FFCC00'%3E%3Ccircle cx='12' cy='3' r='1'/%3E%3Ccircle cx='8.5' cy='4.2' r='1'/%3E%3Ccircle cx='15.5' cy='4.2' r='1'/%3E%3Ccircle cx='6' cy='6.8' r='1'/%3E%3Ccircle cx='18' cy='6.8' r='1'/%3E%3Ccircle cx='7' cy='10' r='1'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='9' cy='12' r='1'/%3E%3Ccircle cx='15' cy='12' r='1'/%3E%3Ccircle cx='12' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.licence-container .lang-code {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.licence-container .plate-container input[type="text"].plate-input {
	grid-column: 1;
	width: 100% !important;
	max-width: none;
	min-width: 0;
	height: 3rem;
	margin: 0 !important;
	padding: 0 0.75rem;
	border: 2px solid #1a3fa0;
	border-left: none;
	border-right: none;
	border-radius: 0;
	box-shadow: none;
	background-color: #f5c842;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-family: "Kenteken", "Arial Narrow", Arial, sans-serif;
}

.licence-container .plate-container input[type="text"].plate-input::placeholder {
	color: rgba(0, 0, 0, 0.35);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.licence-container .plate-container input[type="text"].plate-input:focus {
	outline: none;
}

.licence-container .plate-container input[type="text"].plate-input.input-de {
	background-color: #fff;
	border-color: #1a1a1a;
	letter-spacing: 0.04em;
}

.licence-container .plate-container button.search-btn {
	grid-column: 2;
	width: 3rem !important;
	min-width: 3rem;
	height: 3rem;
	margin: 0 !important;
	padding: 0;
	border: none;
	border-radius: 0;
	background-color: #3c5fac;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.licence-container .plate-container button.search-btn:hover:not(:disabled) {
	background-color: #314e8e;
}

.licence-container .plate-container button.search-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.licence-container .search-btn__icon {
	font-size: 1.125rem;
}

.licence-container .search-btn__spinner {
	display: none;
	width: 1.125rem;
	height: 1.125rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: trsn-licence-spin 0.7s linear infinite;
}

.licence-container .search-btn.is-loading .search-btn__icon {
	display: none;
}

.licence-container .search-btn.is-loading .search-btn__spinner {
	display: block;
}

.licence-container .reset-btn {
	margin-top: 0.625rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #020027;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.licence-container .reset-btn:hover {
	color: #e74c3c;
}

.licence-container .reset-btn.is-hidden {
	display: none;
}

.licence-container .reset-btn i {
	font-size: 0.75rem;
}

.trsn-licence-results {
	margin-top: 0.625rem;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.trsn-licence-results.is-empty {
	display: none;
}

.trsn-licence-results__inner {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.trsn-licence-results.is-loading {
	color: #6b7280;
}

.trsn-licence-results.is-success {
	color: #15803d;
}

.trsn-licence-results.is-error {
	color: #b91c1c;
}

.licence-container .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@keyframes trsn-licence-spin {
	to {
		transform: rotate(360deg);
	}
}
