.template-9840 .template__actions .template__link-btn,
.template-9840 .dropdown__toggle {
    display: inline-block;
    border: none;
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--color-1);
    border-right: 1px solid var(--color-1);
    width: 8px;
    height: 8px;
    transform: rotate(-45deg);
    transition: transform 0.3s, border-color 0.3s;
}

.template-9840 .template__actions .template__link-btn {
    margin-left: 5px;
}

@media ( max-width: 992px ) {
    
    .template-9840 .template__actions.is-active .template__link-btn {
        transform: translateY(-2px) rotate(45deg);
        border-color: var(--color-3);
    }
    
    .template-9840 .template__actions.is-active .template__link {
        color: var(--color-3);
    }
    
    .template-9840 .dropdown {
        display: none;
    }
    
    .template-9840 .template__actions.is-active ~ .dropdown {
        display: block;
    }

    .template-9840 .dropdown__subcategories {
        display: none;
    }

    .template-9840 .dropdown__category.is-active .dropdown__subcategories {
        display: block;
    }

    .template-9840 .dropdown__category.is-active .dropdown__toggle {
        transform: translateY(-2px) rotate(45deg);
        border-color: var(--color-3);
    }
}

@media (min-width: 991.92px) {

    .template-9840 .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .template-9840:hover .dropdown {
        opacity: 1;
        pointer-events: all;
    }

    .template-9840 .template__link:before {
        content: '';
        position: absolute;
        left: 50%;
        top: 100%;
        z-index: 1;
        width: 100%;
        height: 35px;
        transform: translateX(-50%);
        background: transparent;
    }

    .template-9840 .template__actions .template__link-btn {
        width: 6px;
        height: 6px;
        transform: rotate(45deg);
        margin-bottom: 4px;
    }

    .template-9840 .template__actions:hover .template__link-btn {
        transform: translateY(2px) rotate(-135deg);
        border-bottom: 1px solid var(--color-3);
        border-right: 1px solid var(--color-3);
    }
}
