﻿/* ==========================================================================
   #PROGRESS BAR
   ========================================================================== */
.hmcts-progress-bar {
    margin-bottom: 40px;
}

.hmcts-progress-bar__list {
    font-size: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: justify;
    vertical-align: top;
}

    .hmcts-progress-bar__list::after {
        content: "";
        display: inline-block;
        width: 100%;
    }

    .hmcts-progress-bar__list::before {
        border-top: 6px solid #00703c;
        content: "";
        left: 0;
        position: absolute;
        top: 13px;
        width: 100%;
    }

.hmcts-progress-bar__list-item {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.25;
    display: inline-block;
    max-width: 20%;
    position: relative;
    text-align: center;
    vertical-align: top;
}

@media print {
    .hmcts-progress-bar__list-item {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-progress-bar__list-item {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.31579;
    }
}

@media print {
    .hmcts-progress-bar__list-item {
        font-size: 14pt;
        line-height: 1.15;
    }
}

.hmcts-progress-bar__list-item:first-child::before, .hmcts-progress-bar__list-item:last-child::before {
    border-top: 6px solid #ffffff;
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 50%;
}

.hmcts-progress-bar__list-item:first-child::before {
    left: 0;
}

.hmcts-progress-bar__list-item:last-child::before {
    left: auto;
    right: 0;
}

.hmcts-progress-bar__list-item[aria-current=step] {
    font-weight: 700;
}

.hmcts-progress-bar__icon {
    position: relative;
    background-color: #ffffff;
    border: 3px solid #00703c;
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
    height: 32px;
    margin-left: auto;
    margin-right: auto;
    width: 32px;
}

.hmcts-progress-bar__icon--current {
    border: 9px double #00703c;
}

.hmcts-progress-bar__icon--complete {
    background-color: #00703c;
    background-image: url(/assets/images/icon-progress-tick.svg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.hmcts-progress-bar__label {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    font-size: 0.875rem;
    line-height: 1.14286;
    display: block;
    margin-top: 10px;
    position: relative;
    word-wrap: normal;
}

@media print {
    .hmcts-progress-bar__label {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-progress-bar__label {
        font-size: 16px;
        font-size: 1rem;
        line-height: 1.25;
    }
}

@media print {
    .hmcts-progress-bar__label {
        font-size: 14pt;
        line-height: 1.2;
    }
}

/* ==========================================================================
   #TIMELINE
   ========================================================================== */
.hmcts-timeline {
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

    .hmcts-timeline:before {
        background-color: #1d70b8;
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        top: 10px;
        width: 5px;
    }

.hmcts-timeline--full {
    margin-bottom: 0;
}

    .hmcts-timeline--full:before {
        height: calc(100% - 75px);
    }

.hmcts-timeline__item {
    padding-bottom: 30px;
    padding-left: 20px;
    position: relative;
}

    .hmcts-timeline__item:before {
        background-color: #1d70b8;
        content: "";
        height: 5px;
        left: 0;
        position: absolute;
        top: 10px;
        width: 15px;
    }

.hmcts-timeline__title {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.25;
    display: inline;
}

@media print {
    .hmcts-timeline__title {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-timeline__title {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.31579;
    }
}

@media print {
    .hmcts-timeline__title {
        font-size: 14pt;
        line-height: 1.15;
    }
}

.hmcts-timeline__by {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.25;
    color: #505a5f;
    display: inline;
    margin: 0;
}

@media print {
    .hmcts-timeline__by {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-timeline__by {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.31579;
    }
}

@media print {
    .hmcts-timeline__by {
        font-size: 14pt;
        line-height: 1.15;
    }
}

.hmcts-timeline__date {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    font-size: 0.875rem;
    line-height: 1.14286;
    margin-top: 5px;
    margin-bottom: 0;
}

@media print {
    .hmcts-timeline__date {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-timeline__date {
        font-size: 16px;
        font-size: 1rem;
        line-height: 1.25;
    }
}

@media print {
    .hmcts-timeline__date {
        font-size: 14pt;
        line-height: 1.2;
    }
}

.hmcts-timeline__description {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    font-size: 0.875rem;
    line-height: 1.14286;
    margin-top: 20px;
}

@media print {
    .hmcts-timeline__description {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-timeline__description {
        font-size: 16px;
        font-size: 1rem;
        line-height: 1.25;
    }
}

@media print {
    .hmcts-timeline__description {
        font-size: 14pt;
        line-height: 1.2;
    }
}

.hmcts-timeline__tag {
    min-width: fit-content;
}

    .hmcts-timeline__tag .govuk-tag {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }

.hmcts-timeline__table {
    overflow-x: auto;
}

    .hmcts-timeline__table .govuk-table {
        margin-bottom: 0.5rem;
    }

        .hmcts-timeline__table .govuk-table,
        .hmcts-timeline__table .govuk-table .govuk-table__header,
        .hmcts-timeline__table .govuk-table .govuk-table__cell {
            font-size: 14px;
            font-size: 0.875rem;
            line-height: 1.14286;
        }

@media print {
    .hmcts-timeline__table .govuk-table,
    .hmcts-timeline__table .govuk-table .govuk-table__header,
    .hmcts-timeline__table .govuk-table .govuk-table__cell {
        font-family: sans-serif !important;
    }
}

@media (min-width: 40.0625em) {
    .hmcts-timeline__table .govuk-table,
    .hmcts-timeline__table .govuk-table .govuk-table__header,
    .hmcts-timeline__table .govuk-table .govuk-table__cell {
        font-size: 16px !important;
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }
}

@media print {
    .hmcts-timeline__table .govuk-table,
    .hmcts-timeline__table .govuk-table .govuk-table__header,
    .hmcts-timeline__table .govuk-table .govuk-table__cell {
        font-size: 14pt !important;
        line-height: 1.2 !important;
    }
}

.hmcts-timeline__documents {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.hmcts-timeline__document-item {
    margin-bottom: 5px;
}

    .hmcts-timeline__document-item:last-child {
        margin-bottom: 0;
    }

.hmcts-timeline__document-link {
    background-image: url(/assets/images/document.svg);
    background-repeat: no-repeat;
    background-size: 20px 16px;
    background-position: 0 50%;
    padding-left: 25px;
}

    .hmcts-timeline__document-link:focus {
        color: #0b0c0c;
    }
