
/*
*  
* ==========================================================
* SHARED.SCSS
* ==========================================================
*
* Shared CSS used on both admin and front end. This file is imported only.
*
*/

$transition: all 0.4s;
$color-blue: #028be5;
$color-dark-blue: rgb(0, 76, 125);
$color-black: rgb(36, 39, 42);
$color-gray: rgb(86, 96, 105);
$color-red: rgb(202, 52, 52);
$color-green: rgb(26, 146, 96);
$color-yellow: rgb(246, 158, 0);
$background-gray: rgb(245, 247, 250);
$background-color-2: rgba(39, 156, 255, 0.08);
$background-color-red: rgba(202, 52, 52, 0.1);
$background-color-yellow: rgb(242, 227, 124);
$border-color: rgb(212, 212, 212);
$white: #fff;
$box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);

@import "../media/icons/icons.scss";

@font-face {
    font-family: "Support Board Font";
    src: url("../media/fonts/regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Support Board Font";
    src: url("../media/fonts/medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@keyframes sb-fade-animation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes sb-fade-bottom-animation {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }

    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes sb-fade-bottom-center {
    0% {
        transform: translateY(15px) translateX(-50%);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%);
        opacity: 1;
    }
}

.sb-main, .sb-articles-page,
.sb-main input,
.sb-main textarea,
.sb-main select {
    font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
}

.sb-main *, .sb-articles-page * {
    box-sizing: content-box;
    outline: none;
}

.sb-main input, .sb-articles-page input, .sb-articles-page input[text], .sb-main input[text], .sb-main textarea, .sb-main input[email] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sb-clear {
    width: 100%;
    clear: both;
}

.sb-no-results {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.3px;
    margin: 0;
    color: $color-gray;
    opacity: 0.7;
}

.sb-no-results-active > .sb-no-results {
    display: block !important;
    opacity: 1;
}

.sb-no-results-active > div:not(.sb-no-results) {
    display: none !important;
}

.sb-hide, .sb-grid.sb-hide {
    display: none !important;
}

.sb-scroll-area, .sb-conversation .sb-list, .sb-list .sb-message pre, .sb-rich-table .sb-content, .sb-admin .sb-top-bar > div:first-child > ul,
.sb-dialog-box pre, .sb-horizontal-scroll {
    overflow: hidden;
    overflow-y: scroll;

    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    &::-webkit-scrollbar-thumb {
        background: #BFCBD3;
        border-radius: 6px;
        transition: $transition;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: $color-blue;
    }
}

.sb-list .sb-message pre, .sb-rich-table .sb-content, .sb-admin .sb-top-bar > div:first-child > ul, .sb-dialog-box pre, .sb-horizontal-scroll {
    overflow-y: hidden;

    &::-webkit-scrollbar {
        height: 5px;
    }
}

div ul.sb-menu, .sb-select ul, .sb-popup, .sb-menu-mobile > ul, .sb-menu-mobile .sb-mobile, .sb-area-users .sb-filter-btn > div {
    background: $white;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: $box-shadow;
    z-index: 9999995;
    list-style: none;
}

.sb-horizontal-scroll {
    overflow-y: hidden;
    overflow-x: scroll;
}

/*

# USER CONVERSATIONS
==========================================================

*/

.sb-user-conversations {
    > li {
        border-bottom: 1px solid $border-color;
        padding: 15px;
        margin: 0;
        cursor: pointer;
        border-left: 2px solid rgba(255, 255, 255, 0);
        transition: $transition;
        position: relative;

        > div {
            position: relative;
            color: rgb(60, 60, 60);
            font-size: 13px;
            padding-left: 55px;
            line-height: 25px;
            letter-spacing: 0.3px;

            > img {
                position: absolute;
                left: 0;
                top: 5px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                display: block;
            }

            div:not(.sb-message) {
                display: flex;
                justify-content: space-between;
                opacity: 0.85;

                > span {
                    white-space: nowrap;
                }

                > span:first-child {
                    overflow: hidden;
                    margin-right: 15px;
                }
            }

            .sb-message {
                font-weight: 500;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                height: 25px;
            }
        }

        &:hover,
        &.sb-active {
            background-color: $background-gray;
        }

        &.sb-active {
            border-left-color: $color-blue;
        }
    }
}

.sb-chat-btn span, .sb-user-conversations > li > [data-count] {
    position: absolute;
    width: 20px;
    height: 20px;
    text-align: center;
    background: $color-red;
    color: $white;
    border-radius: 100%;
    font-weight: 500;
    font-size: 11px;
    line-height: 22px;
    top: 0;
    left: -3px;
    z-index: 2;
    animation: sb-fade-animation 0.3s;

    &:empty,
    &[data-count="0"] {
        display: none;
    }
}

.sb-user-conversations > li {

    & > [data-count] {
        left: 20px;
        top: 33px;
        border: 3px solid $white;
    }

    &:hover > [data-count] {
        border-color: $background-gray;
    }
}

/*

# MESSAGES LIST AND CHAT
==========================================================

*/

.sb-chat, .sb-list {
    .sb-btn-text:hover {
        color: $color-blue;
    }
}

.sb-list {
    > div {
        float: left;
        clear: both;
        position: relative;
        margin: 2px 10px 25px 20px;
        box-shadow: none;
        background-color: rgb(245, 245, 245);
        border-radius: 6px;
        padding: 8px 12px;
        max-width: calc(90% - 110px);

        &.sb-thumb-active {
            margin-left: 55px;

            .sb-thumb {
                display: block;
            }

            &.sb-rich-cnt {
                max-width: calc(90% - 115px);
            }
        }

        &.sb-rich-cnt {
            background-color: rgb(247, 247, 247);
            max-width: calc(90% - 80px);

            .sb-message {
                overflow: visible;
            }

            .sb-agent-name {
                display: none;
            }
        }

        &[data-type="slider"], &[data-type="slider-images"] {
            width: 100%;
        }

        &:first-child > span {
            margin-top: 0 !important;
        }

        &:last-child {
            margin-bottom: 30px !important;
        }

        &:not(.sb-right):last-child, > [data-id="sending"] {
            animation: sb-fade-bottom-animation .4s;
        }

        &.sb-right {
            float: right;
            margin: 2px 20px 25px 10px;
            background-color: #E6F2FC;

            &.sb-rich-cnt {
                .sb-text {
                    background-color: #E6F2FC;
                }
            }

            .sb-thumb {
                right: -35px;
                left: auto;
            }

            .sb-message,
            .sb-message a,
            .sb-rich-message .sb-text {
                color: $color-dark-blue;
            }

            &.sb-thumb-active {
                margin-right: 50px;
            }

            .sb-time {
                right: 0;
                left: auto;
            }

            .sb-message:not(:empty) + .sb-message-attachments .sb-player {
                border-color: rgba(0, 76, 125, .17);
            }
        }

        &:not(.sb-right):not(.sb-label-date) + .sb-right, &.sb-right + div:not(.sb-right):not(.sb-label-date) {
            margin-top: 15px;
        }
    }

    .sb-thumb {
        position: absolute;
        left: -35px;
        top: 1px;
        width: 25px;
        display: none;

        > img {
            width: 25px;
            height: 25px;
            border-radius: 50%;
        }

        > div {
            display: none;
        }
    }

    .sb-message,
    .sb-message a {
        color: $color-gray;
        font-size: 13px;
        line-height: 21px;
        letter-spacing: 0.3px;
        outline: none;
    }

    .sb-message {
        overflow: hidden;
        text-overflow: ellipsis;

        b {
            font-weight: 500;
        }

        code {
            padding: 3px 7px;
            color: rgb(224, 30, 90);
            background: rgba(224, 30, 90, 0.06);
            border-radius: 3px;
            max-width: 100%;
            overflow: hidden;
        }

        code a {
            color: rgb(224, 30, 90) !important;
            text-decoration: none;
        }

        pre {
            font-family: monospace;
            margin: 0;
            color: rgb(44, 80, 106);
            overflow-x: scroll;
            background: rgb(238, 238, 238);
            padding: 5px 5px 7px 5px;
            border-radius: 3px;
            border: 1px solid rgb(219, 219, 219);

            code {
                padding: 0;
                color: rgb(44, 80, 106);
                background: none;
                display: inline;
            }
        }

        span + pre, pre + span {
            margin-top: 10px;
            display: block;
        }


        .emoji-large {
            font-size: 35px;
            line-height: 45px;
        }

        .sb-image {
            margin-top: 6px;
        }

        .sb-rich-image .sb-image {
            margin-top: 0;
        }

        .sb-agent-name {
            display: block;
            opacity: 0.8;
            font-size: 11px;
        }

        &:not(.sb-message-media) > .sb-image {
            margin-bottom: 5px;
        }
    }

    .sb-message:not(:empty) + .sb-message-attachments {
        padding-top: 15px;

        .sb-player {
            border-top: 1px solid $border-color;
        }
    }

    .sb-message-attachments {
        a {
            text-decoration: none;
            font-style: normal;
            color: $color-gray;
            position: relative;
            display: block;
            transition: $transition;
            padding-left: 25px;
            font-size: 13px;
            line-height: 21px;
            letter-spacing: 0.3px;
            overflow: hidden;
            text-overflow: ellipsis;

            &:before {
                content: "\65";
                font-family: "Support Board Icons";
                position: absolute;
                left: 0;
                font-size: 15px;
                opacity: 0.8;
                line-height: 21px;
            }

            &:hover {
                color: $color-blue;
            }

            & + a {
                margin-top: 7px;
            }
        }

        &:empty {
            display: none;
        }
    }

    .sb-time {
        opacity: .9;
        color: $color-gray;
        font-size: 11px;
        letter-spacing: 0.5px;
        line-height: 16px;
        bottom: -20px;
        left: 0;
        white-space: nowrap;
        position: absolute;
        display: flex;

        > span:first-child {
            display: none;
        }

        i {
            padding-left: 10px;
        }
    }

    .sb-message-media {
        margin: -8px -12px;
        background: $white;
        text-align: right;

        .sb-image:first-child {
            margin-top: 0;
        }
    }

    [data-id="sending"] {
        .sb-message {
            opacity: .5;
        }

        &.sb-right .sb-time, .sb-time {
            right: 19px;
            flex-direction: row;

            > i {
                position: relative;

                &:after {
                    content: "...";
                    position: absolute;
                    width: 15px;
                    left: calc(100% + 5px);
                    bottom: 0;
                    font-weight: 500;
                    letter-spacing: 1px;
                    overflow: hidden;
                    animation: sb-typing 1s infinite;
                }
            }
        }
    }

    [data-type="youtube-video"] {
        padding: 0;

        .sb-rich-message {
            margin: 0;
            padding: 0;
            border-radius: 6px;
            overflow: hidden;
        }
    }
}

.sb-list > div.sb-label-date, .sb-label-date-top {
    text-align: center;
    max-width: 100% !important;
    width: auto;
    float: none !important;
    background: none;
    margin: 0 !important;

    span {
        display: inline-block;
        background: #f5f7fa;
        padding: 0 10px;
        border-radius: 4px;
        font-size: 12px;
        line-height: 26px;
        letter-spacing: .3px;
        margin: 15px auto 15px auto;
        font-weight: 400;
        color: $color-gray;
        user-select: none;
    }
}

.sb-label-date-top {
    position: absolute;
    top: 73px;
    left: 0;
    right: 5px;
    z-index: 2;
    opacity: 0;
    transition: $transition;

    &.sb-active {
        opacity: 1;
    }

    &:empty {
        display: none;
    }
}

.sb-label-date + .sb-label-date {
    display: none;
}

/*

# CHAT HTML COMPONENTS
==========================================================

*/

.sb-list {
    .sb-form {
        & + .sb-btn {
            margin-top: 25px;
        }

        & + .sb-form {
            margin-top: 15px;
        }
    }

    table {
        border-collapse: collapse;

        th,
        td {
            padding: 5px 7px;
            border-bottom: 1px solid rgba(143, 143, 143, 0.29);
            text-align: left;
            color: $color-black;
            font-size: 12px;
            line-height: 23px;
        }

        th {
            border-bottom: 1px solid rgba(143, 143, 143, 0.6);
            font-size: 14px;
        }

        tr:last-child td {
            border-bottom: 0;
        }
    }

    .sb-text-list {
        > div {
            padding-bottom: 6px;

            > div:first-child {
                font-weight: 500;
            }

            &:last-child {
                padding-bottom: 0;
            }
        }
    }

    .sb-text-list-single {
        > div {
            position: relative;
            padding-left: 15px;

            &:before {
                content: "";
                position: absolute;
                width: 5px;
                height: 5px;
                background: $color-gray;
                border-radius: 50%;
                top: 9px;
                left: 0;
            }

            &[data-inner="true"] {
                padding-left: 35px;

                &:before {
                    left: 15px;
                }
            }
        }
    }

    .sb-text-list-numeric {
        counter-reset: list-number;

        > div {
            padding-left: 20px;

            &:not([data-inner]):before {
                content: counter(list-number) ". ";
                width: auto;
                height: auto;
                background: none;
                top: auto;
                border-radius: 0;
                counter-increment: list-number;
            }
        }
    }

    .sb-image-list {
        > div {
            padding: 5px 0 10px 50px;
            position: relative;

            > .sb-thumb {
                display: block;
                position: absolute;
                left: 0;
                top: 4px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-size: cover;
                margin: 0;
                background-position: center center;
            }

            .sb-list-title {
                font-weight: 500;
                font-size: 12px;
                line-height: 18px;

                span {
                    opacity: .7;
                }
            }

            &:last-child {
                padding-bottom: 0;
            }
        }

        & + a {
            margin-top: 15px;
        }
    }

    iframe {
        width: 100%;
        border: none;
    }

    iframe:not([height]) {
        height: 115px;
        display: block;
    }
}

.sb-player {
    display: flex;
    align-items: center;
    margin: -6.5px -11px;

    > div {
        background: transparent;
        width: 20px;
        border-radius: 15px;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 13px;
        line-height: 21px;
        transition: $transition;

        &:hover {
            color: $color-blue;
        }

        &:active {
            background: rgba(0, 0, 0, .08) !important;
        }
    }

    .sb-player-btn {
        width: 38px;
        height: 34px;
        line-height: 38px;
        font-size: 14px;
        padding: 0;
        text-align: center;
        border-radius: 50%;

        &:before {
            line-height: 34px;
        }
    }

    .sb-player-speed {
        display: flex;
        align-items: center;

        .sb-player-speed-number {
            font-weight: 500;
        }

        .sb-icon-close {
            font-size: 7px;
            height: 19px;
            line-height: 21px;
            padding-left: 2px;

            &:before {
                line-height: 20px;
            }
        }
    }

    .sb-player-download {
        text-align: center;

        &:before {
            transform: translateY(2px);
            display: inline-block;
        }
    }

    audio {
        position: absolute;
        width: 0;
        height: 0;
        visibility: hidden;
    }
}

.sb-right .sb-player > div {
    background-color: #E6F2FC;
    color: $color-dark-blue;
}

#sb-audio-clip {
    display: none;
    align-items: center;
    position: absolute;
    top: 1px;
    bottom: 0;
    right: 50px;
    left: 0;
    background: rgb(251, 251, 251);
    color: $color-gray;
    z-index: 2;

    .sb-icon {
        font-size: 15px;
        height: 100%;
        line-height: 100%;
        padding: 0 15px;
        cursor: pointer;
        color: $color-gray;
        transition: color .5s;

        &:before {
            line-height: 55px;
        }
    }

    .sb-icon-mic {
        font-size: 20px;
        color: $color-red;
    }

    .sb-icon-close {
        font-size: 11px;


        &:hover {
            color: $color-red;
        }
    }

    .sb-btn-mic {
        color: $color-red;

        &:hover {
            color: $color-black;
        }
    }

    .sb-btn-clip-player {
        display: none;
        width: 11px;

        &.sb-active {
            display: block;
            margin-right: -15px;
        }

        &:hover {
            color: $color-blue;
        }
    }

    .sb-audio-clip-time {
        font-size: 15px;
        font-weight: 500;
    }

    .sb-audio-clip-cnt {
        display: flex;
        align-items: center;
        padding: 0 15px;
        height: 100%;
        border-right: 1px solid $border-color;
        border-left: 1px solid $border-color;
    }

    &.sb-active {
        display: flex;
    }
}

/*

# EDITOR
==========================================================

*/

.sb-editor {
    background: rgb(251, 251, 251);
    padding-bottom: 0;
    padding: 15px;
    position: relative;
    margin: 0;

    textarea {
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        font-size: 13px;
        letter-spacing: 0.3px;
        width: 100%;
        height: 25px;
        line-height: 25px;
        min-height: 25px !important;
        padding: 0px !important;
        outline: none !important;
        text-align: left;
        font-weight: 400;
        resize: none !important;
        border: none !important;
        color: $color-gray !important;
        background: transparent !important;
        transition: $transition;
        overflow: hidden;
        display: block;
    }

    .sb-submit {
        color: $color-blue;
        display: none;
        cursor: pointer;
        font-size: 18px;
        line-height: 19px;
        padding-left: 13px;
        height: 19px;
        transition: $transition;

        &:hover {
            color: $color-dark-blue;
        }
    }

    .sb-bar {
        position: absolute;
        display: flex;
        align-items: center;
        max-height: 26px;
        right: 0;
        top: 0;
        bottom: 0;
    }

    &.sb-active .sb-bar {
        .sb-submit {
            display: block;
        }

        .sb-btn-attachment, .sb-btn-audio-clip {
            display: none;
        }
    }

    .sb-upload-form-editor {
        display: none;
    }

    .sb-bar-icons {
        display: flex;
        justify-content: flex-start;

        > div {
            width: 30px;
            height: 28px;
            margin-right: 8px;
            position: relative;
            cursor: pointer;

            &:last-child {
                margin-right: 0;
            }

            &:before {
                font-family: "Support Board Icons";
                position: absolute;
                left: 7px;
                font-size: 19px;
                line-height: 30px;
                color: $color-gray;
            }

            &.sb-btn-attachment:before {
                content: "\65";
            }

            &.sb-btn-saved-replies:before {
                content: "\71";
                font-size: 21px;
            }

            &.sb-btn-attachment {
                margin-right: 7px;
            }

            &.sb-btn-audio-clip {
                margin-right: 0;
            }

            &.sb-btn-emoji:before {
                content: "\72";
            }

            &.sb-btn-audio-clip:before {
                content: "\e903";
                font-size: 22px;
                left: 3px;
            }

            &.sb-btn-open-ai:not(.sb-active) {
                display: none;
            }

            &.sb-btn-woocommerce:before {
                content: "\52";
                font-size: 22px;
            }

            &.sb-btn-open-ai.sb-loading:before {
                left: 15px;
            }

            &:hover:before {
                color: $color-blue;
            }
        }
    }

    .sb-attachments {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;

        > div {
            margin: 5px 5px 5px 0;
            padding: 0 20px 0 0;
            position: relative;
            font-size: 11px;
            line-height: 13px;
            height: 13px;
            font-weight: 500;
            cursor: default;

            > i {
                position: absolute;
                right: 5px;
                font-size: 8px;
                line-height: 8px;
                width: 8px;
                height: 8px;
                top: 50%;
                margin: -5px 0 0 0;
                color: $color-red;
                cursor: pointer;
                opacity: 0;
                transition: $transition;
            }

            &:hover > i {
                opacity: 1;
            }
        }
    }

    .sb-loader {
        height: 25px;
        display: none;
        position: absolute;
        right: 0;
        background: $white;

        &.sb-active {
            display: block;
        }
    }

    &.sb-drag {
        border-color: $color-blue !important;
        background-color: rgb(224, 236, 246) !important;

        .sb-textarea, .sb-bar, .sb-attachments, .sb-suggestions {
            opacity: 0 !important;
            z-index: -1 !important;
        }

        &:before {
            content: "\4d";
            font-family: "Support Board Icons";
            font-style: normal;
            font-weight: normal;
            text-transform: none;
            position: absolute;
            font-size: 13px;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin: -10px 0 0 -10px;
            color: $color-blue;
        }
    }
}

/*

# ARTICLES 
==========================================================

*/

.sb-article {
    h1, h2, h3 {
        font-weight: 500;
    }

    .sb-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 30px;
        padding-bottom: 25px;
        letter-spacing: 0.5px;
        position: relative;

        .sb-icon-close {
            position: absolute;
            right: 0;
            top: 0px;
            font-size: 12px;
            transition: $transition;
            cursor: pointer;

            &:hover {
                color: $color-red;
            }
        }
    }

    .sb-content {
        font-size: 13px;
        line-height: 25px;
        color: $color-gray;
        letter-spacing: 0.3px;

        > img, .sb-image {
            max-width: 100%;
            margin: 15px 0;
            display: block;
            border-radius: 3px;
        }

        h1, h2, h3, h4, h5, h6 {
            letter-spacing: .3px;
            margin: 0;
            transition: $transition;
            color: $color-black;
            font-size: 18px;
            line-height: 25px;
            margin: 15px 0;
        }

        h3 {
            font-size: 16px;
            line-height: 21px;
        }

        h4, h5, h6 {
            font-size: 14px;
            line-height: 18px;
        }

        p {
            font-weight: 400;
            font-size: 13px;
            line-height: 25px;
            overflow: hidden;
            text-overflow: ellipsis;
            color: $color-gray;
            margin: 5px 0;
            letter-spacing: .3px;

            &:empty {
                display: none;
            }
        }

        b {
            font-weight: 500;
        }

        code {
            background: $background-gray;
            border: 1px solid $border-color;
            display: block;
            border-radius: 4px;
            padding: 10px;
            overflow-x: scroll;
        }

        > *:first-child {
            margin-top: 0;
        }
    }

    .sb-btn-text {
        margin-top: 25px;
        text-decoration: none;
    }

    ul {
        padding-left: 15px;

        li {
            list-style: disc;
        }

        &.sb-ul-ordered, &.sb-ul-unordered {
            padding-left: 15px;
        }

        &.sb-ul-ordered li {
            list-style: decimal;
        }

        &.sb-ul-unordered li {
            list-style: disc;
        }
    }

    a, ul a {
        color: $color-black;
        text-decoration: underline;
    }

    .sb-rating, .sb-btn-text + .sb-article-category-links {
        display: flex;
        padding-top: 30px;
        margin-top: 30px;
        margin-bottom: 0;
        height: 20px;
        border-top: 1px solid $border-color;
    }

    .sb-rating {
        color: $color-black;
    }

    &[data-user-rating="1"] {
        [data-rating="positive"] {
            color: $color-green;
            cursor: default;
        }

        [data-rating="negative"] {
            display: none;
        }
    }

    &[data-user-rating="-1"] {
        [data-rating="positive"] {
            display: none;
        }

        [data-rating="negative"] {
            color: $color-red;
            cursor: default;
        }
    }
}

