/**
 * OmniPractice Booking Widget Styles
 * Frontend booking widget for patients
 *
 * @package APIHub\Pro\Modules\Omnipractice
 * @version 5.0.0
 */

/* ==========================================================================
	Variables
	========================================================================== */
.omnipractice-booking-widget {
	--opw-primary: #3788d8;
	--opw-success: #28a745;
	--opw-warning: #ffc107;
	--opw-danger: #dc3545;
	--opw-border: #e1e5e9;
	--opw-bg: #f8f9fa;
	--opw-text: #333;
	--opw-text-light: #666;
	--opw-radius: 8px;
	--opw-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.omnipractice-booking-widget[data-theme="dark"] {
	--opw-bg: #1a1a2e;
	--opw-text: #fff;
	--opw-text-light: #aaa;
	--opw-border: #333;
}

/* ==========================================================================
	Container
	========================================================================== */
.omnipractice-booking-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	max-width: 700px;
	margin: 0 auto;
	background: white;
	border-radius: 16px;
	box-shadow: var(--opw-shadow);
	overflow: hidden;
}

.omnipractice-booking-widget * {
	box-sizing: border-box;
}

/* ==========================================================================
	Progress Steps
	========================================================================== */
.opw-steps {
	display: flex;
	justify-content: space-between;
	padding: 25px 30px;
	background: var(--opw-bg);
	border-bottom: 1px solid var(--opw-border);
}

.opw-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
}

.opw-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 15px;
	left: calc(50% + 20px);
	width: calc(100% - 40px);
	height: 2px;
	background: var(--opw-border);
}

.opw-step.completed:not(:last-child)::after {
	background: var(--opw-primary);
}

.opw-step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--opw-border);
	color: var(--opw-text-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	position: relative;
	z-index: 1;
	transition: all 0.3s;
}

.opw-step.active .opw-step-number,
.opw-step.completed .opw-step-number {
	background: var(--opw-primary);
	color: white;
}

.opw-step-label {
	margin-top: 8px;
	font-size: 12px;
	color: var(--opw-text-light);
	text-align: center;
}

.opw-step.active .opw-step-label {
	color: var(--opw-primary);
	font-weight: 600;
}

/* ==========================================================================
	Panels
	========================================================================== */
.opw-panel {
	padding: 30px;
}

.opw-panel h3 {
	margin: 0 0 25px;
	font-size: 22px;
	color: var(--opw-text);
}

/* ==========================================================================
	Services Grid
	========================================================================== */
.opw-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
}

.opw-service-card {
	border: 2px solid var(--opw-border);
	border-radius: var(--opw-radius);
	padding: 20px;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}

.opw-service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--service-color, var(--opw-primary));
}

.opw-service-card:hover {
	border-color: var(--opw-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.opw-service-card.selected {
	border-color: var(--opw-primary);
	background: rgba(55, 136, 216, 0.05);
}

.opw-service-name {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 8px;
	color: var(--opw-text);
}

.opw-service-description {
	font-size: 13px;
	color: var(--opw-text-light);
	margin-bottom: 12px;
	line-height: 1.4;
}

.opw-service-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.opw-service-duration {
	color: var(--opw-text-light);
}

.opw-service-price {
	font-weight: 700;
	color: var(--opw-primary);
}

/* ==========================================================================
	Date & Time Selection
	========================================================================== */
.opw-datetime-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media (max-width: 600px) {
	.opw-datetime-grid {
		grid-template-columns: 1fr;
	}
}

/* Calendar */
.opw-calendar-section {
	background: var(--opw-bg);
	border-radius: var(--opw-radius);
	padding: 20px;
}

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

.opw-calendar-header button {
	width: 36px;
	height: 36px;
	border: none;
	background: white;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	color: var(--opw-text);
	transition: background 0.2s;
}

.opw-calendar-header button:hover {
	background: var(--opw-primary);
	color: white;
}

.opw-cal-month {
	font-weight: 600;
	font-size: 16px;
}

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

.opw-cal-day-header {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--opw-text-light);
	padding: 8px 0;
}

.opw-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.opw-cal-day:hover:not(.disabled):not(.selected) {
	background: var(--opw-border);
}

.opw-cal-day.selected {
	background: var(--opw-primary);
	color: white;
}

.opw-cal-day.today {
	border: 2px solid var(--opw-primary);
}

.opw-cal-day.disabled {
	color: #ccc;
	cursor: not-allowed;
}

.opw-cal-day.other-month {
	color: #ddd;
}

.opw-cal-day.has-session {
	background: rgba(55, 136, 216, 0.12);
	font-weight: 600;
}

.opw-cal-day.has-session:not(.selected) {
	color: var(--opw-primary);
}

/* Slots */
.opw-slots-section h4 {
	margin: 0 0 15px;
	font-size: 16px;
	color: var(--opw-text);
}

.opw-slots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-height: 300px;
	overflow-y: auto;
}

