.hb-datepick-popup-wrapper,
.hb-datepick-wrapper {
	border-radius: 6px;
	margin: 10px 0;
	position: relative;
}

.hb-datepick-popup {
	position: relative;
}

.hb-datepick-popup-wrapper {
	display: none;
	position: absolute;
	z-index: 99999;
}

.hb-dp-rtl .hb-dp-month {
	float: right;
}

.hb-dp-month {
	float: left;
	padding: 0 5px 6px;
	width: 290px;
}

.hb-dp-month-header {
	font-size: 21px;
	line-height: 60px;
	text-align: center;
}

.hb-dp-week-header div,
.hb-dp-day {
	box-sizing: border-box;
	float: left;
	height: 34px;
	line-height: 32px;
	padding: 1px;
	text-align: center;
	width: 14.2%;
}

.hb-dp-day-check-in,
.hb-dp-day-check-out {
	font-weight: bold;
}

.hb-dp-day > a,
.hb-dp-day > span {
	display: block;
	height: 100%;
}

.hb-dp-day > span {
	cursor: default;
}

/* BOOKY: unique marker for other-month days (avoid conflicts with generic .datepick-other-month CSS) */
.hb-dp-day > a.booky-dp-other-month,
.hb-dp-day > span.booky-dp-other-month {
	color: #aaa;
}

.hb-dp-week-header {
	font-size: 0.75em;
	font-weight: bold;
	margin-top: -5px;
	text-transform: uppercase;
}

.hb-dp-cmd-wrapper a {
	border-bottom: 0;
	box-shadow: none;
	border-radius: 15px;
	font-size: 18px;
	font-weight: bold;
	height: 30px;
	line-height: 27px;
	outline: none;
	position: absolute;
	text-align: center;
	text-decoration: none;
	top: 15px;
	width: 30px;
}


.hb-dp-cmd-wrapper a.hb-dp-disabled {
	cursor: default;
}

.hb-dp-cmd-prev {
	left: 12px;
	text-indent: -1px;
}

.hb-dp-cmd-next {
	right: 12px;
	text-indent: 2px;
}

.hb-dp-cmd-close {
	border-radius: 10px;
	display: none;
	font-size: 14px;
	font-weight: bold;
	line-height: 20px;
	position: absolute;
	right: 4px;
	text-decoration: none;
	top: 4px;
	width: 20px;
	height: 20px;
}

.hb-dp-rtl .hb-dp-cmd-prev {
	left: auto;
	right: 12px;
}

.hb-dp-rtl .hb-dp-cmd-next {
	left: 12px;
	right: auto;
}

.hb-dp-multi .hb-dp-month:not(.first) {
	border-left-style: solid;
	border-left-width: 1px;
}

.hb-dp-month-row + .hb-dp-month-row {
	border-top-style: solid;
	border-top-width: 1px;
}

.hb-datepick-legend {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	line-height: 30px;
	padding: 10px 40px 10px 15px;
	position: relative;
	text-align: center;
}

.hb-dp-rtl {
	direction: rtl;
}

.hb-dp-rtl .hb-dp-week-header div,
.hb-dp-rtl .hb-dp-day {
	float: right;
}

.hb-availability-calendar {
	margin-bottom: 20px;
}

.hb-day-taken-start,
.hb-day-taken-end {
	overflow: hidden;
	position: relative;
}

.hb-day-taken-start:before,
.hb-day-taken-end:before,
.hb-day-taken-content {
	position: relative;
}

.hb-day-taken-start:before {
	content: '';
	height: 50px;
	left: 0;
	position: absolute;
	top: 10px;
	width: 70px;
	-ms-transform: rotate(-40deg);
	transform: rotate(-40deg);
}

.hb-day-taken-end:before {
	content: '';
	height: 50px;
	left: -25px;
	position: absolute;
	top: -33px;
	width: 70px;
	-ms-transform: rotate(-40deg);
	transform: rotate(-40deg);
}

.hb-availability-calendar-centered {
	margin: 0 auto;
}

.hb-avail-caption-wrapper {
	line-height: 26px;
}

.hb-avail-caption-wrapper span {
	display: inline-block;
	float: left;
	height: 26px;
}

.hb-avail-caption {
	box-shadow: inset 0px 0px 1px rgba(0,0,0,0.4);
	margin-right: 10px;
	width: 31px;
}

.hb-avail-caption-text-available {
	margin-right: 40px;
}

.hb-avail-line-break {
	display: none;
	line-height: 39px;
}

@media screen and (max-width: 480px) {
	.hb-avail-line-break {
		display: block;
	}
}

.hb-dp-clearfix:after {
	content: "";
	display: table;
	clear: both;
}

/* -----------------------------
   UI modern overrides
   (kept here so it loads after base styles)
------------------------------ */

.hb-datepick-popup-wrapper {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.hb-datepick-legend {
	background: rgba(15, 23, 42, 0.035);
	border-bottom: 1px solid rgba(15, 23, 42, 0.12);
	color: rgba(15, 23, 42, 0.62);
	font-size: 13px;
	padding: 10px 44px 10px 12px;
}

.hb-dp-month {
	padding: 6px 10px 10px;
	width: 300px;
}

.hb-dp-month-header {
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	line-height: 44px;
}

.hb-dp-week-header {
	color: rgba(15, 23, 42, 0.62);
	font-size: 11px;
	letter-spacing: 0.06em;
	margin-top: 0;
}

.hb-dp-week-header div {
	padding-bottom: 6px;
}

.hb-dp-day {
	height: 38px;
	line-height: 36px;
}

.hb-dp-day > a,
.hb-dp-day > span {
	border-radius: 10px;
	transition: background 140ms ease, color 140ms ease;
}

.hb-dp-day > a:hover {
	background: rgba(15, 23, 42, 0.04);
}

.hb-dp-today > a {
	box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.35);
}

.hb-dp-selected > a,
.hb-dp-highlight > a {
	background: rgba(14, 165, 233, 0.16);
	color: #0f172a;
	font-weight: 700;
}

.hb-dp-day-check-in > a,
.hb-dp-day-check-out > a {
	background: rgba(14, 165, 233, 0.22);
	font-weight: 800;
}

.hb-dp-cmd-wrapper a {
	border-radius: 999px;
	width: 34px;
	height: 34px;
	line-height: 32px;
	transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.hb-dp-cmd-wrapper a:hover:not(.hb-dp-disabled) {
	background: rgba(15, 23, 42, 0.04);
}

.hb-dp-cmd-wrapper a:active:not(.hb-dp-disabled) {
	transform: translateY(1px);
}

