
:root {
	--accent: #ccc;
	--accent-rgb: rgb(
		calc(var(--accent) >> 16 & 255),
		calc(var(--accent) >> 8 & 255),
		calc(var(--accent) & 255)
	);
	--active: #ccc;
	--fontFamily: auto;

	--accent-hover: rgb(
		calc(var(--accent-rgb) >> 16 - 20 & 255),
		calc(var(--accent-rgb) >> 8 - 20 & 255),
		calc(var(--accent-rgb) - 20 & 255)
	);
}

body {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: var(--fontFamily);
}

#calendarContainer {
	box-sizing: border-box;
	max-width: 100%;
	padding: 1rem;
	align-items: center;
	display: flex;
	flex-direction: column;
}

#booking_Fields {
	width: 100% !important;
}

#calendarWidgetWrapper {
	width: 100%;
	max-width: 850px;
	height: 100%;
	padding: 1rem;
}

.label-info {
	background-color: #a5d24a;
	padding: 0 3px;
	margin-bottom: 10px;
	max-width: 100px !important;
}

.bootstrap-tagsinput {
	min-width: 200px !important;
}

.stepWrapper {
	width: fit-content;
	display: flex;
	border-radius: 10px;
	border: 1px #ccc solid;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
	width: 100%;
}

#confirm {
	color: white;
}

#calendarContainer .wrapper {
	margin: 2rem;
	width: 100%;
	max-width: 450px;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	max-height: 500px;
}

#calendarContainer .wrapper .header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
}

#calendarContainer .header .icons {
	display: flex;
}

#calendarContainer .header .icons span {
	height: 38px;
	width: 38px;
	margin: 0 1px;
	cursor: pointer;
	color: #878787;
	text-align: center;
	font-size: 1.9rem;
	user-select: none;
	border-radius: 50%;
}

#calendarContainer .icons span:last-child {
	margin-right: -10px;
}

#calendarContainer .header .icons span:hover {
	background: #f2f2f2;
}

#calendarContainer .header .current-date {
	font-size: 1.45rem;
	font-weight: 500;
	margin: 0;
}

#calendarContainer .calendar ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	text-align: center;
}

#calendarContainer .calendar .days {
	margin-bottom: 20px;
}

#calendarContainer .calendar li {
	color: #333;
	width: calc(100% / 7);
	font-size: 1.07rem;
}

#calendarContainer .calendar .weeks li {
	font-weight: 500;
	cursor: default;
}

#calendarContainer .calendar .days li {
	z-index: 1;
	cursor: pointer;
	position: relative;
	margin-top: 30px;
}

#calendarContainer .days li.inactive {
	color: #aaa;
	cursor: default;
}

#fullname,
#email,
#time {
	padding: 0.5rem;
	border-radius: 4px;
	width: 100%;
	max-width: 300px;
	margin-bottom: 1rem;
	background-color: #fff;
	border: solid 2px #d1d7de;
	font-family: Avenir-Medium;
	font-size: 16px;
	font-weight: 500;
	font-style: normal;
	font-stretch: normal;
	height: 44px;
	letter-spacing: .3px;
	color: #20395e;
}

#calendarContainer .vfb-select {
	width: 100% !important;
}

#calendarContainer span.vbt-birthdayfield {
	border-bottom: 1px solid #ddd;
	padding: 10px 0;
}

#calendarContainer #send-booking-form {
	color: white;
	width: 100px;
	padding: 0.5rem;
	align-self: center;
	border-radius: 5px;
	border: var(--accent) 1px solid;
	background-color: var(--accent);
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	font-family: var(--fontFamily);
}

#calendarContainer .days li::before {
	position: absolute;
	content: "";
	left: 50%;
	top: 50%;
	height: 40px;
	width: 40px;
	z-index: -1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

#calendarContainer .days li.picked::before {
	background: var(--active);
}

#calendarContainer .days li:not(.inactive):hover::before {
	background: #c5c5c5;
}

#calendarContainer .form-container {
	background-color: #fff;
	box-sizing: border-box;
	width: 50%;
	margin: 2rem;
}