.opw-slot {
	padding: 12px;
	border: 1px solid var(--opw-border);
	border-radius: var(--opw-radius);
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
}

.opw-slot:hover {
	border-color: var(--opw-primary);
	background: rgba(55, 136, 216, 0.05);
}

.opw-slot.selected {
	background: var(--opw-primary);
	color: white;
	border-color: var(--opw-primary);
}

/* Session slots (SCHEDULED services — wider with time range + spots) */
.opw-slot--session {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.opw-slot--session .opw-slot-time {
	font-weight: 600;
}

.opw-slot--session .opw-slot-spots {
	font-size: 12px;
	opacity: 0.75;
}

.opw-slot--session.selected .opw-slot-spots {
	opacity: 0.9;
}

.opw-hint {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--opw-text-light);
	font-size: 14px;
	padding: 20px;
}

.opw-no-slots {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--opw-warning);
	background: #fff3cd;
	padding: 15px;
	border-radius: var(--opw-radius);
}

/* ==========================================================================
	Form
	========================================================================== */
.opw-form {
	max-width: 500px;
}

.opw-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

@media (max-width: 500px) {
	.opw-form-row {
		grid-template-columns: 1fr;
	}
}

.opw-form-group {
	margin-bottom: 15px;
}

.opw-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 14px;
	color: var(--opw-text);
}

.opw-form-group input,
.opw-form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--opw-border);
	border-radius: var(--opw-radius);
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.opw-form-group input:focus,
.opw-form-group textarea:focus {
	outline: none;
	border-color: var(--opw-primary);
	box-shadow: 0 0 0 3px rgba(55, 136, 216, 0.1);
}

.opw-form-group input.error {
	border-color: var(--opw-danger);
}

.opw-form-group .error-message {
	color: var(--opw-danger);
	font-size: 12px;
	margin-top: 4px;
}

.opw-privacy-notice {
	margin-top: 20px;
	font-size: 13px;
}

.opw-privacy-notice label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.opw-privacy-notice input[type="checkbox"] {
	width: auto;
	margin-top: 3px;
}

.opw-privacy-notice a {
	color: var(--opw-primary);
}

/* ==========================================================================
	Summary
	========================================================================== */
.opw-summary {
	background: var(--opw-bg);
	border-radius: var(--opw-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.opw-summary-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--opw-border);
}

.opw-summary-item:last-child {
	border-bottom: none;
}

.opw-summary-label {
	color: var(--opw-text-light);
}

.opw-summary-value {
	font-weight: 600;
	color: var(--opw-text);
}

.opw-summary-price .opw-summary-value {
	font-size: 18px;
	color: var(--opw-primary);
}

.opw-patient-summary {
	background: white;
	border: 1px solid var(--opw-border);
	border-radius: var(--opw-radius);
	padding: 20px;
}

.opw-patient-summary h4 {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--opw-text-light);
}

.opw-patient-summary p {
	margin: 0;
	color: var(--opw-text);
}

/* ==========================================================================
	Buttons
	========================================================================== */
.opw-nav-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--opw-border);
}

.opw-btn {
	padding: 12px 25px;
	border-radius: var(--opw-radius);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
}

.opw-btn-back {
	background: white;
	border: 1px solid var(--opw-border);
	color: var(--opw-text);
}

.opw-btn-back:hover {
	background: var(--opw-bg);
}

.opw-btn-primary {
	background: var(--opw-primary);
	color: white;
}

.opw-btn-primary:hover {
	opacity: 0.9;
}

.opw-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.opw-btn-book {
	padding: 15px 40px;
	font-size: 16px;
}

