#cdlookup-wrapper {
	max-width: 600px;
	margin: 1.5em 0;
	font-family: inherit;
}

#cdlookup-wrapper label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
}

.cdlookup-input-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
}

#cdlookup-address {
	flex: 1;
	min-width: 200px;
	padding: 0.5em 0.75em;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.cdlookup-city-hint {
	color: #666;
	font-size: 0.9em;
	white-space: nowrap;
}

#cdlookup-form button[type="submit"] {
	padding: 0.5em 1.25em;
	font-size: 1em;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	background-color: #1a73a7;
	color: #fff;
	white-space: nowrap;
}

#cdlookup-form button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cdlookup-result {
	margin-top: 1em;
	padding: 0.75em 1em;
	border-left: 4px solid transparent;
	border-radius: 0 4px 4px 0;
}

.cdlookup-result p {
	margin: 0.25em 0;
}

.cdlookup-result.cdlookup-success {
	background-color: #f0f7f0;
	border-left-color: #2e7d32;
}

.cdlookup-result.cdlookup-error {
	background-color: #fdf3f3;
	border-left-color: #c62828;
}

.cdlookup-result.cdlookup-loading {
	opacity: 0.5;
}

.cdlookup-address-confirm {
	font-size: 0.875em;
	color: #555;
}

#cdlookup-modal-overlay {
	display: none !important;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

#cdlookup-modal-overlay.cdlookup-open {
	display: flex !important;
}

#cdlookup-modal {
	background: #fff;
	border-radius: 8px;
	padding: 2em;
	width: 90%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#cdlookup-modal-close {
	position: absolute;
	top: 0.75em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0.25em;
}

#cdlookup-modal-close:hover {
	color: #000;
}

#cdlookup-map {
	display: none;
	margin-top: 1em;
	height: 300px;
	border-radius: 4px;
	border: 1px solid #ddd;
	max-width: 600px;
}
