.ppb-share-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.ppb-share-controls__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ppb-share-controls__actions .ppb-button {
	gap: 8px;
}

.ppb-share-controls__actions .ppb-icon {
	width: 17px;
	height: 17px;
}

.ppb-share-controls__status {
	min-height: 1.35em;
	color: var(--ppb-success);
	font-size: 14px;
	font-weight: 750;
}

.ppb-share-controls--compact .ppb-button,
.ppb-share-controls--menu .ppb-button {
	min-height: 36px;
	padding: 7px 12px;
	font-size: 14px;
}

.ppb-share-controls--menu {
	min-width: 245px;
	padding: 12px;
}

.ppb-share-menu {
	position: relative;
}

.ppb-share-menu > summary {
	cursor: pointer;
	list-style: none;
}

.ppb-share-menu > summary::-webkit-details-marker {
	display: none;
}

.ppb-share-menu > div {
	position: absolute;
	right: 0;
	z-index: 20;
	margin-top: 8px;
	border: 1px solid var(--ppb-border);
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-surface-background);
	box-shadow: var(--ppb-shadow);
}

.ppb-photo-card .ppb-share-menu {
	position: static;
}

.ppb-photo-card .ppb-share-menu[open]::before {
	position: absolute;
	inset: 0;
	z-index: 24;
	background: rgba(23, 32, 27, 0.16);
	content: '';
}

.ppb-photo-card .ppb-share-menu > div {
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 25;
	margin: 0;
	border-width: 1px 0 0;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -16px 38px rgba(23, 32, 27, 0.2);
	animation: ppb-share-drawer-in 180ms ease-out;
}

.ppb-photo-card .ppb-share-controls--menu {
	min-width: 0;
	padding: 11px;
}

.ppb-photo-card .ppb-share-controls--menu .ppb-share-controls__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	gap: 7px;
}

.ppb-photo-card .ppb-share-controls--menu .ppb-button {
	min-width: 0;
	min-height: 54px;
	flex-direction: column;
	gap: 4px;
	padding: 6px 5px;
	font-size: 14px;
	line-height: 1.15;
	text-align: center;
}

.ppb-photo-card .ppb-share-controls--menu .ppb-icon {
	width: 16px;
	height: 16px;
}

.ppb-photo-card .ppb-share-controls--menu .ppb-share-controls__status {
	width: 100%;
	min-height: 0;
	text-align: center;
}

.ppb-photo-card .ppb-share-controls--menu .ppb-share-controls__status:not(:empty) {
	padding-top: 7px;
}

@keyframes ppb-share-drawer-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ppb-share-dialog {
	width: min(92vw, 460px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 24px;
	border: 1px solid var(--ppb-border);
	border-radius: var(--ppb-radius-large);
	background: var(--ppb-surface-background);
	color: var(--ppb-primary-text);
	box-shadow: var(--ppb-shadow);
}

.ppb-share-dialog::backdrop {
	background: rgba(25, 21, 18, 0.55);
}

.ppb-share-dialog__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.ppb-share-dialog__heading h2 {
	margin: 5px 0 0;
	color: var(--ppb-primary-text);
}

.ppb-share-dialog__heading .ppb-kicker {
	color: var(--ppb-accent);
}

.ppb-share-controls .ppb-share-dialog > p {
	color: var(--ppb-muted-text);
}

.ppb-share-dialog__qr {
	width: min(100%, 320px);
	margin: 18px auto;
	padding: 10px;
	border: 1px solid var(--ppb-border);
	border-radius: var(--ppb-radius-medium);
	background: #fff;
}

.ppb-share-dialog__qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.ppb-share-dialog .ppb-share-dialog__url {
	display: block;
	overflow-wrap: anywhere;
	color: var(--ppb-primary-action);
	font-size: 14px;
	text-align: center;
}

.ppb-share-dialog__actions {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.ppb-share-dialog__actions .ppb-button {
	border-color: var(--ppb-primary-action);
	background: var(--ppb-primary-action);
	color: var(--ppb-white) !important;
}

.ppb-share-dialog__actions .ppb-button:hover {
	border-color: var(--ppb-primary-action-hover);
	background: var(--ppb-primary-action-hover);
	color: var(--ppb-white) !important;
}

.ppb-share-controls--dashboard {
	display: grid;
	align-content: center;
	width: 100%;
}

.ppb-share-controls--dashboard .ppb-share-controls__actions {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
}

.ppb-share-controls--dashboard .ppb-share-controls__actions .ppb-button {
	justify-content: flex-start;
	width: 100%;
	min-height: 42px;
	padding-inline: 15px;
}

.ppb-shop-overview .ppb-share-controls--dashboard .ppb-share-controls__actions .ppb-button {
	min-height: 42px;
	flex-direction: row;
	gap: 10px;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--ppb-shop-background, #193c31);
	border-radius: 0;
}

.ppb-shop-overview .ppb-share-controls--dashboard .ppb-share-controls__actions {
	grid-template-columns: 1fr;
	gap: 0;
}

.ppb-editor-share {
	flex-basis: 100%;
}

@media (max-width: 599px) {
	.ppb-share-controls--dashboard .ppb-share-controls__actions,
	.ppb-share-controls--editor .ppb-share-controls__actions {
		width: 100%;
	}

	.ppb-share-controls--dashboard .ppb-share-controls__actions .ppb-button,
	.ppb-share-controls--editor .ppb-share-controls__actions .ppb-button {
		flex: 1 1 auto;
	}

	.ppb-share-menu > div {
		right: auto;
		left: 0;
	}

	.ppb-photo-card .ppb-share-menu > div {
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppb-photo-card .ppb-share-menu > div {
		animation: none;
	}
}
