/**
 * WooCommerce Premium Share Button styles.
 */

.dbt-share-wrapper {
	display: inline-flex;
	position: relative;
	margin-left: 8px;
	vertical-align: middle;
}

.dbt-share-btn {
	background: #6A1948 !important;
	border: none;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	padding: 0;
	margin: 0;
	line-height: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dbt-share-btn:hover {
	background: #7A1D53 !important; /* Slightly lighter shade of #6A1948 for a clean hover effect */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.dbt-share-btn:active {
	transform: scale(0.94);
}

.dbt-share-btn:focus-visible {
	outline: 2px solid var(--dbt-bg, #5e1743);
	outline-offset: 2px;
}

.dbt-share-btn svg {
	display: block;
}

.dbt-share-dropdown {
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(8px) scale(0.96);
	pointer-events: none;
	position: absolute;
	bottom: 54px;
	left: 50%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 40px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
	padding: 8px 12px;
	gap: 10px;
	z-index: 99999;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dbt-share-dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
	pointer-events: auto;
}

.dbt-share-dropdown::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 11px;
	height: 11px;
	background: #fff;
	border-right: 1px solid #ececec;
	border-bottom: 1px solid #ececec;
}

.dbt-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	color: #fff !important;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	line-height: 0;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.dbt-share-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.dbt-share-icon:hover {
	transform: translateY(-2px) scale(1.08);
	filter: brightness(1.05);
}

.dbt-share-icon:active {
	transform: scale(0.94);
}

.dbt-whatsapp {
	background-color: #25d366;
}

.dbt-instagram {
	background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.dbt-facebook {
	background-color: #1877f2;
}

.dbt-link {
	background-color: #5b6470;
}

.dbt-link.is-copied {
	background-color: #25d366;
}

.dbt-icon-check {
	display: none;
}

.dbt-link.is-copied .dbt-icon-link {
	display: none;
}

.dbt-link.is-copied .dbt-icon-check {
	display: block;
}

.dbt-toast {
	position: absolute;
	bottom: 54px;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background: #1f2329;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}

.dbt-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
	.dbt-share-dropdown {
		padding: 9px 13px;
		gap: 12px;
	}

	.dbt-share-icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
	}

	.dbt-share-btn {
		width: 44px;
		height: 44px;
	}
}