.odi-share-pdf-wrap {
	--odi-brand-red: #D3212B;
	--odi-brand-dark: #2B2F33;
	--odi-brand-slate: #555D61;
	--odi-brand-gray: #E5E8EB;
	--odi-brand-soft: #F8F9FA;
}

.odi-share-pdf-wrap--sidebar {
	width: 100%;
}

.odi-share-pdf-wrap--mobile {
	display: none;
	width: 100%;
	margin-top: 14px;
}

.odi-share-pdf-card {
	background: var(--odi-brand-soft);
	border: 1px solid var(--odi-brand-gray);
	border-radius: 10px;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	text-align: center;
}

.odi-share-pdf-card .odi-pdf-actions {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	width: 100%;
}

.odi-share-pdf-card .odi-share-box,
.odi-share-pdf-card .odi-share-group {
	align-items: center;
	text-align: center;
}

.odi-share-pdf-card .odi-share-group-label {
	align-self: center;
	text-align: center;
	width: 100%;
}

.odi-share-pdf-card .odi-share-social-row {
	display: flex !important;
	justify-content: center !important;
	align-items: center;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.odi-share-pdf-card .odi-share-copy-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.odi-share-box {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.odi-share-box--sidebar {
	padding-top: 2px;
	border-top: 1px solid var(--odi-brand-gray);
}

.odi-share-group {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.odi-share-group-label {
	align-self: center;
	width: 100%;
	text-align: center;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--odi-brand-slate);
}

.odi-share-icon-link--copy {
	border: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
}

.odi-share-icon-link--instagram:hover { color: #E1306C; }
.odi-share-icon-link--tiktok:hover { color: #010101; }
.odi-share-icon-link--whatsapp:hover { color: #25D366; }
.odi-share-icon-link--messenger:hover { color: #0084FF; }
.odi-share-icon-link--facebook:hover { color: #1877F2; }
.odi-share-icon-link--linkedin:hover { color: #0A66C2; }
.odi-share-icon-link--x:hover { color: #000; }
.odi-share-icon-link--pinterest:hover { color: #BD081C; }

.odi-share-icon-link.is-copied {
	color: #1E6B34;
}

.odi-share-lead {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--odi-brand-slate);
	line-height: 1.45;
	width: 100%;
	text-align: center;
}

.odi-share-lead strong {
	color: var(--odi-brand-dark);
	font-weight: 800;
}

.odi-share-social-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	margin: 0 auto;
}

.odi-share-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--odi-brand-dark);
	text-decoration: none;
	border: none;
	background: none;
	padding: 0;
	transition: color 0.15s, opacity 0.15s, transform 0.15s;
}

.odi-share-icon-link .odi-mono-svg {
	color: currentColor;
}

.odi-share-icon-link:hover {
	color: var(--odi-brand-red);
	transform: translateY(-1px);
}

.odi-share-copy-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	border: none;
	background: none;
	color: var(--odi-brand-dark);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	transition: color 0.15s;
	align-self: center;
	margin-inline: auto;
}

button.odi-share-copy-link {
	width: auto;
}

.odi-share-copy-link .odi-mono-svg {
	color: currentColor;
	flex-shrink: 0;
}

.odi-share-copy-link:hover {
	color: var(--odi-brand-red);
}

.odi-share-copy-link:focus-visible,
.odi-share-icon-link:focus-visible {
	outline: 2px solid var(--odi-brand-red);
	outline-offset: 2px;
}

.odi-share-copy-link.is-copied {
	color: #1E6B34;
}

.odi-share-copy-link.is-copied .odi-mono-svg {
	color: #1E6B34;
}

.odi-share-copy-label {
	line-height: 1.2;
}

/* —— layout: bar (post hero) —— */
.odi-share-box--bar {
	display: grid;
	gap: 6px;
	padding: 8px 10px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(10px);
	width: max-content;
	align-items: stretch;
}

.odi-share-bar-label {
	margin: 0;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--odi-brand-dark);
	text-align: center;
}

.odi-share-bar-row {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: center;
}

.odi-share-box--bar .odi-share-icon-link {
	width: 32px;
	height: 32px;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 8px;
	background: #fff;
}

.odi-share-box--bar .odi-share-icon-link:hover {
	transform: translateY(-1px);
}

.odi-share-box--bar .odi-share-icon-link.is-copied,
.odi-share-box--bar .odi-share-copy-link.is-copied {
	background: var(--odi-brand-dark);
	border-color: var(--odi-brand-dark);
	color: #fff;
}

.odi-share-copy-link--compact {
	width: 32px;
	height: 32px;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 8px;
	background: #fff;
}

/* —— layout: panel modal —— */
.odi-share-box--panel {
	width: auto;
}

.odi-share-panel-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.odi-post-share-channels {
	display: contents;
}

.odi-share-panel-row .odi-share-panel-btn {
	text-decoration: none;
}

/* —— layout: compact (strony) —— */
.odi-share-page-wrap {
	margin-top: 20px;
}

.odi-share-box--compact {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 10px;
	background: var(--odi-brand-soft);
}

.odi-share-compact-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.odi-share-compact-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--odi-brand-slate);
}

.odi-share-compact-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.odi-share-box--compact .odi-share-icon-link {
	width: 36px;
	height: 36px;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 8px;
	background: #fff;
}

/* —— panel: share hub + OG preview —— */
.odi-share-hub-dialog {
	background: #fff;
	width: min(92vw, 620px);
	padding: 24px;
	border-radius: 12px;
	border-top: 4px solid var(--odi-brand-red);
}

.odi-share-hub-head h3 {
	margin: 0 0 6px;
}

.odi-share-hub-subtitle {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--odi-brand-slate);
}

.odi-share-hub-url-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 14px;
}

