/* Hotel & Guest Management System - Public Booking Widget (Phase 13) */

.hm-booking-widget {
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
	color: #1d2327;
}

.hm-booking-dates-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	background: #f6f7f7;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 24px;
}

.hm-booking-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 140px;
}

.hm-booking-field-wide {
	flex-basis: 100%;
}

.hm-booking-field label {
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
}

.hm-booking-field input,
.hm-booking-field textarea {
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 14px;
}

.hm-booking-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	flex: 0 0 auto;
}

.hm-booking-button:hover {
	background: #135e96;
}

.hm-booking-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hm-booking-status {
	margin-bottom: 16px;
	font-size: 14px;
	color: #50575e;
}

.hm-booking-status.hm-status-error {
	color: #a3272a;
}

.hm-booking-rooms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.hm-room-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hm-room-card h4 {
	margin: 0;
	font-size: 16px;
}

.hm-room-card .hm-room-type {
	font-size: 13px;
	color: #646970;
}

.hm-room-card .hm-room-price {
	font-size: 20px;
	font-weight: 700;
	color: #2271b1;
	margin-top: auto;
}

.hm-room-card .hm-room-price small {
	font-size: 12px;
	font-weight: 400;
	color: #646970;
}

.hm-room-card button {
	margin-top: 8px;
	background: #fff;
	border: 1px solid #2271b1;
	color: #2271b1;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.hm-room-card.hm-room-selected button,
.hm-room-card button:hover {
	background: #2271b1;
	color: #fff;
}

.hm-booking-guest-form-wrap {
	background: #f6f7f7;
	padding: 20px;
	border-radius: 10px;
}

.hm-booking-guest-form-wrap form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Honeypot: visually hidden from real visitors, still present in the DOM for bots to fill in. */
.hm-booking-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hm-booking-success {
	background: #d4f4dd;
	color: #1a7a3e;
	padding: 20px;
	border-radius: 10px;
	font-size: 15px;
}

@media (max-width: 600px) {
	.hm-booking-dates-form {
		flex-direction: column;
		align-items: stretch;
	}
}

/* [hotel_my_bookings] widget */
.hm-my-bookings-widget {
	max-width: 100%;
}

.hm-my-bookings-widget form.login p {
	margin-bottom: 12px;
}

.hm-my-bookings-widget form.login label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #50575e;
}

.hm-my-bookings-widget form.login input[type="text"],
.hm-my-bookings-widget form.login input[type="password"] {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 14px;
}

.hm-my-bookings-widget .login-submit input[type="submit"] {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

.hm-my-bookings-forgot {
	margin-top: 10px;
	font-size: 13px;
}

.hm-my-bookings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}

.hm-my-bookings-logout {
	font-size: 13px;
}

.hm-my-bookings-table-wrap {
	overflow-x: auto;
}

.hm-my-bookings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hm-my-bookings-table th,
.hm-my-bookings-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
	white-space: nowrap;
}

.hm-my-bookings-table th {
	font-size: 12px;
	text-transform: uppercase;
	color: #646970;
	border-bottom: 2px solid #ddd;
}

.hm-my-bookings-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: #f0f0f1;
	color: #50575e;
}

.hm-my-bookings-status-confirmed,
.hm-my-bookings-status-checked-in { background: #d4f4dd; color: #1a7a3e; }
.hm-my-bookings-status-checked-out { background: #e3e9f7; color: #2c4b8f; }
.hm-my-bookings-status-pending { background: #fff2cc; color: #8a6d00; }
.hm-my-bookings-status-cancelled,
.hm-my-bookings-status-no-show { background: #fbe1e1; color: #a3272a; }