/* ==========================================================================
	Success Panel
	========================================================================== */
.opw-success-panel {
	text-align: center;
	padding: 50px 30px;
}

.opw-success-icon {
	margin-bottom: 25px;
}

.opw-success-icon svg circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	animation: circle 0.6s ease-in-out forwards;
}

.opw-success-icon svg path {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: check 0.3s 0.3s ease-in-out forwards;
}

@keyframes circle {
	100% { stroke-dashoffset: 0; }
}

@keyframes check {
	100% { stroke-dashoffset: 0; }
}

.opw-success-panel h2 {
	margin: 0 0 15px;
	color: var(--opw-success);
	font-size: 28px;
}

.opw-success-panel p {
	color: var(--opw-text-light);
	margin: 0 0 25px;
}

.opw-booking-reference {
	background: var(--opw-bg);
	padding: 15px 25px;
	border-radius: var(--opw-radius);
	display: inline-block;
	margin-bottom: 30px;
}

.opw-booking-reference span {
	color: var(--opw-text-light);
	margin-right: 10px;
}

.opw-booking-reference strong {
	font-size: 18px;
	color: var(--opw-text);
	letter-spacing: 1px;
}

/* Payment summary in success panel */
.opw-payment-summary {
	background: #dcfce7;
	padding: 10px 20px;
	border-radius: var(--opw-radius);
	display: inline-block;
	margin-bottom: 20px;
}

.opw-payment-summary p {
	margin: 0;
	font-size: 14px;
	color: #166534;
}

/* ==========================================================================
	Loading
	========================================================================== */
.opw-loading {
	display: flex;
	justify-content: center;
	padding: 40px;
}

.opw-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--opw-border);
	border-top-color: var(--opw-primary);
	border-radius: 50%;
	animation: opw-spin 0.8s linear infinite;
}

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

/* ==========================================================================
	Floating Widget
	========================================================================== */
.omnipractice-floating-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99999;
}

.opw-floating-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 25px;
	border: none;
	border-radius: 50px;
	color: white;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	transition: all 0.3s;
}

.opw-floating-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.opw-floating-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.opw-floating-modal {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 400px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 120px);
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 50px rgba(0,0,0,0.25);
	overflow: hidden;
	z-index: 100000;
}

.opw-floating-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: var(--opw-bg);
	border-bottom: 1px solid var(--opw-border);
}

.opw-floating-modal-header h3 {
	margin: 0;
	font-size: 16px;
}

.opw-floating-close {
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--opw-text-light);
	border-radius: 50%;
	transition: all 0.2s;
}

.opw-floating-close:hover {
	background: var(--opw-border);
	color: var(--opw-danger);
}

.opw-floating-modal-body {
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

.opw-floating-modal-body .omnipractice-booking-widget {
	box-shadow: none;
	border-radius: 0;
}

/* Responsive floating modal */
@media (max-width: 500px) {
	.opw-floating-modal {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		max-height: 85vh;
		border-radius: 16px 16px 0 0;
	}

	.opw-floating-btn .opw-floating-text {
		display: none;
	}

	.opw-floating-btn {
		padding: 15px;
		border-radius: 50%;
	}
}

/* ==========================================================================
	Category Mode — Filters
	========================================================================== */
.opw-category-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.opw-filter-btn {
	padding: 8px 18px;
	border: 1px solid var(--opw-border);
	border-radius: 20px;
	background: white;
	color: var(--opw-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.opw-filter-btn:hover {
	border-color: var(--opw-primary);
	color: var(--opw-primary);
}

.opw-filter-btn.active {
	background: var(--opw-primary);
	color: white;
	border-color: var(--opw-primary);
}

/* ==========================================================================
	Category Mode — Date Groups
	========================================================================== */
.opw-date-group {
	margin-bottom: 20px;
}

.opw-date-header {
	margin: 0 0 12px;
	padding: 12px 16px;
	background: var(--opw-bg);
	border-radius: var(--opw-radius);
	font-size: 15px;
	font-weight: 600;
	color: var(--opw-text);
	cursor: default;
}

.opw-date-header .opw-date-toggle {
	float: right;
	cursor: pointer;
	color: var(--opw-text-light);
}

.opw-date-sessions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ==========================================================================
	Category Mode — Kundalini Session Cards
	========================================================================== */
.opw-session-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border: 1px solid var(--opw-border);
	border-radius: var(--opw-radius);
	background: white;
	transition: all 0.2s;
}

.opw-session-card:hover {
	border-color: var(--opw-primary);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.opw-session-info {
	flex: 1;
}

.opw-session-time {
	font-weight: 600;
	font-size: 16px;
	color: var(--opw-text);
	margin-bottom: 4px;
}

.opw-session-name {
	font-size: 14px;
	color: var(--opw-text);
	margin-bottom: 6px;
}

.opw-session-meta {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--opw-text-light);
}

.opw-session-full {
	font-size: 13px;
	color: var(--opw-danger);
	font-weight: 600;
	white-space: nowrap;
}

/* ==========================================================================
	Category Mode — PSY Slots (Green/Red)
	========================================================================== */
.opw-session-slot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--opw-radius);
	transition: all 0.2s;
}

