/* ======= DOREPLY SMS ========== */

doreply-guided-search {
    font-family: 'IBM Plex Sans', sans-serif;
}

.sms-wrapper {
    padding-top: 60px;
    background-color: #dcf2f9;
    background-image: none;
    height: 100%;
    width: 100%;
}

.doreply-container {
    max-width: var(--container--width);
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 1200px;
}

.doreply-guided-search-navigation-container {
    padding: 1.4rem;
}

.doreply-container .hydrated {
    z-index: 1;
}

.doreply-guided-search-navigation-container {
    max-width: 1280px;
    width: 100%;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    background-color: transparent;
}

html #main-wrapper:has(.sms-wrapper) footer {
    display: none;
}

html:has(.sms-wrapper) {
    background-color: #dff2fb;
}

.doreply-guided-search-navigation-container,
.doreply-guided-search-navigation-content {
    grid-template-columns: repeat(4, 25%);
}

.hydrated:has(.doreply-guided-search-feedback-icon-container) {
    background-color: transparent;
}

a.doreply-step {
    color: #2C2738;
    margin-bottom: 0px;
    font-weight: 400;
    padding: 0;
    grid-template-columns: 1rem auto 2rem
}

.doreply-guidedsearch-animation {
    border: 2px solid var(--secondary-nav-bg);
    height: fit-content;
    background-color: var(--secondary-nav-bg);
    padding: 10px;
}

.doreply-guidedsearch-animation .hydrated a {
    border-radius: 0.5rem;
}

a.doreply-step-active-state {
    background-color: rgb(255 122 0 / 15%);
    color: #2C2738;
}

.doreply-container #main-topic .hydrated:nth-last-child(1) a.doreply-step-active-state {
    background-color: #FF7A00;
    color: #fff;
}

.doreply-container #main-topic .hydrated:nth-last-child(2) a.doreply-step-active-state {
    background-color: #FF7A00;
    color: #fff;
}

.doreply-arrow>svg,
.doreply-step:has(.doreply-arrow-back) svg {
    display: none;
}

a.doreply-step .doreply-arrow {
    background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_inactive.svg?_cb=1703153166);
    background-repeat: no-repeat;
    width: 14px;
    height: 10px;
}

a.doreply-step:hover .doreply-arrow {
    background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_hover.svg?_cb=1703153166);
}

a.doreply-step.doreply-step-active-state .doreply-arrow,
a.doreply-step.doreply-step-active-state:hover .doreply-arrow {
    background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_hover.svg?_cb=1703153166);
    /* background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_active.svg?_cb=1703153166); */
}

a.doreply-step:not(:has(.doreply-link)):hover {
    background-color: rgb(255 122 0 / 15%);
}

a.doreply-step:has(.doreply-link):hover {
    background-color: transparent;
    text-decoration: underline;
    color: #FF7A00;
}

a.doreply-step:has(.doreply-link),
.doreply-back-button-container a.doreply-step:hover {
    background-color: transparent;
}

a.doreply-step.doreply-step-active-state:hover {
    background-color: rgb(255 122 0 / 15%);
    color: #2C2738;
}

.doreply-step:has(.doreply-arrow-back) {
    box-shadow: unset;
    border-bottom: 1px solid #DBDBDB;
    border-radius: 0;
}

.doreply-step:has(.doreply-arrow-back) .font-semibold.doreply-label {
    margin-left: 20px;
    font-weight: 500;
    color: #756F86;
}

.doreply-step .doreply-arrow-back {
    background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_back.svg?_cb=1703153166);
    background-repeat: no-repeat;
    margin: 10px;
    width: 14px;
    height: 10px;
}

doreply-guided-search-answer {
    display: none;
}

.sms-placeholder {
    height: 416px;
    width: 1200px;
    margin-top: 20px;
    margin-bottom: calc(48px + 2rem);
    display: flex;
    gap: 0.7rem;
}

