/**
 * Candance Embed Everything — modal styles
 * Neutral by default and driven by CSS variables, so it inherits whatever
 * palette the Elementor theme sets. Override the variables in Elementor's
 * global custom CSS if you want it to match a specific section.
 */

:root {
	--cnde-bg: #1d1230;
	--cnde-line: rgba(255, 255, 255, .14);
	--cnde-text: #f4f0fa;
	--cnde-muted: #b3a8c9;
	--cnde-dim: #8478a0;
	--cnde-accent: #a866ff;
	--cnde-grad: linear-gradient(100deg, #8b3dff, #c44dff 50%, #ff3d9a);
}

body.cnde-locked { overflow: hidden; }

.cnde-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 4, 14, .86);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: inherit;
}
.cnde-overlay.is-open { display: flex; }
.cnde-overlay *, .cnde-overlay *::before, .cnde-overlay *::after { box-sizing: border-box; }

.cnde-modal {
	width: 100%;
	max-width: 1040px;
	height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--cnde-bg);
	border: 1px solid var(--cnde-line);
	border-radius: 20px;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
	animation: cnde-in .22s ease both;
}
@keyframes cnde-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }

.cnde-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 22px;
	border-bottom: 1px solid var(--cnde-line);
}
.cnde-heading strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--cnde-text);
	line-height: 1.25;
}
.cnde-heading span {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--cnde-dim);
}
.cnde-x {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid var(--cnde-line);
	background: rgba(255, 255, 255, .05);
	color: var(--cnde-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s;
}
.cnde-x:hover { background: rgba(255, 255, 255, .14); }

.cnde-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.cnde-body iframe { display: block; width: 100%; height: 100%; border: 0; }

.cnde-load {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 30px;
	text-align: center;
	background: var(--cnde-bg);
	color: var(--cnde-muted);
}
.cnde-load.is-hidden { display: none; }
.cnde-sp {
	width: 40px;
	height: 40px;
	margin: 0 auto 14px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .12);
	border-top-color: var(--cnde-accent);
	animation: cnde-spin .8s linear infinite;
}
@keyframes cnde-spin { to { transform: rotate(360deg); } }
.cnde-load p { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--cnde-text); }
.cnde-load small {
	display: block;
	max-width: 400px;
	margin: 8px auto 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--cnde-dim);
}

.cnde-foot {
	flex: 0 0 auto;
	padding: 11px 22px;
	border-top: 1px solid var(--cnde-line);
	font-size: 12px;
	color: var(--cnde-dim);
}

/* shortcode buttons */
.cnde-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s;
}
.cnde-btn:hover { transform: translateY(-2px); }
.cnde-btn-primary { background: var(--cnde-grad); color: #fff; }
.cnde-btn-ghost {
	background: rgba(255, 255, 255, .07);
	color: var(--cnde-text);
	border: 1px solid var(--cnde-line);
}
.cnde-btn-link {
	padding: 0;
	border-radius: 0;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cnde-accent);
	text-decoration: underline;
}

@media (max-width: 720px) {
	.cnde-overlay { padding: 10px; }
	.cnde-modal { height: 94vh; border-radius: 14px; }
	.cnde-head { padding: 13px 16px; }
	.cnde-foot { padding: 10px 16px; font-size: 11px; }
}
