.iptools-lookup {
	max-width: 48rem;
}

.iptools-lookup form > label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.iptools-lookup__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.iptools-lookup__controls input {
	flex: 1 1 20rem;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.iptools-lookup__controls button {
	flex: 0 0 auto;
}

.iptools-lookup__status {
	min-height: 1.5em;
}

.iptools-lookup__map {
	margin: 0 0 1rem;
}

.iptools-lookup__map-canvas {
	width: 100%;
	height: 20rem;
	margin-top: 0.5rem;
	max-height: 65vh;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	background: #e5e3df;
}

.iptools-lookup__map-canvas .leaflet-control-attribution {
	font-size: 0.6875rem;
}

.iptools-lookup dl {
	display: grid;
	gap: 0.5rem;
	margin: 1rem 0 0;
}

.iptools-lookup dl > div {
	display: grid;
	grid-template-columns: minmax(10rem, 1fr) 2fr;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: color-mix(in srgb, currentColor 20%, transparent);
}

.iptools-lookup dt {
	font-weight: 600;
}

.iptools-lookup dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.iptools-lookup [hidden] {
	display: none;
}

@media (max-width: 36rem) {
	.iptools-lookup dl > div {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.iptools-lookup__map-canvas {
		height: 16rem;
	}
}
