/* LatePoint Waiting List Frontend Styles */

.latepoint-waiting-list-option {
	display: none;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: left;
}

.latepoint-waiting-list-option.is-static {
	display: block;
	margin-top: 16px;
}

.wl-cta-compact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
}

.wl-cta-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.wl-cta-title {
	font-size: 14px;
	font-weight: 700;
	color: #0c4a6e;
	line-height: 1.25;
}

.wl-cta-text {
	font-size: 12px;
	color: #0369a1;
	line-height: 1.35;
}

.wl-cta-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px !important;
	font-size: 13px !important;
	margin: 0 !important;
}

.wl-cta-btn .latepoint-icon {
	font-size: 14px;
}

@media (max-width: 560px) {
	.wl-cta-compact {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		gap: 10px;
	}

	.wl-cta-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Above LatePoint booking lightbox (.latepoint-lightbox-w uses z-index: 999999) */
.waiting-list-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.55);
	z-index: 10000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: fadeIn 0.2s ease-in;
	box-sizing: border-box;
}

.waiting-list-modal .wl-modal-inner {
	position: relative;
	background: #fff;
	padding: 28px 28px 24px;
	border-radius: 16px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
	animation: slideUp 0.28s ease-out;
}

.wl-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.wl-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.wl-modal-title {
	margin: 0 36px 8px 0;
	color: #0f172a;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.wl-modal-intro {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.wl-known-customer {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
	border: 1px solid #bbf7d0;
}

.wl-known-customer-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #047857;
}

.wl-known-customer-name {
	font-size: 14px;
	font-weight: 600;
	color: #065f46;
}

.wl-known-customer-email {
	font-weight: 500;
	color: #059669;
}

.wl-section {
	margin-bottom: 18px;
}

.wl-section-title {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.wl-field-hint {
	margin: -2px 0 10px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.wl-selected-day {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.wl-selected-day-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #e0f2fe;
	color: #0284c7;
	font-size: 18px;
	line-height: 1;
	flex: 0 0 auto;
}

.wl-selected-day-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wl-selected-day-text strong {
	font-size: 15px;
	color: #0f172a;
}

.wl-selected-day-text span {
	font-size: 12px;
	color: #64748b;
}

.wl-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.wl-field-full {
	grid-column: 1 / -1;
}

.wl-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.waiting-list-modal input[type="text"],
.waiting-list-modal input[type="email"],
.waiting-list-modal input[type="tel"],
.waiting-list-modal textarea,
.waiting-list-modal select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.waiting-list-modal input:focus,
.waiting-list-modal textarea:focus,
.waiting-list-modal select:focus {
	outline: none;
	border-color: #0ea5e9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.waiting-list-modal textarea {
	resize: vertical;
	min-height: 64px;
}

.wl-terms {
	margin-bottom: 16px;
}

.wl-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #475569;
	line-height: 1.45;
	cursor: pointer;
}

.wl-checkbox-label input {
	margin-top: 2px;
	flex: 0 0 auto;
}

.wl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 4px;
}

