.bbtpreview-trigger {
	margin-left: 4px;
}

.bbtpreview-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.bbtpreview-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.bbtpreview-modal__dialog {
	position: relative;
	width: min(760px, calc(100vw - 24px));
	max-height: calc(100vh - 32px);
	margin: 16px auto;
	background: #ffffff;
	border: 1px solid #c7d2db;
	border-radius: 6px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bbtpreview-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.bbtpreview-modal__header {
	padding: 14px 16px 10px;
	background: linear-gradient(180deg, #f4f8fb 0%, #edf4f8 100%);
	border-bottom: 1px solid #d7e2ea;
}

.bbtpreview-modal__title {
	margin: 0 32px 6px 0;
	font-size: 1.15em;
	color: #0f4d73;
}

.bbtpreview-modal__meta {
	font-size: 0.9em;
	color: #536482;
}

.bbtpreview-modal__body {
	padding: 16px;
	overflow: auto;
}

.bbtpreview-author {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #e3ebf0;
}

.bbtpreview-author__avatar img,
.bbtpreview_img,
.bbtpreview-author__avatar .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: block;
}

.bbtpreview-author__info {
	line-height: 1.45;
}

.bbtpreview-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 0;
	margin: 0 0 14px;
}

.bbtpreview-stats li {
	background: #f6f8fa;
	border: 1px solid #e0e7ec;
	border-radius: 4px;
	padding: 8px 10px;
}

.bbtpreview-stats span {
	display: block;
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6f7f91;
}

.bbtpreview-stats strong {
	display: block;
	margin-top: 4px;
	font-size: 1.05em;
	color: #2f4f6f;
}

.bbtpreview-content {
	line-height: 1.6;
	color: #222;
}

.bbtpreview-content img {
	max-width: 100%;
	height: auto;
}

.bbtpreview-modal__footer {
	padding: 12px 16px;
	border-top: 1px solid #d7e2ea;
	background: #f7fafc;
	text-align: right;
}

body.bbtpreview-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.bbtpreview-stats {
		grid-template-columns: 1fr;
	}

	.bbtpreview-modal__dialog {
		width: calc(100vw - 12px);
		margin: 6px auto;
		max-height: calc(100vh - 12px);
	}
}


.bbtpreview-author-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.bbtpreview-author__avatar {
	min-width: 44px;
}

.bbtpreview-author__avatar .avatar,
.bbtpreview-author__avatar .bbtpreview_img,
.bbtpreview-author__avatar img {
	max-width: 44px;
	max-height: 44px;
	width: auto;
	height: auto;
	border-radius: 50%;
	display: block;
}

.bbtpreview-avatar-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef3f7;
	border: 1px solid #d7e2ea;
	color: #5a6c7d;
	font-size: 18px;
}