.sb-chat .sb-article {
    > .sb-title:first-child {
        border-bottom: 1px solid $border-color;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 17px;
    }

    h3, h4, h5, h6 {
        font-size: 15px;
    }
}

.sb-panel-articles {
    animation: sb-fade-animation .5s;
}

.sb-panel-articles .sb-title .sb-icon-close {
    display: none;
}

.sb-article-category-links {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin: 15px 0 15px 0;
    height: auto !important;

    > span {
        position: relative;
        display: block;
        font-weight: 500;
        font-size: 13px;
        margin-right: 20px;
        letter-spacing: .3px;
        transition: $transition;

        & + span:before {
            content: "";
            position: absolute;
            left: -10px;
            top: 50%;
            margin-top: -6px;
            height: 12px;
            width: 1px;
            background: $color-blue;
        }
    }
}

.bxc-raw-html > img {
    max-width: 100%;
}

/*

# LOADING
==========================================================

*/

@keyframes sb-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sb-loading {
    position: relative;
    text-indent: -999995px;
    overflow: hidden;

    i {
        display: none;
    }

    &:before {
        content: "\76";
        font-family: "Support Board Icons";
        font-style: normal;
        font-weight: normal;
        text-transform: none;
        text-indent: 0;
        animation: sb-loading 0.6s linear infinite;
        display: block;
        width: 30px;
        height: 30px;
        line-height: 29px;
        font-size: 21px;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-top: -15px;
        margin-left: -15px;
        z-index: 1;
        color: $color-blue;
    }

    div, ul, h1, h2, h3, h4, p, span, table, a {
        opacity: 0;
    }
}