.wl-actions .latepoint-btn {
	margin: 0;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from {
		transform: translateY(16px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (max-width: 560px) {
	.wl-field-grid {
		grid-template-columns: 1fr;
	}

	.wl-actions {
		flex-direction: column;
	}

	.wl-actions .latepoint-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Success / Error popup */
.waiting-list-success-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000020;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s ease-out;
}

.wl-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.wl-popup-box {
	position: relative;
	background: white;
	padding: 40px 36px;
	border-radius: 16px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: wlPopupSlideUp 0.35s ease-out;
}

@keyframes wlPopupSlideUp {
	from {
		transform: translateY(24px) scale(0.96);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.wl-popup-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	margin: 0 auto 20px;
	font-size: 32px;
	font-weight: 700;
}

.wl-popup-icon-success {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
}

.wl-popup-icon-error {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
}

.wl-popup-heading {
	margin: 0 0 12px 0;
	font-size: 1.4em;
	font-weight: 700;
	color: #1e293b;
}

.wl-popup-message {
	margin: 0 0 24px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #64748b;
}

.wl-popup-btn {
	padding: 12px 32px;
	font-size: 15px;
	border-radius: 8px;
	cursor: pointer;
	border: none;
	background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
	color: white;
	transition: transform 0.2s, box-shadow 0.2s;
}

.wl-popup-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.waiting-list-error-popup .wl-popup-btn {
	background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.waiting-list-modal-content {
	background: white;
	padding: 30px;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.waiting-list-modal h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 1.5em;
}

.waiting-list-modal label {
	display: block;
	margin-bottom: 5px;
	color: #495057;
	font-weight: 500;
	font-size: 14px;
}

.waiting-list-modal input[type="text"],
.waiting-list-modal input[type="email"],
.waiting-list-modal input[type="tel"],
.waiting-list-modal input[type="time"],
.waiting-list-modal textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.waiting-list-modal input:focus,
.waiting-list-modal textarea:focus {
	outline: none;
	border-color: #80bdff;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.waiting-list-modal textarea {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
}

.waiting-list-modal .form-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 25px;
}

.waiting-list-modal .latepoint-btn {
	padding: 12px 24px;
	font-size: 15px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.waiting-list-modal .latepoint-btn-secondary {
	background: #6c757d;
	color: white;
	border: none;
}

.waiting-list-modal .latepoint-btn-secondary:hover {
	background: #5a6268;
}

/* Calendar Integration Styles */
.waiting-list-calendar-integration {
	margin: 20px 0;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px dashed #dee2e6;
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s;
}

.waiting-list-calendar-integration:hover {
	border-color: #adb5bd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.waiting-list-calendar-integration .no-slots-message {
	max-width: 400px;
	margin: 0 auto;
}

.waiting-list-calendar-integration .icon {
	font-size: 3em;
	color: #6c757d;
	margin-bottom: 15px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

.waiting-list-calendar-integration h4 {
	color: #495057;
	margin: 0 0 12px 0;
	font-size: 1.3em;
	font-weight: 600;
}

.waiting-list-calendar-integration p {
	color: #6c757d;
	margin: 0 0 20px 0;
	line-height: 1.6;
}

.waiting-list-calendar-integration .latepoint-btn {
	padding: 12px 28px;
	font-size: 1em;
	transition: transform 0.2s;
}

.waiting-list-calendar-integration .latepoint-btn:hover {
	transform: translateY(-2px);
}

.waiting-list-calendar-integration .latepoint-btn i {
	margin-right: 8px;
}

/* Preferred time row (aligned with admin waiting_list__new_entry) */
.waiting-list-modal .wl-front-time-block {
	margin-bottom: 15px;
}

.waiting-list-modal .wl-front-time-heading {
	display: block;
	margin-bottom: 6px;
	color: #495057;
	font-weight: 500;
	font-size: 14px;
}

.waiting-list-modal .wl-front-muted {
	font-weight: 400;
	color: #64748b;
	font-size: 13px;
}

.waiting-list-modal .wp-wl-time-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	align-items: flex-end;
	margin-top: 4px;
}

.waiting-list-modal .wp-wl-time-slot {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.waiting-list-modal .wp-wl-time-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.waiting-list-modal .wp-wl-time-picks {
	display: flex;
	align-items: center;
	gap: 6px;
}

.waiting-list-modal .wl-front-time-select {
	width: auto;
	min-width: 3.25rem;
	padding: 8px 10px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	font-size: 14px;
	background-color: #fff;
	color: #1e293b;
}

.waiting-list-modal .wp-wl-time-sep {
	color: #94a3b8;
	font-weight: 600;
	user-select: none;
}

/* Multi-date calendar picker (front modal) */
.wp-wl-date-picker-wrap {
	margin-top: 4px;
}

.wp-wl-date-mode-tabs {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 12px;
	padding: 4px;
	background: #f1f5f9;
	border-radius: 8px;
}

.wp-wl-date-mode-tab {
	border: 0;
	background: transparent;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
}

.wp-wl-date-mode-tab.is-active {
	background: #fff;
	color: #0c4a6e;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.wp-wl-date-picker {
	max-width: 320px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
}

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

.wp-wl-cal-title {
	font-weight: 700;
	color: #0f172a;
	font-size: 14px;
}

.wp-wl-cal-nav {
	border: 0;
	background: #f8fafc;
	color: #334155;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.wp-wl-cal-weekdays,
.wp-wl-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.wp-wl-cal-wd {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	padding: 4px 0;
}

.wp-wl-cal-day {
	border: 1px solid transparent;
	background: #f8fafc;
	color: #0f172a;
	border-radius: 8px;
	min-height: 34px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.wp-wl-cal-day.is-today {
	border-color: #38bdf8;
}

.wp-wl-cal-day.is-selected {
	background: #0284c7;
	color: #fff;
}

.wp-wl-cal-day.is-in-range {
	background: #e0f2fe;
	color: #0369a1;
}

.wp-wl-cal-day.is-past {
	opacity: 0.35;
	cursor: not-allowed;
}

.wp-wl-cal-pad {
	min-height: 34px;
}

.wp-wl-date-hint,
.wp-wl-date-summary {
	font-size: 12px;
	color: #64748b;
	margin: 10px 0 0;
}

.wp-wl-clear-dates {
	border: 0;
	background: none;
	color: #0284c7;
	cursor: pointer;
	font-size: 12px;
	padding: 0;
	margin-left: 6px;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.waiting-list-modal-content {
		padding: 20px;
	}
	
	.waiting-list-modal h3 {
		font-size: 1.3em;
	}
	
	.waiting-list-modal .form-actions {
		flex-direction: column;
	}
	
	.waiting-list-modal .latepoint-btn {
		width: 100%;
	}
}


