/**
 * Share Card widget – button and modal.
 */
.trinity-dbc-share-wrap {
	margin: 0;
}
.trinity-dbc-share-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.trinity-dbc-share-trigger .trinity-dbc-share-trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.trinity-dbc-share-trigger .trinity-dbc-share-trigger-icon svg {
	width: 1em;
	height: 1em;
}
.trinity-dbc-share-trigger-text {
	display: inline-block;
}

/* Modal */
.trinity-dbc-share-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.trinity-dbc-share-modal[aria-hidden="true"],
.trinity-dbc-share-modal[hidden] {
	display: none !important;
}
.trinity-dbc-share-modal[aria-hidden="false"] {
	display: flex !important;
}
/* Popup animations */
.trinity-dbc-share-wrap.trinity-dbc-share-animation-fade .trinity-dbc-share-modal .trinity-dbc-share-overlay,
.trinity-dbc-share-wrap.trinity-dbc-share-animation-fade .trinity-dbc-share-modal .trinity-dbc-share-content {
	animation: trinity-dbc-share-fade-in 0.2s ease-out;
}
.trinity-dbc-share-wrap.trinity-dbc-share-animation-slide .trinity-dbc-share-modal .trinity-dbc-share-overlay {
	animation: trinity-dbc-share-fade-in 0.2s ease-out;
}
.trinity-dbc-share-wrap.trinity-dbc-share-animation-slide .trinity-dbc-share-modal .trinity-dbc-share-content {
	animation: trinity-dbc-share-slide-in 0.25s ease-out;
}
@keyframes trinity-dbc-share-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes trinity-dbc-share-slide-in {
	from { opacity: 0; transform: scale(0.95) translateY(-10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}
.trinity-dbc-share-modal {
	--trinity-share-overlay-opacity: 60;
}
.trinity-dbc-share-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, calc(var(--trinity-share-overlay-opacity, 60) / 100));
	cursor: pointer;
}
.trinity-dbc-share-hide-close .trinity-dbc-share-close {
	display: none !important;
}
.trinity-dbc-share-content {
	position: relative;
	width: 100%;
	max-width: 340px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 24px;
	box-sizing: border-box;
	--trinity-share-icon-size: 44px;
	--trinity-share-icon-gap: 8px;
	--trinity-share-icon-bg: #f1f5f9;
	--trinity-share-icon-color: #1e293b;
	--trinity-share-icon-hover-bg: #e2e8f0;
	--trinity-share-icon-hover-color: #0f172a;
}
.trinity-dbc-share-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}
.trinity-dbc-share-close:hover {
	color: #1e293b;
}
.trinity-dbc-share-close svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.trinity-dbc-share-title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
}
.trinity-dbc-share-qr {
	text-align: center;
	margin-bottom: 16px;
}
.trinity-dbc-share-qr img {
	display: block;
	margin: 0 auto;
	width: 200px;
	height: 200px;
	object-fit: contain;
}
.trinity-dbc-share-hint {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: #64748b;
	text-align: center;
}
.trinity-dbc-share-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--trinity-share-icon-gap, 8px);
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.trinity-dbc-share-item {
	display: inline-flex;
}
.trinity-dbc-share-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: var(--trinity-share-icon-size, 44px);
	height: var(--trinity-share-icon-size, 44px);
	padding: 0 10px;
	font-size: 0.875rem;
	line-height: 1.3;
	text-decoration: none;
	color: var(--trinity-share-icon-color);
	background: var(--trinity-share-icon-bg);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
}
.trinity-dbc-share-action:hover {
	background: var(--trinity-share-icon-hover-bg);
	color: var(--trinity-share-icon-hover-color);
}
.trinity-dbc-share-action i,
.trinity-dbc-share-action svg {
	flex-shrink: 0;
}
.trinity-dbc-share-action svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}
.trinity-dbc-share-action-label {
	white-space: nowrap;
}
a.trinity-dbc-share-action {
	box-sizing: border-box;
}

/* Shape: square, rounded, circle (applied via wrapper prefix_class) */
.trinity-dbc-share-shape-square .trinity-dbc-share-content .trinity-dbc-share-action {
	border-radius: 0;
}
.trinity-dbc-share-shape-rounded .trinity-dbc-share-content .trinity-dbc-share-action {
	border-radius: 6px;
}
.trinity-dbc-share-shape-circle .trinity-dbc-share-content .trinity-dbc-share-action {
	border-radius: 50%;
	padding: 0;
	min-width: var(--trinity-share-icon-size);
	width: var(--trinity-share-icon-size);
}
.trinity-dbc-share-shape-circle .trinity-dbc-share-content .trinity-dbc-share-action-label {
	display: none;
}

/* Official brand colors (when share_icon_color_mode = official) */
.trinity-dbc-share-color-official .trinity-dbc-share--copy {
	background: #64748b;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--copy:hover {
	background: #475569;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--email {
	background: #ea4335;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--email:hover {
	background: #d33426;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--sms {
	background: #22c55e;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--sms:hover {
	background: #16a34a;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--twitter {
	background: #000000;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--twitter:hover {
	background: #333333;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--facebook {
	background: #1877f2;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--facebook:hover {
	background: #166fe5;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--linkedin {
	background: #0a66c2;
	color: #fff;
}
.trinity-dbc-share-color-official .trinity-dbc-share--linkedin:hover {
	background: #004182;
	color: #fff;
}
