.pss-share {
	--pss-fab-side: 20px;
	--pss-fab-bottom: 88px;
	--pss-fab-size: 64px;
	--pss-panel-gap: 16px;
	--pss-menu-width: min(276px, calc(100vw - 52px));
	--pss-feedback-width: min(280px, calc(100vw - 32px));
	position: fixed;
	z-index: 9999;
	margin: 0;
	padding: 0;
	inset: auto;
}

.pss-share--bottom-right,
.pss-share--bottom-right-raised {
	right: max(16px, var(--pss-fab-side));
	bottom: calc(var(--pss-fab-bottom) + env(safe-area-inset-bottom, 0px));
}

.pss-share--bottom-left {
	left: max(16px, var(--pss-fab-side));
	bottom: calc(var(--pss-fab-bottom) + env(safe-area-inset-bottom, 0px));
}

.pss-share--bottom-center {
	left: 50%;
	bottom: calc(var(--pss-fab-bottom) + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
}

.pss-share--right-middle {
	top: 50%;
	right: max(16px, var(--pss-fab-side));
	transform: translateY(-50%);
}

.pss-share__overlay {
	position: fixed;
	inset: 0;
	z-index: 0;
	border: 0;
	background: var(--pss-overlay-color, rgba(8, 11, 18, 0.2));
	opacity: 0;
	pointer-events: none;
	backdrop-filter: blur(2px);
	transition: opacity 0.22s ease;
}

.pss-share.is-open .pss-share__overlay {
	opacity: 1;
	pointer-events: auto;
}

.pss-share__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: max-content;
	gap: 0.95rem;
}

.pss-share--bottom-left .pss-share__inner {
	align-items: flex-start;
}

.pss-share--bottom-center .pss-share__inner {
	align-items: center;
}

.pss-share--right-middle .pss-share__inner {
	flex-direction: row-reverse;
	align-items: center;
}