.sms-placeholder .block {
    border-radius: 50%;
    background-color: #B7B4C0;
    width: 18px;
    height: 18px;
    transform-origin: center center;
    display: inline-block;
}

.sms-placeholder .block {
    position: relative;
    background-color: rgba($spCol, 1);
    opacity: 1;
    -webkit-animation: spScaleAlpha 1s infinite linear;
    animation: spScaleAlpha 1s infinite linear;
    height: auto;
    border-radius: 0.5rem;
    width: 25%;
}

.sms-placeholder .block.pl1 {
    animation-delay: 100ms;
}

.sms-placeholder .block.pl2 {
    animation-delay: 200ms;
}

.sms-placeholder .block.pl3 {
    animation-delay: 300ms;
}

.sms-placeholder .block.pl4 {
    animation-delay: 400ms;
}

@-webkit-keyframes spScaleAlpha {
    0% {
        opacity: 1;
    }

    33% {
        opacity: 0.25;
    }

    66% {
        opacity: 0.25;
    }

    100% {
        opacity: 1;
    }
}

@keyframes spScaleAlpha {
    0% {
        opacity: 1;
    }

    33% {
        opacity: 0.25;
    }

    66% {
        opacity: 0.25;
    }

    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 1024px) {

    .sms-placeholder .block {
        width: 100%;
    }

    .sms-placeholder .block:not(:first-child) {
        display: none;
    }

}


/* temporary external link fix */
a.doreply-step .doreply-arrow.doreply-link {
    background-image: url(https://www.higherlevel.nl/uploads/pages_media/link-solid.svg?_cb=1721052046);
    filter: invert(10%) sepia(5%) saturate(4559%) hue-rotate(216deg) brightness(96%) contrast(84%);
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    display: none;
}

a.doreply-step:hover .doreply-arrow.doreply-link {
    filter: invert(49%) sepia(44%) saturate(1907%) hue-rotate(359deg) brightness(100%) contrast(108%);
}

a.doreply-step.doreply-step-active-state .doreply-arrow.doreply-link {
    filter: invert(100%) sepia(0%) saturate(10%) hue-rotate(200deg) brightness(103%) contrast(105%);
}


/* SMS Mobile */

@media screen and (max-width: 1024px) {

    .doreply-guided-search-navigation-container,
    .doreply-guided-search-navigation-content {

        grid-template-columns: repeat(1, 100%);
    }

    .doreply-guidedsearch-animation {
        border-radius: 0.5rem;
    }

    .doreply-guidedsearch-animation .hydrated a {
        border-radius: 0.5rem;
    }
}

/* =============================
	DOREPLY ENHANCED V28.11.24
================================ */
.sms-placeholder {
    position: relative;
    z-index: -1;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) {
    position: relative;
}

.navigation-container {
    position: relative;
}

#ipsLayout_footer {
    z-index: 2;
    position: relative;
}

#navigation-tooltip {
    position: absolute;
    top: 21px;
    left: 25.5%;
    width: 24%;
    background-color: var(--navigation-tooltip-bg);
    color: #fff;
    padding: 20px;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 18%);
    z-index: 3;
}

@media screen and (max-width: 1270px) {
    .doreply-container {
        width: 94.4vw;
    }

    .sms-placeholder {
        width: 94vw;
    }
}

#navigation-tooltip::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--navigation-tooltip-bg);
    position: absolute;
    left: -10px;
    z-index: 999;
    top: 30px;
}

#navigation-tooltip h2 {
    font-size: 19px;
    color: #fff;
    font-weight: 700;
    padding-bottom: 10px;
}


.sms-tooltip-link {
    font-weight: 600;
    text-decoration: underline;
    color: #FFF;
}

a.doreply-step {
    position: relative;
}

.most-viewed-topic-block {
    position: relative;
    z-index: 2;
}

