/* Listeo Booking Plus — multi-tier ticket selector frontend styles */

/* Recurring event: highlight valid occurrence dates in the daterangepicker. */
.daterangepicker td.lbp-available {
	background: #e6f6ea;
	color: #1f7a3a;
	font-weight: 600;
}
.daterangepicker td.lbp-available:hover {
	background: #1f7a3a;
	color: #fff;
}
.daterangepicker td.lbp-available.active,
.daterangepicker td.lbp-available.active:hover {
	background: #1f7a3a;
	color: #fff;
}

/* Position-aware styling for multi-day occurrences: round only the outer
   corners so a Tue-Sat run reads as one connected pill, not five dots. */
.daterangepicker td.lbp-span-single {
	border-radius: 4px;
}
.daterangepicker td.lbp-span-start {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}
.daterangepicker td.lbp-span-end {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}
.daterangepicker td.lbp-span-mid,
.daterangepicker td.lbp-span-start {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.daterangepicker td.lbp-span-mid,
.daterangepicker td.lbp-span-end {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
/* Mid-span days fade slightly so the start is the visual anchor. */
.daterangepicker td.lbp-span-mid {
	background: #d9efe0;
}

/* Selected occurrence: every day in the picker's range gets the solid
   fill, so a multi-day event reads as one continuous selection. The
   picker applies `start-date`, `in-range` and `end-date` natively when
   we set startDate / endDate to the occurrence's bounds. The `.lbp-
   available` co-class scopes the override to event recurring listings
   only — rentals and other range pickers keep their theme styling. */
.daterangepicker td.lbp-available.in-range,
.daterangepicker td.lbp-available.start-date,
.daterangepicker td.lbp-available.end-date,
.daterangepicker td.lbp-available.active,
.daterangepicker td.lbp-available.in-range:hover,
.daterangepicker td.lbp-available.start-date:hover,
.daterangepicker td.lbp-available.end-date:hover,
.daterangepicker td.lbp-available.active:hover {
	background: #1f7a3a;
	color: #fff;
}


.lbp-event-booking { margin-bottom: 16px; }
.lbp-event-datepicker { margin-bottom: 14px; }

/* Minimal subtitle for the currently-selected occurrence's title override.
   Intentionally understated: reads as "this date has a custom name", not a
   warning banner. */
.lbp-occurrence-subtitle {
	margin: 10px 0 0 0px;
	padding: 0;
	padding-bottom: 10px;
	background: none;
	border: 0px;
	/* font-size: 14px; */
	font-weight: 500;
	line-height: 1.35;
	color: #444;
	letter-spacing: 0.1px;
	border-bottom: 1px solid #ddd;
}

/* Occurrences with an override title show a subtle visual cue and reveal
   the override title as a tooltip when hovered. Pure CSS — no JS required. */
.lbp-recurring-event__dates li.has-override {
	position: relative;
	cursor: default;
}
.lbp-recurring-event__dates li.has-override::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc( 100% + 6px );
	left: 50%;
	transform: translateX(-50%);
	background: #222;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: 0.2px;
	padding: 6px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 10;
}
.lbp-recurring-event__dates li.has-override::before {
	content: '';
	position: absolute;
	bottom: calc( 100% + 1px );
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #222;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 10;
}
.lbp-recurring-event__dates li.has-override:hover::after,
.lbp-recurring-event__dates li.has-override:focus-within::after,
.lbp-recurring-event__dates li.has-override:hover::before,
.lbp-recurring-event__dates li.has-override:focus-within::before {
	opacity: 1;
}
.lbp-event-datepicker .lbp-label { display: block; font-weight: 600; margin-bottom: 6px; }
.lbp-event-datepicker input#date-picker {
	width: 100%;
	background: #fff;
	cursor: pointer;
}

.lbp-occurrence-picker { margin-bottom: 16px; }
.lbp-occurrence-picker .lbp-label { display: block; font-weight: 600; margin-bottom: 6px; }
.lbp-occurrence-picker select { width: 100%; }

