


/* Start:/local/components/giveandget/news.filter/templates/.default/style.css*/
.news-filter {
	margin-bottom: 24px;
}

.news-filter__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	margin-bottom: 24px;
}

.news-filter__top {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	min-height: 42px;
}

.news-filter__search {
	height: 100%;
	position: relative;
	flex: 1 1 320px;
	min-width: 220px;
}

.news-filter__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #94a3b8;
	pointer-events: none;
}

.news-filter__q {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 14px 0 38px;
	font-size: 15px;
	line-height: 1;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.news-filter__q::placeholder { color: #94a3b8; }
.news-filter__q:focus {
	background: #fff;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.news-filter__sort {
	flex: 0 0 auto;
	min-width: 200px;
}

.news-filter__select {
	display: block;
	position: relative;
}
.news-filter__select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -6px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: rotate(45deg);
	pointer-events: none;
}
.news-filter__select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 38px 0 14px;
	font-size: 15px;
	line-height: 1;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.news-filter__select select:focus {
	background: #fff;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.news-filter__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
	border-top: 1px dashed #e5e7eb;
	padding-top: 14px;
}

.news-filter__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.news-filter__tag:hover {
	background: #e2e8f0;
}
.news-filter__tag input {
	display: none;
}
.news-filter__tag.is-active {
	background: #59ab00;;
	border-color: #59ab00;
	color: #fff;
}
.news-filter__tag-count {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	background: rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	color: #475569;
}
.news-filter__tag.is-active .news-filter__tag-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.news-filter__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px dashed #e5e7eb;
	padding-top: 14px;
}

.news-filter__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.news-filter__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
}
.news-filter__date-label {
	font-weight: 500;
}
.news-filter__date-field {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.news-filter__date input {
	width: 140px;
	height: 36px;
	padding: 0 28px 0 10px;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.news-filter__date input:focus {
	background: #fff;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.news-filter__date-clear {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: #94a3b8;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.news-filter__date-clear:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.news-filter__date-clear[hidden] { display: none; }

.news-filter__reset {
	height: 36px;
	padding: 0 18px;
	font-size: 13px;
	color: #fff;
	background: #59ab00;
	border: 1px solid #59ab00;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.news-filter__reset:focus,
.news-filter__reset:focus-visible {
	outline: none;
	border: 1px solid #59ab00;
	box-shadow: none;
}
.news-filter__reset:hover {
	background: #519c00;
}

.news-filter__list {
	position: relative;
	min-height: 120px;
}
.news-filter__list.is-loading {
	opacity: 0.65;
	pointer-events: none;
}
.news-filter__list.is-loading::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(255, 255, 255, 0.72);
	border-radius: 8px;
}
.news-filter__list.is-loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 4;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid #e5e7eb;
	border-top-color: #59ab00;
	border-radius: 50%;
	animation: news-filter-spin 0.75s linear infinite;
	box-sizing: border-box;
}
@keyframes news-filter-spin {
	to { transform: rotate(360deg); }
}

.news-filter__empty {
	padding: 32px 16px;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border: 1px dashed #e5e7eb;
	border-radius: 8px;
}

.news-filter__nav {
	margin-top: 20px;
}

.news-filter__toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(20px);
	background: #1f2937;
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 9999;
}
.news-filter__toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
	.news-filter__form { padding: 14px; }
	.news-filter__search { flex: 1 1 100%; min-width: 0; }
	.news-filter__sort { width: 100%; min-width: 0; }
	.news-filter__sort .news-filter__select select { width: 100%; }
	.news-filter__bottom { flex-direction: column; align-items: stretch; }
	.news-filter__dates { justify-content: space-between; }
	.news-filter__date { flex: 1 1 calc(50% - 5px); }
	.news-filter__date input { width: 100%; flex: 1 1 auto; min-width: 0; }
	.news-filter__date-field { flex: 1 1 auto; }
	.news-filter__reset { width: 100%; }
}

@media (max-width: 450px) {
	.news-filter__dates { flex-direction: column; align-items: stretch; }
	.news-filter__date { flex: 1 1 100%; width: 100%; }
}

/* End */
/* /local/components/giveandget/news.filter/templates/.default/style.css */