.opw-session-slot .opw-slot-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.opw-slot-available {
	background: rgba(40, 167, 69, 0.06);
	border: 1px solid rgba(40, 167, 69, 0.2);
}

.opw-slot-available .opw-slot-indicator {
	background: var(--opw-success);
}

.opw-slot-booked {
	background: rgba(220, 53, 69, 0.04);
	border: 1px solid rgba(220, 53, 69, 0.15);
	opacity: 0.7;
}

.opw-slot-booked .opw-slot-indicator {
	background: var(--opw-danger);
}

.opw-session-slot .opw-slot-time {
	font-weight: 600;
	font-size: 14px;
	color: var(--opw-text);
}

.opw-session-slot .opw-slot-service {
	flex: 1;
	font-size: 13px;
	color: var(--opw-text-light);
}

.opw-session-slot .opw-slot-full {
	font-size: 12px;
	color: var(--opw-danger);
	font-weight: 600;
}

.opw-btn-sm {
	padding: 6px 16px;
	font-size: 13px;
	border-radius: 6px;
}

/* ==========================================================================
	Category Mode — Approval Gate
	========================================================================== */
.opw-approval-gate {
	text-align: center;
	padding: 30px 20px;
}

.opw-approval-gate .opw-approval-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.opw-approval-gate h4 {
	margin: 0 0 12px;
	font-size: 20px;
	color: var(--opw-text);
}

.opw-approval-gate p {
	color: var(--opw-text-light);
	margin: 0 0 20px;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.opw-approval-gate .opw-form {
	text-align: left;
	max-width: 400px;
	margin: 0 auto;
}

/* ==========================================================================
	Success Panel — Mon compte button
	========================================================================== */
.opw-success-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.opw-btn-secondary {
	padding: 12px 25px;
	border-radius: var(--opw-radius);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid var(--opw-border);
	background: white;
	color: var(--opw-text);
	text-decoration: none;
	display: inline-block;
}

.opw-btn-secondary:hover {
	background: var(--opw-bg);
	border-color: var(--opw-primary);
	color: var(--opw-primary);
}

/* ==========================================================================
	Responsive — Category mode
	========================================================================== */
@media (max-width: 500px) {
	.opw-session-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.opw-session-card .opw-btn-reserve {
		width: 100%;
	}

	.opw-session-slot {
		flex-wrap: wrap;
	}

	.opw-session-slot .opw-btn-reserve {
		width: 100%;
		margin-top: 8px;
	}
}

/* ==========================================================================
   Category Mode — Monthly Calendar Grid
   ========================================================================== */
.opw-cat-calendar-section {
	max-width: 500px;
	margin: 0 auto 20px;
	background: var(--opw-bg);
	border-radius: var(--opw-radius);
	padding: 20px;
}

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

.opw-cat-calendar-header button {
	width: 36px;
	height: 36px;
	border: none;
	background: white;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	color: var(--opw-text);
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opw-cat-calendar-header button:hover {
	background: var(--opw-primary);
	color: white;
}

.opw-cat-cal-month {
	font-weight: 600;
	font-size: 16px;
	color: var(--opw-text);
}

.opw-cat-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	position: relative;
}

/* Green — available slots */
.opw-cat-day-available {
	background: rgba(40, 167, 69, 0.15);
	font-weight: 600;
	color: var(--opw-success) !important;
	cursor: pointer;
}

.opw-cat-day-available:hover {
	background: rgba(40, 167, 69, 0.3);
}

.opw-cat-day-available.selected {
	background: var(--opw-success);
	color: white !important;
}

/* Red — all slots taken */
.opw-cat-day-full {
	background: rgba(220, 53, 69, 0.1);
	color: var(--opw-danger) !important;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Loading overlay */
.opw-loading-overlay {
	opacity: 0.5;
	pointer-events: none;
}

/* ==========================================================================
   Category Mode — Day Slots Expansion
   ========================================================================== */
.opw-cat-day-slots {
	max-width: 500px;
	margin: 0 auto;
}

.opw-cat-day-title {
	margin: 0 0 15px;
	padding: 12px 16px;
	background: var(--opw-bg);
	border-radius: var(--opw-radius);
	font-size: 15px;
	font-weight: 600;
	color: var(--opw-text);
	text-transform: capitalize;
}

.opw-cat-slots-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.opw-cat-slot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--opw-radius);
	transition: all 0.2s;
}

