/* staff thumbnails */
ul.trainerthumbs {
	margin: 0 0 0 -0.7%;
	padding: 0;
	font-size: 10pt;
	text-align: center !important;
	list-style: none;
}

.trainerthumbs li {
	display: inline-block;
	padding: 0;
	margin: 0.7%;
	vertical-align: top;
	line-height: 1em;
	width: 200px;
	max-width: 200px;
	position: relative;
	text-align: center !important;
	font-family: 'ScandiaLine', sans-serif;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

.trainerthumbs li img {
	display: block;
	height: 200px;
	width: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	transition: 0.3s ease all;
	user-select: none;
}

.trainerthumbs li span:not(.bookable) {
	position: relative;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2% 2.5%;
	margin: 0 0 0.5em;
	text-align: center;
	font-size: smaller;
	box-sizing: border-box;
	display: block;
	line-height: 1.2em;
	user-select: none;
	-webkit-user-select: none;
}

.trainerthumbs li span.bookable {
	position: absolute;
	top: 0.4em;
	right: -3.5em;
	box-sizing: border-box;
	background: #fec33e;
	padding: 0.7em 4em 0.3em;
	line-height: 1.3em;
	font-size: 8.5pt;
	font-family: 'Scandia';
	font-weight: bold;
	color: #004b64;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	user-select: none;
	-webkit-user-select: none;
}

.trainerthumbs li span.bookable.spa {
	background: #11b5cf;
	color: white;
}

.trainerthumbs li a {
	text-decoration: none;
	line-height: 1.3em !important;
	display: block;
}

.trainerthumbs li:hover img {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

/** iPad Pro 10.5 -ish size */
@media (max-width: 1120px) {
	.trainerthumbs li {
		width: 180px;
	}

	.trainerthumbs li img {
		height: 180px;
	}

	.trainerthumbs li span.bookable {
		font-size: 6.8pt;
	}
}

/** iPad Mini / Tablet size */
@media (max-width: 850px) {
	ul.trainerthumbs {
		text-align: center !important;
	}

	.trainerthumbs li {
		width: 160px;
	}

	.trainerthumbs li img {
		height: 160px;
	}
}

/** Smaller than 7" Android tablets */
@media (max-width: 599px) {
	ul.trainerthumbs {
		text-align: center !important;
	}

	.trainerthumbs li {
		width: 140px;
	}

	.trainerthumbs li img {
		height: 140px;
	}

	.trainerthumbs li span.bookable {
		font-size: 6pt;
	}
}

/** Appointment widgets */
/* Book online/Appointment widget */
appointment.button {
	font-size: 10pt !important;
	color: #23282d !important;
	padding: 1.2em !important;
	margin-top: 0.5em !important;
}

.hc-button.signup_now.appointment {
	padding: 1em !important;
}

.appointment.button .hc-button.signup_now {
	padding: 1em;
	margin-top: 1em;
}

.hc-button {
	color: #23282d !important;
	background: none !important;
}

.appointments select {
	-webkit-appearance: none;
	appearance: none;
	margin: 1em 0;
	border-radius: 0;
	padding: 0.5em 1em !important;
	box-sizing: border-box;
	border: 1px solid #aaa !important;
	box-shadow: none !important;
	display: inline-block;
	width: 100%;
	font-size: inherit !important;
	max-width: 480px;
	background-image: url(/wp-content/themes/castlehill/assets/arrow-down-navy.svg) !important;
	background-position: 98% 50% !important;
	background-repeat: no-repeat !important;
	background-size: auto 22% !important;
}

.appointments {
	max-width: 100%;
	margin: 0 !important;
}

.appointments .action_icon {
	display: none;
}

.appointments h1 {
	border-bottom: none;
}

.ui-datepicker {
	font-family: inherit !important;
	padding: 1em !important;
	box-sizing: border-box;
	border-radius: 0 !important;
	width: 100% !important;
	max-width: 480px;
}

.ui-datepicker tr {
	display: table-row !important;
}

.ui-datepicker td {
	display: table-cell !important;
}

.ui-datepicker-header {
	background: white !important;
	border: none !important;
}

.ui-datepicker .ui-state-highlight {
	background: inherit !important;
}

table.ui-datepicker-calendar td * {
	text-align: center !important;
}

.ui-state-active {
	border-color: #004b64 !important;
}

.ui-datepicker-inline {
	display: none;
}

.ui-datepicker-current-day:not(:first-of-type):not(:last-of-type)
	.ui-state-active:not(.ui-state-highlight) {
	border-right: none !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
	background: url(/wp-content/themes/castlehill/assets/right-arrow.svg) center no-repeat !important;
	background-size: auto 75% !important;
}

.ui-datepicker-prev {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
	visibility: hidden !important;
}
