.mphb-gibs-hourly-fields {
	clear: both;
	margin: 0 0 1rem;
}

.mphb-gibs-hourly-fields p {
	margin-bottom: 1rem;
}

.mphb-gibs-hourly-toggle label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-weight: inherit;
}

.mphb-gibs-hourly-time-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.mphb-gibs-hourly-time-row > p {
	flex: 1 1 150px;
	min-width: 0;
}

.mphb-gibs-hourly-fields select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.mphb-gibs-hourly-fields select.gibs-fixed-end-time {
	background-color: #f7faf9;
	cursor: default;
}

.mphb-gibs-hourly-fields:not(.is-active) .mphb-gibs-hourly-time-row {
	display: none;
}

.mphb-gibs-hourly-summary span {
	display: inline-block;
	margin-right: 0.35rem;
}

.mphb-gibs-hourly-room-form {
	margin-top: 2rem;
}

.mphb-gibs-hourly-form .mphb-gibs-hourly-date-field {
	margin-bottom: 1.35rem;
}

.mphb-gibs-hourly-form.mphb-gibs-mode-hourly .mphb-gibs-hourly-check-out-date-field {
	display: none !important;
}

.mphb-gibs-booking-mode {
	display: inline-flex;
	gap: 6px;
	margin: 0 0 10px;
	padding: 4px;
	border: 1px solid #d5d8dc;
	border-radius: 8px;
	background: #f7faf9;
}

.mphb-gibs-booking-mode label {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0;
	border-radius: 6px;
	padding: 0 12px;
	color: #33424a;
	font-weight: 800;
	cursor: pointer;
}

.mphb-gibs-booking-mode input {
	margin-right: 6px;
}

.mphb-gibs-mode-day .mphb-gibs-booking-mode label:has(input[value="day"]:checked),
.mphb-gibs-mode-hourly .mphb-gibs-booking-mode label:has(input[value="hourly"]:checked) {
	background: #52aebe;
	color: #fff;
}

.mphb-gibs-alert {
	display: none;
	max-width: 720px;
	margin: 0 0 18px;
	border: 1px solid #b8dfe6;
	border-left-width: 4px;
	border-radius: 8px;
	background: #f2fbfc;
	color: #174f59;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	padding: 12px 14px;
}

.mphb-gibs-motopress-alert {
	margin-top: 18px;
	max-width: none;
}

.mphb-gibs-alert.is-visible {
	display: block;
}

.mphb-gibs-alert.is-warning {
	border-color: #f0c36b;
	background: #fff9ec;
	color: #6e4b00;
}

.mphb-gibs-alert.is-error {
	border-color: #f4a0a0;
	background: #fff3f3;
	color: #8a1f1f;
}

.mphb-gibs-hourly-form .mphb-datepick,
.mphb-gibs-hourly-form .gibs-standalone-date-input,
.mphb-gibs-hourly-form select {
	height: 46px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: none;
	color: #222;
	padding: 0 14px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mphb-gibs-hourly-form .mphb-datepick:focus,
.mphb-gibs-hourly-form .gibs-standalone-date-input:focus,
.mphb-gibs-hourly-form select:focus {
	border-color: #52aebe;
	box-shadow: 0 0 0 3px rgba(82, 174, 190, 0.18);
	outline: 0;
}

.gibs-standalone-date-input {
	cursor: pointer;
}

.gibs-standalone-calendar {
	position: absolute;
	z-index: 100000;
	box-sizing: border-box;
	width: min(356px, calc(100vw - 24px));
	border: 1px solid rgba(24, 38, 45, 0.1);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(14, 31, 36, 0.22);
	color: #1f2933;
	font-family: inherit;
	overflow: hidden;
}

.gibs-standalone-calendar * {
	letter-spacing: 0;
}

.gibs-standalone-calendar font {
	display: contents;
}

.gibs-calendar-nav,
.gibs-calendar-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #f7faf9;
	padding: 10px 12px;
}

.gibs-calendar-nav button,
.gibs-calendar-actions button {
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #1d6674;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	padding: 8px 10px;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.gibs-calendar-nav button:hover,
.gibs-calendar-actions button:hover {
	background: rgba(82, 174, 190, 0.13);
	color: #174f59;
}

.gibs-calendar-title {
	flex: 1;
	color: #1f2933;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
}

.gibs-calendar-weekdays,
.gibs-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	padding: 0 14px;
}

.gibs-calendar-weekdays {
	padding-top: 16px;
	padding-bottom: 8px;
}

.gibs-calendar-weekdays span {
	color: #8a97a3;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	overflow-wrap: normal;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.gibs-calendar-grid {
	padding-bottom: 14px;
}

.gibs-calendar-day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #25323a;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
}

.gibs-calendar-day:hover {
	background: rgba(82, 174, 190, 0.14);
	color: #174f59;
}

.gibs-calendar-day.is-muted {
	color: #b6c0c8;
}

.gibs-calendar-day.is-unavailable {
	background: #fff3f3;
	color: #a94343;
	cursor: not-allowed;
	text-decoration: line-through;
}

.gibs-calendar-day.is-unavailable:hover,
.gibs-calendar-day.is-unavailable:focus {
	background: #ffe5e5;
	color: #8a1f1f;
	box-shadow: inset 0 0 0 1px rgba(138, 31, 31, 0.22);
	outline: 0;
}

.gibs-calendar-day.is-today {
	box-shadow: inset 0 0 0 1px rgba(82, 174, 190, 0.8);
}

.gibs-calendar-day.is-selected {
	background: #52aebe;
	color: #fff;
	box-shadow: none;
}

.gibs-calendar-day:disabled {
	color: #d1d7dc;
	cursor: default;
}

.gibs-calendar-day:disabled:hover {
	background: transparent;
	color: #d1d7dc;
}

.gibs-hourly-admin-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(160px, 1fr));
	gap: 12px 16px;
	max-width: 840px;
}

.gibs-hourly-admin-grid label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.gibs-hourly-admin-grid input {
	width: 100%;
}

@media (max-width: 782px) {
	.gibs-hourly-admin-grid {
		grid-template-columns: 1fr;
	}

}