.sb-btn.sb-loading:hover:before {
    color: $white;
}

/*

# BUTTONS
==========================================================

*/

.sb-btn, a.sb-btn {
    font-size: 13px;
    line-height: 36px;
    letter-spacing: 0.3px;
    font-weight: 500;
    border-radius: 30px;
    min-width: 0;
    background-color: $color-blue;
    text-decoration: none;
    color: $white;
    height: 35px;
    padding: 0 25px;
    position: relative;
    display: inline-block;
    border: none;
    text-align: center;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transition: $transition;
    user-select: none;

    &.sb-icon {
        padding-left: 50px;

        > i {
            position: absolute;
            left: 25px;
            line-height: 36px;

            &:before {
                line-height: 36px;
            }
        }
    }

    &:hover,
    &:active {
        background-color: $color-dark-blue;
        color: $white;
    }

    &:before {
        color: $white;
    }

    &:not(.sb-hide) + a {
        margin-left: 15px;
    }

    &.sb-rich-btn {
        color: $white !important;
        line-height: 35px;
    }

    &.sb-icon-check:not(.sb-loading):before {
        margin-right: 15px;
        transform: translateY(2px);
        display: inline-block;
    }
}

.sb-btn.sb-btn-black {
    background-color: $color-black;

    &:hover {
        background-color: $color-gray;
    }
}

