.highlight-activity {
    // display: none;
    visibility: hidden;
    min-width: 320px;
    max-width: 600px;
    margin-bottom: 20px;

    &.apply-background {
        .custom-highlight {
            background-color: #d3d3d3;
        }
    }

    .hl-question {
        -ms-touch-action: none;
        touch-action: none;
        cursor: text;
    }

    .hl-answer {
        display: none;
    }

    .hl-controls {
        margin-top: 0;

        button {
            display: inline-block;
            vertical-align: top;
            min-width: 38px;
            min-height: 38px;
            box-sizing: content-box;
            border: 1px solid #999999;
            border-radius: 3px;
            padding: 4px;
            margin-right: 5px;
            margin-bottom: 5px;
            text-align: left;

            & > * {
                vertical-align: top;
            }

            img {
                float: left;
                margin: 1px;
                border: 1px solid #d6d6d6;
                border-radius: 2px;
            }
        }

        .pen {
            span {
                display: inline-block;
                word-wrap: break-word;

                &:not(:empty) {
                    width: 110px;
                    margin-left: 5px;
                }
            }
        }

        .pen-selected {
            @each $colour, $hex in $pens {
                &.btn-pen-#{$colour} img {
                    margin: 0;
                    border-color: $hex;
                    border-width: 2px;
                }
            }
        }

        button.undo {
            float: right;
        }
    }

    @each $colour, $hex in $pens {
        .#{$colour} {
            background-color: $hex !important;
        }

        .selection-#{$colour} span::selection {
            background: $hex;
        }

        .selection-#{$colour} span::-moz-selection {
            background: $hex;
        }
    }

    .btn-group {
        margin-bottom: 15px;
    }
}