/* ==================================
   FORUM COUNTRY FILTER
================================== */

.ss-forum-country-filter {
	max-width: 420px;
	margin: 30px auto 40px;
	position: relative;
	z-index: 20;
}

.ss-forum-country-dropdown {
	position: relative;
	width: 100%;
}

.ss-forum-country-dropdown__toggle {
	width: 100%;
	min-height: 56px;
	padding: 0 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;

	transition: .2s ease;
}

.ss-forum-country-dropdown__toggle:hover,
.ss-forum-country-dropdown__toggle:focus {
	background: #fafafa;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	color: #333;
}

.ss-forum-country-dropdown__selected {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ss-forum-country-dropdown__icon,
.ss-forum-country-dropdown__flag {
	width: 28px;
	height: 22px;
	flex-shrink: 0;
}

.ss-forum-country-dropdown__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-2);
}

.ss-forum-country-dropdown__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ss-forum-country-dropdown__flag {
	object-fit: cover;
	border-radius: 3px;
}

.ss-forum-country-dropdown__label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ss-forum-country-dropdown__arrow {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex-shrink: 0;
	transition: transform .2s ease;
}

.ss-forum-country-dropdown.is-open .ss-forum-country-dropdown__arrow {
	transform: rotate(180deg);
}

.ss-forum-country-dropdown__menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;

	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(0,0,0,.14);

	z-index: 100;
	overflow: hidden;
}

.ss-forum-country-dropdown.is-open .ss-forum-country-dropdown__menu {
	display: block;
}

.ss-forum-country-dropdown__item {
	width: 100%;
	border: 0;
	background: transparent;
	color: #333;

	padding: 12px 16px;

	display: flex;
	align-items: center;
	gap: 12px;

	text-align: left;
	cursor: pointer;
	transition: .2s ease;
}

.ss-forum-country-dropdown__item:hover,
.ss-forum-country-dropdown__item:focus,
.ss-forum-country-dropdown__item.is-active {
	background: #f5f5f5;
	color: #333;
}

.ss-forum-country-dropdown__item img,
.ss-forum-country-dropdown__placeholder {
	width: 42px;
	height: 32px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.ss-forum-country-dropdown__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	font-size: 20px;
}

.ss-forum-country-dropdown__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

@media (max-width: 768px) {

	.ss-forum-country-filter {
		max-width: 100%;
		margin: 24px auto 32px;
	}

	.ss-forum-country-dropdown__label,
	.ss-forum-country-dropdown__name {
		font-size: 14px;
	}

}