/* Remove the WP block background so the bar sits transparently on the page */
.job-status-bar,
.job-status-bar.has-background,
.job-status-bar.has-primary-background-color {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    padding: var(--wp--preset--spacing--small) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px !important;
}

.job-status-bar .status-header {
    display: flex;
    gap: var(--wp--preset--spacing--x-small);
    align-items: center;
    margin: 0;
}

.job-status-bar .icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-status-bar .status-title {
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
}

/* Overlapping ribbon chain */
.job-status-bar .status-items {
    display: flex;
    gap: 0 !important;
    flex-wrap: nowrap;
    margin: 0;
    align-items: center;
}

.job-status-bar .status-item {
    position: relative;
    display: block !important;
    margin: 0;
    margin-left: -20px;
}

.job-status-bar .status-item:first-child {
    margin-left: 0;
}

/* First item sits on top; each subsequent item sits one level lower */
.job-status-bar .status-item:nth-child(1) { z-index: 10; }
.job-status-bar .status-item:nth-child(2) { z-index: 9; }
.job-status-bar .status-item:nth-child(3) { z-index: 8; }
.job-status-bar .status-item:nth-child(4) { z-index: 7; }
.job-status-bar .status-item:nth-child(5) { z-index: 6; }
.job-status-bar .status-item:nth-child(6) { z-index: 5; }
.job-status-bar .status-item:nth-child(7) { z-index: 4; }

/* Base pill — flat-left (4px) / fully-rounded-right (100px) */
.job-status-bar .status-label {
    display: block;
    margin: 0;
    padding: 8px 14px;
    border-radius: 4px 100px 100px 4px;
    font-family: 'Rethink Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1.5px solid #F4F4F4 !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Extra left padding on all items after the first so text clears the overlap */
.job-status-bar .status-item:not(:first-child) .status-label {
    padding-left: 24px;
}

/* Completed steps */
.job-status-bar .status-active {
    background-color: #003F70;
    color: #6BAEFF;
}

/* Current step */
.job-status-bar .status-selected {
    background-color: #F9C784;
    color: #003F70;
}

/* Future steps */
.job-status-bar .status-inactive {
    background-color: #E7EDF6;
    color: #6BAEFF;
}