.sb-btn.sb-btn-red {
    background-color: $color-red;

    &:hover {
        background-color: $color-black;
    }
}

.sb-btn-icon {
    position: relative;
    cursor: pointer;
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255, 255, 255, 0);
    opacity: 0.8;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: $transition;
    text-decoration: none !important;
    overflow: hidden;
    color: $color-black;

    i {
        line-height: 40px;
        font-size: 18px;
        width: 33px;

        &:before {
            font-size: 18px;
            line-height: 35px;
        }

        &.sb-icon-file:before {
            font-size: 19px;
            display: block;
            transform: translateY(1px);
        }
    }

    &:before {
        font-size: 23px;
        line-height: 35px;
    }

    &:hover {
        opacity: 1;
        border-color: $color-blue;
        color: $color-blue;
        background-color: $background-color-2;
    }

    &.sb-btn-red:hover {
        border-color: $color-red;
        color: $color-red;
        background-color: $background-color-red;
    }

    &.sb-btn-red:hover i {
        color: $color-red !important;
    }
}

.sb-btn-text {
    color: $color-gray;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    position: relative;
    background: none !important;
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: $transition;

    i {
        margin-right: 15px;
        margin-left: 1px;
        transform: translateY(2px);
        display: inline-block;
    }

    &:hover {
        color: $color-blue;
    }

    &.sb-btn-red:hover {
        color: $color-red;
    }
}

/*

# INPUT
==========================================================

*/

