.ldqls-share-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
}

.ldqls-share-wrap.ldqls-hidden {
	display: none;
}

/* Admins see a dimmed preview of the button even before the quiz is completed,
   so placement can be checked without retaking the quiz. */
.ldqls-share-wrap.ldqls-preview-visible.ldqls-hidden {
	display: inline-flex;
	opacity: 0.55;
}

.ldqls-share-wrap.ldqls-visible {
	animation: ldqls-fade-in 0.3s ease;
}

@keyframes ldqls-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ldqls-preview-badge {
	flex-basis: 100%;
	font-size: 12px;
	color: #b32d2e;
	margin-bottom: 2px;
}

.ldqls-share-button,
.ldqls-cert-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	border-radius: 24px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	min-height: 44px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease, transform 0.1s ease;
}

.ldqls-share-button {
	background: #0a66c2;
	color: #fff;
}

.ldqls-share-button:hover,
.ldqls-share-button:focus-visible {
	background: #004182;
}

/* Distinct outline style so it doesn't read as "share this link" — it opens
   LinkedIn's own certification form instead. */
.ldqls-cert-button {
	background: #fff;
	color: #0a66c2;
	box-shadow: inset 0 0 0 2px #0a66c2;
}

.ldqls-cert-button:hover,
.ldqls-cert-button:focus-visible {
	background: #eaf1fb;
}

.ldqls-share-button:active,
.ldqls-cert-button:active {
	transform: scale(0.98);
}

.ldqls-share-button:disabled,
.ldqls-cert-button:disabled {
	opacity: 0.75;
	cursor: default;
}

.ldqls-share-icon svg {
	display: block;
}

.ldqls-share-label {
	white-space: nowrap;
}

@media (max-width: 480px) {
	.ldqls-share-wrap {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.ldqls-share-wrap.ldqls-preview-visible.ldqls-hidden {
		display: flex;
	}

	.ldqls-share-button,
	.ldqls-cert-button {
		width: 100%;
		justify-content: center;
	}
}
