/* Sky Garden Bookings — front-end styles */

.sg-booking-widget {
	max-width: 480px;
	margin: 0 0 20px;
}

.sg-step {
	margin-bottom: 20px;
}

.sg-step-label {
	font-weight: 600;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sg-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1d1d1f;
	color: #fff;
	font-size: 12px;
	flex-shrink: 0;
}

.sg-calendar-picker {
	max-width: 320px;
}

.sg-calendar-picker .ui-datepicker {
	width: 100%;
	position: static !important;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	border-radius: 6px;
}

.sg-calendar-picker .ui-datepicker td span,
.sg-calendar-picker .ui-datepicker td a {
	text-align: center;
}

.sg-calendar-picker .ui-datepicker td.ui-datepicker-unselectable {
	opacity: 0.3;
}

.sg-calendar-picker .sg-date-available a {
	font-weight: 600;
}

.sg-slot-placeholder {
	color: #666;
	font-size: 0.9em;
	margin: 0;
}

.sg-slot-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sg-slot-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 8px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9em;
	min-width: 100px;
}

.sg-slot-btn:hover:not(:disabled) {
	border-color: #1d1d1f;
}

.sg-slot-btn.sg-slot-selected {
	border-color: #1d1d1f;
	background: #1d1d1f;
	color: #fff;
}

.sg-slot-btn.sg-slot-full {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.sg-slot-time {
	font-weight: 600;
}

.sg-slot-meta {
	font-size: 0.8em;
	opacity: 0.75;
}

.sg-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	width: fit-content;
}

.sg-qty-stepper button {
	width: 36px;
	height: 36px;
	border: none;
	background: #f0f0f1;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.sg-qty-stepper button:hover {
	background: #e2e2e3;
}

.sg-qty-display {
	width: 40px;
	text-align: center;
	font-weight: 600;
}

.sg-entry-rules {
	margin: 16px 0;
	padding: 12px 16px;
	background: #f7f7f7;
	border-left: 3px solid #999;
	font-size: 0.9em;
}

.sg-entry-rules strong {
	display: block;
	margin-bottom: 4px;
}

/* Admin check-in page */
.sg-checkin-result {
	padding: 16px;
	border-radius: 6px;
	margin: 16px 0;
	font-size: 1.1em;
}
.sg-checkin-result.sg-ok {
	background: #eafaf0;
	border: 1px solid #34c759;
	color: #14532d;
}
.sg-checkin-result.sg-fail {
	background: #fdecec;
	border: 1px solid #ef4444;
	color: #7f1d1d;
}

.sg-capacity-table {
	border-collapse: collapse;
	width: 100%;
}
.sg-capacity-table th,
.sg-capacity-table td {
	border: 1px solid #ddd;
	padding: 6px 10px;
	text-align: left;
}
.sg-capacity-table th {
	background: #f0f0f1;
}
.sg-capacity-table td.sg-full {
	color: #b91c1c;
	font-weight: 600;
}

.sg-booking-detail {
	margin-top: -8px;
	margin-bottom: 16px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	max-width: 560px;
}

.sg-booking-detail-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.sg-booking-detail-head h3 {
	margin: 0;
}

.sg-booking-order-num {
	color: #666;
	font-size: 0.9em;
}

.sg-booking-meta {
	margin: 4px 0 12px;
	color: #444;
	font-size: 0.9em;
}

.sg-booking-items {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 10px;
}
.sg-booking-items th,
.sg-booking-items td {
	border: 1px solid #eee;
	padding: 6px 10px;
	text-align: left;
	font-size: 0.9em;
}
.sg-booking-items th {
	background: #f7f7f7;
}

.sg-booking-total {
	margin: 8px 0 0;
	font-weight: 600;
}

.sg-booking-checked {
	margin: 8px 0 0;
	color: #7f1d1d;
	font-size: 0.9em;
}
