/* ── Calendly Scheduler (.sentio-cy) ──────────────────────────────────
 * Extracted from frontend.js during Schedulers Phase 1 (2026-04-20).
 * Family 1 SDK scheduler — Calendly widget.css loaded via central registration
 * in plugin.php as 'calendly-widget-css'; declared in get_style_depends().
 * ──────────────────────────────────────────────────────────────────── */

/* Empty state */
.sentio-cy__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 180px;
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	color: #6b7280;
}

.sentio-cy__empty-icon {
	font-size: 32px;
	line-height: 1;
	opacity: 0.5;
}

.sentio-cy__empty-text {
	font-size: 14px;
}

/* Editor preview card */
.sentio-cy__preview {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
	border: 1px solid #bfdbfe;
	min-height: 120px;
}

.sentio-cy__preview-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #006bff;
}

.sentio-cy__preview-url {
	font-size: 13px;
	color: #64748b;
	word-break: break-all;
}

.sentio-cy__preview-mode {
	display: inline-flex;
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #006bff;
	background: rgba(0, 107, 255, 0.1);
}

/* Container (inline) */
.sentio-cy__container {
	position: relative;
	overflow: hidden;
	min-width: 320px;
}

/* Embed fills container */
.sentio-cy__embed {
	width: 100%;
	height: 100%;
}

.sentio-cy__embed iframe {
	border: none !important;
}

/* Skeleton loading overlay */
.sentio-cy__skeleton {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
	background: #e5e7eb;
	z-index: 2;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sentio-cy__skeleton--hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sentio-cy__skeleton-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, #f3f4f6 50%, transparent 100%);
	animation: sentio-cy-shimmer 1.8s ease-in-out infinite;
}

@keyframes sentio-cy-shimmer {
	0%   { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* Button (popup / float trigger) */
.sentio-cy__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: #006bff;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s, border-radius 0.25s;
	white-space: nowrap;
}

.sentio-cy__btn:hover {
	background: #0055cc;
}

.sentio-cy__btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.sentio-cy__btn-icon svg {
	fill: currentColor;
}

.sentio-cy__btn-icon--before {
	margin-right: 8px;
}

.sentio-cy__btn-icon--after {
	margin-left: 8px;
}

/* Floating button */
.sentio-cy__float {
	position: fixed;
	z-index: 9999;
	bottom: 24px;
	animation: sentio-cy-pulse 2.5s ease-in-out infinite;
	box-shadow: 0 4px 16px rgba(0, 107, 255, 0.35);
	border-radius: 50px;
}

.sentio-cy__float--right {
	right: 24px;
}

.sentio-cy__float--left {
	left: 24px;
}

@keyframes sentio-cy-pulse {
	0%, 100% { box-shadow: 0 4px 16px rgba(0, 107, 255, 0.35); }
	50%      { box-shadow: 0 4px 16px rgba(0, 107, 255, 0.35), 0 0 0 12px rgba(0, 107, 255, 0); }
}

/* Modal overlay */
.sentio-cy__modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sentio-cy__modal[hidden] {
	display: flex !important;
	opacity: 0;
	visibility: hidden;
}

.sentio-cy__modal--open {
	opacity: 1;
	visibility: visible;
}

.sentio-cy__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.sentio-cy__modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 900px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transform: scale(0.95) translateY(10px);
	transition: transform 0.3s ease;
}

.sentio-cy__modal--open .sentio-cy__modal-content {
	transform: scale(1) translateY(0);
}

.sentio-cy__modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #6b7280;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.sentio-cy__modal-close:hover {
	color: #111827;
	background: #f3f4f6;
}

.sentio-cy__modal-body {
	position: relative;
	height: 700px;
	overflow: hidden;
}

.sentio-cy__modal-body iframe {
	border: none !important;
}

/* Responsive */
@media (max-width: 767px) {
	.sentio-cy__modal {
		padding: 12px;
	}

	.sentio-cy__modal-content {
		max-width: 100%;
		border-radius: 12px;
	}

	.sentio-cy__modal-body {
		height: 80vh;
	}

	.sentio-cy__float {
		padding: 12px 20px;
		font-size: 13px;
	}
}
