/**
 * Frontend Cart, Checkout, Confirmation and My Account — Booking Styles
 *
 * Loaded on cart and checkout pages (via REB_Frontend::enqueue_assets()).
 * Also covers the order confirmation (thank you page) and My Account
 * order detail views.
 *
 * @package RaceAndEventBooking
 */

/* =============================================================================
   Cart / Checkout — booking info displayed under the product name
   ============================================================================= */
.reb-checkout-booking-info {
	padding: 8px 0 4px;
	font-size: 0.9em;
}

.reb-checkout-booking-info strong {
	display: block;
	margin-bottom: 4px;
}

.reb-checkout-booking-info ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.reb-checkout-booking-info li {
	color: #555;
	line-height: 1.6;
}

/* Locked (non-editable) quantity in cart. */
.reb-cart-qty {
	font-weight: 600;
	display: inline-block;
	min-width: 24px;
	text-align: center;
}

/* =============================================================================
   Order confirmation (thank you page)
   ============================================================================= */
.reb-order-confirmation {
	margin: 24px 0;
}

.reb-order-confirmation h2 {
	margin-bottom: 16px;
}

.reb-confirmation-block {
	padding: 16px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 16px;
	background: #fafafa;
}

.reb-confirmation-block h3 {
	margin: 0 0 8px;
	font-size: 1.05em;
}

.reb-confirmation-block > p {
	margin: 0 0 10px;
	font-size: 0.95em;
	color: #444;
}

.reb-participant-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.reb-participant-list li {
	padding: 5px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.9em;
	color: #333;
}

.reb-participant-list li:last-child {
	border-bottom: none;
}

/* =============================================================================
   My Account — order booking details
   ============================================================================= */
.reb-myaccount-booking {
	margin: 24px 0;
}

.reb-myaccount-booking h2 {
	margin-bottom: 16px;
}

.reb-myaccount-booking .shop_table {
	width: 100%;
	margin-bottom: 20px;
}

.reb-myaccount-booking .shop_table caption {
	font-weight: 600;
	text-align: left;
	padding: 8px 0;
	color: #333;
}

.reb-myaccount-booking .shop_table th {
	background: #f9f9f9;
	padding: 8px 12px;
	font-weight: 600;
	font-size: 0.9em;
	border-bottom: 1px solid #e0e0e0;
}

.reb-myaccount-booking .shop_table td {
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.9em;
	vertical-align: middle;
}

.reb-myaccount-booking .shop_table tr:last-child td {
	border-bottom: none;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media ( max-width: 600px ) {
	.reb-myaccount-booking .shop_table,
	.reb-myaccount-booking .shop_table thead,
	.reb-myaccount-booking .shop_table tbody,
	.reb-myaccount-booking .shop_table th,
	.reb-myaccount-booking .shop_table td,
	.reb-myaccount-booking .shop_table tr {
		display: block;
		width: 100%;
	}

	.reb-myaccount-booking .shop_table thead {
		display: none;
	}

	.reb-myaccount-booking .shop_table td {
		padding: 6px 0;
	}

	.reb-myaccount-booking .shop_table td::before {
		content: attr( data-label ) ': ';
		font-weight: 600;
	}
}