/* !! Only when screen is bigger then 1024px */
@media only screen and (min-width: 1024px) {

    :has(.doreply-guided-search-navigation-container > #primary-question) .cWidgetContainer--carousel {
        filter: blur(2.5px) brightness(0.75);
        pointer-events: none;
        z-index: 0;
    }
}


/* !! Only when screen is smaller then 1024px */

@media only screen and (max-width: 1024px) {

    :has(.doreply-guided-search-navigation-container > #primary-question) .most-viewed-topic-block {
        filter: unset;
    }

    .navigation-container {
        margin-top: unset;
    }

    .doreply-container {
        width: unset;
    }

    .doreply-guided-search-navigation-container {
        padding: 0;
    }

    #navigation-tooltip {
        position: relative;
        left: 0;
        width: 100%;
        top: 15px;
    }

    #navigation-tooltip::before {
        content: '';
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-top: 10px solid var(--navigation-tooltip-bg);
        border-right: 10px solid transparent;
        position: absolute;
        bottom: -20px;
        top: unset;
        left: 50%;
        transform: translate(-50%);
        z-index: 999;
    }

    .doreply-guidedsearch-animation {
        max-width: calc(100vw - 60px);
    }

}

@media only screen and (max-width: 979px) {
    .doreply-container {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .doreply-guidedsearch-animation {
        max-width: initial;
    }

    a.doreply-step:hover {
        color: #2C2738;
    }

    a.doreply-step:hover .doreply-arrow {
        background-image: url(https://www.higherlevel.nl/uploads/pages_media/SMS_arrow_inactive.svg?_cb=1703153166);
    }
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) a {
    font-weight: 700;
    background-color: transparant position: relative;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) a::before {
    content: '';
    width: 90%;
    height: 1px;
    background-color: rgba(var(--theme-text_light), 0.1);
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50%;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) a:hover {
    text-decoration: underline;
    color: #ff7a00;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) a.doreply-step-active-state>.doreply-label {
    color: #fff;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2) .doreply-label {
    color: #FF7A00;
    margin-left: 0;
    transition: 250ms all ease-in-out;
}

.doreply-container #main-topic .hydrated:nth-last-child(-n + 2)::after {
    content: url(https://www.higherlevel.nl/uploads/pages_media/Icon-Comment.svg?_cb=1734015113);
    width: 24px;
    height: 21px;
    margin-left: -3px;
    transition: 250ms all ease-in-out;
    display: block;
    filter: brightness(0) saturate(100%) invert(55%) sepia(37%) saturate(6680%) hue-rotate(4deg) brightness(108%) contrast(102%);

    position: absolute;
    right: 4px;
    top: 18px;
}

:has(.doreply-container) .ipsDialog.ipsDialog_narrow {
    top: 65px;
}

:has(#main-topic .doreply-step.doreply-step-active-state) #navigation-tooltip {
    display: none !important;
}

.doreply-arrow {
    margin-left: 7px;
}

/* ---- Dark mode ---- */

html[data-ips-scheme="dark"] .doreply-step {
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    color: #fff;
}

html[data-ips-scheme="dark"] .doreply-guidedsearch-animation:nth-child(1) doreply-guided-search-step:nth-last-child(2)>.doreply-step {
    border-bottom: 0;
}

html[data-ips-scheme="dark"] doreply-guided-search-step:nth-last-child(1)>.doreply-step {
    border-bottom: 0;
}

html[data-ips-scheme="dark"] a.doreply-step .doreply-arrow {
    filter: brightness(0) invert(1);
}

html[data-ips-scheme="dark"] a.doreply-step-active-state {
    background-color: rgb(255 122 0 / 100%);
    color: #2C2738;
}

html[data-ips-scheme="dark"] a.doreply-step.doreply-step-active-state:hover {
    background-color: rgb(248 138 37);
}

html[data-ips-scheme="dark"] a.doreply-step.doreply-step-active-state .doreply-arrow,
a.doreply-step.doreply-step-active-state:hover .doreply-arrow {
    filter: brightness(0) invert(.15);
}