/* Стили для GeoContainer */
.smart-geocontent-container {
	margin-bottom: 28px;
}

/* Стили для вкладок */
.smart-geocontent-tabs-wrapper {
	display: flex;
	border-bottom: 1px solid #e2e4e7;
	margin-bottom: 15px;
	background: #f8f9f9;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.smart-geocontent-tab {
	padding: 12px 16px;
	cursor: pointer;
	border: 1px solid transparent;
	border-bottom: none;
	margin-bottom: -1px;
	flex: 1;
	text-align: center;
	transition: all 0.2s ease;
}

.smart-geocontent-tab:hover {
	background: #f0f0f0;
}

.smart-geocontent-tab.active {
	border-color: #e2e4e7;
	border-bottom-color: #fff;
	background: #fff;
	font-weight: 500;
}

/* Индикаторы для вкладок */
.smart-geocontent-tab[data-tab="russia"]::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #ff9999;
}

.smart-geocontent-tab[data-tab="foreign"]::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #99ff99;
}

/* Стили для контента */
.smart-geocontent-tab-content {
	padding: 16px;
	border: 1px solid #e2e4e7;
	border-top: none;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* Улучшения для работы с InnerBlocks */
.smart-geocontent-tab-content .block-editor-inner-blocks {
	width: 100%;
}

.smart-geocontent-tab-content .block-editor-block-list__layout {
	padding: 0;
}

/* Улучшение видимости фокуса */
.smart-geocontent-tab-content [contenteditable="true"]:focus {
	outline: 2px solid #007cba;
	box-shadow: 0 0 0 1px #007cba;
}

/* Исправление проблемы с перекрытием блоков */
.smart-geocontent-tab-content .wp-block {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Улучшение видимости кнопки добавления блока */
.smart-geocontent-tab-content .block-editor-button-block-appender {
	width: 100%;
	justify-content: center;
	padding: 16px;
	outline: 1px dashed #ccc;
	margin-top: 16px;
}

.smart-geocontent-tab-content .block-editor-button-block-appender:hover {
	outline: 1px dashed #007cba;
}

/* Адаптивность */
@media (max-width: 782px) {
	.smart-geocontent-tabs-wrapper {
		flex-direction: column;
	}
	
	.smart-geocontent-tab {
		border-right: none;
		border-bottom: 1px solid #e2e4e7;
	}
}

.smart-geo-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smart-geo-popup-content {
	background: white;
	padding: 20px;
	border-radius: 5px;
	text-align: center;
}

.smart-geo-btn {
	margin: 10px;
	padding: 10px 20px;
	border: none;
	border-radius: 3px;
	background: #007bff;
	color: white;
	cursor: pointer;
}

.smart-geo-btn:hover {
	background: #0056b3;
}