.pafy-re-header-credit-balance {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin-left: auto;
	padding: 7px 12px;
	border: 1px solid rgba(201, 168, 92, 0.55);
	border-radius: 999px;
	background: rgba(15, 110, 86, 0.16);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
}

.pafy-re-header-credit-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pafy-re-credit-value-help {
	position: relative;
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
}

.pafy-re-credit-value-help > summary {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	list-style: none;
	cursor: pointer;
}

.pafy-re-credit-value-help > summary::-webkit-details-marker {
	display: none;
}

.pafy-re-credit-value-help__content {
	position: absolute;
	z-index: 10010;
	top: calc(100% + 8px);
	right: 0;
	width: min(320px, calc(100vw - 32px));
	padding: 12px 14px;
	border: 1px solid #c9d1cc;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	color: #1c2420;
	font-size: 12px;
	line-height: 1.55;
	white-space: normal;
	text-align: left;
	overflow-wrap: anywhere;
}

.pafy-re-credit-value-help__content p {
	margin: 0 0 8px;
}

.pafy-re-credit-value-help__content p:last-child {
	margin-bottom: 0;
}

.pafy-re-header-credit-usable,
.pafy-re-floating-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.pafy-re-header-credit-usable small,
.pafy-re-floating-badge small {
	font-size: 10px;
	font-weight: 700;
}

.pafy-re-floating-badge {
	padding: 4px 8px;
	border: 1px solid rgba(201, 168, 92, 0.65);
	border-radius: 999px;
	background: rgba(201, 168, 92, 0.18);
	color: inherit;
	font-size: 12px;
}

.pafy-re-floating-credit-help {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.pafy-re-floating-credit-help > summary {
	display: grid;
	width: 21px;
	height: 21px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	list-style: none;
	cursor: pointer;
}

.pafy-re-floating-credit-help > summary::-webkit-details-marker {
	display: none;
}

.pafy-re-floating-credit-help > span {
	position: absolute;
	z-index: 10010;
	top: calc(100% + 8px);
	right: 0;
	width: min(280px, calc(100vw - 32px));
	padding: 10px 12px;
	border: 1px solid #c9d1cc;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	color: #1c2420;
	font-size: 12px;
	line-height: 1.5;
	white-space: normal;
}

.pafy-dash-rewards-stat--floating .pafy-re-floating-credit-help {
	margin-top: 6px;
}

@media (max-width: 560px) {
	.pafy-re-header-credit-balance {
		flex-wrap: wrap;
		min-height: 36px;
		gap: 6px;
		padding: 5px 9px;
		font-size: 11px;
	}

	.pafy-re-header-credit-icon {
		width: 18px;
		height: 18px;
	}

	.pafy-re-credit-value-help__content {
		position: fixed;
		top: 50%;
		right: 12px;
		left: 12px;
		width: auto;
		max-height: min(220px, calc(100vh - 160px));
		overflow-y: auto;
		transform: translateY(-50%);
	}
}
