/* ==========================================================================
   Book Form Hotel - [book_form_hotel] shortcode
   Vanilla CSS, no dependencies.
   ========================================================================== */

.bfh {
	--bfh-cream: #f7f3e7;
	--bfh-cream-dark: #efeadb;
	--bfh-green: #24402e;
	--bfh-terracotta: #a9552f;
	--bfh-terracotta-dark: #94481f;
	--bfh-ink: #33322a;
	--bfh-muted: #b9b5a4;
	--bfh-border: #ddd8c6;
	--bfh-block: #d9dbce;
	--bfh-block-hover: #cbcfbe;
	--bfh-range: #cdd1c1;

	position: relative;
	width: 100%;
	max-width: 1710px;
	margin: 0 auto;
}

.bfh *,
.bfh *::before,
.bfh *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Bar
   -------------------------------------------------------------------------- */
.bfh-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	background-color: var(--bfh-cream);
}
bfh-bar > *:not(last-child) {
    border-right: 1px solid var(--bfh-border);
}

.bfh-field {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 24px 40px;
	margin: 0;
	border: 0;
	border-right: 1px solid var(--bfh-border);
	background: transparent;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

.bfh-field-date {
	cursor: pointer;
	flex-grow: 1.25;
}

.bfh-field-date:hover,
.bfh-field-date:focus-visible {
	background-color: var(--bfh-cream-dark);
	outline: none;
}

.bfh-label {
	color: var(--bfh-terracotta);
	font-family: var(--bfh-sans);
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.bfh-value {
	color: var(--bfh-ink);
	font-family: var(--bfh-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* Counters (guests / rooms) */
.bfh-counter {
	display: flex;
	align-items: center;
	gap: 18px;
}
.bfh-bar > *:not(:last-child) {
    border-right: 1px solid rgba(38, 37, 30, 0.14);
}
.bfh-counter-btn {
	padding:0 !important;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
    border-radius:999px !important;
    background-color:transparent !important;
    border:1px solid var( --e-global-color-accent ) !important;
    color:var( --e-global-color-accent ) !important;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.bfh-counter-btn svg {
	width: 12px;
	height: 12px;
	display: block;
}

.bfh-counter-btn:hover,
.bfh-counter-btn:focus-visible {
	background-color: rgba(255,255,255,0.4) !important;
	outline: none;
}

.bfh-counter-btn[disabled] {
	opacity: 0.35;
	cursor: default;
/* 	background-color: transparent; */
}

.bfh-counter-value {
	min-width: 26px;
	color: var(--bfh-ink);
	font-family: var(--bfh-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

/* Submit */
.bfh-submit {
	flex: 0 0 auto;
    border-radius: 0px !important;
    border: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.15s ease;
    -webkit-appearance: none;
}

.bfh-submit:hover,
.bfh-submit:focus-visible {
	background-color: var(--bfh-terracotta-dark);
	outline: none;
}

/* --------------------------------------------------------------------------
   Calendar
   -------------------------------------------------------------------------- */
.bfh-calendar {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 999;
	width: 480px;
	max-width: 100%;
	padding: 28px 34px 22px;
	background-color: var(--bfh-cream);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.bfh-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.bfh-cal-title {
	font-size: 16px;;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.bfh-cal-nav {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1.5px solid var(--bfh-ink);
	border-radius: 50%;
	background: transparent;
	color: var(--bfh-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
	padding:0 !important;
}

.bfh-cal-nav svg {
	width: 8px;
	height: 14px;
	display: block;
}

.bfh-cal-nav:hover,
.bfh-cal-nav:focus-visible {
	background-color: var(--bfh-block);
	outline: none;
}

.bfh-cal-nav[disabled] {
	opacity: 0.35;
	cursor: default;
	background-color: transparent;
}

.bfh-cal-weekdays,
.bfh-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.bfh-cal-weekdays {
	margin-bottom: 14px;
}

.bfh-cal-weekday {
	color: #8f8a76;
	font-family: var(--bfh-sans);
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
}

button.bfh-cal-day {
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent !important;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.1s ease;
	appearance: none;
	-webkit-appearance: none;
	color:#333;
	padding:0 !important;
}

.bfh-cal-day.is-empty {
	cursor: default;
	pointer-events: none;
}

.bfh-cal-day.is-disabled {
	color: var(--bfh-muted);
	cursor: default;
	pointer-events: none;
}

.bfh-cal-day:not(.is-disabled):not(.is-empty):hover {
	background-color: var(--bfh-block-hover);
}

.bfh-cal-day.in-range {
	background-color: rgba(30, 70, 54, 0.16) !important;
}

.bfh-cal-day.is-selected {
	color: #ffffff;
	
    background-color: #333 !important;
}

.bfh-cal-day.is-selected:hover {
	background-color: var(--bfh-green);
}

.bfh-cal-nights {
	margin-top: 16px;
	color: #6f6b59;
	font-family: var(--bfh-sans);
	font-size: 15px;
	text-align: center;
}

.bfh-cal-nights:empty {
	display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1500px) {
	.bfh-field {
		padding: 20px 26px;
	}

	.bfh-value,
	.bfh-counter-value {
		font-size: 17px;
	}

	.bfh-label {
		font-size: 12px;
	}

	.bfh-submit {
		font-size: 18px;
		min-width: 190px;
	}
}

@media screen and (max-width: 1100px) {
	.bfh-bar {
		flex-wrap: wrap;
	}

	.bfh-field {
		flex: 1 1 50%;
		border-bottom: 1px solid var(--bfh-border);
	}

	.bfh-field:nth-child(2),
	.bfh-field:nth-child(4) {
		border-right: 0;
	}

	.bfh-submit {
		width: 100%;
		flex: 1 1 100%;
		min-width: 0;
	}

	.bfh-calendar {
		width: 100%;
	}
}

@media screen and (max-width: 560px) {
	.bfh-field {
		flex: 1 1 100%;
		border-right: 0;
		padding: 18px 22px;
	}

	.bfh-calendar {
		padding: 22px 18px 16px;
	}

	.bfh-cal-day {
		height: 40px;
	}
}
