/* WP Short Links — frontend shortcode styles */

.wp-short-link {
	margin: 1.25em 0;
	max-width: 520px;
}

.wp-short-link__label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.wp-short-link__row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.wp-short-link__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid currentColor;
	border-radius: 4px;
	box-sizing: border-box;
}

.wp-short-link__input:focus {
	border-color: currentColor;
	outline: 1px solid currentColor;
	outline-offset: -1px;
}

.wp-short-link__copy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	padding: 0;
	cursor: pointer;
	border: 1px solid #2271b1;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	line-height: 1;
}

.wp-short-link__copy:hover,
.wp-short-link__copy:focus {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.wp-short-link__copy:active {
	background: #0a4b78;
}

.wp-short-link__icon {
	display: block;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.wp-short-link__copied {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #00a32a;
}

.wp-short-link__copied[hidden] {
	display: none;
}

/* Mobile — keep icon button compact */
@media (max-width: 480px) {
	.wp-short-link__row {
		gap: 6px;
	}
}
