.lpda-calendar-wrapper {
	max-width: 480px;
	margin-top: 10px;
}

.lpda-calendar-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.lpda-calendar-toolbar .button {
	opacity: 1;
}

.lpda-calendar-toolbar .button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.lpda-calendar {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 12px;
	background: #fff;
}

.lpda-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.lpda-calendar-title {
	font-weight: 600;
	font-size: 16px;
}

.lpda-nav {
	background: transparent;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	width: 30px;
	height: 30px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.lpda-nav:hover {
	background: #f5f5f5;
}

.lpda-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #777;
	margin-bottom: 4px;
}

.lpda-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.lpda-day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid transparent;
	user-select: none;
}

.lpda-day.lpda-empty {
	cursor: default;
}

.lpda-day.lpda-past {
	color: #ccc;
	cursor: not-allowed;
}

.lpda-day:not(.lpda-empty):not(.lpda-past):hover {
	background: #f2f2f2;
}

.lpda-day.lpda-selected {
	background: #fde3e0;
	border-color: #e2402f;
	font-weight: 600;
}

.lpda-day.lpda-has-times {
	background: #e6f4ea;
	border-color: #34a853;
}

.lpda-day.lpda-has-times.lpda-selected {
	background: #cdeed7;
	border-color: #e2402f;
}

.lpda-day-dot {
	position: absolute;
	bottom: 3px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #34a853;
}

.lpda-legend {
	display: flex;
	gap: 16px;
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

.lpda-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.lpda-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.lpda-dot-set {
	background: #34a853;
}

.lpda-dot-selected {
	background: #e2402f;
}

/* Dialog */
.lpda-time-dialog {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lpda-time-dialog-inner {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 90%;
	max-width: 360px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.lpda-time-dialog-inner h4 {
	margin-top: 0;
}

.lpda-time-dialog-count {
	color: #666;
	font-size: 13px;
	margin-top: -6px;
}

.lpda-time-dialog-inner label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-top: 14px;
	margin-bottom: 6px;
}

.lpda-time-dialog-inner input[type="time"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.lpda-time-dialog-error {
	color: #d32f2f;
	font-size: 12px;
	margin-top: 8px;
}

.lpda-time-dialog-buttons {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

/* --- Front-end display (single listing + booking page) --- */
.lpda-display-box {
	margin-top: 20px;
}

.lpda-display-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lpda-display-box li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}

.lpda-display-box li:last-child {
	border-bottom: none;
}

.lpda-display-date {
	font-weight: 600;
}

.lpda-display-times span {
	display: inline-block;
	margin-left: 10px;
}

#booking-confirmation-summary li.lpda-booking-summary-row span {
	font-weight: 600;
}

/* --- Front-end shortcode calendar [lpda_pickup_dropoff_calendar] --- */
.lpda-frontend-calendar-wrapper {
	position: relative;
}

.lpda-frontend-calendar-title-label {
	margin: 0 0 10px;
}

.lpda-frontend-calendar-wrapper .lpda-day.lpda-has-times {
	cursor: pointer;
}

.lpda-frontend-calendar-wrapper .lpda-day:not(.lpda-has-times) {
	cursor: default;
}

.lpda-no-schedule {
	color: #777;
	font-size: 13px;
}

.lpda-tooltip {
	position: absolute;
	z-index: 10;
	background: #222;
	color: #fff;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.lpda-tooltip:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #222;
}

.lpda-tooltip-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.lpda-tooltip-row + .lpda-tooltip-row {
	margin-top: 4px;
}

.lpda-tooltip-row span {
	color: #ccc;
}

.lpda-tooltip-row strong {
	color: #fff;
}

/* Simple list shortcode [lpda_pickup_dropoff_list] reuses .lpda-display-box */
.lpda-shortcode-list {
	margin: 0;
}
