// Search widget
.widget-tm-re-search {
	overflow: hidden;
	&--result {
		margin-bottom: $gap-size;
	}
	&__form {
		padding: $gap-size / 3;

		color: $white;
		background-color: $blue;
		@media (min-width: 1200px) {
			padding: $gap-size;
		}
	}
	.tm-re-search {
		&-form {
			&__group {
				margin-bottom: $gap-size / 2;
			}
			&__range {
				.tm-re-search-form__field {
					&:not(:first-child) {
						margin-top: $gap-size / 4;
					}
				}
			}
			&__more {
				&-field {
					position: absolute;
					top: -9999px;
					left: -9999px;

					display: none;
					&:checked ~ div {
						display: none;
						@media (min-width: 1200px) {
							display: block;
						}
					}
					&:checked ~ .tm-re-search-form__more-toggle {
						&:after {
							content: '+';
						}
					}
				}
				&-toggle {
					display: block;

					width: 100%;
					margin-bottom: $gap-size / 2;

					cursor: pointer;
					@media (min-width: 1200px) {
						display: none;
					}
					&:after {
						margin-left: $gap-size / 5;

						content: '-';
					}
				}
			}
		}
	}
}