.odi-share-hub-url {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #E5E8EB;
	border-radius: 8px;
	margin-top: 6px;
}

.odi-share-hub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

.odi-share-hub-channels {
	display: contents;
}

.odi-share-hub-generator {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #E5E8EB;
}

.odi-share-hub-section-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #555D61;
}

.odi-share-hub-generator h4 {
	margin: 0 0 6px;
	font-size: 14px;
}

.odi-share-hub-generator-hint {
	margin: 0 0 12px;
	font-size: 12px;
	color: #555D61;
}

.odi-share-hub-generator-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.odi-share-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid #E5E8EB;
	background: #fff;
	color: #2B2F33;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}

.odi-share-badge svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.odi-share-badge--instagram {
	border-color: #e1306c55;
	background: linear-gradient(135deg, #fff5f8, #fff);
	color: #C13584;
}

.odi-share-badge--tiktok {
	border-color: #111;
	background: #111;
	color: #fff;
}

.odi-share-badge--tiktok svg {
	fill: currentColor;
}

.odi-share-badge--facebook {
	border-color: #1877f255;
	background: #f0f5ff;
	color: #1877F2;
}

.odi-share-badge:hover {
	filter: brightness(0.97);
}

.odi-share-hub-foot {
	margin-top: 16px;
}

.odi-seo-hub-dialog {
	max-width: 560px;
}

.odi-seo-hub-fields label {
	display: block;
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
}

.odi-seo-hub-input {
	width: 100%;
	margin-top: 4px;
	box-sizing: border-box;
}

.odi-seo-hub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.odi-seo-hub-og,
.odi-seo-hub-audit {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #E5E8EB;
}

.odi-seo-hub-og-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 10px;
	border: 1px solid #E5E8EB;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.odi-seo-hub-og-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 80px;
}

.odi-seo-hub-og-body {
	padding: 8px 10px 10px 0;
	font-size: 12px;
}

.odi-seo-hub-og-body strong {
	display: block;
	margin-bottom: 4px;
}

.odi-seo-hub-audit ul {
	margin: 6px 0 0 18px;
	padding: 0;
	font-size: 13px;
}

.odi-btn-seo {
	background: #2B2F33;
	color: #fff;
}

.odi-editor-action-card__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.odi-share-og-card {
	margin-top: 14px;
	border: 1px solid #E5E8EB;
	border-radius: 10px;
	overflow: hidden;
	max-width: 520px;
	background: #fff;
}

.odi-share-og-card__media {
	background: #F0F2F5;
	aspect-ratio: 1.91 / 1;
}

.odi-share-og-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.odi-share-og-card__body {
	padding: 12px 14px;
}

.odi-share-og-card__site {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #65676B;
	letter-spacing: 0.04em;
}

.odi-share-og-card__title {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.3;
	color: #1C1E21;
}

.odi-share-og-card__desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: #606770;
	line-height: 1.4;
}

.odi-share-og-card__url {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	color: #90949C;
	word-break: break-all;
}

.odi-share-og-card__debug {
	display: inline-block;
	margin: 0 14px 12px;
	font-size: 12px;
}

/* —— layout: icon (katalog) —— */
.odi-card-share-icon {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 6;
	pointer-events: auto;
}

.odi-share-box--icon {
	position: relative;
	width: auto;
	align-items: stretch;
}

.odi-share-icon-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--odi-brand-dark);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s, background 0.15s;
}

.odi-share-icon-trigger:hover {
	transform: scale(1.05);
	background: #fff;
	color: var(--odi-brand-red);
}

.odi-share-icon-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 220px;
	padding: 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--odi-brand-gray);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	z-index: 20;
}

.odi-share-icon-popover[hidden] {
	display: none !important;
}

.odi-share-icon-popover__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.odi-share-box--icon .odi-share-icon-link {
	width: 34px;
	height: 34px;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 8px;
	background: var(--odi-brand-soft);
}

.odi-archive-card:has(.odi-share-box--icon.is-open) {
	overflow: visible;
	z-index: 8;
}

/* —— layout: sticky (mobile single) —— */
.odi-share-box--sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid var(--odi-brand-gray);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.odi-share-sticky-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 720px;
	margin: 0 auto;
}

.odi-share-sticky-label {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--odi-brand-slate);
}

.odi-share-sticky-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.odi-share-sticky-row::-webkit-scrollbar {
	display: none;
}

.odi-share-box--sticky .odi-share-icon-link,
.odi-share-box--sticky .odi-share-copy-link--compact {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border: 1px solid var(--odi-brand-gray);
	border-radius: 8px;
	background: #fff;
}

/* —— QR kod —— */
.odi-share-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-top: 4px;
	border-top: 1px solid var(--odi-brand-gray);
	width: 100%;
}

.odi-share-qr__img {
	border-radius: 8px;
	background: #fff;
}

.odi-share-qr__label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	color: var(--odi-brand-slate);
}

/* —— panel: statystyki —— */
.odi-share-stats-list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.odi-share-stats-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px solid #E5E8EB;
}

.odi-share-stats-total {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
}

@media (min-width: 1281px) {
	.odi-share-box--sticky {
		display: none;
	}
}

@media (max-width: 1280px) {
	.odi-share-pdf-wrap--sidebar {
		display: none;
	}

	.odi-share-pdf-wrap--mobile {
		display: block;
	}
}

@media (max-width: 480px) {
	.odi-share-pdf-card {
		padding: 14px 12px;
	}

	.odi-share-social-row {
		gap: 12px;
	}
}
