/* apc/share-buttons */

.apc-share {
	--apc-share-gap: 14px;
	--apc-share-radius: 6px;
	--apc-share-border: currentColor;
	--apc-share-hover-bg: rgba(0, 0, 0, 0.05);

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--apc-share-gap);
}

.apc-share__btn {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid var(--apc-share-border);
	border-radius: var(--apc-share-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.apc-share__btn:hover {
	background-color: var(--apc-share-hover-bg);
	color: inherit;
	text-decoration: none;
}

.apc-share__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.apc-share__icon {
	display: inline-flex;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

.apc-share__label {
	min-width: 0;
}

.apc-share__arrow {
	display: inline-flex;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.apc-share__btn:hover .apc-share__arrow {
	transform: translate(2px, -2px);
}

.apc-share__icon svg,
.apc-share__arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 600px) {
	.apc-share {
		grid-template-columns: 1fr;
		--apc-share-gap: 10px;
	}
}

/* Mobile native-share hint ("Teksts nokopēts…"), appended to <body> by frontend.js */
.apc-share-hint {
	position: fixed;
	top: calc(16px + env(safe-area-inset-top));
	left: 16px;
	right: 16px;
	z-index: 100000;
	padding: 12px 16px;
	border-radius: 10px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.apc-share-hint.is-visible {
	opacity: 1;
	transform: translateY(0);
}