@import url('https://fonts.googleapis.com/css2?family=Lustria&display=swap');

/* Contenitore principale del datepicker */

body {
	font-size: 13px;
	--gap-space: 5px;
	--border-style: 1px solid #dedede;
	--radius: 5px;
	--current-color: bisque;
	--hover-color: #5f8aaf;
	--primary-color: #286090;
}

.btn-book {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--primary-color);
	--bs-btn-border-color: var(--primary-color);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #5f8aaf;
	--bs-btn-hover-border-color: #1a4972;
	--bs-btn-focus-shadow-rgb: 49,132,253;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #1a4972;
	--bs-btn-active-border-color: #12528a;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #E2E2E2;
	--bs-btn-disabled-border-color: #c5c5c5;
}

.alert-top {
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 770px;
	z-index:10000;
}

.form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);;
}

.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wrapper > section.container{
	flex:1;
}

#logo {
	text-align: center;
}

#logo > img {
	width: 80%;
	max-width: 180px;
	aspect-ratio: 1/1;
	height: auto;
	object-fit: contain;
	padding: 15px;
	object-position: center center;
}

#sandbox-container,
#time-slots,
#booking-for {
	margin-bottom: 1rem;
}

#booking-section h1,
#booking-section h2,
#booking-section h3,
#otpSection h3 {
	font-family: "Lustria", serif;
  font-weight: 400;
  font-style: normal;
	color:#666;
}

#booking-section h1,
#booking-section h2,
#booking-section h3,
#booking-section h4,
#booking-section h5 {
	text-align:center;
}

.datepicker-inline {
	width:auto !important;
	max-width:800px !important;
}

.datepicker table {
	width: 100%;
}

.datepicker-days table {

	& {
		display: grid;
		grid-template-areas: "header" "calendar" "footer";
	}

	& tbody{
		display: grid;
		gap: var(--gap-space);
	}

	& tbody tr,
	& thead tr {
		display: grid;
		gap: var(--gap-space);
		grid-template-columns: repeat(7,1fr);
	}

	& thead tr:nth-child(2) {
		grid-template-columns: 1fr 5fr 1fr;
	}

	& tr td,
	& tr th {
		align-items: center;
		display: flex;
		justify-content: center;
		text-align: center;
		width: auto;
		height: auto;
		font-size: 1rem;
		border-radius: unset;
	}

	& thead tr:nth-child(2) th {
		height: 60px;
	}

	& tr td.day {
		aspect-ratio: 1/1;
		border: var(--border-style);
		border-radius: var(--radius);
		position:relative;
	}
	
	/* & tr td.day.new,
	& tr td.day.old {
		visibility:hidden;
	} */

	& tr td.day:hover {
		background-color: var(--hover-color);
		color: white;
		cursor: pointer;
	}

	& tr td.day.disabled,
	& tr td.day.disabled:hover {
		cursor: not-allowed;
		opacity: 0.6;
	}

	& tr th.datepicker-switch {
		grid-column: 2/3;
		width: auto;
		height: auto;
	}

	& tr td.day.special-date::after {
		content: "\f005";
		color: orange;
		font-family: var(--fa-style-family-classic);
		font-weight: bold;
		position: absolute;
		top: 6px;
    right: 5px;
    font-size: 18px;
		line-height: 1;
	}

}

#time-slots .service:first-of-type {
	margin-top:13px;
}

.service {
	margin-bottom: 1rem;
	/* padding: 0rem 1rem 1rem; */
	border: var(--border-style);
	border-radius: var(--radius);
}

.service h5 {
	font-size: 1.1rem;
	color: #286090;
	text-align: left !important;
	text-transform: uppercase;
	font-weight: 700;
	border-bottom: 1px solid #f0f0f0;
	padding: 0 0 7px 0;
}
.service.event h5 {
	color: brown;
}

.service .des-serv-2 {
	font-size: 0.85em;
	color: #999;
	margin: 5px 0 10px;
}

.service.waitlist {
	background: #fffdf9;
}

.service.waitlist .alert-warning{
	margin-left: -1.25em;
	margin-right: -1.25em;
	border-left: 0;
	border-right: 0;
	border-top: 0;
	border-radius: 0;
}

.service.waitlist .slot{
	color:#000;
	background: #fff1c8;
}

.service.waitlist .slot.selected {
	background: #ffbf00;
	color: #000;
}

.service.waitlist > h5 {
		margin-bottom:0;
}

.service.waitlist > h5::after {
	content: 'Sold out';
	font-size: 9px;
	background: red;
	color: white;
	display: inline-block;
	padding: 2px 4px;
	border-radius: 4px;
}

.service-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
	gap: var(--gap-space);
}
.service.event .service-slots {
	display: flex;
}

.service-slots .slot {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f5f5f5;
	border: var(--border-style);
	border-radius: var(--radius);
	cursor: pointer;
	padding: 12px 20px;
	font-size:1.2em;
}

.service-slots .slot:hover {
	background-color: var(--hover-color);
	color: white;
}

.service-slots .slot.selected {
	background-color: var(--primary-color);
	color: #fff;
}

.datepicker-months .month,
.datepicker-years .year,
.datepicker-decades .decade,
.datepicker-centuries .century {
	border: 1px solid #dedede;
}

#success-section, #wl-section {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
}

#privacy {

	& .form-check-input {
		width: 20px;
		height: 20px;
		margin-left: -2em;
	}

	& .form-check {
		padding-left: 2em;
	}

}

@media (max-width: 991px) {
	.datepicker-days table {
		& tr td.day.special-date::after {
			top: 2px;
			right: 2px;
			font-size: 12px;
		}
	}
}


.stripe-wrapper {
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background-color: #fff;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.stripe-wrapper:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.stripe-wrapper.invalid {
  border-color: #dc3545;
}