/* Dynamic Percentage Bars v1.0.1 */

.dpb-widget-wrap {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.dpb-chart {
	width: 100%;
}

/* Bars row */
.dpb-bars-wrapper {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 30px;
	width: 100%;
}

/* Each bar column */
.dpb-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100px;
	flex-shrink: 0;
	position: relative;
}

/* Percentage number */
.dpb-percentage {
	font-size: clamp(1.6rem, 3.5vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	color: #1a1a1a;
	margin-bottom: 8px;
	text-align: center;
	white-space: nowrap;
}

/* Track: the full-height container */
.dpb-bar-track {
	width: 100%;
	height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: visible;
}

/* Fill: grows from bottom */
.dpb-bar-fill {
	width: 100%;
	height: 0%;          /* JS animates this to data-h % */
	background-color: #5a6270;
	border-radius: 4px 4px 0 0;
	transition: height 1s ease-out;
	will-change: height;
}

/* Hover brightness */
.dpb-bar-item.dpb-hover .dpb-bar-fill:hover {
	filter: brightness(1.18);
	transition: height 1s ease-out, filter 0.18s;
	cursor: pointer;
}

/* Tooltip */
.dpb-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #1a1a1a;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s;
	z-index: 20;
}
.dpb-tip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1a1a1a;
}
.dpb-bar-item:hover .dpb-tip { opacity: 1; }

/* Divider */
.dpb-divider-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
}
.dpb-divider {
	width: 100%;
	height: 1px;
	background-color: #cccccc;
}

/* Label */
.dpb-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #555;
	text-transform: uppercase;
	text-align: center;
	margin-top: 10px;
	white-space: nowrap;
}

/* Baseline */
.dpb-baseline {
	width: 100%;
	height: 1px;
	background-color: #cccccc;
}

/* Editor preview: show bars at full height immediately */
.dpb-editor .dpb-bar-fill {
	transition: none !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.dpb-bars-wrapper { gap: 16px; flex-wrap: wrap; }
	.dpb-bar-item     { width: 72px; }
	.dpb-bar-track    { height: 200px; }
}
@media (max-width: 480px) {
	.dpb-bar-item  { width: 52px; }
	.dpb-bar-track { height: 160px; }
}
