.node--type-service {
    max-width: 85rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
}

.ui-widget-content .node--type-service {
    padding: 2rem 0;
}

.node--type-service .header {
    position: relative;
    min-height: 240px;
    border-bottom: 4px solid var(--primary);
    margin-bottom: 2rem;
    padding-right: 0;
    padding-bottom: 1rem;
}

.node--type-service .header h1 {
    order: -1;
}

.node--type-service .user {
    position: inherit;
}

.node--type-service .header img {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    position: relative;
    top: -1rem;
}

.node--type-service .header .flag {
    width: 100%;
}

.node--type-service .contact-details,
.node--type-service .service-details {
    border-bottom: 2px solid var(--primaryLight);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem 2rem;
}

.node--type-service .contact-details .access,
.node--type-service .service-details .details {
    width: 100%;
}

.node--type-service .service-details .details {
    margin-bottom: 2rem;
}

.node--type-service .contact-details .location-map,
.node--type-service .service-details .group_options {
    width: 100%;
}

.node--type-service .contact-details .location-map {
    order: -1;
    margin-bottom: 1rem;
}

.node--type-service .service-details .group_options table {
    width: 100%;
    background-color: var(--background);
    table-layout: fixed;
}

.node--type-service .service-details .group_options table th,
.node--type-service .service-details .group_options table td {
    border: 0;
    background-color: transparent;
    padding: 0.5rem 1rem 0.5rem 1rem;
    position: relative;
    font-size: 0.875rem;
}

.node--type-service .service-details .group_options table ul {
    padding-left: 0rem;
}

.node--type-service .service-details .group_options table ul li {
    list-style-type: none;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
}

.node--type-service .service-details .group_options table ul li:before {
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e908";
    position: relative;
    top: 1px;
    margin-right: 0.5rem;
    position: absolute;
    left: -0.25rem;
    top: 0.33rem;
    font-weight: 900;
    color: var(--primary);
}

.node--type-service .contact-details .field--name-field-address {
    margin-bottom: 1rem;
}

.node--type-service .contact-details .list-flex,
.node--type-service .service-details .list-flex {
    gap: 1rem;
}

.node--type-service .contact-details .list-flex a,
.node--type-service .service-details .list-flex li {
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: block;
    text-decoration: none;
    margin: 0;
    font-size: 0.875rem;
    word-break: break-all;
}

.node--type-service .service-details .list-flex li:has(a) {
    padding: 0;
    overflow: hidden;
} 

.node--type-service .service-details .list-flex li a {
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.node--type-service .service-details .list-flex li a:hover,
.node--type-service .service-details .list-flex li a:focus-visible {
    background-color: var(--primaryDark);
    color: white;
}

.node--type-service a[href ^= 'tel:']:before {
    content: "\e900";
    font-family: 'icomoon';
    margin-right: 0.5rem;
}

.node--type-service a[href ^= 'mailto:']:before {
    content: "\e901";
    font-family: 'icomoon';
    margin-right: 0.5rem;
}

.node--type-service .other-locations .list-flex {
    gap: 2rem;
    margin: 1rem 0;
    border-bottom: 2px solid var(--primary);
}

.node--type-service .other-locations .list-flex li {
    width: 18rem;
    border: 1px solid var(--borderGrey);
    box-shadow: 0 4px 4px rgba(0,0,0,0.15);
    padding: 1.5rem;
    border-radius: 1rem;
}

.node--type-service.node--view-mode-teaser {
    height: 100%;
    box-shadow: 0 4px 4px rgba(0,0,0,0.15);
    background-color: var(--background);
    transition: all 0.25s ease-in;
}

.node--type-service.node--view-mode-teaser a {
    word-break: normal;
    display: inline-block;
}

.node--type-service.node--view-mode-teaser img {
    filter: grayscale(1);
    transition: all 0.25s ease-in;
}

.node--type-service.node--view-mode-teaser:hover,
.node--type-service.node--view-mode-teaser:focus-within {
    background-color: var(--backgroundAlt);
    transition: all 0.25s ease-out;
}

.node--type-service.node--view-mode-teaser:hover img,
.node--type-service.node--view-mode-teaser:focus-within img {
    filter: grayscale(0);
    transition: all 0.25s ease-out;
    box-shadow: 0 4px 4px rgba(0,0,0,0.15);
}

.node--type-service.node--view-mode-teaser .address .country {
    display: none;
}

.node--type-service.node--view-mode-teaser .telephone {
    margin-top: 1rem;
}

.node--type-service.node--view-mode-teaser .telephone .list > li {
    margin-bottom: 0.5rem;
}

.node--type-service.node--view-mode-teaser .telephone a {
    display: block;
    text-decoration: none;
}

.node--type-service .header {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem 1rem
}

.node--type-service .header img {
    max-width: 100px;
    height: auto;
}

.node--type-service .user {
    display: flex;
    flex-wrap: wrap;
}

.node--type-service .user h2 {
    order: 1;
    width: 100%;
}

.node--type-service .field--name-node-changed-date {
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0.7;
    font-size: 75%;
}

@media screen and (min-width: 60em) {
    .node--type-service {
        padding: 2rem 1rem;
    }

    .node--type-service .header {
        display: block;
    }

    .node--type-service .header h1,
    .node--type-service .header h2 {
        padding-right: 230px;
    }

    .node--type-service .header h1 {
        margin-bottom: 1.5rem;
        order: 0;
    }

    .node--type-service .header img {
        max-width: 220px;
        height: auto;
        position: absolute;
        top: 0;
        right: 0.5rem;
    }

    .node--type-service .user {
        display: block;
    }

    .node--type-service .contact-details .access {
        order: -1;
    }

    .node--type-service .contact-details .list-flex a,
    .node--type-service .service-details .list-flex li {
        font-size: 1rem;
    }

    .node--type-service .contact-details .access,
    .node--type-service .service-details .details {
        width: 50%;
        padding-right: 2rem;
    }

    .node--type-service .contact-details .location-map,
    .node--type-service .service-details .group_options {
        width: 50%; 
        order: 0;
        margin-bottom: 0;
    }
}

.ui-dialog:has(.node--type-service) .span.ui-button-icon.ui-icon.ui-icon-closethick {
    width: 2rem;
    height: 2rem;
    top: 0;
    left: -0.5rem;
    background: none;
    filter: none;
}

.ui-dialog:has(.node--type-service) .span.ui-button-icon.ui-icon.ui-icon-closethick:before {
    position: absolute;
    font-size: 1.5rem;
    color: white;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: transparent;
    z-index: 100;
    text-indent: 0;
    filter: invert(1);
    font-family: 'icomoon';
    content: "\e91d";
    content: "\2716";
    line-height: 1.25;
}

/* Status Marker */
.view-service-status-marker .field-content {
    border: 4px solid;
    padding: 1rem;
    margin-bottom: 2rem;
    display: block;
    border-radius: 1rem;
    padding-bottom: 1.5rem;
    background-color: var(--background);
}

/* Draft */
.view-service-status-marker.view-display-id-entity_view_1 .field-content {
    border-color: var(--highlightRed);
}
/* Review */
.view-service-status-marker.view-display-id-entity_view_2 .field-content {
    border-color: var(--highlightOrange);
}
/* Archive */
.view-service-status-marker.view-display-id-entity_view_3 .field-content {
    border-color: var(--highlightBlue);
}