.pss-share__feedback {
	position: absolute;
	right: 0;
	width: var(--pss-feedback-width);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	background: linear-gradient(180deg, var(--pss-menu-surface-start, #141a25), var(--pss-menu-surface-end, #0c1019));
	backdrop-filter: blur(18px);
	box-shadow: 0 20px 46px rgba(8, 11, 18, 0.36);
}

.pss-share__feedback {
	bottom: calc(100% + var(--pss-panel-gap));
	padding: 0.95rem;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.pss-share.has-feedback .pss-share__feedback {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.pss-share__menu {
	position: absolute;
	right: 0;
	display: flex;
	justify-content: flex-end;
	bottom: calc(100% + var(--pss-panel-gap));
	width: fit-content;
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	filter: none;
	opacity: 0;
	overflow: visible;
	pointer-events: none;
	transform: translateY(14px) scale(0.96);
	transform-origin: bottom right;
	transition: opacity 0.24s ease, transform 0.24s ease;
}

.pss-share.is-open .pss-share__menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.pss-share--bottom-left .pss-share__feedback,
.pss-share--bottom-left .pss-share__menu {
	left: 0;
	right: auto;
	transform-origin: bottom left;
}

.pss-share--bottom-left .pss-share__menu {
	justify-content: flex-start;
}

.pss-share--bottom-center .pss-share__feedback,
.pss-share--bottom-center .pss-share__menu {
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(10px) scale(0.98);
	transform-origin: bottom center;
}

.pss-share--bottom-center.is-open .pss-share__menu {
	transform: translateX(-50%) translateY(0) scale(1);
}

.pss-share--bottom-center.has-feedback .pss-share__feedback {
	transform: translateX(-50%) translateY(0) scale(1);
}

.pss-share--right-middle .pss-share__feedback,
.pss-share--right-middle .pss-share__menu {
	top: 50%;
	right: calc(100% + var(--pss-panel-gap));
	bottom: auto;
	transform: translateX(12px) translateY(-50%) scale(0.96);
	transform-origin: center right;
}

.pss-share--right-middle.is-open .pss-share__menu,
.pss-share--right-middle.has-feedback .pss-share__feedback {
	transform: translateX(0) translateY(-50%) scale(1);
}

.pss-share__menu-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.65rem;
	width: max-content;
	max-height: none;
	padding: 0;
	overflow: visible;
	overscroll-behavior: auto;
	scrollbar-width: auto;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	filter: none;
}

.pss-share__menu-actions::-webkit-scrollbar {
	display: none;
}

.pss-share--bottom-left .pss-share__menu-actions {
	align-items: flex-start;
}

.pss-share--bottom-center .pss-share__menu-actions {
	align-items: center;
}

.pss-share__menu-action {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	column-gap: 0.85rem;
	width: clamp(196px, 54vw, var(--pss-menu-width));
	max-width: var(--pss-menu-width);
	min-height: 52px;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: linear-gradient(180deg, var(--pss-menu-surface-start, #141a25), var(--pss-menu-surface-end, #0c1019));
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: 0 16px 36px rgba(8, 11, 18, 0.26);
	color: var(--pss-menu-text-color, #ffffff);
	text-align: left;
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		background 0.18s ease,
		border-color 0.18s ease;
	transition-delay: calc(var(--pss-item-index, 0) * 35ms);
}

.pss-share.is-open .pss-share__menu-action {
	opacity: 1;
	transform: translateY(0);
}

.pss-share__menu-action:hover,
.pss-share__menu-action:focus {
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 18px 42px rgba(8, 11, 18, 0.3);
	filter: brightness(1.08) saturate(1.02);
}

.pss-share__menu-action[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.pss-share__menu-action--close {
	color: var(--pss-menu-text-color, #ffffff);
}

.pss-share__menu-action-icon {
	display: inline-flex;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--pss-menu-icon-bg, rgba(255, 255, 255, 0.08));
	color: var(--pss-menu-icon-color, #ffcfb7);
}

.pss-share__menu-action-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.pss-share__menu-glyph {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.pss-share__menu-action-text {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
	text-align: left;
}

.pss-share__feedback-message {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--pss-menu-text-color, #ffffff);
}

.pss-share__feedback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.8rem;
}

.pss-share__feedback-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--pss-menu-icon-color, #ffcfb7);
	cursor: pointer;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pss-share__feedback-action:hover,
.pss-share__feedback-action:focus {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.18);
	color: #ffe2d4;
}

.pss-share[data-feedback-tone="success"] .pss-share__feedback {
	border-color: rgba(76, 211, 168, 0.32);
}

.pss-share[data-feedback-tone="warning"] .pss-share__feedback {
	border-color: rgba(255, 207, 144, 0.28);
}

.pss-share[data-feedback-tone="error"] .pss-share__feedback {
	border-color: rgba(255, 142, 142, 0.32);
}

.pss-share__button {
	position: relative;
	display: inline-flex;
	width: var(--pss-fab-size);
	height: var(--pss-fab-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 28% 24%, var(--pss-fab-gradient-start, #ffbc7c), var(--pss-fab-gradient-mid, #ff7842) 42%, var(--pss-fab-gradient-end, #0f131d) 100%);
	color: var(--pss-fab-icon-color, #ffffff);
	cursor: pointer;
	box-shadow: 0 16px 34px rgba(15, 19, 29, 0.34), 0 4px 14px rgba(255, 120, 66, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.pss-share__button::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: 50%;
	background: linear-gradient(160deg, rgba(11, 15, 24, 0.16), rgba(11, 15, 24, 0.48));
}

.pss-share__button-label {
	display: none;
}

.pss-share--button-visual-icon-with-text .pss-share__button {
	display: inline-grid;
	grid-template-columns: minmax(88px, 1fr);
	grid-template-rows: max-content max-content;
	align-items: center;
	justify-items: center;
	box-sizing: border-box;
	width: min(118px, calc(100vw - 28px));
	min-height: clamp(108px, calc(var(--pss-fab-size) + 54px), 136px);
	padding: 0.95rem 0.72rem 0.82rem;
	row-gap: 0.58rem;
	border-radius: 28px;
	overflow: hidden;
}

.pss-share--button-visual-icon-with-text .pss-share__button::before {
	border-radius: inherit;
}

.pss-share--button-visual-icon-with-text .pss-share__button-icon {
	position: relative;
	grid-row: 1;
}

.pss-share--button-visual-icon-with-text .pss-share__button-label {
	position: relative;
	z-index: 1;
	display: -webkit-box;
	grid-row: 2;
	width: min(100%, 12.5ch);
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	text-align: center;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.14;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	max-height: calc(2 * 1.14em);
}

.pss-share__button:hover,
.pss-share__button:focus {
	transform: translateY(-2px);
	box-shadow: 0 20px 38px rgba(15, 19, 29, 0.4), 0 10px 20px rgba(255, 120, 66, 0.28);
	filter: saturate(1.04);
}

.pss-share__button:active {
	transform: scale(0.95);
}

.pss-share__button[disabled] {
	opacity: 0.76;
	cursor: wait;
	filter: saturate(0.88);
}

.pss-share__button-icon {
	position: absolute;
	z-index: 1;
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pss-share__button-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.pss-share__button-icon--close {
	opacity: 0;
	transform: scale(0.72) rotate(-45deg);
}

.pss-share.is-open .pss-share__button-icon--share {
	opacity: 0;
	transform: scale(0.72) rotate(45deg);
}

.pss-share.is-open .pss-share__button-icon--close {
	opacity: 1;
	transform: scale(1) rotate(0);
}

.pss-share__button.is-loading .pss-share__button-icon {
	opacity: 0;
	transform: scale(0.72);
}

.pss-share__button.is-loading::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 22px;
	height: 22px;
	border: 2.5px solid rgba(255, 255, 255, 0.26);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pss-spin 0.72s linear infinite;
}

.pss-u-screen-reader {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pss-block-placeholder {
	padding: 1rem 1.2rem;
	border: 1px dashed rgba(17, 24, 39, 0.16);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 120, 66, 0.08), rgba(17, 24, 39, 0.02));
}

@media (max-width: 640px) {
	.pss-share {
		--pss-fab-side: 16px;
		--pss-fab-size: 60px;
		--pss-panel-gap: 12px;
		--pss-menu-width: min(268px, calc(100vw - 84px));
		--pss-feedback-width: min(252px, calc(100vw - 24px));
	}

	.pss-share__menu-actions {
		gap: 0.55rem;
		max-height: none;
		overflow: visible;
	}

	.pss-share__menu-action {
		grid-template-columns: 32px minmax(0, 1fr);
		width: min(var(--pss-menu-width), calc(100vw - 84px));
		min-height: 50px;
		padding: 0.74rem 0.84rem;
		align-items: start;
	}

	.pss-share--button-visual-icon-with-text .pss-share__button {
		width: min(112px, calc(100vw - 24px));
		min-height: 122px;
		padding: 0.82rem 0.64rem 0.72rem;
		row-gap: 0.5rem;
	}

	.pss-share--button-visual-icon-with-text .pss-share__button-label {
		width: min(100%, 11.8ch);
		font-size: 0.84rem;
	}

	.pss-share__menu-action-icon {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}

	.pss-share__menu-action-text {
		font-size: 0.88rem;
		line-height: 1.24;
	}

	.pss-share--right-middle .pss-share__feedback,
	.pss-share--right-middle .pss-share__menu {
		top: auto;
		right: 0;
		bottom: calc(100% + var(--pss-panel-gap));
		transform: translateY(10px) scale(0.98);
		transform-origin: bottom right;
	}

	.pss-share--right-middle.is-open .pss-share__menu,
	.pss-share--right-middle.has-feedback .pss-share__feedback {
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 820px), (max-height: 760px) {
	.pss-share--right-middle {
		top: auto;
		right: max(16px, var(--pss-fab-side));
		bottom: calc(var(--pss-fab-bottom) + env(safe-area-inset-bottom, 0px));
		transform: none;
	}

	.pss-share--right-middle .pss-share__inner {
		flex-direction: column;
		align-items: flex-end;
	}

	.pss-share--right-middle .pss-share__feedback,
	.pss-share--right-middle .pss-share__menu {
		top: auto;
		right: 0;
		bottom: calc(100% + var(--pss-panel-gap));
		transform: translateY(10px) scale(0.98);
		transform-origin: bottom right;
	}

	.pss-share--right-middle.is-open .pss-share__menu,
	.pss-share--right-middle.has-feedback .pss-share__feedback {
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 420px) {
	.pss-share {
		--pss-menu-width: min(248px, calc(100vw - 68px));
	}

	.pss-share__menu-action {
		width: min(var(--pss-menu-width), calc(100vw - 68px));
	}

	.pss-share--button-visual-icon-with-text .pss-share__button {
		width: min(106px, calc(100vw - 22px));
		min-height: 116px;
		padding: 0.76rem 0.54rem 0.66rem;
	}

	.pss-share--button-visual-icon-with-text .pss-share__button-label {
		width: min(100%, 11.2ch);
		font-size: 0.8rem;
	}
}

@media (max-height: 680px) {
	.pss-share__menu-actions {
		max-height: none;
		overflow: visible;
	}
}

@keyframes pss-spin {
	to {
		transform: rotate(360deg);
	}
}