#calendarContainer .form-container,
#calendarContainer .booking-form {
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;
}

.form-container .slot-btn {
	background: transparent;
	border: var(--accent) 1px solid;
	outline: 2px solid transparent;
	width: 100%;
	height: 100%;
	border-radius: 5px;
	flex: 1 1;
	font-size: 1rem;
	font-weight: 500;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	font-family: var(--fontFamily);
	transition: box-shadow 0.3s;
}

.form-container .slot-btn.disabled {
	text-decoration: line-through;
	cursor: default;
}

.form-container .slot-btn.confirmedSlot {
	width: 49%;
	font-size: 10px;
	max-height: 40px;
	text-align: center;
	line-height: 40px;
	overflow: hidden;
}

.form-container #confirm {
	height: 100%;
	border-radius: 5px;
	color: white;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	width: 45%;
	margin-left: 5%;
	font-family: var(--fontFamily);
	background-color: var(--accent);
}

#calendarContainer .hidden {
	min-height: 30vh;
	min-width: 30vw;
	background-color: #fff;
	background: #ADD8E6;
	opacity: 0;
}

#calendarContainer .autocomplete-items {
	padding: 10px 0;
}

#calendarContainer .hidden-step {
	display: none;
}

#calendarContainer input,
#calendarContainer select,
#calendarContainer textarea,
#calendarContainer .vbt-birthdayfield,
#calendarContainer .vbt-checkboxselectinput {
	border: none;
	border-bottom: 1px solid #ddd;
	box-sizing: border-box;
	font-size: 1.1rem;
	outline: none;
	padding: 10px 0;
	width: 100%;
	margin: 0;
	background: #f9f9f9;
}

/* Cancellation page only: the "cancelingReason" input isn't wrapped in a
   .vbf-row (which normally supplies this spacing), so this is scoped to
   .before_canceling instead of the generic input rule above to avoid
   changing spacing on the booking page's form fields. */
#calendarContainer .before_canceling input {
	margin-bottom: 10px;
	background: transparent;
}

#calendarContainer .vbt-checkboxselectinput .vbt-checkboxselectinput-box {
	padding: 2px 5px;
}

#calendarContainer .vbt-checkboxselectinput .vbt-checkboxselectinput-headbox {
	padding: 0px 3px;
}

#calendarContainer .iti.iti--allow-dropdown {
	width: 100%;
}

#calendarContainer .bootstrap-tagsinput {
	margin: 0 -6px;
	outline: none !important;
	border: none !important;
	background: none !important;
	width: 100%;
	box-shadow: none !important;
}

#calendarContainer .vbf-row {
	margin-bottom: 10px;
}

#calendarContainer .vbf-row > p {
	margin: 0;
}

#calendarContainer .vbf-row label.title {
	margin: 0;
}

#calendarContainer .vbf-row label.vfb-choice {
	margin: 0;
}

#calendarContainer .vbf-row .vfb-field {
	margin: 0;
}

#calendarWidgetWrapper .calendar ul {
	padding-inline-start: 0;
}

#calendarContainer #calendarWrapper #bookinginfo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	position: relative;
}

/* Cancellation page only: googleCalendarCancellationBooking.php is the only
   template where #calendarWrapper also carries the .stepWrapper class
   directly (it merges wrapper + step into one div), so this selector does
   not affect the booking page's #calendarWrapper. */
#calendarContainer #calendarWrapper.stepWrapper {
	height: 70vh;
	min-height: 350px !important;
}

#alert-box,
#loader-box {
	opacity: 0;
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 80%;
	height: 40%;
	top: 50%;
	left: 50%;
	max-width: 500px;
	max-height: 350px;
	transform: translate(-50%, -50%);
	z-index: -5;
	font-size: 24px;
	background-color: #fff;
	border: 1px #ccc solid;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

#loader-box {
	z-index: -4;
}

#alert-box {
	flex-direction: column-reverse;
	gap: 10px;
	padding: 30px;
}

#alert-box > svg {
	width: 50px;
	height: 50px;
}

#alert-box p {
	margin: 1rem;
	text-align: center;
}