.opw-cat-slot-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.opw-cat-slot-available {
	background: rgba(40, 167, 69, 0.06);
	border: 1px solid rgba(40, 167, 69, 0.2);
}

.opw-cat-slot-available .opw-cat-slot-indicator {
	background: var(--opw-success);
}

.opw-cat-slot-booked {
	background: rgba(220, 53, 69, 0.04);
	border: 1px solid rgba(220, 53, 69, 0.15);
	opacity: 0.7;
}

.opw-cat-slot-booked .opw-cat-slot-indicator {
	background: var(--opw-danger);
}

.opw-cat-slot-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.opw-cat-slot-time {
	font-weight: 600;
	font-size: 14px;
	color: var(--opw-text);
}

.opw-cat-slot-service {
	font-size: 13px;
	color: var(--opw-text-light);
}

.opw-cat-slot-full {
	font-size: 12px;
	color: var(--opw-danger);
	font-weight: 600;
	white-space: nowrap;
}

/* ==========================================================================
   Responsive — Category Calendar
   ========================================================================== */
@media (max-width: 600px) {
	.opw-cat-calendar-section {
		max-width: 100%;
		padding: 15px;
	}

	.opw-cat-day-slots {
		max-width: 100%;
	}

	.opw-cat-calendar-grid .opw-cal-day {
		font-size: 12px;
	}
}

@media (max-width: 500px) {
	.opw-cat-calendar-section {
		border-radius: 0;
		margin-left: -30px;
		margin-right: -30px;
		padding: 15px;
	}

	.opw-cat-slot {
		flex-wrap: wrap;
	}

	.opw-cat-slot .opw-btn-reserve,
	.opw-cat-slot .opw-btn-primary {
		width: 100%;
		margin-top: 8px;
	}
}

/* ========================================
   REJECTION STATE
   ======================================== */

.opw-rejection-reason {
	background: rgba(220, 53, 69, 0.06);
	border: 1px solid rgba(220, 53, 69, 0.2);
	border-radius: var(--opw-radius, 8px);
	padding: 16px;
	margin: 15px 0;
	color: var(--opw-text, #333);
}

.opw-rejection-reason strong {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9em;
	color: #dc3545;
}

.opw-rejection-reason p {
	margin: 0;
	font-style: italic;
	line-height: 1.5;
}

.opw-new-request-btn {
	margin-top: 12px;
}

/* ========================================
   CATEGORY LEGEND (multi-category mode)
   ======================================== */
.opw-category-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 0;
	margin-bottom: 8px;
}

.opw-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85em;
	cursor: pointer;
	transition: opacity 0.2s;
	user-select: none;
}

.opw-legend-item.disabled {
	opacity: 0.4;
	text-decoration: line-through;
}

.opw-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ========================================
   SLOT CATEGORY INDICATORS (multi-cat)
   ======================================== */
.opw-cat-badge {
	font-size: 0.75em;
	font-weight: 500;
	margin-left: 4px;
}

/* ========================================
   WAITLIST
   ======================================== */
