/**
 * WP Booking Calendar – Hotel Nights & Changeover Days (Styles)
 */

/* Ensure selected check-out dates remain legible even if rendered as <span> on a changeover day */
.datepick-inline div.datepick-one-month .datepick td.datepick-current-day span,
.datepick-inline div.datepick-one-month .datepick td.datepick-current-day a {
	color: #f0f0f0;
	text-shadow: none;
}

/* Keep check-out-only changeover days (morning free, afternoon booked) clearly readable before Click 1 */
.datepick-inline td.datepick-days-cell.wpbc_night_checkout_only span {
	color: #555;
	font-weight: 600;
}

/* Highlight valid check-out changeover days crisply while picking check-out (after Click 1) */
.datepick-inline td.datepick-days-cell.wpbc_night_valid_checkout_changeover a {
	cursor: pointer;
	font-weight: 700;
}

/* Subtle cue on the chosen check-in day while picking check-out */
.datepick-inline td.datepick-days-cell.wpbc_night_selected_checkin .wpbc-cell-box {
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

/* Live Stay Summary Box below the calendar */
.wpbc-hotel-nights-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 12px 0 16px;
	padding: 12px 14px;
	border: 1px solid #dcdcdc;
	border-left: 4px solid #6b7280;
	border-radius: 4px;
	background: #f9fafb;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
}

.wpbc-hotel-nights-summary--picking {
	border-left-color: #d97706;
	background: #fffbeb;
}

.wpbc-hotel-nights-summary--preview {
	border-left-color: #2563eb;
	background: #eff6ff;
}

.wpbc-hotel-nights-summary--complete {
	border-left-color: #15803d;
	background: #f0fdf4;
}

.wpbc-hotel-nights-summary .wpbc-hn-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	flex: 1 1 auto;
}

.wpbc-hotel-nights-summary .wpbc-hn-item--next {
	color: #92400e;
	font-style: italic;
}

.wpbc-hotel-nights-summary .wpbc-hn-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #1f2937;
	color: #ffffff;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}

.wpbc-hotel-nights-summary--preview .wpbc-hn-badge {
	background: #2563eb;
}

.wpbc-hotel-nights-summary--complete .wpbc-hn-badge {
	background: #15803d;
}

.wpbc-hotel-nights-summary .wpbc-hn-reset-btn {
	appearance: none;
	background: transparent;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1.4;
	color: #374151;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wpbc-hotel-nights-summary .wpbc-hn-reset-btn:hover,
.wpbc-hotel-nights-summary .wpbc-hn-reset-btn:focus {
	background: rgba(0, 0, 0, 0.06);
	border-color: #4b5563;
	color: #111827;
}

.wpbc-hotel-nights-summary .wpbc-hn-prompt {
	color: #4b5563;
}

/* Hide empty booking title badges on the frontend timeline (e.g. connecting changeover days) */
.wpbc_timeline_front_end .in_cell_date_booking_title:empty {
	display: none !important;
}

