.loader-container {
    padding: 113px 0;
    display: none;
}

.animation_loading {
    text-align: center;
    height: 80px;
    width: 80px;
    margin: 0 auto;
}

.animation_loading .loading {
    border: 16px solid #f3f3f3;
    border-top: 16px solid orange;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}

/* ------------------------------------------------------------- */

:root {
    --ink: #252e3b;
    --purple: #38328b;
    --lav: #f4f4ff;
    --border: #dfe1e7;
    --pink: #eb2385;
    --popular-ds-gap: 16px;
    --popular-ds-col: 3;
    --popular-ds-col-mobile: 2;
    --aaa: 4;
}

.content-grid {
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: 19px;
}

.categories {
    background-color: #f1f1ff;
    background-image: url(../../../../../content/dam/onemotoring/img/digital-services/category-bg.svg);
    background-position-y: -15px;
    border-radius: 14px;
    padding: 23px 13px;
    position: sticky;
    top: 150px;
    align-self: start;
    overflow: hidden;
    width: 100%;
}

.eServices h2 {
    font-size: 21px;
}

.categories p {
    line-height: 1.45;
    margin: 0 0 15px;
}

.ds-category-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ds-category {
    min-height: 75px;
    border: 1px solid #dedfe3;
    background: white;
    border-radius: 14px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.ds-category i {
    font-style: normal;
    width: 45px;
    height: 45px;
    background: #f5f5ff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.ds-category.selected,
.ds-category:hover {
    border-color: #5957BF;
    background: #d7d5f7;
}

.ds-category.selected i {
    background: #6560b6;
    color: white;
}

.services {
    min-width: 0;
}

.popular-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.popular-heading h2 {
    margin: 1px 0 16px;
}

.arrows {
    display: flex;
    gap: 12px;
    margin-top: -7px;
}

.arrows button {
    width: 37px;
    height: 37px;
}

.popular-digital-services {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.popular-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.popular-cards .section--home-popular-services__card {
    display: flex;
    margin: unset;
    min-height: auto;
    height: 105px;
    padding: 15px;
    align-content: center;
    flex: 0 0 calc((100% - var(--popular-ds-gap) * (var(--popular-ds-col) - 1)) / var(--popular-ds-col));
}

.popular-cards .section--home-popular-services__card__content {
    gap: 5px;
}

.popular-cards .section--home-popular-services__card__label {
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section--home-popular-services__card__tag {
    font-size: 14px;
    font-weight: normal;
}

.popular-card:hover {
    border-color: #5957BF;
}

.popular-digital-services:not(.expanded) .popular-cards :nth-child(n+7 of a.popular-card) {
    display: none !important;
}

.popular-toggle {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.popular-digital-services.expanded .popular-toggle .fa-chevron-down {
    transform: rotate(180deg);
    transition: .3s ease-in-out;
}


.services small {
    display: block;
    color: #5552ba;
    background: #f4f3ff;
    font-size: 12px;
    border-radius: 20px;
    padding: 5px 13px;
    width: max-content;
    font-weight: 400;
}

.service-search {
    border-radius: 14px;
    margin-top: 12px;
    box-shadow: 0 2px 2px #00000012;
    overflow: hidden;
}

.service-search .search-box {
    padding: 24px;
    background-color: #f4f4ff;
}

.search-field {
    margin: 16px 0;
    height: 46px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px 0 5px;
    color: #516071;
}

.search-field input {
    border: 0;
    outline: 0;
    width: 100%;
    background: white;
    padding: 0;
    height: 40px;
}

.search-field input::placeholder {
    color: #c5cad7;
}

.results {
    padding: 24px;
}

.results ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.results li {
    min-height: 65px;
    border-bottom: 1px solid var(--border);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.results li:last-child {
    border: 0;
}

.results li:hover {
    background-color: var(--popular-services-card-background-hover);
    border-color: var(--popular-services-card-border-color-hover);
}

.results li:hover .section--home-popular-services__card__tag {
    background-color: var(--popular-services-card-tag-background-hover);
    color: var(--popular-services-card-tag-label-color-hover);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 20px 0 10px 0;
}

.pagination button {
    border: 0;
    background: transparent;
    width: 23px;
    height: 25px;
    color: #52606f;
}

.pagination button.current,
.pagination button:enabled:hover {
    color: #4540a5;
    background: #f1f1ff;
    border-radius: 3px;
    font-weight: bold;
}

.pagination button:enabled:hover {
    cursor: pointer;
}

@media(max-width:768px) {
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .categories h2 {
        margin-bottom: 6px;
    }

    .categories p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .ds-category-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ds-category {
        min-height: 67px;
        padding: 8px 6px;
        gap: 5px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        font-size: 11px;
        border-radius: 10px;
    }

    .ds-category br {
        display: none;
    }

    /* Swap popular ds and categories sections*/
    .content-grid .services {
        display: contents;
    }

    .content-grid .popular-digital-services {
        order: 1;
    }

    .content-grid .categories {
        order: 2;
    }

    .service-search {
        order: 3;
        margin: 0;
    }

    .eServices h2 {
        font-size: 19px;
    }

    .arrows {
        gap: 6px;
        margin-top: -4px;
    }

    .arrows button {
        width: 31px;
        height: 31px;
        font-size: 25px;
    }

    .popular-digital-services {
        padding: 15px;
    }

    .categories,
    .popular-digital-services,
    .service-search .search-box,
    .service-search .results {
        padding: 15px;
    }

    .popular-cards .section--home-popular-services__card {
        --popular-ds-col: var(--popular-ds-col-mobile);
    }

    .results li {
        font-size: 14px;
        line-height: 1.35;
        padding: 15px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .results li small {
        font-size: 11px;
        padding: 4px 10px;
    }

    .pagination {
        gap: 2px;
    }

    .desktop-only {
        display: none;
    }
}

#eSearchBtn {
    position: unset;
    cursor: pointer;
    height: 44px;
    width: 44px;
    font-size: 1rem;
}

#eServices-search-title,
.search-results-header {
    margin: 0;
}

:focus {
    outline-color: #5957BF;
}

.eSearchResult.eservice a,
.eSearchResult.eservice a:visited {
    color: #23272E;
}

#page-1 :nth-last-child(1 of li.eSearchResult:not(.eDisabled)) {
    border-bottom: none;
}