/* ============================================================
   R@W Peer Recognition Badges — styles
   ============================================================ */

/* ---- Split action row: Recognise | Comment (50/50) ---- */
.raw-prb-hidden-native { display: none !important; }

.raw-prb-splitrow {
	display: flex;
	width: 100%;
	align-items: stretch;
	border-top: 1px solid #eef0f3;
	border-bottom: 1px solid #eef0f3;
	margin: 2px 0;
}
.raw-prb-half {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4px 0;
}
.raw-prb-half.raw-prb-inline { border-right: 1px solid #eef0f3; }

/* Real BuddyBoss comment button, relocated into the right half.
   Neutralize its default block layout so it centers like Recognise. */
.raw-prb-comment-half .bp-generic-meta,
.raw-prb-comment-half .generic-button {
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
}
.raw-prb-comment-half .acomment-reply {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 10px 0 !important;
	margin: 0 !important;
	background: none !important;
	border: none !important;
}

/* ---- Inline "Recognise" trigger ---- */
.raw-prb-inline { position: relative; }
.raw-prb-picker-wrap { position: relative; display: inline-flex; }
.raw-prb-trigger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none !important;
	border: none !important;
	padding: 10px 0 !important;
	font-size: 14px !important;
	font-weight: 400;
	color: #9b9c9f !important;
	cursor: pointer;
	transition: color 0.15s ease;
	line-height: 1;
	letter-spacing: 0.3px;
}
.raw-prb-trigger:hover { color: #6b6c6f !important; }
.raw-prb-trigger-plus { font-size: 16px; line-height: 1; }

/* ---- Awarded pills row under the post (unchanged position) ---- */
.raw-prb-block { margin: 4px 0 2px; padding: 0 2px; }
.raw-prb-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.raw-prb-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #eef1f5;
	border: 1px solid #e2e6ec;
	border-radius: 999px;
	padding: 3px 9px 3px 4px;
	font-size: 12px;
	line-height: 1;
	cursor: default;
}
.raw-prb-pill-icon {
	width: 22px !important;
	height: 22px !important;
	max-width: none !important;
	object-fit: contain !important;
	display: block;
	background: #fff;
	border-radius: 50%;
	padding: 2px;
}
.raw-prb-pill-count { font-weight: 700; color: #444b57; }

/* ---- Tray (popup) ---- */
.raw-prb-tray {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(6px) scale(0.98);
	z-index: 9999;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 30, 50, 0.16), 0 3px 8px rgba(20, 30, 50, 0.08);
	padding: 14px;
	width: 340px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.raw-prb-tray.is-open {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) scale(1);
	pointer-events: auto;
}

/* full-width instruction text across the whole tray */
.raw-prb-instruction {
	display: block;
	width: 100%;
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f2f5;
	text-align: left;
	white-space: normal;
	word-wrap: break-word;
}

.raw-prb-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	justify-items: center;
}

/* ---- Each badge: TRUE circle, icon only (no square) ---- */
.raw-prb-option {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 52px !important;
	height: 52px !important;
	min-width: 52px;
	box-sizing: border-box;
	background: #f3f5f8 !important;
	border: 2px solid transparent !important;
	border-radius: 50% !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	transition: background 0.12s ease, transform 0.1s ease, border-color 0.12s ease;
	overflow: visible;
}
.raw-prb-option:hover { background: #e8ecf1 !important; transform: scale(1.06); }

.raw-prb-option-icon {
	width: 30px !important;
	height: 30px !important;
	max-width: none !important;
	object-fit: contain !important;
	display: block !important;
	pointer-events: none;
}

/* ---- AWARDED (Option A): blue lit-up circle, NO checkmark ---- */
.raw-prb-option.is-active {
	background: #dbebff !important;
	border-color: #2f7bf6 !important;
}
.raw-prb-option.is-loading { opacity: 0.5; pointer-events: none; }
.raw-prb-option.is-bounce { animation: raw-prb-bounce 0.35s ease; }
.raw-prb-option.is-error { animation: raw-prb-shake 0.3s ease; }

/* ---- Hover tooltip (name + description) ---- */
.raw-prb-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #1f2430;
	color: #fff;
	border-radius: 8px;
	padding: 7px 10px;
	width: 150px;
	font-size: 11px;
	line-height: 1.35;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.13s ease, transform 0.13s ease;
	z-index: 5;
}
.raw-prb-tooltip strong { display: block; margin-bottom: 2px; font-size: 11.5px; }
.raw-prb-tooltip span { display: block; color: #c7cdd6; font-weight: 400; }
.raw-prb-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1f2430;
}
.raw-prb-option:hover .raw-prb-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@keyframes raw-prb-bounce {
	0% { transform: scale(1); }
	40% { transform: scale(1.22); }
	100% { transform: scale(1); }
}
@keyframes raw-prb-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}

@media (max-width: 480px) {
	.raw-prb-tray { width: 290px; }
	.raw-prb-grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
	.raw-prb-option { width: 46px !important; height: 46px !important; min-width: 46px; }
	.raw-prb-option-icon { width: 27px !important; height: 27px !important; }
}