.opw-waitlist-optin {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	background: var(--opw-bg);
	border-radius: 8px;
	border: 1px solid var(--opw-border);
}
.opw-waitlist-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	cursor: pointer;
	color: var(--opw-text);
}
.opw-waitlist-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--opw-primary);
	cursor: pointer;
}
.opw-waitlist-status {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	padding-left: 1.75rem;
}
.opw-waitlist-landing {
	text-align: center;
	padding: 2rem 1.5rem;
}
.opw-wl-icon {
	margin-bottom: 1rem;
}
.opw-wl-details {
	margin: 1rem 0;
	text-align: left;
	padding: 1rem;
	background: var(--opw-bg);
	border-radius: 8px;
}
.opw-wl-service {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}
.opw-wl-ref {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--opw-border);
}
.opw-wl-expires {
	font-size: 0.8rem;
	color: var(--opw-danger);
	font-weight: 600;
	margin-top: 0.5rem;
}
.opw-waitlist-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}
.opw-wl-result {
	margin-top: 1rem;
}
.opw-wl-success {
	color: var(--opw-success);
	font-weight: 600;
}
.opw-wl-error {
	color: var(--opw-danger);
	font-weight: 600;
}
.opw-wl-expired {
	margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   RETREAT / SÉJOUR
   ═══════════════════════════════════════════ */
.opw-cat-day-retreat {
	cursor: pointer !important;
	position: relative;
}
.opw-retreat-card {
	background: var(--opw-bg-light, #fff);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	overflow: hidden;
	margin-top: .5rem;
}
.opw-retreat-header {
	padding: 1.25rem 1.5rem;
	background: var(--opw-bg-alt, #f8f9fa);
}
.opw-retreat-title {
	margin: 0 0 .25rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--opw-text, #1a1a2e);
}
.opw-retreat-dates {
	font-size: .9rem;
	color: var(--opw-text-muted, #6c757d);
	margin-bottom: .25rem;
}
.opw-retreat-spots {
	font-size: .85rem;
	font-weight: 600;
	color: var(--opw-primary, #039BE5);
}
.opw-retreat-description {
	padding: 1rem 1.5rem;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--opw-text, #333);
	border-bottom: 1px solid var(--opw-border, #e9ecef);
}
.opw-retreat-itinerary {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--opw-border, #e9ecef);
}
.opw-retreat-itinerary h4 {
	margin: 0 0 .75rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--opw-text, #1a1a2e);
}
.opw-retreat-day {
	padding: .5rem 0;
	border-bottom: 1px dashed var(--opw-border, #e9ecef);
	font-size: .88rem;
}
.opw-retreat-day:last-child {
	border-bottom: none;
}
.opw-retreat-day-time {
	font-size: .8rem;
	color: var(--opw-text-muted, #6c757d);
}
.opw-retreat-day-desc {
	margin-top: .25rem;
	font-size: .82rem;
	color: var(--opw-text-muted, #6c757d);
	line-height: 1.4;
}
.opw-retreat-pricing {
	padding: 1rem 1.5rem;
}
.opw-retreat-base-price {
	font-size: .95rem;
	margin-bottom: .5rem;
}
.opw-retreat-option {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem 0;
	font-size: .9rem;
	cursor: pointer;
}
.opw-retreat-option input[type=checkbox] {
	width: 18px;
	height: 18px;
	accent-color: var(--opw-primary, #039BE5);
}
.opw-retreat-option span {
	margin-left: auto;
	font-weight: 600;
	color: var(--opw-primary, #039BE5);
}
.opw-retreat-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .75rem;
	padding-top: .75rem;
	border-top: 2px solid var(--opw-border, #e9ecef);
	font-size: 1rem;
}
.opw-retreat-deposit {
	font-size: .85rem;
	color: var(--opw-text-muted, #6c757d);
}
.opw-btn-retreat-book {
	display: block;
	width: calc(100% - 3rem);
	margin: 1rem 1.5rem 1.5rem;
	padding: .85rem;
	background: var(--opw-primary, #039BE5);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
	text-align: center;
}
.opw-btn-retreat-book:hover {
	background: var(--opw-primary-hover, #0288D1);
}
.opw-retreat-full {
	text-align: center;
	padding: 1rem 1.5rem 1.5rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--opw-danger, #dc3545);
}
