/**
 * LatePoint - Cancel & Reschedule Reason
 * Modal and form styles.
 */

/* Cancel reason modal - above LatePoint lightbox (999999) */
.latepoint-crr-modal {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.latepoint-crr-modal.latepoint-crr-modal-visible {
	opacity: 1;
	visibility: visible;
}

.latepoint-crr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.latepoint-crr-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	padding: 1.5rem 1.75rem;
}

.latepoint-crr-modal-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.latepoint-crr-modal-desc {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: #555;
	line-height: 1.4;
}

.latepoint-crr-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #333;
}

.latepoint-crr-textarea {
	display: block;
	width: 100%;
	min-height: 80px;
	margin-bottom: 1rem;
	padding: 0.6rem 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.4;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
	box-sizing: border-box;
}

.latepoint-crr-textarea:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

.latepoint-crr-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

.latepoint-crr-modal-actions .latepoint-btn {
	margin: 0;
}

/* Reschedule reason field inside lightbox */
.latepoint-crr-reschedule-reason-wrap {
	margin-bottom: 1rem;
}

.latepoint-crr-reschedule-reason-wrap .latepoint-crr-label {
	margin-bottom: 0.35rem;
}

.latepoint-crr-reschedule-reason-wrap .latepoint-crr-textarea {
	min-height: 60px;
	margin-bottom: 0;
}

/* Saved reasons in booking summary */
.latepoint-crr-reasons-summary {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
}

.latepoint-crr-reason-block {
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.latepoint-crr-reason-block:last-child {
	margin-bottom: 0;
}

.latepoint-crr-reason-block strong {
	display: inline;
	font-weight: 600;
}
