/*
 * Events filter panel.
 *
 * Styles for the wc_events_filter_panel widget. The checkbox groups are shared
 * with the news/tv filters and live in elementor-widget.css; this file covers
 * the panel chrome (title bar, keyword search, region/country options, date)
 * that used to live in Elementor per-widget custom CSS.
 */

.wc-events-filter {
	display: grid;
	row-gap: 16px;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	/* Matches the 16px Advanced margins the old individual widgets had. */
	padding: 0 16px 16px;
	background-color: #fff;
}

/* The title bar stays full width, like the original header widget. */
.wc-events-filter > .box-custom-filter-title {
	margin-left: -16px;
	margin-right: -16px;
	width: auto;
}

/* Title bar */

.wc-events-filter .box-custom-filter-title {
	background-color: #009FE3;
	padding: 2px 16px 2px 6px;
	height: 30px;
	width: auto;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	border-radius: 5px 5px 0 0;
}

.wc-events-filter .box-custom-filter-title .title-box {
	padding: 8px;
	color: #fff;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 500;
	font-size: 12px;
	white-space: nowrap;
	line-height: 1;
}

.wc-events-filter .box-custom-filter-title .button-box {
	height: 100%;
	position: relative;
}

.wc-events-filter .box-custom-filter-title .button-box .show-clear-button {
	display: block !important;
}

.wc-events-filter .box-custom-filter-title .button-box button {
	display: none;
	background-color: transparent;
	border: none;
	color: #fff;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 500;
	font-size: 12px;
	white-space: nowrap;
	padding: 6px;
	position: absolute;
	right: 0;
	bottom: 0;
	cursor: pointer;
	text-transform: none;
	text-decoration: none;
}

/* Keyword search */

.wc-events-filter .elementor-widget-custom-container {
	border: 1px solid #009FE3;
	padding: 3px;
	width: 100%;
}

.wc-events-filter .elementor-widget-custom-container .search-form-custom-container {
	display: flex;
	align-items: center;
}

.wc-events-filter .elementor-widget-custom-container .search-form-custom-container input {
	width: 90%;
	border: none;
	color: #111;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 400;
	font-size: 14px;
	white-space: nowrap;
	padding: 3px 6px;
}

.wc-events-filter .elementor-widget-custom-container .search-form-custom-container input::placeholder {
	text-transform: none;
	color: #aaa;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 400;
	font-size: 14px;
	white-space: nowrap;
}

.wc-events-filter .elementor-widget-custom-container .search-form-custom-container input:active,
.wc-events-filter .elementor-widget-custom-container .search-form-custom-container input:focus {
	outline: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.wc-events-filter .elementor-widget-custom-container .search-form-custom-container button {
	border: none;
	background: transparent;
	color: #009FE3;
	cursor: pointer;
	/* Reset the parent theme's form/button padding which otherwise stretches the field. */
	padding: 0 6px;
	margin: 0;
	height: auto;
	min-height: 0;
	line-height: 1;
	box-shadow: none;
	font-size: 16px;
}

/* Region and country */

.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select:focus,
.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select:focus-visible {
	outline: none;
}

.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select {
	width: 100%;
	max-width: 220px;
	/* style.css forces a black SVG arrow on every select; keep the panel's blue triangle only. */
	background-image: none !important;
	padding-right: 28px;
}

.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select option {
	color: #000;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 400 !important;
	font-size: 14px !important;
	white-space: nowrap !important;
}

.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select.empty {
	color: #c1c1c1;
	font-style: italic;
	font-weight: 500 !important;
	font-size: 14px !important;
}

.wc-events-filter .elementor-custom-search-filter-by-region-country .select-box select.valid {
	color: #000;
	font-style: normal;
	font-weight: 500 !important;
	font-size: 14px !important;
}

/* Date */

.wc-events-filter .elementor-custom-search-filter-events-by-date {
	display: inline-grid;
	max-width: 100%;
	width: 100%;
	background-color: #fff;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .search-filter-events-by-date-title {
	padding: 8px;
	color: #009FE3;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 600 !important;
	font-size: 14px !important;
	white-space: nowrap !important;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date {
	box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
	border-radius: 1px;
	padding: 4px 0 4px 10px;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date input {
	border: none;
	color: #000;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 500;
	font-size: 12px;
	white-space: nowrap;
	padding: 3px;
	width: 92%;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date input::placeholder {
	color: #c1c1c1;
	text-align: left;
	font-family: "Gill Sans", Sans-serif;
	font-style: italic;
	font-weight: 500;
	font-size: 14px;
	white-space: nowrap;
	opacity: 1;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date input:active,
.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date input:focus {
	outline: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.wc-events-filter .elementor-custom-search-filter-events-by-date .select-date input.hasCalendar {
	background-image: url("../images/calendar.svg");
	background-repeat: no-repeat;
	background-position: 100% center;
	background-size: auto 90%;
	position: relative;
	right: 0;
	left: 0;
}

/* Apply (mobile popup) */

.wc-events-filter .wc-events-filter-apply {
	display: block;
	width: 100%;
	border: none;
	border-radius: 3px;
	padding: 12px 24px;
	background-color: #009FE3;
	color: #fff;
	font-family: "Gill Sans", Sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.wc-events-filter .wc-events-filter-apply:hover,
.wc-events-filter .wc-events-filter-apply:focus {
	background-color: #0089c4;
	color: #fff;
}