.lbp-ticket-types { display: flex; flex-direction: column; gap: 12px; }

.lbp-tt-card.qtyButtons {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px;
	padding: 14px 16px;
	border: none;
	border-radius: 5px;
	box-shadow: 0 1px 6px 0px rgba(0, 0, 0, 0.1);
	background: #fff;
}
.lbp-tt-card.qtyButtons .qtyTitle.lbp-tt-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	margin: 0;
}
/* Core's qty-button JS wraps the input with sibling `.qtyDec`/`.qtyInc`
   buttons. Without these rules they're independent flex items in the
   row above and wrap individually when the title (badge + price) gets
   wide — the plus button ends up on its own line. Pin each to its
   intrinsic width so the trio stays as one cluster on the right. */
.lbp-tt-card.qtyButtons .qtyDec,
.lbp-tt-card.qtyButtons .qtyInc,
.lbp-tt-card.qtyButtons .lbp-tt-input,
.lbp-tt-card.qtyButtons input.qty {
	flex: 0 0 auto;
}
/* Allow long badge text to break onto a second line inside the title
   column instead of pushing the card wider than its row. */
.lbp-tt-card .lbp-tt-badge {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	word-break: break-word;
}
.lbp-tt-card .lbp-tt-name { font-weight: 600;  }
.lbp-tt-card .lbp-tt-price { color: #666; font-size: 14px; }
.lbp-tt-card .lbp-tt-desc { color: #888; font-size: 13px; }
.lbp-tt-card .lbp-tt-badge { font-size: 12px; color: #c0392b; }
.lbp-tt-card.is-disabled { opacity: 0.55; pointer-events: none; }

/* Single listing — recurring event block */
.lbp-recurring-event {
	background: #f8f8f8;
	border-radius: 5px;
	/* box-shadow: 0 1px 6px 0 rgba(0,0,0,0.1); */
	padding: 20px 24px;
	margin: 24px 0;
}
.lbp-recurring-event__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.lbp-recurring-event__head i {
	font-size: 20px;
	color: #f43758;
	background: #fde9ed;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.lbp-recurring-event__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}
.lbp-recurring-event__schedule {
	margin: 2px 0 0;
	color: #888;
	font-size: 14px;
}
.lbp-recurring-event__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}
.lbp-recurring-event__dates li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 14px;
	background: #fff;
	border-radius: 5px;
}
.lbp-recurring-event__day {
	font-weight: 700;
	color: #f43758;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}
.lbp-recurring-event__date { font-weight: 600; color: #333; font-size: 14px; }
.lbp-recurring-event__time { color: #888; font-size: 13px; margin-left: auto; }
.lbp-recurring-event__count {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	background: #eef6ff;
	color: #2266aa;
	font-size: 12px;
	border-radius: 10px;
	font-weight: 600;
	vertical-align: middle;
}
.lbp-recurring-event__toggle {
	display: block;
	margin-top: 14px;
	padding: 0;
	background: none;
	border: none;
	color: #f43758;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.lbp-recurring-event__toggle:hover {
	text-decoration: underline;
}

.lbp-tt-badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.lbp-tt-badge.sold-out  { background: #fee; color: #c33; }
.lbp-tt-badge.few-left  { background: #fff7e6; color: #b86c00; }
.lbp-tt-badge.soon      { background: #eef6ff; color: #2266aa; }
.lbp-tt-badge.ended     { background: #f0f0f0; color: #666; }

.lbp-tt-qty input.lbp-tt-input {
	width: 70px;
	text-align: center;
}

.lbp-tt-total {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e6e6e6;
	font-size: 15px;
	display: flex;
	justify-content: space-between;
}

li.lbp-summary-tickets-header {
	font-weight: 600;
	padding-bottom: 0;
	margin-bottom: -2px;
}
li.lbp-summary-ticket-line {
	font-size: 14px;
	color: #888;
	font-weight: 400;
}
