/* Share control on seva and cow detail pages. */

.ms-detail-share {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 248, 236, 0.94);
	color: #2c1810;
	font-family: Lato, sans-serif;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(20, 10, 6, 0.28);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.ms-detail-share svg {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ms-detail-share:focus-visible {
	outline: 2px solid #c5942a;
	outline-offset: 3px;
}

.ms-detail-share:active {
	transform: scale(0.97);
}

.ms-detail-share--photo {
	position: absolute;
	z-index: 4;
	top: 0.85rem;
	right: 0.85rem;
	backdrop-filter: blur(8px);
}

.ms-detail-share--inline,
.ms-detail-share--dock {
	background: #fff;
	box-shadow: none;
	border: 1px solid rgba(44, 24, 16, 0.14);
}

.ms-detail-share--inline {
	flex: 0 0 auto;
	margin-top: 0.2rem;
}

.ms-detail-share--dock {
	width: 2.75rem;
	padding: 0;
}

.ms-detail-share--dock .ms-detail-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ms-detail-share-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.ms-detail-share-menu {
	position: fixed;
	z-index: 1200;
	display: grid;
	gap: 0.35rem;
	min-width: 11.5rem;
	padding: 0.45rem;
	background: #fffdf8;
	border: 1px solid #e8ddd4;
	border-radius: 1rem;
	box-shadow: 0 16px 40px rgba(44, 24, 16, 0.18);
}

.ms-detail-share-menu[hidden] {
	display: none !important;
}

.ms-detail-share-menu a,
.ms-detail-share-menu button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border: 0;
	border-radius: 0.75rem;
	background: transparent;
	color: #2c1810;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ms-detail-share-menu a:active,
.ms-detail-share-menu button:active,
.ms-detail-share-menu a:focus-visible,
.ms-detail-share-menu button:focus-visible {
	background: #f5ede3;
	outline: none;
}

.ms-detail-share-menu__status {
	margin: 0;
	padding: 0.15rem 0.85rem 0.45rem;
	color: #5c4a3a;
	font-size: 0.8rem;
	font-weight: 700;
}

@media (min-width: 981px) {
	.ms-detail-share--photo {
		display: none;
	}
}

@media (max-width: 980px) {
	.ms-detail-share--inline {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-detail-share:active {
		transform: none;
	}
}
