/*!
 * Sentio for Elementor - acuity-schedule widget
 *
 * Extracted from frontend.css during Schedulers Phase 2 (2026-04-20).
 * Family 1 SDK scheduler — the Acuity Scheduling vendor script
 * (`acuity-embed` handle -> https://embed.acuityscheduling.com/js/embed.js)
 * is registered centrally in plugin.php and declared in the widget's
 * get_script_depends() as a Custom-deps case. No vendor CSS handle.
 * Tier 3 mechanical extraction.
 */

/* ── Container (inline mode) ── */
.sentio-acuity__container {
	position: relative;
	width: 100%;
	min-height: 800px;
	overflow: hidden;
	border-radius: 8px;
}

.sentio-acuity__iframe {
	position: relative;
	z-index: 1;
	border: none;
}

/* ── Loading skeleton ── */
.sentio-acuity__skeleton {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 40px 32px;
	background: inherit;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.sentio-acuity__skeleton-bar {
	background: #e5e7eb;
	border-radius: 6px;
	position: relative;
	overflow: hidden;
}

.sentio-acuity__skeleton-bar::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.4) 50%,
		transparent 100%
	);
	animation: sentio-acuity-shimmer 1.8s ease-in-out infinite;
}

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

.sentio-acuity__skeleton-bar--avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex-shrink: 0;
}

.sentio-acuity__skeleton-bar--title {
	width: 45%;
	height: 20px;
}

.sentio-acuity__skeleton-bar--subtitle {
	width: 30%;
	height: 14px;
}

.sentio-acuity__skeleton-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	width: 100%;
	flex: 1;
	margin-top: 12px;
}

.sentio-acuity__skeleton-bar--cell {
	height: 0;
	padding-bottom: 75%;
	border-radius: 6px;
}

.sentio-acuity__skeleton-bar--btn {
	width: 140px;
	height: 40px;
	margin-top: auto;
	border-radius: 8px;
}

/* ── Button (shared popup + floating) ── */
.sentio-acuity__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	color: #ffffff;
	background: #0d9488;
	padding: 14px 28px;
	border-radius: 8px;
	transition: color 0.25s ease,
	            background 0.25s ease,
	            border-color 0.25s ease,
	            box-shadow 0.25s ease,
	            transform 0.25s ease;
	text-decoration: none;
	white-space: nowrap;
}

.sentio-acuity__btn:hover {
	transform: translateY(-1px);
}

.sentio-acuity__btn:active {
	transform: translateY(0);
}

.sentio-acuity__icon {
	font-size: 1em;
	line-height: 1;
}

/* ── Popup button wrapper ── */
.sentio-acuity__popup-wrap {
	display: flex;
	justify-content: center;
}

/* ── Floating button ── */
.sentio-acuity__float {
	position: fixed;
	z-index: 9999;
	bottom: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

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

.sentio-acuity__float--pulse {
	animation: sentio-acuity-pulse 2s ease-in-out infinite;
}

@keyframes sentio-acuity-pulse {
	0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
	50%      { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
	                        0 0 0 8px rgba(13, 148, 136, 0.15); }
}

/* ── Modal overlay ── */
.sentio-acuity__overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

/* ── Modal content ── */
.sentio-acuity__modal {
	position: relative;
	width: 700px;
	height: 85vh;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	transform: scale(0.95) translateY(10px);
	transition: transform 0.3s ease;
}

.sentio-acuity__overlay--open .sentio-acuity__modal {
	transform: scale(1) translateY(0);
}

.sentio-acuity__modal-body {
	width: 100%;
	height: 100%;
	overflow: auto;
}

.sentio-acuity__modal-body iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Close button ── */
.sentio-acuity__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	color: #6b7280;
	font-size: 28px;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sentio-acuity__close:hover {
	color: #111827;
	background: #ffffff;
	transform: scale(1.1);
}

.sentio-acuity__close svg {
	width: 0.6em;
	height: 0.6em;
}

/* ── Empty state (editor) ── */
.sentio-acuity__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 40px 20px;
	background: #f9fafb;
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	color: #6b7280;
	text-align: center;
}

.sentio-acuity__empty i {
	font-size: 36px;
	margin-bottom: 12px;
	opacity: 0.6;
}

.sentio-acuity__empty p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* ── Editor preview (inline) ── */
.sentio-acuity__editor-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0fdfa;
}

.sentio-acuity__editor-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 40px;
	color: #475569;
}

.sentio-acuity__editor-card i {
	font-size: 40px;
	color: #0d9488;
	opacity: 0.7;
}

.sentio-acuity__editor-label {
	font-size: 15px;
	font-weight: 600;
}

.sentio-acuity__editor-url {
	font-size: 12px;
	color: #94a3b8;
	word-break: break-all;
	text-align: center;
	max-width: 320px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.sentio-acuity__container {
		min-height: 500px;
	}

	.sentio-acuity__skeleton-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.sentio-acuity__modal {
		width: calc(100vw - 16px);
		height: calc(100vh - 16px);
		border-radius: 12px;
	}

	.sentio-acuity__float {
		bottom: 16px !important;
	}

	.sentio-acuity__float--right {
		right: 16px !important;
	}

	.sentio-acuity__float--left {
		left: 16px !important;
	}
}
