/**
 * Стили для подсказок DaData
 * @author СитиВеб, Прудников Сергей
 */

.dadata-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10000;
	margin-top: 2px;
	background: #fff;
	border: 1px solid #dcdfe2;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	max-height: 300px;
	overflow-y: auto;
}

.dadata-suggestions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dadata-suggestion-item {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.dadata-suggestion-item:last-child {
	border-bottom: none;
}

.dadata-suggestion-item:hover {
	background-color: #f8fafc;
}

.dadata-suggestion-value {
	font-size: 14px;
	color: #333;
	margin-bottom: 3px;
}

.dadata-suggestion-details {
	font-size: 12px;
	color: #777;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
	.dadata-suggestions {
		max-height: 200px;
		font-size: 14px;
	}
	
	.dadata-suggestion-item {
		padding: 12px 15px;
	}
}

/* Анимация появления */
@keyframes dadataFadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dadata-suggestions {
	animation: dadataFadeIn 0.2s ease;
}

/* Стили для выделения текста в подсказке */
.dadata-suggestion-item mark {
	background-color: #fff3cd;
	padding: 0 2px;
	font-weight: 500;
}

/* Скроллбар для списка подсказок */
.dadata-suggestions::-webkit-scrollbar {
	width: 6px;
}

.dadata-suggestions::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.dadata-suggestions::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 3px;
}

.dadata-suggestions::-webkit-scrollbar-thumb:hover {
	background: #555;
}

