.service-updates-wrapper {
    position: relative;
}

.service-updates-wrapper:hover .service-updates-dropdown{
    visibility: visible;
}

.service-updates-wrapper:hover .service-overall-status {
    background: #F2E8DC;
}


.service-overall-status {
    display: flex;
    padding: 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    background: #fff;
    border-radius: 6px 35px 0 0;
    box-shadow: 0 5px 20.1px 0 rgba(97, 5, 26, 0.33);
    margin-right: 5px;
    margin-top: 1px;
}

.service-icon, .status-icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
}

.icon-good-service {
    background-image: url(../images/icon-good-service.svg);
}

.icon-problems-reported {
    background-image: url(../images/icon-problems-reported.svg);
}

.icon-disruption-to-service {
    background-image: url(../images/icon-disruption-to-service.svg);
}

#service-update-parent .icon-disruption-to-service{
    background-image: url(../images/icon-disruption-to-service-white.svg) !important;
    background-size: 24px;
}

.icon-no-incidents {
    background-image: url(../images/icon-no-incidents.svg);
}

.default-icon {
    background-image: url(../images/default-icon.svg);
}

.status-text{
    color: #000;
    font-family: "rooney-sans";
    font-size:  16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
}

.service-update-status-text {
    color: #000;
    font-family: "rooney-sans";
    font-size:  20px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
}

