/* Self-contained styles for the jQuery UI popup used by the enquiry form.
 * Scope every rule to the popup so other form tables and selects stay intact.
 */
#ui-datepicker-div {
	display: none;
	box-sizing: border-box;
	width: 296px;
	max-width: calc(100vw - 16px);
	margin: 0;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
	color: #222;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
	font: 16px/1.5 Arial, sans-serif;
}

#ui-datepicker-div * {
	box-sizing: border-box;
}

#ui-datepicker-div .ui-datepicker-header {
	position: relative;
	padding: 6px 0;
	border: 0;
	border-radius: 3px;
	background: #ededed;
	color: #222;
}

#ui-datepicker-div .ui-datepicker-title {
	margin: 0 32px;
	text-align: center;
	line-height: 32px;
	white-space: nowrap;
}

#ui-datepicker-div .ui-datepicker-title select {
	display: inline-block;
	width: auto;
	max-width: 45%;
	height: 32px;
	margin: 0 2px;
	padding: 2px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #222;
	font: inherit;
	vertical-align: baseline;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
	position: absolute;
	top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 32px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #222;
	cursor: pointer;
	text-decoration: none;
}

#ui-datepicker-div .ui-datepicker-prev { left: 0; }
#ui-datepicker-div .ui-datepicker-next { right: 0; }

/* CSS arrows avoid a dependency on the jQuery UI icon sprite. */
#ui-datepicker-div .ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-next::before {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

#ui-datepicker-div .ui-datepicker-prev::before { transform: rotate(-135deg); }

#ui-datepicker-div .ui-datepicker-prev span,
#ui-datepicker-div .ui-datepicker-next span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

#ui-datepicker-div table {
	display: table;
	width: 100%;
	margin: 6px 0 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	font: inherit;
}

#ui-datepicker-div thead { display: table-header-group; }
#ui-datepicker-div tbody { display: table-row-group; }

#ui-datepicker-div tr {
	display: table-row;
	border: 0;
	background: transparent;
}

#ui-datepicker-div th,
#ui-datepicker-div td {
	display: table-cell;
	width: auto;
	height: auto;
	padding: 2px;
	border: 0;
	background: transparent;
	text-align: center;
}

#ui-datepicker-div th { font-weight: bold; }

#ui-datepicker-div td a,
#ui-datepicker-div td span {
	display: block;
	padding: 5px 0;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #f6f6f6;
	color: #222;
	font-weight: normal;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

#ui-datepicker-div td .ui-state-highlight {
	border-color: #777;
	background: #eee;
}

#ui-datepicker-div td .ui-state-active {
	border-color: #222;
	background: #222;
	color: #fff;
}

#ui-datepicker-div a:hover,
#ui-datepicker-div td a.ui-state-hover {
	background: #ddd;
	color: #111;
}

#ui-datepicker-div a:focus-visible,
#ui-datepicker-div select:focus-visible,
#ui-datepicker-div button:focus-visible {
	outline: 2px solid #0067c0;
	outline-offset: 1px;
}

#ui-datepicker-div .ui-state-disabled {
	opacity: .4;
	cursor: default;
	pointer-events: none;
}

#ui-datepicker-div .ui-datepicker-buttonpane {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #ddd;
}

#ui-datepicker-div .ui-datepicker-buttonpane button {
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #f6f6f6;
	color: #222;
	font: inherit;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}
