/* =====================================================
   Serenity Paper Plane CTA Widget
   ===================================================== */

.ppc-outer {
	display: flex;
	width: 100%;
	overflow: visible;
}

/* ── Button ── */
.ppc-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding: 0 36px 0 22px;
	background: #2CECEC;
	border: none;
	border-radius: 3px;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	height: 52px;
	width: 220px;
	/* No min-width — controlled entirely by Elementor width control */
	transition: background 0.25s ease, box-shadow 0.25s ease;
	box-sizing: border-box;
	white-space: nowrap;
}

.ppc-btn:hover {
	background: #1fd8d8;
}

.ppc-btn:disabled {
	cursor: default;
	pointer-events: none;
}

/* ── Plane icon — always visible, left ── */
.ppc-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 22px;
	position: relative;
	z-index: 2;
	transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.4, 0, .15, 1);
}

.ppc-icon svg {
	display: block;
	width: 26px;
	height: 22px;
	overflow: visible;
}

.ppc-icon.ppc-fly {
	opacity: 0;
	transform: translateX(800px);
}

/* ── Text ── */
.ppc-text {
	flex: 1;
	min-width: 0;           /* allow flex child to shrink below content size */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	position: relative;
	z-index: 2;
	transition: opacity 0.18s ease, transform 0.22s ease;
}

.ppc-text.ppc-hide {
	opacity: 0;
	transform: translateX(10px);
}

/* ── Trail ── */
.ppc-trail {
	position: absolute;
	top: 50%;
	left: 22px;
	right: 0;              /* always reaches right edge whatever the button width */
	width: 0;
	height: 1px;
	background: repeating-linear-gradient(
		90deg,
		rgba(255,255,255,0.7) 0px,
		rgba(255,255,255,0.7) 5px,
		transparent 5px,
		transparent 10px
	);
	transform: translateY(-50%);
	opacity: 0;
	transition: none;
	z-index: 1;
}

.ppc-trail.ppc-draw {
	width: calc(100% - 22px); /* fills from left-pad to right edge */
	opacity: 1;
	transition: width 0.52s cubic-bezier(.4, 0, .2, 1) 0.04s, opacity 0.08s ease;
}

.ppc-trail.ppc-fade {
	opacity: 0;
	transition: opacity 0.28s ease;
}

/* ── Tick ── */
.ppc-done {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.6);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
	z-index: 3;
}

.ppc-done.ppc-show {
	opacity: 1;
	transform: scale(1);
}

.ppc-tick-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.ppc-icon,
	.ppc-text,
	.ppc-trail,
	.ppc-done { transition: none !important; }
}

/* ── No tap flash ── */
.ppc-btn, .ppc-btn * {
	-webkit-tap-highlight-color: transparent !important;
}
