.woocommerce-product-gallery {
	--rankup-share-btn-offset: var(--pdpbtn-spacing, 20px);
}

.woocommerce-product-gallery button.rankup-galleryShareBtn {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	color: #0f1111;
	cursor: pointer;
	display: inline-flex;
	float: none;
	font: inherit;
	height: 42px;
	inset-inline-end: var(--rankup-share-btn-offset);
	justify-content: center;
	line-height: 1;
	margin: 0;
	max-width: none;
	min-height: 0;
	min-width: 0;
	mix-blend-mode: normal;
	opacity: 1;
	padding: 0;
	position: absolute;
	bottom: 18px;
	text-decoration: none;
	text-indent: 0;
	transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
	vertical-align: middle;
	visibility: visible;
	width: 42px;
	z-index: 4;
}

.woocommerce-product-gallery button.rankup-galleryShareBtn:hover,
.woocommerce-product-gallery button.rankup-galleryShareBtn:focus-visible {
	transform: translateY(-1px);
}

.woocommerce-product-gallery button.rankup-galleryShareBtn:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

.woocommerce-product-gallery button.rankup-galleryShareBtn svg {
	display: block;
	height: 20px;
	width: 20px;
}

.woocommerce-product-gallery button.rankup-galleryShareBtn .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.rankup-sharePopover {
	background: #fff;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 0;
	box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
	min-width: 186px;
	max-width: 186px;
	opacity: 0;
	padding: 8px;
	position: fixed;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 9999;
}

.rankup-sharePopover-head {
	display: none;
}

.rankup-sharePopover-title {
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0;
	text-transform: uppercase;
}

.rankup-sharePopover.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.rankup-sharePopover-actions {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.rankup-sharePopover button.rankup-sharePopover-action {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 0;
	color: #111827;
	cursor: pointer;
	display: flex;
	float: none;
	font: inherit;
	font-size: 13px;
	gap: 10px;
	justify-content: flex-start;
	align-content: flex-start;
	line-height: 1.2;
	margin: 0;
	max-width: none;
	min-height: 0;
	min-width: 0;
	padding: 9px 10px;
	text-align: left;
	text-decoration: none;
	text-indent: 0;
	vertical-align: middle;
	width: 100%;
}

.rankup-sharePopover button.rankup-sharePopover-action:hover,
.rankup-sharePopover button.rankup-sharePopover-action:focus-visible {
	background: #f8fafc;
}

.rankup-sharePopover button.rankup-sharePopover-action:focus-visible {
	outline: none;
}

.rankup-sharePopover-icon {
	align-items: center;
	background: #f1f5f9;
	color: #334155;
	display: inline-flex;
	flex: 0 0 26px;
	height: 26px;
	justify-content: center;
	width: 26px;
}

.rankup-sharePopover-icon svg {
	display: block;
	fill: currentColor;
	height: 13px;
	width: 13px;
}

.rankup-sharePopover-label {
	display: block;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
}

.rankup-shareFeedback {
	color: #0f766e;
	font-size: 11px;
	font-weight: 600;
	padding: 8px 2px 2px;
}

.rankup-shareSheetOverlay {
	background: rgba(15, 23, 42, 0.52);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.2s ease;
	z-index: 9998;
}

.rankup-shareSheetOverlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.rankup-shareSheet {
	background: #fff;
	bottom: 0;
	box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.16);
	left: 0;
	padding: 14px 16px 24px;
	position: fixed;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.24s ease;
	z-index: 9999;
}

.rankup-shareSheet.is-open {
	transform: translateY(0);
}

.rankup-shareSheet-handle {
	background: #d1d5db;
	height: 5px;
	margin: 0 auto 14px;
	width: 54px;
}

.rankup-shareSheet-head {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.rankup-shareSheet-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.rankup-shareSheet-close {
	background: transparent;
	border: 0;
	color: #111827;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0 2px;
}

.rankup-shareSheet-card {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	display: grid;
	gap: 14px;
	grid-template-columns: 96px 1fr;
	margin-bottom: 16px;
	padding: 12px;
}

.rankup-shareSheet-card img {
	display: block;
	height: 96px;
	object-fit: cover;
	width: 96px;
}

.rankup-shareSheet-cardTitle {
	color: #111827;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
}

.rankup-shareSheet-cardSku {
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	margin: 6px 0 0;
}

.rankup-shareSheet-actions {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rankup-shareSheet-action {
	align-items: center;
	background: transparent;
	border: 0;
	color: #111827;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-size: 0;
	gap: 0;
	line-height: 1.2;
	padding: 0;
	text-align: center;
}

.rankup-shareSheet-actionIcon {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
	color: #0f172a;
	display: inline-flex;
	height: 50px;
	justify-content: center;
	width: 50px;
}

.rankup-shareSheet-actionIcon svg {
	display: block;
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.rankup-shareSheet-actionIcon.is-whatsapp,
.rankup-shareSheet-actionIcon.is-facebook,
.rankup-shareSheet-actionIcon.is-instagram,
.rankup-shareSheet-actionIcon.is-copy,
.rankup-shareSheet-actionIcon.is-more {
	background: #fff;
	color: #111827;
	border-color: rgba(15, 23, 42, 0.12);
}

body.rankup-shareOpen {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.woocommerce-product-gallery button.rankup-galleryShareBtn {
		background: rgba(255, 255, 255, 0.98);
		color: #111827;
		bottom: 18px;
		height: 42px;
		top: auto;
		width: 42px;
	}

	.rankup-galleryShareBtn svg {
		height: 20px;
		width: 20px;
	}

	.rankup-shareSheet-card {
		grid-template-columns: 78px 1fr;
	}

	.rankup-shareSheet-card img {
		height: 78px;
		width: 78px;
	}
}

@media (min-width: 1025px) {
	.rankup-shareSheet,
	.rankup-shareSheetOverlay {
		display: none;
	}
}

@media (max-width: 1024px) {
	.rankup-sharePopover {
		display: none;
	}
}
