/* ── Deliver Results Bar Chart Widget ─────────────────────── */

.drw-wrap {
    padding: 2.5rem 1rem 1.5rem;
    font-family: inherit;
}

/* Header */
.drw-header {
    text-align: center;
    margin-bottom: 3rem;
}

.drw-heading {
    font-size: clamp(22px, 3.8vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin: 0 0 0.75rem;
    white-space: pre-line;
}

.drw-subheading {
    font-size: 14px;
    color: #666;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Bar row */
.drw-bars-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    padding-top: 60px;
    flex-wrap: wrap;
}

/* Individual bar item */
.drw-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Background container */
.drw-bar-bg {
    width: 114px;
    height: 340px;
    background: #f0f0f0;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Fill bar */
.drw-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 16px;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 1.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.drw-fill-comp {
    background: #262626;
}

.drw-fill-hero {
    background: #05ccee;
}

/* Badge */
.drw-badge {
    position: absolute;
    bottom: 11px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1b1b1b;
    border-radius: 999px;
    padding: 5px 12px 5px 7px;
    white-space: nowrap;
    z-index: 5;
}

.drw-badge-hero {
    background: rgba(0, 35, 50, 0.35);
}

.drw-icon {
    color: #888;
    flex-shrink: 0;
}

.drw-badge-hero .drw-icon {
    color: rgba(255, 255, 255, 0.65);
}

.drw-counter {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    min-width: 32px;
    display: inline-block;
}

/* Label */
.drw-label {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

/* Hero tooltip */
.drw-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    background: #05ccee;
    color: #003448;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transform-origin: center;
    transition: transform 0.35s 1.85s cubic-bezier(0.34, 1.5, 0.64, 1);
    pointer-events: none;
    z-index: 10;
}

.drw-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #05ccee;
}

/* Hero connector dot */
.drw-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #05ccee;
    border-radius: 50%;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s 1.85s;
    border: 2px solid #fff;
}

/* Animated state (class added by JS) */
.drw-animated .drw-fill {
    transform: scaleY(1);
}

.drw-animated .drw-tooltip {
    transform: translateX(-50%) scaleX(1);
}

.drw-animated .drw-dot {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .drw-bars-row {
        gap: 10px;
    }
    .drw-bar-bg {
        width: 80px;
    }
}
