/**
 * HubSpot Meetings — squelette type calendrier + iframe différée.
 */

.wpcursor-hubspot-meetings {
	--hs-navy: #425b76;
	--hs-navy-deep: #33475b;
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	position: relative;
}

.wpcursor-hubspot-meetings *,
.wpcursor-hubspot-meetings *::before,
.wpcursor-hubspot-meetings *::after {
	box-sizing: border-box;
}

.wpcursor-hubspot-meetings__skeleton {
	display: grid;
	grid-template-columns: minmax(220px, 0.95fr) 1.15fr;
	min-height: 520px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #dfe3eb;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	background: #fff;
}

.wpcursor-hubspot-meetings__sk-left {
	padding: 1.35rem 1.25rem 1.5rem;
	background: linear-gradient(180deg, #516f8c 0%, var(--hs-navy) 55%, var(--hs-navy-deep) 100%);
	color: #fff;
}

.wpcursor-hubspot-meetings__sk-profile {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.35rem;
}

.wpcursor-hubspot-meetings__sk-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-name {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0.92;
}

.wpcursor-hubspot-meetings__sk-month {
	width: 42%;
	height: 14px;
	margin: 0 0 1rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.28);
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px 6px;
}

.wpcursor-hubspot-meetings__sk-day {
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-day:nth-child(3n) {
	animation-delay: 0.15s;
}

.wpcursor-hubspot-meetings__sk-day:nth-child(5n) {
	animation-delay: 0.3s;
}

.wpcursor-hubspot-meetings__sk-right {
	padding: 1.5rem 1.35rem 1.25rem;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.wpcursor-hubspot-meetings__sk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	align-items: center;
}

.wpcursor-hubspot-meetings__sk-line {
	width: 38%;
	height: 12px;
	border-radius: 4px;
	background: #e8ecf1;
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-pill {
	width: 64px;
	height: 22px;
	border-radius: 999px;
	background: #eef1f5;
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-heading {
	width: 72%;
	height: 16px;
	margin-top: 0.35rem;
	border-radius: 4px;
	background: #e8ecf1;
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-slots {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 0.35rem;
}

.wpcursor-hubspot-meetings__sk-slot {
	display: block;
	height: 42px;
	border-radius: 6px;
	border: 1px solid #e1e6ee;
	background: #f7f9fb;
	animation: wpcursor-hs-pulse 1.4s ease-in-out infinite;
}

.wpcursor-hubspot-meetings__sk-slot:nth-child(2n) {
	animation-delay: 0.2s;
}

.wpcursor-hubspot-meetings__sk-status {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: #7c8a9a;
	text-align: center;
}

.wpcursor-hubspot-meetings__frame-wrap {
	display: none;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #dfe3eb;
	background: #fff;
}

.wpcursor-hubspot-meetings.is-loaded .wpcursor-hubspot-meetings__skeleton {
	display: none;
}

.wpcursor-hubspot-meetings.is-loaded .wpcursor-hubspot-meetings__frame-wrap {
	display: block;
}

.wpcursor-hubspot-meetings__iframe {
	display: block;
	width: 100%;
	border: 0;
	background: #fff;
}

@keyframes wpcursor-hs-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.55;
	}
}

@media (max-width: 767px) {
	.wpcursor-hubspot-meetings__skeleton {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.wpcursor-hubspot-meetings__sk-left {
		padding-bottom: 1.1rem;
	}

	.wpcursor-hubspot-meetings__sk-cal {
		max-width: 280px;
	}

	.wpcursor-hubspot-meetings__sk-slots {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-hubspot-meetings__sk-avatar,
	.wpcursor-hubspot-meetings__sk-month,
	.wpcursor-hubspot-meetings__sk-day,
	.wpcursor-hubspot-meetings__sk-line,
	.wpcursor-hubspot-meetings__sk-pill,
	.wpcursor-hubspot-meetings__sk-heading,
	.wpcursor-hubspot-meetings__sk-slot {
		animation: none;
	}
}
