.losst-share-container {
	margin: 20px 0;
	position: relative;
	border: 1px solid #ff9950;
	border-radius: 8px;
	background-color: transparent;
	max-width: 100%;
	box-sizing: border-box;
}

.losst-share-label {
	position: absolute;
	top: -12px;
	left: 15px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: #fff;
	padding: 0 8px;
	z-index: 1;
}

.losst-share-content {
	padding: 20px 15px 15px 20px;
	border-radius: 0 0 8px 8px;
}

.losst-share-actions {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(4px, 1.5vw, 10px);
	margin: 0;
	padding: 0;
	width: 100%;
}

.losst-share-item {
	margin: 0;
	flex: 1 1 64px;
	min-width: 64px;
}

.losst-share-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding: 0;
	background: #ff9950;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	box-sizing: border-box;
	position: relative;
	overflow: visible;
}

.losst-share-action:hover {
	color: #fff;
	background-color: var(--contrast);
}
.losst-share-action:active, .losst-share-action:focus {
	color: #fff;
}

.losst-share-action--copy::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(4px);
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--contrast);
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 2;
}

.losst-share-action--copy[data-tooltip-visible="true"]::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.losst-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: currentColor;
}

.losst-share-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

@media screen and (max-width: 768px) {
	.losst-share-container {
		margin: 15px 0;
		border-radius: 6px;
	}

	.losst-share-label {
		font-size: 11px;
		top: -12px;
	}

	.losst-share-content {
		padding: 18px 12px 18px 12px;
	}

	.losst-share-actions {
		gap: clamp(4px, 1.25vw, 8px);
	}
}

@media screen and (max-width: 480px) {
	.losst-share-container {
		margin: 10px 0;
	}

	.losst-share-label {
		font-size: 10px;
		left: 12px;
		top: -12px;
	}

	.losst-share-content {
		padding: 15px 10px 10px 20px;
	}
}

@media (prefers-color-scheme: dark) {
	.losst-share-label {
		color: #aaa;
		background-color: #202124;
	}

	.losst-share-action {
    	background: #cc7a44;
    }
    .losst-share-action:hover {
        background: #ad6637;
    }

    .losst-share-action--copy::after {
        background: #ad6637;
    }
}

@media print {
	.losst-share-container {
		display: none;
	}
}
