/* =========================
   Macros distribution bar
========================= */

.macros-bar {
    margin-top: 16px;
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(40, 59, 105, .12);
}

.macros-bar__segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    transition: flex-basis 0.3s ease;
}

.macros-bar__segment--protein {
    background: #0f766e;
}

.macros-bar__segment--carbs {
    background: #fbbf24;
}

.macros-bar__segment--fat {
    background: #f87171;
}

.macros-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.macros-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #374151;
}

.macros-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.macros-dot--protein {
    background: #0f766e;
}

.macros-dot--carbs {
    background: #fbbf24;
}

.macros-dot--fat {
    background: #f87171;
}