.hcbb {
	--hcbb-navy: #233141;
	--hcbb-navy-hover: #182330;
	--hcbb-bg: #f3ebe0;
	--hcbb-label: #6b6862;
	--hcbb-divider: #d3cbc5;
	--hcbb-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--hcbb-serif: 'Instrument Serif', Georgia, serif;

	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 30px 20px 12px;
	background: var(--hcbb-bg);
	color: var(--hcbb-navy);
	font-family: var(--hcbb-sans);
	box-shadow: 0 10px 30px rgba(35, 49, 65, 0.14);
}

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

.hcbb__field {
	position: relative;
	height: 76px;
	min-width: 0;
}

.hcbb__field:not(:first-child)::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	height: 64px;
	width: 1px;
	transform: translateY(-50%);
	background: var(--hcbb-divider);
	pointer-events: none;
}

.hcbb__icon,
.hcbb__chevron {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--hcbb-navy);
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	z-index: 1;
}

.hcbb__icon {
	left: 28px;
	width: 28px;
	height: 28px;
	stroke-width: 1.2;
}

.hcbb__chevron {
	right: 22px;
	width: 20px;
	height: 20px;
	stroke-width: 1.4;
}

.hcbb__label {
	position: absolute;
	top: 15px;
	left: 72px;
	margin: 0;
	font-family: var(--hcbb-sans);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hcbb-label);
	pointer-events: none;
	z-index: 1;
}

.hcbb .hcbb__input {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 30px 48px 0 72px;
	font-family: var(--hcbb-sans);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--hcbb-navy);
	background: transparent none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	text-overflow: ellipsis;
}

/* Theme form styles often set a white background/outline on focus; keep the bar's own look in every state. */
.hcbb .hcbb__input,
.hcbb .hcbb__input:hover,
.hcbb .hcbb__input:active,
.hcbb .hcbb__input:focus,
.hcbb .hcbb__input.active {
	background: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

.hcbb .hcbb__input:focus,
.hcbb .hcbb__input.active {
	box-shadow: inset 0 -2px 0 var(--hcbb-navy) !important;
}

.hcbb .hcbb__input::placeholder {
	color: var(--hcbb-label);
	opacity: 1;
}

.hcbb__field--submit {
	height: auto;
	padding-left: 30px;
}

.hcbb .hcbb__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 60px;
	margin: 0;
	padding: 0 40px;
	font-family: var(--hcbb-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: var(--hcbb-navy);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.hcbb .hcbb__button:hover,
.hcbb .hcbb__button:focus-visible {
	color: #fff;
	background: var(--hcbb-navy-hover);
}

.hcbb__button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hcbb__error {
	grid-column: 1 / -1;
	margin: 14px 0 0 40px;
	font-size: 13px;
	color: #9b2c2c;
}

.hcbb__error[hidden] {
	display: none;
}

/* Calendar popup */
.flatpickr-calendar.hcbb-calendar {
	font-family: 'Montserrat', system-ui, sans-serif;
	background: #faf6ee;
	border: 0;
	border-radius: 0;
	box-shadow: 0 18px 40px rgba(35, 49, 65, 0.2);
}

.hcbb-calendar.arrowTop::before,
.hcbb-calendar.arrowTop::after {
	display: none;
}

.hcbb-calendar .flatpickr-current-month,
.hcbb-calendar .flatpickr-current-month .cur-month,
.hcbb-calendar .flatpickr-current-month input.cur-year {
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: 125%;
	font-weight: 400;
	color: #233141;
}

.hcbb-calendar .flatpickr-prev-month svg,
.hcbb-calendar .flatpickr-next-month svg {
	fill: #233141;
}

.hcbb-calendar span.flatpickr-weekday {
	font-weight: 500;
	color: #6b6862;
}

.hcbb-calendar .flatpickr-day {
	border-radius: 0;
	color: #233141;
}

.hcbb-calendar .flatpickr-day.flatpickr-disabled,
.hcbb-calendar .flatpickr-day.prevMonthDay,
.hcbb-calendar .flatpickr-day.nextMonthDay {
	color: rgba(35, 49, 65, 0.3);
}

.hcbb-calendar .flatpickr-day:hover:not(.selected):not(.flatpickr-disabled) {
	background: #e9e1d3;
	border-color: #e9e1d3;
}

.hcbb-calendar .flatpickr-day.today:not(.selected) {
	border-color: #233141;
}

.hcbb-calendar .flatpickr-day.selected,
.hcbb-calendar .flatpickr-day.selected:hover {
	color: #fff;
	background: #233141;
	border-color: #233141;
}

@media (max-width: 1024px) {
	.hcbb {
		grid-template-columns: 1fr 1fr;
		padding: 12px 20px 20px 12px;
	}

	.hcbb__field--guests::before {
		display: none;
	}

	.hcbb__field--submit {
		padding-left: 20px;
	}

	.hcbb .hcbb__button {
		width: 100%;
		padding: 0 20px;
	}
}

@media (max-width: 640px) {
	.hcbb {
		grid-template-columns: 1fr;
		padding: 8px 16px 20px;
	}

	.hcbb__field {
		height: 72px;
	}

	.hcbb__field:not(:first-child)::before,
	.hcbb__field--guests::before {
		display: block;
		top: 0;
		left: 12px;
		right: 12px;
		width: auto;
		height: 1px;
		transform: none;
	}

	.hcbb__field--submit {
		height: auto;
		padding: 18px 0 0;
	}

	.hcbb__field--submit::before {
		display: none !important;
	}

	.hcbb__icon {
		left: 12px;
	}

	.hcbb__label {
		left: 56px;
	}

	.hcbb .hcbb__input {
		padding-left: 56px;
	}

	.hcbb__error {
		margin-left: 0;
	}
}

/* Stacked layout for sidebars: [hotel_centro_booking_bar layout="stacked"] */
.hcbb.hcbb--stacked {
	grid-template-columns: 1fr;
	max-width: none;
	margin: 0;
	padding: 8px 16px 20px;
}

.hcbb.hcbb--stacked .hcbb__field {
	height: 72px;
}

.hcbb.hcbb--stacked .hcbb__field:not(:first-child)::before,
.hcbb.hcbb--stacked .hcbb__field--guests::before {
	display: block;
	top: 0;
	left: 12px;
	right: 12px;
	width: auto;
	height: 1px;
	transform: none;
}

.hcbb.hcbb--stacked .hcbb__field--submit {
	height: auto;
	padding: 18px 0 0;
}

.hcbb.hcbb--stacked .hcbb__field--submit::before {
	display: none !important;
}

.hcbb.hcbb--stacked .hcbb__icon {
	left: 12px;
}

.hcbb.hcbb--stacked .hcbb__label {
	left: 56px;
}

.hcbb.hcbb--stacked .hcbb__input {
	padding-left: 56px;
}

.hcbb.hcbb--stacked .hcbb__chevron {
	right: 12px;
}

.hcbb.hcbb--stacked .hcbb__button {
	width: 100%;
	padding: 0 20px;
}

.hcbb.hcbb--stacked .hcbb__error {
	margin-left: 0;
}
