/* PraiseBloom admin styles. */

.praisebloom-wrap .praisebloom-subtitle {
	color: #646970;
	margin-top: -6px;
}

.praisebloom-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	max-width: none;
	flex-wrap: wrap;
}

.praisebloom-header h1 {
	margin-bottom: 2px;
	padding-bottom: 0;
}

.praisebloom-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
}

.praisebloom-range-form select {
	min-height: 34px;
}

.praisebloom-share-wrap {
	position: relative;
}

.praisebloom-share-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	background: #6c5ce7 !important;
	border-color: #6c5ce7 !important;
}

.praisebloom-share-toggle:hover,
.praisebloom-share-toggle:focus {
	background: #5a4bd4 !important;
	border-color: #5a4bd4 !important;
}

.praisebloom-share-toggle {
	justify-content: center;
	line-height: 1 !important;
	min-height: 34px;
	padding: 0 14px !important;
}

.praisebloom-share-toggle-icon {
	display: block;
	flex-shrink: 0;
}

.praisebloom-share-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 100;
	width: 250px;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	padding: 6px;
	box-sizing: border-box;
}

.praisebloom-share-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	text-align: left;
}

.praisebloom-share-item:hover {
	background: #f6f5fd;
	color: #1d2327;
}

.praisebloom-share-item-icon {
	display: inline-flex;
	width: 22px;
	justify-content: center;
}

.praisebloom-share-item-neutral {
	color: #646970;
}

.praisebloom-share-item-label {
	flex: 1;
}

.praisebloom-share-item-hint {
	font-size: 11px;
	font-weight: 500;
	color: #8c8f94;
}

.praisebloom-share-item.is-copied .praisebloom-share-item-hint {
	color: #00a32a;
}

.praisebloom-share-sep {
	display: block;
	height: 1px;
	margin: 6px 4px;
	background: #f0f0f1;
}

.praisebloom-qr-box {
	border-top: 1px solid #f0f0f1;
	margin-top: 6px;
	padding: 12px 10px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.praisebloom-wrap [hidden] {
	display: none !important;
}

.praisebloom-qr-canvas {
	border: 1px solid #f0f0f1;
	border-radius: 4px;
}

.praisebloom-qr-url {
	font-size: 11px;
	color: #646970;
	word-break: break-all;
	text-align: center;
}

.praisebloom-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 16px 0;
	max-width: none;
}

.praisebloom-kpi {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.praisebloom-kpi-label {
	font-size: 13px;
	color: #646970;
}

.praisebloom-kpi-value {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: #1d2327;
}

.praisebloom-kpi-warn .praisebloom-kpi-value {
	color: #996800;
}

.praisebloom-kpi-sub {
	font-size: 12px;
	color: #8c8f94;
}

.praisebloom-kpi-warn-text {
	color: #996800;
	font-weight: 600;
}

.praisebloom-kpi-stars {
	font-size: 14px;
	margin-left: 4px;
}

.praisebloom-chart {
	display: block;
	width: 100%;
	height: 150px;
}

.praisebloom-chart-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #8c8f94;
	margin-top: 4px;
}

.praisebloom-panel-chart {
	grid-column: span 1;
}

.praisebloom-muted-normal {
	color: #8c8f94;
	font-weight: 400;
	font-size: 12px;
}

.praisebloom-source-label {
	width: 90px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.praisebloom-fill-accent {
	background: #6c5ce7;
}

.praisebloom-avatar-badge {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.praisebloom-latest-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Star rating input on Add/Edit. */

.praisebloom-star-input {
	display: flex;
	gap: 2px;
	align-items: center;
}

.praisebloom-star-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 2px;
	margin: 0;
	cursor: pointer;
	color: #dcdcde;
	display: inline-flex;
	transition: transform 0.1s ease, color 0.1s ease;
}

.praisebloom-star-btn:hover {
	transform: scale(1.12);
}

.praisebloom-star-btn.is-active {
	color: #f5b301;
}

.praisebloom-star-btn:focus-visible {
	outline: 2px solid #6c5ce7;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Platforms table in Settings. */

.praisebloom-platforms-table {
	max-width: none;
	border-radius: 8px;
}

.praisebloom-platforms-table td {
	vertical-align: middle;
}

.praisebloom-platform-preview {
	width: 40px;
	text-align: center;
}

.praisebloom-platform-url {
	width: 40%;
}

.praisebloom-platform-enabled {
	white-space: nowrap;
}

.praisebloom-letter-badge {
	display: inline-flex;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #6c5ce7;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
}

.praisebloom-headshot-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.praisebloom-headshot-preview img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	object-fit: cover;
	border: 1px solid #dcdcde;
}

.praisebloom-remove-platform {
	color: #b32d2e;
	cursor: pointer;
	background: none;
	border: 0;
	font-size: 14px;
}

.praisebloom-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	max-width: none;
	margin-bottom: 16px;
}

.praisebloom-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.praisebloom-panel h2 {
	margin-top: 0;
	font-size: 14px;
}

.praisebloom-panel-wide {
	max-width: none;
}

.praisebloom-dist-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #646970;
}

.praisebloom-dist-label {
	width: 28px;
	text-align: right;
}

.praisebloom-dist-track {
	flex-grow: 1;
	height: 12px;
	background: #f0f0f1;
	border-radius: 999px;
	overflow: hidden;
}

.praisebloom-dist-fill {
	display: block;
	height: 12px;
	background: #f5b301;
	border-radius: 999px;
}

.praisebloom-dist-count {
	width: 40px;
	font-weight: 600;
	color: #1d2327;
}

.praisebloom-admin-stars {
	color: #f5b301;
	letter-spacing: 1px;
	white-space: nowrap;
}

.praisebloom-admin-stars .praisebloom-star-empty {
	color: #dcdcde;
}

.praisebloom-status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.praisebloom-status-pending {
	background: #fcf9e8;
	color: #996800;
}

.praisebloom-status-approved {
	background: #edfaef;
	color: #007017;
}

.praisebloom-status-rejected {
	background: #fcf0f1;
	color: #b32d2e;
}

.praisebloom-row-pending {
	background: #fdfaf1 !important;
}

.praisebloom-chip-featured {
	color: #f5b301;
}

.praisebloom-muted {
	color: #8c8f94;
	font-size: 12px;
}

.praisebloom-latest-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid #f0f0f1;
}

.praisebloom-latest-row:first-of-type {
	border-top: 0;
}

.praisebloom-latest-main {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.praisebloom-latest-meta {
	justify-content: flex-start;
}

.praisebloom-latest-main p {
	margin: 4px 0 0;
	color: #3c434a;
}

.praisebloom-latest-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.praisebloom-code {
	display: inline-block;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 12px;
	margin: 4px 0 12px;
	cursor: pointer;
	user-select: all;
}

.praisebloom-code-lg {
	display: block;
	font-size: 14px;
	padding: 12px 14px;
}

.praisebloom-builder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
	max-width: 900px;
}

.praisebloom-builder-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	font-size: 13px;
}

.praisebloom-builder-grid select,
.praisebloom-builder-grid input {
	font-weight: 400;
}

.praisebloom-col-review {
	width: 28%;
}
