/* Block: pipeline */
/* Loaded on the frontend */

.pw-pipeline-block {
    display: block;
    width: 100%;
}

.pw-pipeline {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.pw-pipeline__label {
    margin-bottom: 0.5rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}

.pw-pipeline__markers {
    display: none;
    width: 100%;
    margin-bottom: 0.5rem;
}

.pw-pipeline__marker {
    flex: 1 1 0%;
    text-align: center;
    font-size: clamp(0.625rem, 2.5vw, 0.875rem);
    line-height: 1.3;
    font-weight: 500;
    overflow-wrap: break-word;
    padding: 0 2px;
}

.pw-pipeline__marker:first-child {
    text-align: left;
}

.pw-pipeline__marker:last-child {
    text-align: right;
}

@media (max-width: 768px) {
    .pw-pipeline__markers {
        display: flex;
    }
}

.pw-pipeline__track {
    position: relative;
    width: 100%;
    height: 32px;
    background-color: var(--wp--preset--color--white, #f9f9f7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 16px 16px 0;
    overflow: hidden;
}

.pw-pipeline__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 0 16px 16px 0;
    border: 0;
    background: linear-gradient(270deg, #20BCB4 0%, #054642 100%);
    transition: width 1500ms ease-out;
}

.pw-pipeline__fill.is-full {
    border-radius: 0 16px 16px 0;
}

.pw-pipeline__value {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    color: var(--wp--preset--color--white, #ffffff);
    white-space: nowrap;
    pointer-events: none;
    display: none;
}
