﻿/**
 * Momentum Class Booking â€” assets/css/booking.css
 *
 * Styles specific to the booking plugin's front-end components.
 * Loaded only on pages where the plugin outputs markup.
 */

/* Booking confirmation modal overlay */
.mft-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / .7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mft-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mft-modal {
  background: var(--color-surface, #16213e);
  border: 1px solid rgba(255 255 255 / .08);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: calc(100% - 2rem);
  text-align: center;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.mft-modal-overlay.is-open .mft-modal {
  transform: translateY(0);
}

.mft-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52 211 153 / .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #34d399;
}

.mft-modal__title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .75rem;
}

.mft-modal__body {
  color: rgba(255 255 255 / .65);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.mft-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255 255 255 / .06);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255 255 255 / .5);
  transition: all .2s;
}
.mft-modal__close:hover {
  background: rgba(255 255 255 / .12);
  color: #fff;
}

/* Booking button loading state */
.mft-book-btn.is-loading {
  position: relative;
  color: transparent !important;
}
.mft-book-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255 255 255 / .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mft-spin .6s linear infinite;
}

@keyframes mft-spin {
  to { transform: rotate(360deg); }
}

/* ---- Frontend Timetable Empty State ---- */
.mcb-empty-timetable {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 24px;
	background: #ffffff !important;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	margin: 40px auto;
	max-width: 600px;
}

.mcb-empty-timetable__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(232, 93, 37, 0.1); /* Soft Orange */
	color: #e85d25 !important; /* Brand Orange */
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.mcb-empty-timetable h3 {
	margin: 0 0 12px;
	font-size: 24px;
	color: #222222 !important;
	font-weight: 700;
}

.mcb-empty-timetable p {
	margin: 0;
	color: #666666 !important;
	font-size: 16px;
	line-height: 1.6;
}
