.nmc-gb-list {
    --nmc-gb-color: #7d9b88;
    --nmc-gb-track: #d9e2dc;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1rem 0;
}

/* Image on the left; the bar + its text stacked together on the right, so the
   text always lines up under the bar (not under the image). */
.nmc-gb {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header mini-cart (off-canvas / dropdown) sits in a tighter container. */
.ps-shoppingcart.side-cart .nmc-gb-list {
    margin: 0 0 1rem;
    gap: 1rem;
}

.nmc-gb__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nmc-gb__image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--nmc-gb-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmc-gb__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thin baseline with a circular target marker pinned at the far end. */
.nmc-gb__track {
    position: relative;
    width: 100%;
    height: 24px;
    /* Room for the end dot so the fill never slides under it. */
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.nmc-gb__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 4px;
    background: var(--nmc-gb-track);
}

.nmc-gb__fill {
    position: relative;
    z-index: 1;
    height: 6px;
    max-width: 100%;
    /* Square right end so it meets the vertical marker flush. */
    border-radius: 6px 0 0 6px;
    background: var(--nmc-gb-color);
    transition: width 0.3s ease;
}

/* Thin vertical marker at the end of the completed portion. */
.nmc-gb__fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 2px;
    height: 14px;
    border-radius: 1px;
    background: var(--nmc-gb-color);
}

.nmc-gb--reached .nmc-gb__fill::after {
    display: none;
}

/* No marker to meet once complete — round the end back off. */
.nmc-gb--reached .nmc-gb__fill {
    border-radius: 6px;
}

.nmc-gb__dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--nmc-gb-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Text sits below the line, within the same column as the track so it lines
   up with the bar (matching the mockup). */
.nmc-gb__label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    line-height: 1.25;
}

.nmc-gb__promo {
    align-self: flex-start;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    text-decoration: underline;
}

.nmc-gb__promo:hover {
    color: var(--nmc-gb-color);
}

@media (prefers-reduced-motion: reduce) {
    .nmc-gb__fill {
        transition: none;
    }
}