.sb-input {
    display: flex;
    justify-content: space-between;
    align-items: center;

    > span {
        display: inline-block;
        width: 150px;
        min-width: 150px;
        flex-grow: 1;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.3px;
        color: $color-gray;
    }

    > input,
    > select,
    > textarea {
        position: static;
        border-radius: 4px !important;
        color: $color-black;
        font-size: 13px;
        line-height: 35px;
        font-weight: 400;
        border: 1px solid $border-color;
        background-color: rgb(248, 248, 249);
        outline: none;
        height: 42px;
        min-height: 42px;
        padding: 0 10px;
        transition: all 0.4s;
        width: 100%;
        margin: 0 !important;
        box-sizing: border-box;
        box-shadow: none;

        &:focus, &.sb-focus {
            border: 1px solid $color-blue;
            box-shadow: 0 0 5px rgba(39, 156, 255, 0.2);
            background: $white;
            color: $color-black;
            outline: none !important;
        }

        &.sb-error {
            border: 1px solid $color-red;
            box-shadow: 0 0 5px rgba(202, 52, 52, 0.25);
        }
    }

    > select {
        min-height: 37px;
    }

    > textarea {
        line-height: 20px;
        min-height: 75px;
        padding: 8px 10px;
    }

    > input[type=date]::-webkit-clear-button {
        -webkit-appearance: none;
        display: none;
    }

    > input[type="checkbox"] {
        background: $white;
        clear: none;
        cursor: pointer;
        display: inline-block;
        line-height: 0;
        height: 35px;
        min-height: 35px;
        outline: 0;
        padding: 0;
        margin: 0;
        text-align: center;
        vertical-align: middle;
        width: 35px;
        min-width: 35px !important;
        outline: none;
        box-shadow: none;
        -webkit-appearance: none;

        &:checked:before {
            content: "\77" !important;
            font-family: "Support Board Icons" !important;
            font-style: normal !important;
            font-weight: normal !important;
            font-variant: normal !important;
            text-transform: none !important;
            line-height: 35px;
            font-size: 15px;
            color: $color-blue;
            margin: 0;
            width: 100%;
            height: 100%;
        }
    }

    > div {
        padding-right: 30px;
        max-width: 800px;

        span {
            font-weight: 600;
            font-size: 15px;
            line-height: 25px;
            display: block;
        }

        p {
            font-size: 13px;
            line-height: 22px;
            letter-spacing: 0.3px;
            margin: 5px 0 0 0;
            color: $color-gray;
        }
    }

    > input[type="date"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        display: none;
    }

    & + .sb-input {
        margin-top: 10px;
    }

    &.sb-input-btn {
        input:first-child {
            line-height: 40px;
        }

        > div {
            background-color: $color-blue;
            color: $white;
            height: 42px;
            line-height: 47px;
            margin-left: -3px;
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
            text-align: center;
            padding: 0;
            width: 50px;
            cursor: pointer;
            z-index: 1;
            transition: $transition;

            &:hover {
                background-color: $color-dark-blue;
            }

            &.sb-loading:before {
                color: $white;
            }

            &:not(.sb-loading):before {
                line-height: 42px;
            }
        }
    }

    &.sb-loading select {
        color: rgb(248, 248, 249);
    }
}

.sb-input-image {
    .image {
        border-radius: 4px;
        border: 1px solid $border-color;
        width: 100%;
        height: 100px;
        padding: 0;
        position: relative;
        cursor: pointer;
        background-color: rgb(248, 248, 249);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;

        &:before {
            content: "\70";
            font-family: "Support Board Icons" !important;
            position: absolute;
            left: 50%;
            top: 50%;
            font-size: 9px;
            color: $color-gray;
            width: 30px;
            height: 30px;
            line-height: 30px;
            margin: -15px 0 0 -15px;
            text-align: center;
            transform: rotate(45deg);
        }

        &:hover {
            border: 1px solid $color-blue;
            box-shadow: 0 0 5px rgba(39, 156, 255, 0.2);
            background-color: $white;

            &:before {
                color: $color-blue;
            }
        }

        > .sb-icon-close {
            position: absolute;
            z-index: 9;
            right: 10px;
            top: 10px;
            height: 21px;
            width: 21px;
            font-size: 7px;
            text-align: center;
            line-height: 23px;
            cursor: pointer;
            background: $color-gray;
            color: $white;
            border-radius: 50%;
            display: none;
        }

        &[data-value] {
            &:before {
                display: none;
            }

            > .sb-icon-close {
                display: block;

                &:hover {
                    background-color: $color-red;
                }
            }
        }
    }

    &.sb-profile-image {
        justify-content: flex-start;

        span {
            flex-grow: 0;
        }

        .image {
            width: 65px;
            height: 65px;
            padding: 0;

            .sb-icon-close {
                right: -5px;
                top: -5px;

                &:before {
                    line-height: 21px;
                }
            }
        }
    }
}

.sb-input-select-input {
    > div {
        position: absolute;
        background: none;
        left: 6px;
        top: 13px;
        opacity: 0;
        padding: 0;
        color: $color-black;
        font-size: 13px;
        line-height: 22px;
        padding-left: 5px;
        font-weight: 400;
    }

    select {
        background: none !important;
        border: none !important;
        max-width: 50px;
        margin: 0 !important;
        transform: none !important;
        height: auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        visibility: visible !important;
    }

    input {
        padding: 5px 0 0 60px;
    }

    input[disabled] {
        padding: 0 5px !important;
        border: none;
        background: none;
        box-shadow: none;
        width: 35px;
    }

    [type="number"]::-webkit-outer-spin-button, [type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }

    .sb-active + div {
        opacity: 1;
    }
}

