/**
 * D2G Share Buttons Widget Styles
 */

/* ==========================================================================
   Design 1: Sidebar Card (Floating Share)
   ========================================================================== */
.d2g-share-layout-sidebar_card {
	background-color: #F8F7F4;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #EADCC8;
	text-align: center;
}

.d2g-share-layout-sidebar_card .d2g-share-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #0B3D36;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 16px 0;
}

.d2g-share-layout-sidebar_card .d2g-share-buttons-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.d2g-share-layout-sidebar_card .d2g-share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #ffffff;
	color: #0B3D36;
	border: 1px solid #EADCC8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	font-size: 15px;
	cursor: pointer;
	position: relative;
}

.d2g-share-layout-sidebar_card .d2g-share-btn:hover,
.d2g-share-layout-sidebar_card .d2g-share-btn:focus {
	background-color: #C89B5B;
	color: #ffffff;
	border-color: #C89B5B;
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.d2g-share-layout-sidebar_card .d2g-share-btn-text {
	display: none;
}

/* ==========================================================================
   Design 2: Content Bar (Post-Content Banner)
   ========================================================================== */
.d2g-share-layout-content_bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background-color: #ffffff;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #EADCC8;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	margin-bottom: 32px;
}

@media (min-width: 640px) {
	.d2g-share-layout-content_bar {
		flex-direction: row;
	}
}

.d2g-share-layout-content_bar .d2g-share-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #0B3D36;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

.d2g-share-layout-content_bar .d2g-share-buttons-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.d2g-share-layout-content_bar .d2g-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 500;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
	border: 1px solid transparent;
	position: relative;
}

/* Default brand styling for Design 2 */
.d2g-share-layout-content_bar .d2g-share-btn-linkedin {
	background-color: #0A66C2;
	color: #ffffff;
}
.d2g-share-layout-content_bar .d2g-share-btn-linkedin:hover {
	background-color: #084e96;
	color: #ffffff;
}

.d2g-share-layout-content_bar .d2g-share-btn-twitter,
.d2g-share-layout-content_bar .d2g-share-btn-x {
	background-color: #000000;
	color: #ffffff;
}
.d2g-share-layout-content_bar .d2g-share-btn-twitter:hover,
.d2g-share-layout-content_bar .d2g-share-btn-x:hover {
	background-color: #222222;
	color: #ffffff;
}

.d2g-share-layout-content_bar .d2g-share-btn-copy {
	background-color: #F8F7F4;
	border-color: #EADCC8;
	color: #0B3D36;
	font-weight: 700;
}
.d2g-share-layout-content_bar .d2g-share-btn-copy:hover {
	border-color: #C89B5B;
	color: #0B3D36;
}
.d2g-share-layout-content_bar .d2g-share-btn-copy .d2g-share-icon {
	color: #C89B5B;
}

/* WhatsApp */
.d2g-share-btn-whatsapp {
	background-color: #25D366;
	color: #ffffff;
}
.d2g-share-btn-whatsapp:hover {
	background-color: #1da851;
	color: #ffffff;
}

/* Facebook */
.d2g-share-btn-facebook {
	background-color: #1877F2;
	color: #ffffff;
}
.d2g-share-btn-facebook:hover {
	background-color: #125ec2;
	color: #ffffff;
}

/* Email */
.d2g-share-btn-email {
	background-color: #5F7F6E;
	color: #ffffff;
}
.d2g-share-btn-email:hover {
	background-color: #0B3D36;
	color: #ffffff;
}

/* Common button icon handling */
.d2g-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.d2g-share-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Copy Link Tooltip Feedback */
.d2g-share-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background-color: #0B3D36;
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	pointer-events: none;
	z-index: 50;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.d2g-share-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 4px;
	border-style: solid;
	border-color: #0B3D36 transparent transparent transparent;
}

.d2g-share-btn.d2g-copied .d2g-share-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
