.slm-short-links {
	--slm-accent: #315efb;
	--slm-ink: #172033;
	--slm-muted: #68738a;
	--slm-border: #e3e8f1;
	max-width: 100%;
	margin: 1.5rem 0;
	color: var(--slm-ink);
	font-family: inherit;
}

.slm-short-links > strong {
	display: block;
	margin-bottom: 0.8rem;
	font-size: 1rem;
	font-weight: 700;
}

.slm-short-links ul {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slm-short-links .slm-link-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

.slm-short-links .slm-qr-code {
	display: grid;
	place-items: center;
	width: 144px;
	height: 144px;
	padding: 8px;
	border: 1px solid var(--slm-border);
	border-radius: 10px;
	background: #fff;
	color: var(--slm-muted);
}

.slm-short-links .slm-qr-code svg {
	display: block;
	width: 100%;
	height: 100%;
}

.slm-short-links .slm-qr-code.slm-qr-error {
	font-size: 0.8rem;
}

.slm-short-links .slm-link-content {
	width: 100%;
	min-width: 0;
}

.slm-short-links .slm-link-item a {
	min-width: 0;
	color: var(--slm-accent);
	text-decoration: none;
}

.slm-short-links .slm-link-item a:hover {
	text-decoration: underline;
}

.slm-short-links .slm-link-item a span {
	display: block;
	overflow-wrap: anywhere;
}

.slm-short-links .slm-link-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.6rem;
}

.slm-short-links .slm-qr-download {
	font-size: 0.82rem;
}

.slm-short-links .slm-copy-link {
	flex: 0 0 auto;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--slm-border);
	border-radius: 8px;
	background: #fff;
	color: var(--slm-ink);
	font: inherit;
	font-size: 0.82rem;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.slm-short-links .slm-copy-link:hover {
	border-color: var(--slm-accent);
	color: var(--slm-accent);
}

.slm-short-links .slm-copy-link.is-copied {
	border-color: #18864b;
	background: #eaf7ef;
	color: #126b3a;
}

/* Modern card layout */
.slm-short-links.slm-theme-cards ul {
	gap: 0.7rem;
}

.slm-short-links.slm-theme-cards .slm-link-item {
	padding: 0.85rem 1rem;
	border: 1px solid var(--slm-border);
	border-radius: 12px;
	background: linear-gradient(135deg, #fff 0%, #f7f9ff 100%);
	box-shadow: 0 5px 18px rgb(29 53 100 / 6%);
}

/* Button layout */
.slm-short-links.slm-theme-buttons ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.slm-short-links.slm-theme-buttons .slm-link-item {
	align-items: center;
	width: 220px;
	max-width: 100%;
	padding: 0.8rem;
	border: 1px solid #d9e2ff;
	border-radius: 15px;
	background: #f1f5ff;
}

.slm-short-links.slm-theme-buttons .slm-link-item a {
	text-align: center;
}

.slm-short-links.slm-theme-buttons .slm-qr-code {
	width: 132px;
	height: 132px;
	border: 0;
}

.slm-short-links.slm-theme-buttons .slm-copy-link {
	border: 0;
	border-radius: 999px;
	background: var(--slm-accent);
	color: #fff;
}

.slm-short-links.slm-theme-buttons .slm-copy-link:hover {
	background: #234bd8;
	color: #fff;
}

.slm-short-links.slm-theme-buttons .slm-link-tools {
	justify-content: center;
}

/* Minimal layout */
.slm-short-links.slm-theme-minimal ul {
	gap: 0.35rem;
}

.slm-short-links.slm-theme-minimal .slm-link-item {
	align-items: flex-start;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--slm-border);
}

.slm-short-links.slm-theme-minimal .slm-qr-code {
	width: 112px;
	height: 112px;
	padding: 4px;
}

.slm-short-links.slm-theme-minimal .slm-copy-link {
	padding: 0.2rem 0.55rem;
	border-radius: 5px;
	background: transparent;
	color: var(--slm-muted);
}

@media (max-width: 480px) {
	.slm-short-links .slm-link-item {
		align-items: flex-start;
	}
	.slm-short-links .slm-copy-link {
		padding: 0.4rem 0.6rem;
	}
}
