/* =======================================================
   BARRA DE PROGRESSO AXION — SEGMENTOS CONTÍNUOS
   ======================================================= */
.elementor-widget-shortcode:has(.axion-progress-wrapper) {
    width: 560px !important;
    max-width: 560px !important;
    flex-basis: 560px !important;
}

/* Reserva o espaço definitivo dos três elementos do cabeçalho antes mesmo de
   as imagens externas terminarem de decodificar. */
@media (min-width: 769px) {
    .elementor-location-header .e-con-inner:has(.axion-progress-wrapper) {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .elementor-location-header .elementor-widget-theme-site-logo {
        flex: 0 0 12% !important;
        width: 12% !important;
        min-width: 0 !important;
    }

    .elementor-location-header .elementor-widget-image:has(img[src*="site-seguro"]) {
        flex: 0 0 128px !important;
        width: 128px !important;
        min-width: 128px !important;
        min-height: 42px !important;
    }

    .elementor-location-header img[src*="site-seguro"] {
        display: block !important;
        width: 128px !important;
        height: 42px !important;
    }
}

.axion-progress-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 560px !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
}

.axion-progress-pill {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dddddd !important;
    border-radius: 5px !important;
    outline: 1px solid #dddddd !important;
    outline-offset: -1px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-family: 'Montserrat', sans-serif !important;
}

.axion-step-block {
    --axion-step-bg: #eeeeee;
    --axion-next-bg: #eeeeee;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--axion-step-bg) !important;
    transition: none !important;
}

.axion-step-block:nth-child(1) {
    z-index: 3 !important;
}

.axion-step-block:nth-child(2) {
    z-index: 2 !important;
}

.axion-step-block:last-child {
    z-index: 1 !important;
}

.axion-step-block:not(:last-child)::before,
.axion-step-block:not(:last-child)::after {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 12px !important;
    height: 100% !important;
    content: "" !important;
    pointer-events: none !important;
}

.axion-step-block:not(:last-child)::before {
    z-index: 1 !important;
    background: var(--axion-next-bg) !important;
}

.axion-step-block:not(:last-child)::after {
    z-index: 2 !important;
    background: var(--axion-step-bg) !important;
    clip-path: polygon(0 0, 100% 50%, 0 100%) !important;
}

.axion-step-circle {
    display: inline-flex !important;
    flex: 0 0 22px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #878787 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: none !important;
}

.axion-step-label {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #747474 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: none !important;
}

/* O preenchimento em seta separa etapas de cores diferentes. Quando etapas
   vizinhas têm a mesma cor, exibe somente um contorno sutil em forma de ">". */
.axion-step-separator {
    display: none !important;
}

.axion-step-subtle-divider > .axion-step-separator {
    position: absolute !important;
    z-index: 6 !important;
    top: 0 !important;
    right: 0 !important;
    display: block !important;
    width: 12px !important;
    height: 100% !important;
    overflow: hidden !important;
    color: rgba(104, 117, 27, 0.55) !important;
    pointer-events: none !important;
}

.axion-step-inactive.axion-step-subtle-divider > .axion-step-separator {
    color: rgba(117, 117, 117, 0.42) !important;
}

.axion-step-subtle-divider > .axion-step-separator svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Etapa atual: branco, texto escuro e marcador verde AXION. */
.axion-step-active {
    --axion-step-bg: #ffffff;
    --axion-next-bg: #eeeeee;
}

.axion-step-active .axion-step-circle {
    background: var(--ax-green) !important;
    color: #ffffff !important;
}

.axion-step-active .axion-step-label {
    color: #262626 !important;
}

/* Etapas concluídas: verde suave, preservando o número da etapa. */
.axion-step-completed {
    --axion-step-bg: #f0f3df;
    --axion-next-bg: #ffffff;
}

.axion-step-completed.axion-step-subtle-divider {
    --axion-next-bg: #f0f3df;
}

.axion-step-completed .axion-step-circle {
    background: var(--ax-green) !important;
    color: #ffffff !important;
}

.axion-step-completed .axion-step-label {
    color: #68751b !important;
}

/* Etapas futuras: cinza neutro e legível. */
.axion-step-inactive {
    --axion-step-bg: #eeeeee;
    --axion-next-bg: #eeeeee;
}

.axion-step-inactive .axion-step-circle {
    background: #8b8b8b !important;
    color: #ffffff !important;
}

.axion-step-inactive .axion-step-label {
    color: #777777 !important;
}

@media (max-width: 768px) {
    .elementor-widget-shortcode:has(.axion-progress-wrapper) {
        width: 58% !important;
        max-width: 58% !important;
        flex-basis: 58% !important;
    }

    .axion-progress-wrapper {
        width: 100% !important;
        padding: 8px 0 !important;
    }

    .axion-progress-pill {
        width: 100% !important;
        min-height: 36px !important;
        border-radius: 4px !important;
    }

    .axion-step-block {
        justify-content: center !important;
        gap: 0 !important;
        padding: 7px 14px !important;
    }

    .axion-step-block:not(:last-child)::before,
    .axion-step-block:not(:last-child)::after {
        right: 0 !important;
        width: 8px !important;
    }

    .axion-step-subtle-divider > .axion-step-separator {
        right: 0 !important;
        width: 8px !important;
    }

    .axion-step-circle {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .axion-step-label {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .axion-step-block {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
