/* FC Gamification — member profile points widget */

.fcpm-pw {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--fcom-primary-text, #0f172a);
	background: var(--fcom-primary-bg, #fff);
	border: 1px solid var(--fcom-primary-border, #e5e7eb);
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .35s ease, transform .35s ease;
}

.fcpm-pw.fcpm-pw-visible {
	opacity: 1;
	transform: translateY(0);
}

.fcpm-pw-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	position: relative;
}

.fcpm-pw-stats {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 15px;
}

.fcpm-pw-info-wrap {
	flex: 0 0 auto;
}

.fcpm-pw-info-btn {
	background: none;
	border: none;
	padding: 0;
	margin-top: 2px;
	cursor: pointer;
	color: var(--fcom-secondary-text, #98a2b3);
	display: inline-flex;
	align-items: center;
}

.fcpm-pw-info-btn .fcpm-pw-icon {
	display: inline-block;
	vertical-align: middle;
}

.fcpm-pw-info-btn:hover {
	color: var(--fcom-primary-text, #475467);
}

.fcpm-pw-tooltip {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	width: 280px;
	max-width: 80vw;
	background: #101828;
	color: #fff;
	border-radius: 10px;
	padding: 16px;
	text-align: left;
	box-shadow: 0 12px 28px rgba(16, 24, 40, .28);
}

.fcpm-pw-tooltip.is-open {
	display: block;
}

.fcpm-pw-tooltip h4 {
	margin: 0 0 8px;
	font-size: 14px;
	color: #fff;
}

.fcpm-pw-tooltip p {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #d0d5dd;
}

.fcpm-pw-tooltip-label {
	font-weight: 600;
	color: #fff !important;
	margin-bottom: 6px !important;
}

.fcpm-pw-tooltip-levels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 16px;
}

.fcpm-pw-tooltip-level {
	display: flex;
	flex-direction: column;
}

.fcpm-pw-tooltip-level-name {
	font-size: 12.5px;
	font-weight: 600;
	color: #fff;
}

.fcpm-pw-tooltip-level-pts {
	font-size: 12px;
	color: #98a2b3;
}

.fcpm-pw-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fcom-secondary-text, #667085);
}

.fcpm-pw-stat b {
	color: var(--fcom-primary-text, #101828);
	font-weight: 700;
}

.fcpm-pw-progress-wrap {
	margin-bottom: 14px;
}

.fcpm-pw-track {
	background: var(--fcom-secondary-bg, #e9ecef);
	height: 10px;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.fcpm-pw-bar {
	background: linear-gradient(90deg, #00bfff, #1e90ff);
	height: 100%;
	width: 0%;
	border-radius: 10px;
	transition: width 1s ease;
}

.fcpm-pw-level-line {
	display: block;
	margin-top: 8px;
	color: var(--fcom-secondary-text, #667085);
	font-size: 13px;
	text-align: right;
}

.fcpm-pw-rank {
	font-size: 14px;
	font-weight: 600;
	color: var(--fcom-text-link, #0073aa);
}

.fcpm-pw-rank-label {
	color: var(--fcom-primary-text, #495057);
	font-weight: 600;
}

.fcpm-pw-rank-name {
	color: var(--fcom-text-link, #0073aa);
}

@media (max-width: 480px) {
	.fcpm-pw {
		padding: 16px 18px;
	}
	.fcpm-pw-stats {
		gap: 14px;
		font-size: 14px;
	}
	.fcpm-pw-tooltip {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		width: min(300px, 88vw);
	}
}
