/* Share button: sits beside the wishlist heart and borrows the theme's button classes. */
.product-featured-icons--single-product {
	display: flex;
	gap: 10px;
}

/* Always after the heart, whichever runs first. */
.ype-share-button {
	order: 2;
	border-radius: 100px;
}

.ype-share-button .ype-icon {
	width: 18px;
	height: 18px;
}

/* Share sheet: same design as the giveaway's. */
.ype-sheet {
	--ype-ink: #111;
	--ype-muted: #6b6b6b;
	--ype-soft: #f5f5f5;
	--ype-line: #e5e5e5;
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: inherit;
	color: var(--ype-ink);
}

.ype-sheet[hidden] {
	display: none !important;
}

.ype-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ype-sheet-panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
	border-radius: 16px 16px 0 0;
	transform: translateY(100%);
	transition: transform 0.22s ease;
	outline: none;
}

.ype-sheet.is-open .ype-sheet-backdrop {
	opacity: 1;
}

.ype-sheet.is-open .ype-sheet-panel {
	transform: none;
}

.ype-sheet-panel::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background: #d4d4d4;
	margin: -8px auto 14px;
}

.ype-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ype-sheet-head strong {
	font-size: 17px;
	font-weight: 600;
}

/* Themes style every <button>; these resets keep the sheet controls as designed. */
.ype-sheet .ype-sheet-x {
	width: 36px !important;
	height: 36px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--ype-soft) !important;
	color: var(--ype-ink) !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ype-sheet-link {
	display: flex;
	align-items: stretch;
	margin: 14px 0 22px;
	background: var(--ype-soft);
	border: 1.5px dashed #9a9a9a;
}

.ype-sheet-url {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px;
	font-size: 13px;
	color: var(--ype-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	align-self: center;
}

.ype-sheet .ype-sheet-link .ype-sheet-copy {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 16px !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	border: 0 !important;
	border-left: 1.5px dashed #9a9a9a !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--ype-ink) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 600;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}

.ype-sheet .ype-sheet-link .ype-sheet-copy:hover {
	background: var(--ype-ink) !important;
	color: #fff !important;
}

.ype-sheet .ype-sheet-copy em {
	font-style: normal;
}

.ype-sheet .ype-sheet-copy .ype-icon {
	width: 16px;
	height: 16px;
}

.ype-sheet-note {
	margin: -10px 0 18px;
	font-size: 13px;
	color: var(--ype-ink);
}

.ype-sheet-note[hidden] {
	display: none;
}

.ype-sheet-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px 8px;
}

.ype-sheet .ype-sheet-grid > a,
.ype-sheet .ype-sheet-grid > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 0 !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--ype-ink) !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.ype-sheet-grid [hidden] {
	display: none !important;
}

.ype-sheet-grid span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ype-soft);
	border: 1px solid var(--ype-line);
	transition: background 0.15s ease, color 0.15s ease;
}

.ype-sheet-grid > a:hover span,
.ype-sheet-grid > button:hover span {
	background: var(--ype-ink);
	color: #fff;
}

.ype-sheet-grid .ype-icon {
	width: 24px;
	height: 24px;
}

.ype-sheet a:focus-visible,
.ype-sheet button:focus-visible {
	outline: 2px solid var(--ype-ink);
	outline-offset: 3px;
}

html.ype-sheet-open {
	overflow: hidden;
}

@media (min-width: 640px) {
	.ype-sheet {
		align-items: center;
	}

	.ype-sheet-panel {
		border-radius: 12px;
		padding: 24px;
		transform: translateY(16px);
		opacity: 0;
		transition: transform 0.22s ease, opacity 0.22s ease;
	}

	.ype-sheet.is-open .ype-sheet-panel {
		opacity: 1;
	}

	.ype-sheet-panel::before {
		display: none;
	}

	.ype-sheet-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}