.sb-select-phone {
    z-index: 8;

    li {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    img {
        border-radius: 2px;
        height: 15px;
        width: 23px;
        margin: 0 10px 0 0;
    }

    > div > p {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .sb-select {
        top: -12px;
        z-index: 8;
    }

    &.sb-single-prefix + input {
        padding-left: 50px;
    }
}

.sb-input-select-input > div.sb-select-phone {
    & + input {
        padding: 5px 0 0 100px;
    }

    .sb-select-search input {
        padding: 0 10px;
    }

    ul {
        width: 110px;
        max-height: 150px;
        min-height: 0 !important;
        background: $white !important;
        margin-left: -10px;
    }
}

.sb-select-search {
    position: absolute;
    border-radius: 4px;
    display: none;
    z-index: 9;

    input {
        padding: 0 10px;
        min-height: 28px;
        height: 28px;
        border: none;
        margin: 0 -10px !important;
        width: 85px;
        display: block;
        background: $white;
        color: $color-black;
        font-size: 13px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    & + .sb-scroll-area {
        padding-top: 28px !important;
    }

    &.sb-active {
        display: block;
    }
}

/*

# LIGHTBOX
==========================================================

*/

.sb-lightbox-media {
    position: static;
    box-shadow: none !important;
    background: none !important;
    animation: none;


    > div > img {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: calc(100% - 30px);
        max-width: calc(100% - 30px);
        width: auto;
        border-radius: 6px;
        box-shadow: 0 4px 14px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
        animation: sb-fade-animation 0.5s;
        z-index: 9999999995;
    }

    i {
        position: fixed;
        color: $white;
        width: 30px;
        height: 30px;
        display: block;
        top: 10px;
        right: 10px;
        text-align: center;
        line-height: 35px;
        font-size: 16px;
        cursor: pointer;
        transition: $transition;
        z-index: 9999999995;

        &:hover {
            color: rgb(202, 52, 52);
        }
    }

    &:not(.sb-active) {
        display: none;
    }

    &.sb-active + .sb-lightbox-overlay {
        display: block;
    }
}

.sb-lightbox-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999995;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    animation: sb-fade-animation 0.3s;
}

/*

# OVERLAY PANEL
==========================================================

*/

.sb-overlay-panel {
    > div:first-child {
        display: none;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .3px;
        padding: 5px 15px;
        height: 35px;

        .sb-btn-icon {
            margin-right: -10px;

            &:before {
                font-size: 12px;
            }
        }
    }

    > div:last-child {
        height: calc(100% - 45px);
    }

    position: absolute;
    height: 0;
    background: white;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    box-shadow: 0px -3px 6px 0px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: height .5s;

    iframe {
        opacity: 0;
    }

    &.sb-active {
        height: 100%;
        z-index: 9;

        > div:first-child {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        iframe {
            opacity: 1;
            transition: opacity .5s;
            transition-delay: .5s;
        }
    }
}

/*

# IMAGE LIGHTBOX
==========================================================

*/

.sb-image {
    background: #000;
    border-radius: 4px;
    max-width: 250px;

    > img {
        max-width: 100%;
        border-radius: 3px;
        display: block;
        cursor: pointer;
        transition: $transition;

        &:hover {
            opacity: 0.8;
        }
    }

    &.sb-image-png {
        background: none;
    }

    &.sb-image-sticker {
        background: none;
        max-width: 150px !important;
    }
}

/*

# UPLOAD INPUT
==========================================================

*/

.sb-upload-form-admin {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
    top: 0;
    left: 0;
}

/*

# SEARCH BUTTON
==========================================================

*/

.sb-search-btn, .sb-filter-btn {
    position: relative;
    width: 48px;
    height: 40px;

    > i {
        position: absolute;
        width: 20px;
        height: 20px;
        font-size: 19px;
        line-height: 14px;
        top: 10px;
        right: 0;
        cursor: pointer;
        transition: color 0.4s;
        z-index: 3;
    }

    i:hover, &.sb-active i {
        color: $color-blue;
    }
}

.sb-search-btn {
    > input {
        position: absolute !important;
        right: 0;
        height: auto;
        font-size: 15px;
        line-height: 39px;
        min-width: 295px;
        padding: 0 50px 0 15px !important;
        display: none;
        background-color: $white !important;
        border-radius: 5px;
        border: 1px solid $color-blue;
        box-shadow: 0 0 5px rgba(39, 156, 255, 0.2);
        z-index: 2;

        &:focus {
            outline: none;
            box-shadow: 0 0px 5px rgba(39, 156, 255, 0.5);
            border-color: $color-blue;
        }
    }

    &.sb-active input {
        display: block;
    }

    &.sb-active i {
        right: 15px;
    }
}

/*

# POPUP
==========================================================

*/

.sb-popup {
    width: 340px;
    height: 360px;
    position: fixed;
    transform: translateX(-50%);
    bottom: 0;
    left: 0;
    display: none;

    &:after {
        content: "";
        background: url(../media/triangle.svg) no-repeat center center;
        background-size: contain;
        position: absolute;
        width: 20px;
        height: 15px;
        bottom: -11px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 1px;
    }

    &.sb-active {
        display: block;
    }

    .sb-header {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px 15px 15px;
        line-height: 35px;
        height: 35px;

        .sb-search-btn > input {
            min-width: 243px;
        }

        .sb-title {
            font-weight: 500;
        }

        .sb-search-btn {
            height: 40px;

            > i {
                top: 7px;
            }

            &.sb-active {
                margin-top: -5px;

                > i {
                    top: 11px;
                }
            }
        }
    }
}

.sb-popup-active .sb-tooltip {
    visibility: hidden;
}

/*

# EMOJI
==========================================================

*/

.sb-popup.sb-emoji {
    bottom: 71px;
    left: 28px;
    height: 285px;

    .sb-emoji-list {
        height: calc(100% - 80px);
        padding-right: 15px;
        margin: 0 0 15px 15px;

        > ul {
            list-style: none;
            padding: 0;
            margin: 0 15px 0 0;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
            grid-gap: 8px;

            > li {
                overflow: hidden;
                min-width: 0;
                text-align: center;
                cursor: pointer;
                font-size: 23px;
                line-height: 28px;
                margin: 0;
                padding: 0;
                transition: all 0.2s;

                &:hover {
                    transform: scale(1.2);
                }

                &.sb-emoji-title {
                    grid-column: 1 / 9;
                    text-align: left;
                }
            }
        }
    }

    .sb-emoji-bar {
        position: absolute;
        top: 65px;
        bottom: 15px;
        right: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 5px;
        overflow: hidden;

        > div {
            width: 4px;
            height: 100%;
            background: rgb(236, 236, 236);
            margin: 0;
            cursor: pointer;

            &.sb-active,
            &:hover {
                background: $color-blue;
                border-radius: 5px;
            }
        }
    }

    img + img {
        display: none !important;
    }
}

/*

# SELECT AND MENU
==========================================================

*/

.sb-select {
    position: relative;
    color: $color-black;
    font-size: 14px;
    height: 35px;
    line-height: 35px;
    display: inline-block;

    p {
        position: relative;
        padding: 0 20px 0 0;
        margin: 0;
        cursor: pointer;
        font-weight: 500;
        letter-spacing: .3px;
        font-size: 13px !important;
        line-height: 35px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        user-select: none;
        transition: $transition;

        span {
            font-weight: 400;
            opacity: 0.7;
        }

        &:after {
            content: "\61";
            font-family: "Support Board Icons";
            position: absolute;
            top: 0;
            right: 1px;
            font-size: 9px;
            font-style: normal;
            font-weight: normal;
            line-height: 35px;
        }

        &:hover {
            color: $color-blue;
        }

        &.sb-error {
            color: $color-red;
        }
    }

    ul {
        padding: 10px 0 !important;
        display: none;
        overflow: hidden;
    }

    &.sb-loading {
        overflow: visible;
    }

    &:not(.sb-hide) + .sb-select {
        margin-left: 15px;
    }
}

div ul.sb-menu,
.sb-select ul {
    position: absolute;
    margin: 0;
    z-index: 5;

    &.sb-active {
        display: block;
        margin-bottom: 15px;
    }

    &.sb-scroll-area {
        height: auto;
        max-height: 300px;
        overflow-y: scroll;
    }

    li {
        cursor: pointer;
        padding: 6px 25px 6px 12px;
        margin: 0;
        font-weight: 500;
        font-size: 13px;
        letter-spacing: .3px;
        line-height: 20px;
        white-space: nowrap;
        list-style: none;
        user-select: none;
        transition: all 0.1s;

        &.sb-active {
            color: $color-blue;
        }

        &:hover {
            background-color: $color-blue;
            color: $white;
        }
    }
}

/*

# RICH MESSAGES
==========================================================

*/

.sb-rich-message {
    letter-spacing: 0.3px;

    .sb-top, .sb-title {
        font-weight: 500;
        font-size: 15px;
        line-height: 25px;
        margin-bottom: 10px;
    }

    .sb-text {
        color: rgb(86, 96, 105);
        font-size: 13px;
        line-height: 21px;

        & + div {
            margin-top: 20px;
        }
    }

    .sb-content:empty {
        display: none;
    }

    img {
        max-width: 100%;
    }

    .sb-input {
        position: relative;
        box-sizing: content-box;

        > span {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            border-radius: 5px;
            font-size: 13px;
            line-height: 44px;
            font-weight: 400;
            width: 100%;
            cursor: text;
            padding: 0 10px;
            box-sizing: border-box;
            z-index: 8;
            transition: top 0.2s;

            &.sb-active {
                font-size: 12px;
                line-height: 10px;
                height: 10px;
                top: -3px;
                left: 5px;
                right: auto;
                background: linear-gradient(180deg, rgb(245, 245, 245) 0%, rgb(245, 245, 245) 40%, rgb(255, 255, 255) 100%) !important;
                color: $color-blue;
                width: auto;
                min-width: 0;
                padding: 0 5px;
            }

            &.sb-filled {
                color: rgb(143, 143, 143);
            }

            & + input, & + select {
                padding-top: 5px;
            }
        }

        > input, select, textarea {
            background: $white;
        }

        &[data-type=select] {
            select {
                padding-left: 6px;
            }

            > span {
                cursor: default;
            }
        }

        &[data-type=select] > span:not(.sb-filled):not(.sb-active) + select {
            background: none;
            z-index: 2;
        }

        iframe {
            max-width: 100%;
            border-radius: 4px;
        }
    }

    .sb-input-image {
        background: $white;
        border: 1px solid $border-color;
        border-radius: 4px;

        > span,
        > span.sb-active {
            position: relative;
            min-width: 50px;
            top: 0;
            left: 0;
            font-size: 13px;
            line-height: 42px;
            background: none !important;
            height: auto;
            padding: 0 10px;
            color: $color-gray;
            width: calc(100% - 20px);
        }
    }

    .sb-input-image > .image {
        background-color: $white;
        min-width: 65px;
        border: 1px solid $white;
    }

    .sb-input-btn > span {
        width: calc(100% - 42px);
    }

    .sb-info {
        margin: 15px 0 0 0;
        font-size: 12px;
        line-height: 23px;
        letter-spacing: 0.5px;
        font-weight: 500;
        color: $color-red;

        &:empty {
            display: none;
        }
    }

    .sb-buttons {
        .sb-btn {
            margin-bottom: 10px;
        }

        .sb-btn:last-child {
            margin-bottom: 0;
        }
    }

    &.sb-success {
        .sb-top {
            display: none;
        }
    }

    .sb-link-area {
        font-size: 12px;
        line-height: 20px;
        color: rgb(128, 128, 128);
        padding: 15px 0;

        a {
            color: rgb(128, 128, 128);
            text-decoration: underline;
        }
    }

    & + .sb-rich-message {
        margin-top: 15px;
    }

    &.sb-margin-top {
        margin-top: 15px;
    }

    &.sb-margin-bottom {
        margin-bottom: 15px;
    }

    .sb-form + .sb-buttons {
        margin-top: 15px;
    }

    .sb-card, .sb-slider {
        .sb-card-img {
            height: 175px;
            background-size: cover;
            background-position: center center;
            margin: -8px -12px 20px -12px;
            border-top-right-radius: 3px;
            border-top-left-radius: 3px;
        }

        .sb-card-header {
            font-weight: 500;
            font-size: 15px;
            line-height: 25px;
            color: $color-black;
        }

        .sb-card-extra {
            display: inline-block;
            background: rgba(0, 0, 0, 0.59);
            color: rgb(255, 255, 255);
            font-size: 13px;
            line-height: 13px;
            padding: 5px 7px;
            border-radius: 3px;
            margin-top: 15px;
        }

        .sb-card-img + div + .sb-card-extra {
            position: absolute;
            top: 15px;
            left: 15px;
            margin: 0;
        }

        .sb-card-description {
            margin-top: 15px;
        }

        .sb-card-btn {
            color: $color-blue;
            border-top: 1px solid rgba(0, 0, 0, 0.18);
            display: block;
            text-decoration: none;
            margin: 20px -12px 0 -12px;
            padding: 15px 15px 7px 15px;
            font-weight: 500;
            transition: $transition;
            position: relative;
            background: none;

            &:hover {
                color: $color-dark-blue;
                background: none !important;
            }

            &.sb-loading:before {
                margin-top: -9px;
            }

            &[class*="sb-icon-"]:before {
                top: 19px;
                right: 15px;
                position: absolute;
            }
        }
    }

    .sb-slider {
        margin: -13px -12px 0 -12px;
        overflow: hidden;

        > div {
            display: flex;
        }

        > div > div {
            position: relative;
            min-width: 100%;
            transition: margin-left 1s;
        }

        .sb-card-img {
            margin: 0 0 20px 0;
        }

        .sb-card-header, .sb-card-description {
            margin-left: 15px;
            margin-right: 15px;
        }

        .sb-card-description {
            height: 63px;
            overflow: hidden;
        }

        .sb-card-btn {
            margin: 20px 0 -3px 0;
        }
    }

    .sb-slider-images {
        margin: -8px -12px;
        border-radius: 4px;
        background: #000;
        cursor: pointer;

        .sb-card-img {
            margin: 0;
            transition: $transition;

            &:hover {
                opacity: 0.8;
            }
        }
    }

    &[data-type="slider-images"] .sb-slider-arrow {
        top: calc(50% - 15px);
    }

    .sb-slider-arrow {
        position: absolute;
        top: 160px;
        left: -10px;
        margin: 0;
        background: rgb(255, 255, 255);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        text-align: center;
        line-height: 35px;
        font-size: 11px;
        box-shadow: 0 0 7px rgba(0, 0, 0, .3);
        cursor: pointer;
        transition: $transition;
        display: none;

        &:hover {
            color: $color-blue;
        }

        &.sb-active {
            display: block;
        }

        &:before {
            line-height: 30px;
        }
    }

    .sb-slider-arrow.sb-icon-arrow-right {
        left: auto;
        right: -10px;
    }

    .sb-btn {
        width: auto;
        display: block;
        border-radius: 4px;
    }

    &[disabled] {
        .sb-buttons .sb-btn {
            background: none;
            border: 1px solid $border-color;
            color: $color-black !important;
            font-weight: 400;
            cursor: default;
        }

        .sb-input-text {
            border: 1px solid $border-color !important;
            border-radius: 4px;

            span {
                color: $color-black;
                position: static;
                height: auto;
                padding: 0 10px;
                background: none !important;
                font-size: 13px;
                line-height: 44px;
            }

            input {
                display: none;
            }
        }

        .sb-select {
            p {
                display: none;
            }

            ul {
                display: block;
                box-shadow: none;
                padding: 0 !important;
                margin: 0;
                background: none;
                border: 1px solid $border-color !important;
                border-radius: 4px;
                position: static;
            }

            li {
                font-weight: 400;
                font-size: 13px;
                line-height: 25px;
                background: none !important;
                color: $color-black !important;
            }
        }

        &.sb-rich-inputs .sb-submit {
            display: none;
        }

        &[data-type="chips"] .sb-content {
            display: none;
        }
    }

    &.sb-rich-card {
        padding: 0;
    }
}

.sb-list .sb-rich-registration .sb-buttons, .sb-list .sb-rich-login .sb-buttons {
    text-align: center;
}

.sb-rich-success {
    display: block;

    & + .sb-rich-success {
        padding-top: 10px;
    }

    > span + div {
        padding-top: 12px;
    }
}

.sb-rich-loading {
    width: 30px;
    height: 30px;
}

.sb-list {
    .sb-rich-select {
        p {
            height: 35px;
            line-height: 35px;
            min-width: 100px;
            border-radius: 4px;
            border: 1px solid rgb(207, 207, 207);
            background: $white;
            padding: 0 25px 0 15px;

            &:after {
                right: 8px;
            }

            &:hover {
                border: 1px solid $color-blue;
                box-shadow: 0 0 5px rgba(39, 156, 255, 0.2);
            }
        }

        ul {
            margin-bottom: 25px;
            min-width: 140px;
        }
    }

    .sb-rich-table {
        overflow: hidden;

        .sb-content {
            overflow-x: scroll;
        }
    }
}

.sb-timetable {
    > div {
        > div:first-child {
            font-weight: 500;
        }

        > div[data-time] {
            display: block;
        }

        > div:last-child {
            span {
                padding: 0 5px;
            }
        }

        margin-bottom: 10px;
    }

    > span {
        position: relative;
        padding-left: 20px;
        white-space: nowrap;
        overflow: hidden;
        line-height: 13px;
        font-size: 11px;
        margin-top: 20px;
        display: block;

        i {
            position: absolute;
            left: 0;
            top: 0;
            font-size: 12px;
            line-height: 12px;
        }
    }
}

.sb-rating {
    display: inline-flex;
    align-items: center;

    > span {
        font-weight: 500;
        font-size: 13px;
    }

    > div {
        display: flex;
        padding-left: 10px;
    }

    .sb-input-textarea {
        display: none;

        & + div {
            padding: 0;
        }
    }

    i {
        position: relative;
        overflow: visible;
        margin: 0 10px;
        font-size: 15px;
        line-height: 14px;

        span {
            position: absolute;
            opacity: 0;
            white-space: nowrap;
            font-style: normal;
            background: $color-black;
            color: $white;
            font-size: 11px;
            letter-spacing: .3px;
            padding: 7px 10px;
            top: -40px;
            left: 50%;
            border-radius: 4px;
            transform: translate(-50%, -20px);
        }

        &:hover span {
            opacity: 1;
            transform: translate(-50%, 0);
            transition: all .5s;
        }

        &.sb-loading span {
            display: none;
        }
    }

    .sb-loading {
        width: 20px;
        height: 20px;
    }

    [data-rating] i {
        margin-left: 0;
    }

    div.sb-submit + .sb-submit {
        margin-left: 15px;
    }

    [data-rating="positive"] {
        cursor: pointer;

        span {
            background-color: $color-green;
        }

        &:hover {
            color: $color-green;
        }
    }

    [data-rating="negative"] {
        cursor: pointer;

        span {
            background-color: $color-red;
        }

        &:hover {
            color: $color-red;
        }
    }
}

.sb-articles {
    text-align: left;

    > div {
        letter-spacing: .3px;
        cursor: pointer;

        > div {
            line-height: 25px;
            max-height: 50px;
            font-weight: 500;
            font-size: 13px;
            overflow: hidden;
            transition: $transition;
        }

        > span {
            font-weight: 400;
            padding-top: 5px;
            display: block;
            height: 17px;
            font-size: 13px;
            line-height: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            letter-spacing: 0.3px;
            color: $color-gray;

            &:empty {
                display: none;
            }
        }

        &:hover > div {
            color: $color-blue;
        }

        & + div {
            margin-top: 18px;
            padding-top: 15px;
            border-top: 1px solid rgb(213, 213, 213);
        }

        & + .sb-title {
            border-top: none;
        }

        &.sb-title {
            font-weight: 500;
            font-size: 17px;
            color: $color-blue;
            cursor: default;

            & + div {
                border-top: none;
                padding-top: 0;
            }
        }
    }

    > p {
        font-size: 14px;
        letter-spacing: 0.3px;
        color: $color-gray;
    }
}

.sb-rich-articles .sb-articles {
    margin: 25px 0;
}

.sb-rich-cnt {
    &[data-type="chips"] {
        box-shadow: none !important;
        border: none !important;
        background: none !important;
        padding: 0;

        .sb-top {
            margin-bottom: 6px;
        }

        .sb-text {
            background-color: rgb(245, 245, 245);
            border-radius: 6px;
            padding: 13px 15px;
        }

        .sb-content {
            margin-top: 11px;
        }

        .sb-buttons {
            margin-bottom: -8px;

            .sb-btn {
                overflow: hidden;
                margin-right: 10px;
                margin-bottom: 4px;
                display: inline-block;
            }
        }

        .sb-time {
            margin-top: 5px !important;
        }
    }

    &[data-type="video"] {
        padding: 0;

        .sb-rich-message {
            padding: 0;
            border-radius: 4px;
        }

        iframe {
            display: block;
            border-radius: 4px;
        }

        .sb-time {
            margin-top: 10px !important;
        }
    }
}

.sb-rich-chips .sb-btn, .sb-rich-buttons .sb-btn {
    height: auto;
    line-height: 19px;
    padding: 8px 15px;
}

.sb-social-buttons {
    margin: -5px;

    div {
        top: 0;
        position: relative;
        color: #FFF;
        font-size: 12px;
        font-weight: 400;
        line-height: 30px;
        height: 26px;
        width: 60px;
        min-width: 60px;
        margin: 5px;
        text-align: center;
        display: inline-block;
        background: #000;
        border-radius: 3px;
        cursor: pointer;
        transition: $transition;

        &:hover {
            opacity: .8;
            top: -4px;
        }
    }

    .sb-icon-social-fb {
        background: #4267B2;
    }

    .sb-icon-social-tw {
        background: #55ACEE;
    }

    .sb-icon-social-li {
        background: #0077B5;
    }

    .sb-icon-social-pi {
        background: #CB2027;
    }

    .sb-icon-social-wa {
        background: #25D366;
    }
}

/*

# MISCELLANEOUS
==========================================================

*/

.sb-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;

    > div {
        margin: 0 !important;
    }
}

.sb-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