.vfb-error {
	color: red;
	font-size: 12px;
}

.lds-ring {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}

.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	margin: 8px;
	border: 8px solid #fff;
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: var(--accent) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}

@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

#dimmer {
	position: fixed;
	background-color: #9fa1a340;
	width: 100vw;
	height: 100vh;
	opacity: 0;
	z-index: -4;
}

.reschedule_event,
.reschedule_event_head {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80%;
	max-width: 850px;
	background-color: rgb(217 232 248);
	height: 40px;
	border-radius: 10px;
	text-align: center;
	font-size: 13px;
}

.back_info {
	background: transparent;
	color: var(--accent);
	border: none !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	max-height: 30px;
	top: -10px;
	left: 0;
	position: absolute;
}

.vbf-errors-box .vfb-form-error-message {
	position: relative;
	padding: 5px;
	margin-bottom: 10px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: #721c24;
	background-color: #f8d7da;
	border-color: #f5c6cb;
	font-size: 13px;
}

#timezone_name {
	color: #6c757d !important;
	font-weight: normal;
	font-size: 11px;
	margin-top: 5px;
}

#timezone_name a.timezone_name_change,
#timezone_name a.timezone_name_change:hover {
	color: #6c757d !important;
	text-decoration: none;
}

#timezone_name a.timezone_name_change .timezone_name_change_icon {
	display: none;
	margin: 0 10px;
}

#timezone_name a.timezone_name_change:hover .timezone_name_change_icon {
	display: inline-block;
}

.cancelBooking,
.cancelBookingDone,
.redirectToBookingPage {
	background-color: var(--accent);
	cursor: pointer;
	border: none;
	color: white;
	border-radius: 5px;
	padding: 0.75rem;
	font-size: 1rem;
}

.cancelBooking:hover,
.cancelBookingDone:hover {
	background-color: var(--accent);
}

.small-margin-bottom {
	margin-bottom: 10px !important;
}

.open > .dropdown-menu {
	display: block;
}

.dropdown-menu > li > a {
	display: block;
	padding: 3px 20px;
	clear: both;
	font-weight: 400;
	line-height: 1.42857143;
	color: #333;
	white-space: nowrap;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
	color: #16181b;
	text-decoration: none;
	background-color: #f8f9fa;
}

.dropdown-menu > li > a.active,
.dropdown-menu > li > a:active {
	color: #fff;
	text-decoration: none;
	background-color: #007bff;
}

@media only screen and (max-width: 780px) {
	.stepWrapper {
		display: flex;
		flex-direction: column;
	}

	#calendarContainer .wrapper {
		width: auto;
	}

	#calendarContainer #calendarWrapper #bookinginfo > h2 {
		display: none;
	}

	#calendarContainer .form-container {
		width: 100%;
		padding: 1rem;
		margin: 0;
	}

	#calendarContainer .form-container .slot-row {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 10px;
	}

	#calendarContainer .form-container .slot-row .slot-btn.confirmedSlot {
		margin: auto;
		font-size: 13px;
	}

	.divider {
		display: none !important;
	}

	#calendarContainer #calendarWrapper.stepWrapper {
		height: auto;
		min-height: 0 !important;
	}
}

@media only screen and (max-width: 480px) {
	#calendarWidgetWrapper {
		padding: 0.5rem;
	}

	#calendarContainer .wrapper {
		margin: 0.5rem;
	}

	#calendarContainer .header .icons span {
		height: 30px;
		width: 30px;
		font-size: 1.4rem;
	}

	#calendarContainer .calendar li {
		font-size: 0.85rem;
	}

	#calendarContainer .days li::before {
		width: 30px;
		height: 30px;
	}

	.reschedule_event,
	.reschedule_event_head {
		height: auto;
		min-height: 40px;
		padding: 8px;
		white-space: normal;
	}

	#calendarContainer #send-booking-form {
		width: 100%;
	}

	.form-container .slot-btn.confirmedSlot {
		width: 100%;
		margin-bottom: 5px;
	}

	.form-container #confirm {
		width: 100%;
		margin-left: 0;
		margin-top: 8px;
	}
}
