/* Editor styles for YR Weather Block */

.yr-weather-block-editor {
	padding: 16px;
	background: #f5f5f5;
	border-radius: 4px;
	margin-bottom: 16px;
}

.yr-city-picker {
	margin-bottom: 16px;
}

.yr-city-picker__suggestions {
	position: absolute;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	max-height: 200px;
	overflow-y: auto;
	z-index: 10;
}

.yr-city-picker__suggestion {
	display: block;
	width: 100%;
	padding: 8px 12px;
	text-align: left;
	border: none;
	background: white;
	cursor: pointer;
	transition: background-color 0.2s;
}

.yr-city-picker__suggestion:hover {
	background-color: #f0f0f0;
}

.yr-city-picker__selected-city {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #e7f3ff;
	border-radius: 4px;
	border: 1px solid #b3d9ff;
}

.yr-city-picker__remove {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	padding: 0;
	color: #666;
	line-height: 1;
}

.yr-weather-loading {
	text-align: center;
	padding: 16px;
	color: #666;
}

.yr-weather-error {
	padding: 16px;
	background: #fee;
	color: #c33;
	border-radius: 4px;
}

/* Visitor city search */
.yr-weather-visitor-search {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.yr-weather-visitor-search__form {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.yr-weather-visitor-search__input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.yr-weather-visitor-search__input:focus {
	outline: none;
	border-color: #4a90e2;
	box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.yr-weather-visitor-search__btn {
	padding: 8px 16px;
	background: #4a90e2;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.2s;
	font-size: 14px;
}

.yr-weather-visitor-search__btn:hover {
	background-color: #357bc8;
}

.yr-weather-visitor-search__btn:active {
	background-color: #2a5fa0;
}

.yr-weather-city--visitor {
	margin-top: 12px;
	border-top: 2px dashed rgba(0, 0, 0, 0.1);
	padding-top: 12px;
}
