/* AnchorLight visual staff selector for Bookly's Service step. */

.booking-section .bookly-mobile-step-1 .bookly-js-chain > .bookly-table.anchorlight-bookly-staff-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Bookly's clearfix overflow clips the cap-trimmed labels; this box is a grid and needs no clearing. */
.booking-section .anchorlight-bookly-staff-grid {
	overflow: visible;
}

.booking-section .anchorlight-bookly-staff-enhanced {
	grid-column: 1 / -1;
}

.booking-section .anchorlight-bookly-staff-enhanced > label + div {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.booking-section .anchorlight-bookly-staff-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 16px;
	width: 100%;
}

.booking-section .anchorlight-bookly-staff-card {
	display: flex;
	min-width: 0;
	min-height: 178px;
	padding: 16px 12px 14px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	border: 1px solid rgba(39, 38, 53, 0.2);
	border-radius: 8px;
	outline: 0;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: none;
	color: var(--bookly-ink);
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.booking-section .anchorlight-bookly-staff-card:hover {
	border-color: var(--accent, #c58052);
	background: #fff;
	color: var(--bookly-ink);
}

.booking-section .anchorlight-bookly-staff-card.is-selected {
	border-color: var(--accent, #c58052);
	background: #f7f1e5;
	box-shadow: inset 0 0 0 1px var(--accent, #c58052);
}

.booking-section .anchorlight-bookly-staff-card__avatar {
	display: grid;
	width: 96px;
	height: 96px;
	flex: 0 0 96px;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: var(--bookly-tan);
}

.booking-section .anchorlight-bookly-staff-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.booking-section .anchorlight-bookly-staff-card__avatar--initials {
	color: var(--bookly-slate);
	font-family: var(--heading-font, "IvyPresto Headline", serif);
	font-size: 30px;
	line-height: 1;
}

.booking-section .anchorlight-bookly-staff-card__avatar--any {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.booking-section .anchorlight-bookly-staff-card__avatar--any span {
	width: 30px;
	height: 30px;
	margin-inline: -6px;
	border: 3px solid #f7f1e5;
	border-radius: 50%;
	background: var(--bookly-slate);
}

.booking-section .anchorlight-bookly-staff-card__avatar--any span:nth-child(2) {
	z-index: 1;
	width: 36px;
	height: 36px;
	background: var(--accent, #c58052);
}

.booking-section .anchorlight-bookly-staff-card__name {
	color: var(--bookly-ink);
	font-family: var(--accent-font, "Google Sans Flex", sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.booking-section .anchorlight-bookly-staff-card__actions {
	display: flex;
	width: 100%;
	margin-top: auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.booking-section .anchorlight-bookly-staff-card__select,
.booking-section .anchorlight-bookly-staff-card__profile-link {
	appearance: none;
	margin: 0;
	font-family: var(--accent-font, "Google Sans Flex", sans-serif);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.booking-section .anchorlight-bookly-staff-card__select {
	min-width: 68px;
	padding: 6px 12px;
	border: 1px solid var(--accent, #c58052);
	border-radius: 999px;
	background: transparent;
	color: var(--accent, #c58052);
	cursor: pointer;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.booking-section .anchorlight-bookly-staff-card__profile-link {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bookly-copy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 160ms ease;
}

.booking-section .anchorlight-bookly-staff-card__select:hover,
.booking-section .anchorlight-bookly-staff-card__select:focus-visible {
	border-color: var(--bookly-slate);
	background: rgba(56, 95, 113, 0.08);
	color: var(--bookly-slate);
}

.booking-section .anchorlight-bookly-staff-card__profile-link:hover,
.booking-section .anchorlight-bookly-staff-card__profile-link:focus-visible {
	color: var(--bookly-slate);
}

.booking-section .anchorlight-bookly-staff-card__select:focus-visible,
.booking-section .anchorlight-bookly-staff-card__profile-link:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--bookly-slate);
	outline-offset: 3px;
}

.booking-section .anchorlight-bookly-staff-card.is-selected .anchorlight-bookly-staff-card__select {
	border-color: var(--accent, #c58052);
	background: var(--accent, #c58052);
	color: #fff;
	font-weight: 600;
}

.booking-section .anchorlight-bookly-staff-card.is-selected .anchorlight-bookly-staff-card__select:hover,
.booking-section .anchorlight-bookly-staff-card.is-selected .anchorlight-bookly-staff-card__select:focus-visible {
	border-color: var(--bookly-slate);
	background: var(--bookly-slate);
	color: #fff;
}

.booking-section .anchorlight-bookly-staff-card__meta {
	margin-top: -5px;
	color: var(--bookly-copy);
	font-family: var(--paragraph-font, "Source Sans Pro", sans-serif);
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}

.booking-section .anchorlight-bookly-staff-enhanced:has(.bookly-error) .anchorlight-bookly-staff-selector {
	padding: 8px;
	border: 1px solid #a33d36;
	border-radius: 10px;
}

@media (max-width: 1024px) {
	.booking-section .bookly-mobile-step-1 .bookly-js-chain > .bookly-table.anchorlight-bookly-staff-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.booking-section .anchorlight-bookly-staff-selector {
		gap: 12px;
	}

	.booking-section .anchorlight-bookly-staff-card {
		min-height: 168px;
		padding-top: 14px;
	}

	.booking-section .anchorlight-bookly-staff-card__avatar {
		width: 88px;
		height: 88px;
		flex-basis: 88px;
	}
}

@media (max-width: 360px) {
	.booking-section .anchorlight-bookly-staff-selector {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.booking-section .anchorlight-bookly-staff-card {
		min-height: 154px;
		padding: 12px 8px;
	}

	.booking-section .anchorlight-bookly-staff-card__avatar {
		width: 76px;
		height: 76px;
		flex-basis: 76px;
	}

	.booking-section .anchorlight-bookly-staff-card__name {
		font-size: 14px;
	}

	.booking-section .anchorlight-bookly-staff-card__meta {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.booking-section .anchorlight-bookly-staff-card {
		transition: none;
	}
}
