/* Regnummersokning for Luxtar Bilvaljare */

.luxtar-bv-regnr {
	margin: 0 0 14px;
}

.luxtar-bv-regnr__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.luxtar-bv-regnr__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.luxtar-bv-regnr__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

/* Skylten */
.luxtar-bv-regnr__plate {
	display: flex;
	align-items: stretch;
	border: 2px solid #111;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	min-width: 190px;
}

.luxtar-bv-regnr__flag {
	width: 26px;
	flex: 0 0 26px;
	background: #0053a5;
	position: relative;
}

.luxtar-bv-regnr__flag::after {
	content: "S";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	text-align: center;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.luxtar-bv-regnr__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	padding: 10px 12px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: transparent;
	color: #111;
}

.luxtar-bv-regnr__input::placeholder {
	color: #b8b8b8;
	font-weight: 600;
	letter-spacing: 2px;
}

.luxtar-bv-regnr__btn {
	padding: 10px 18px;
	border: 0;
	border-radius: 5px;
	background: #ed6b23; /* primarknapp, samma orange som temats knappar */
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.luxtar-bv-regnr__btn:hover { background: #d45c18; }
.luxtar-bv-regnr__btn:disabled { opacity: .55; cursor: default; }

/* Status */
.luxtar-bv-regnr__status {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	min-height: 0;
}

.luxtar-bv-regnr__status:empty { display: none; }

.luxtar-bv-regnr__status.is-laddar { color: #555; }
.luxtar-bv-regnr__status.is-ok     { color: #12662f; }
.luxtar-bv-regnr__status.is-fel    { color: #a4262c; }
.luxtar-bv-regnr__status.is-flera  { color: #222; }

/* Val vid flera traffar */
.luxtar-bv-regnr__val {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.luxtar-bv-regnr__valbtn {
	padding: 8px 14px;
	border: 1px solid #111;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-size: 14px;
	cursor: pointer;
}

.luxtar-bv-regnr__valbtn:hover { background: #111; color: #fff; }
.luxtar-bv-regnr__valbtn span { opacity: .7; font-size: 13px; }

@media (max-width: 560px) {
	.luxtar-bv-regnr__controls { flex-direction: column; }
	.luxtar-bv-regnr__plate    { min-width: 0; }
	.luxtar-bv-regnr__btn      { width: 100%; }
}