.card-service-update-status-text {
    color: #fff;
    font-family: "rooney-sans";
    font-size:  20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.status-down-arrow{
    display: flex;
    width: 16px;
    height: 16px;
    padding: 5px 3px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-repeat: no-repeat;
    background-position: 100%;
    background-size: auto;
    background-image: url(../images/status-down-arrow.svg);
    transition: 0.25s;
}

.service-overall-status:hover .status-down-arrow, .service-updates-wrapper:hover .status-down-arrow {
    transform: translateY(0%) rotate(-180deg);
}

.service-updates-dropdown {
    position: absolute;
    top: 60px;
    visibility: hidden;
    min-width: 518px;
    display: flex;
    width: 554px;
    padding: 34px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background: #F2E8DC;
    border-radius: 0 0 6px 6px;
    z-index: 5;

}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.dropdown-header-text {
    color: #000;
    font-family: "rooney-sans";
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.see-all-service-updates {
    color: #9F2843;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.see-all-service-updates:hover {
    color: #008996;
    text-decoration: underline;
}

.routes-list{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.route-item {
    display: flex;
    padding: 16px;
    align-items: center;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid #CDC3BA;
    background: #FFF;
}

.route-item:hover {
    background: #EBE9E6;
}

.route-item:hover .icon-problems-reported {
    background-image: url(../images/icon-problems-reported-hover.svg);
}

.route-item a{
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.route-name{
    color: #000;
    font-family: "rooney-sans";
    font-size:  16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
    width: 90%;
}

.status-right-arrow{
    display: flex;
    width: 16px;
    height: 16px;
    padding: 5px 3px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-repeat: no-repeat;
    background-position: 100%;
    background-size: auto;
    background-image: url(../images/status-right-arrow.svg);
}

.service-updates-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-updates-grid-header {
    color: #000;
    font-family: "rooney-sans";
    font-size:  36px;
    font-style: italic;
    font-weight: 700;
    line-height: 40px;
}

.service-updates-grid ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.service-update-sub-heading {
    color: var(--colour-Black, #000);
    /* Typography/Navigation/Main Nav Links */
    font-family: "rooney-sans";
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 32px;
}

.service-update-fix-heading {
    color: var(--colour-Black, #000);
    /* Typography/Headings/H2 */
    font-family: "rooney-sans";
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 16px;
}

.service-update-overall-status {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.card-service-update-overall-status {
    display: flex;
    gap: 8px;
    margin-top: 35px;
}

.service-update-overall-accordian-status {
    display: flex;
    gap: 10px;
    align-items: center;
}


#train-info-heading {
    color: #000;
    font-family: "rooney-sans";
    font-size: 44px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    padding-top: 23px;
    padding-bottom: 7px;
}

#train-info-time {
    color: #000;
    font-family: "rooney-sans";
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.service-update-info-time {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 32px;
}

.service-update-incident-updated-at {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 32px;
}

#service-update-incident-time {
    font-style: italic;
    font-size: 16px;
    line-height: normal;
}

#service-update-updated-at{
    font-style: italic;
    font-size: 15px;
    line-height: normal;
}

.last-updated-serice-update {
    display: flex;
}

#last-updated-value {
    color: rgba(0, 0, 0, 0.70);
    font-family: "rooney-sans";
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
}

/* #service-update-refresh, .service-update-refresh-btn {
    color: #CA123F;
    font-family: "rooney-sans";
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
    background-image: url(../images/update.svg);
    background-repeat: no-repeat;
    padding-left: 34px;
    background-size: 24px;
    cursor: pointer;
    min-height: 24px;
    max-width: 100px;
} */

#service-update-refresh, .service-update-refresh-btn {
    color: #CA123F;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    min-height: 24px;
    display: flex;
    gap: 4px;
}

#service-update-refresh:hover .refrest-icon, .service-update-refresh-btn:hover .refrest-icon {
    transform: rotate(180deg);
    transition: transform .4s ease-in-out;
}

.refrest-icon {
    background-image: url(../images/update.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    width: 42px;
    height: 24px;
}

.collapse {
    /* visibility: hidden; */
}

#service-updates-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    display: flex;
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 6px 36px 6px 6px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    background: #FFF;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 46px;
}

.accordion-header .category {
    width: 100%;
    color: #000;
    font-family: "rooney-sans";
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.accordion-header .counter {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 6.75px 10.5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border-radius: 18px;
    background: #CA123F;
    color: #FFF;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.accordion-header .service-expand-btn{
    width: 30px;
    height: 30px;
    font-size: 35px;
    font-weight: 700;
    color: #CA123F;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.plus-button {
    width: 30px;
    height: 30px;
    background-image: url(../images/xc-plus.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.minus-button{
    width: 30px;
    height: 30px;
    background-image: url(../images/xc-minus.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.accordion-collapse {
    width: 100%;
}

.incident{
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid #CDC3BA;
    justify-content: space-between;
    padding: 32px 0;
}

.incident-header-row {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.incident-title{
    width: 70%;
    color: #000;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.incident-header-row .toggle-more-info{
    color: #CA123F;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 12.5%; /* 2.5px */
    text-underline-offset: 25%; /* 5px */
    text-underline-position: from-font;
    cursor: pointer;
}

.toggle-more-info:hover {
    color: #008996;
}

.incident-more-info ul {
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.incident-more-info p, .further-info p, .further-info li div {
    color: #000;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.further-info li div {
    line-height: 2.2;
}

.further-info ul {
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.further-info-heading{
    color: #000;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    padding-top: 8px;
    padding-bottom: 16px;
    border-top: 1px solid #CDC3BA;
}

.calling-stations table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.calling-stations table th, .calling-stations table td {
    text-align: left;
    padding: 16px;
    border: 1px solid #CDC3BA;
}

.calling-stations table thead {
    border-radius: 4px 4px 0 0;
    background: #008996;
}

.calling-stations table th {
    border-top: 0px;
    color: #FFF;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.calling-stations table td {
    color: #000;
    font-family: "rooney-sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    vertical-align: middle;
}

.calling-stations table th:first-child {
    border-left: 0px;
}

.calling-stations table th:last-child {
    border-right: 0px;
}

.calling-stations table tr:nth-child(even) {
    background-color: #ADE2E3;
}

.contact-detail{
    color: #000;
    font-family: "rooney-sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 16px;
    margin-bottom: 64px;
}

.contact-detail-english-rose{
    color: #CA123F;
    font-family: "rooney-sans";
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: 24px;
   
}

.xc-link-intraction-teal-color {
    text-decoration: none;
    padding-bottom: 4px;
    margin-bottom: -4px;
    background-image: linear-gradient(
      90deg,
      #008996 0%,
      #008996 100%
    );
    background-position: left bottom 1px;
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: 0.5s ease background-size, 0.5s ease color;
    display: inline;
    line-height: normal;
}
  
.xc-link-intraction-teal-color:hover {
    color: #008996;
    background-size: 100% 0.125em;
}

.service-updates-header-mobile-wrapper {
    display: none;
}

@media (max-width: 1199px) { 
    .service-updates-header-wrapper {
        display: none;
    }

    .service-updates-header-mobile-wrapper {
        display: block;
    }

    .service-updates-header-mobile-wrapper {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 4px 0;
    }

    .service-overall-mobile-status {
        color: #FFF;
    }

    .service-overall-icon-good-service {
        background: #06A00D;
    }
    
    .service-overall-icon-problems-reported {
        background: #C65702;
    }

    .service-overall-icon-disruption-to-service {
        background: #CA123F;
    }
    
    .service-overall-icon-no-incidents {
        background: #06A00D;
    }

    .mobile-icon-good-service {
        background-image: url(../images/mobile-icon-good-service.svg);
    }

    .mobile-icon-problems-reported {
        background-image: url(../images/mobile-icon-problems-reported.svg);
    }
    
    .mobile-icon-disruption-to-service {
        background-image: url(../images/mobile-icon-disruption-to-service.svg);
    }
    
    .mobile-icon-no-incidents {
        background-image: url(../images/mobile-icon-good-service.svg);
    }

    .service-overall-mobile-status .service-status-div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    .accordion-header {
        gap: 24px;
    }
    
    .accordion-header .counter {
        font-size: 18px;
    }

    .incident-title,  .further-info-heading{
        font-size: 18px;
    }

    .incident-more-info p, .further-info p, .further-info li div {
        font-size: 16px;
    }

    .service-updates-grid-header {
        font-size: 34px;
    }

    .card-service-update-status-text {
        font-size: 18px;
    }

    .service-overall-mobile-status {
        width: 350px;
        max-width: 350px;
        display: flex;
        justify-content: space-between;
        padding: 6px 15px;
        align-items: center;
        font-size: 15px;
    }
}
  
@media (max-width: 767px) { 
    .service-update-info-time {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        margin-bottom: 20px;
        gap: 8px;
    }

    #service-update-refresh {
        font-size: 15px;
    }

    .service-update-incident-updated-at {
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    #service-update-incident-time {       
        font-size: 15px;
    }

    .service-update-fix-heading {
        font-size: 34px;
    }
    
    #service-update-updated-at{
        font-size: 14px;
    }

    .accordion-item {
        display: flex;
        padding: 24px 16px;
    }

    .accordion-header {
        gap: 16px;
    }

    .accordion-header .category {
        font-size: 18px;
    }

    .incident-header-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .incident-title {
        width: 100%;
        font-size: 16px;
    }

    .accordion-header .counter {
        font-size: 16px;
        width: 30px;
        height: 30px;
    }
    
    .service-update-status-text, 
    .incident-more-info p, 
    .further-info p, 
    .further-info-heading,
    .incident-header-row .toggle-more-info,
    .calling-stations table th,
    .calling-stations table td,
    .further-info li div {
        font-size: 16px;
    }

    .service-updates-grid-header {
        font-size: 30px;
    }

    .service-updates-grid ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .incident {
        padding: 24px 0;
    }

    .contact-detail{ 
        margin-top: 16px;
        margin-bottom: 40px;
    }

    .service-updates-grid-wrapper {
        gap: 16px;
    }

    .service-update-sub-heading{
        margin-bottom: 16px;
    }

    .calling-stations table {
        table-layout: auto;
    }

    .card-service-update-status-text {
        font-size: 16px;
    }

    .service-overall-mobile-status {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 15px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px;
        font-size: 12px;
    }

    .service-updates-header-mobile-wrapper a{
        width: 100%;
    }
}