/*
 * Cim360 Site: shared front-end and editor styles (tokens, screen-reader text, buttons).
 * Everything here is low specificity (:where) so the theme can override it.
 */
:root {
	--cim360-primary-dark: var(--wp--preset--color--primary-dark, #155389);
	--cim360-primary: var(--wp--preset--color--primary, #1d75bb);
	--cim360-accent: var(--wp--preset--color--accent, #f59e0b);
	--cim360-ink: var(--wp--preset--color--ink, #1f2937);
	--cim360-muted: var(--wp--preset--color--muted, #4b5563);
	--cim360-label: var(--wp--preset--color--label, #374151);
	--cim360-line: var(--wp--preset--color--line, #d6dbe1);
	--cim360-surface: var(--wp--preset--color--surface, #f4f6f9);
	--cim360-on-dark: var(--wp--preset--color--on-dark, #e6f0fa);
	--cim360-band-deep: var(--wp--preset--color--band-deep, #0f3f6b);
	--cim360-focus: #f2b705;
}

.cim360-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:where(.cim360-block) :where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--cim360-focus);
	outline-offset: 2px;
}

/* Accent: Start free trial buttons ONLY. Always #1f2937 text. */
.cim360-btn-accent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 22px;
	border-radius: 8px;
	background: var(--cim360-accent);
	color: #1f2937;
	font-family: inherit;
	font-weight: 900;
	font-size: 17px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.cim360-btn-accent:hover {
	filter: brightness(1.06);
	color: #1f2937;
}

.cim360-btn-accent:focus-visible {
	outline-color: var(--cim360-primary-dark);
}

.cim360-on-dark .cim360-btn-accent:focus-visible {
	outline-color: #ffffff;
}

.cim360-prices-unavailable {
	margin: 0;
	padding: 20px 24px;
	border: 1px solid var(--cim360-line);
	border-radius: 12px;
	background: #ffffff;
	color: var(--cim360-ink);
	font-size: 18px;
	font-weight: 700;
}

/* Fallback tile: the theme's .c360-tile wins when it is present. */
:where(.c360-tile) {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 15px 16px 13px;
	background: #ffffff;
	border: 1px solid var(--cim360-line);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

:where(.c360-tile-head) {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	min-width: 0;
}

:where(.c360-tile-icon) {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8f1fa;
	color: #155389;
}

:where(.c360-tile-label) {
	min-height: 28px;
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--cim360-label);
	line-height: 1.25;
}

:where(.c360-tile-sub) {
	font-size: 14px;
	font-weight: 500;
	color: var(--cim360-muted);
	margin: 4px 0 0;
	line-height: 1.5;
}

/* Typing dots shared by the Jeff block and the widget. */
.cim360-dots {
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

.cim360-dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	display: inline-block;
	animation: cim360-typing 1.2s infinite;
}

.cim360-dots i:nth-child(2) {
	animation-delay: 0.15s;
}

.cim360-dots i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes cim360-typing {
	0%,
	60%,
	100% {
		transform: translateY(0);
		opacity: 0.5;
	}

	30% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

@keyframes cim360-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Launch notice (above the sticky header) ---------- */
.cim360-notice {
	background: #0f3f6b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	padding: 8px 16px;
	box-sizing: border-box;
}

.cim360-notice a {
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
}

.cim360-notice a:focus-visible {
	outline: 3px solid #f2b705;
	outline-offset: 2px;
}
