a {
    color: rgb(3, 160, 231);
}

.c-pointer {
    cursor: pointer;
}

.break-word {
    word-break: break-all;
}

::ng-deep {
    .ui-fileupload-buttonbar {
        padding: 0 !important;
        margin-top: 10px;

        .ui-button {
            width: 100% !important;
            background-color: #667281 !important;
        }
    }

    .ui-fileupload-content {
        ul {
            word-break: break-all;
        }
    }

    .ui-fileupload-row {
        div {
            display: none;
        }

        div:nth-child(2) {
            display: block;
            word-break: break-all;
        }
    }

    .ui-button-text {
        padding: 0 !important;
        margin-top: 1px;
    }
}

.attachments {
    display: flex;
    flex-direction: column;
}

.attachment-content {
    display: flex;

    div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1 1 auto;
        font-size: 12px;
        margin-top: 2px;
    }

    a {
        height: 17px;
        width: 17px;
        border: 1px solid red;
        border-radius: 50%;
        cursor: pointer;

        span {
            font-size: 15px;
            color: red;
        }
    }
}

.message-block {
    background-color: white;
    border-radius: 20px;
    -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.08);
    border: solid 1px #dbdbdf;
    margin-top: 5px;
    padding-bottom: 0 !important;

    .name {
        height: 95%;
        background: rgba(1, 1, 1, 0.1);
        font-size: 2em;

        &.owner {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        &.other {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }
    }

    .initial {
        width: 100%;
        text-align: center;
    }

    .message-footer {
        display: flex;
        justify-content: space-between;
        color: #8E97A0;
        font-size: 1.2rem;
        margin-top: 20px;
    }
}

.messages-wrapper {
    height: 370px;
    overflow-y: auto;
}


* {
    transition: all .15s;
    outline: none;
}

.attachment-icon {
    float: right !important;

    span {
        font-size: large;
        color: #444;
    }
}

.buttons-wrapper {
    margin-top: 0.5em;
    display: flex;

    button {
        border-radius: 60px;
        position: relative;
        border-style: none;
        min-width: 148px;
        height: 50px;
        background-color: #03a0e7;
        box-shadow: inset 1px 0 0 0 #e5e8eb;
        margin-right: 0.5em;
        color: white;

        ::ng-deep {
            .ui-button-text {
                margin-top: 4px;
            }
        }
    }
}

.main-tab-template {
    position: relative;

    .minimize {
        position: absolute;
        right: 10px;
        transform: rotate(-90deg);
        cursor: pointer;
        height: 20px;
        width: 20px;
        line-height: normal;

        span {
            font-size: initial;
        }
    }
}

.message-button {
    border-radius: 10px;
}

.non-embed {
    ::ng-deep {
        .ui-splitbutton-menubutton {
            display: none;
        }

        .ui-splitbutton .ui-button {
            &:first-child {
                border-radius: 20px;
                width: 100% !important;
            }
        }
    }
}

::ng-deep {
    .ui-fluid .ui-splitbutton .ui-button {
        background-color: rgb(3, 160, 231) !important;
        opacity: 1 !important;

        &:first-child {
            width: calc(100% - 2.2em) !important;

            .ui-icon-send {
                transition: 0.3s all ease;
            }

            &:hover {
                .ui-icon-send {
                    transform: rotate(-45deg);
                }

            }
        }

        &.ui-splitbutton-menubutton {
            margin-top: 0;
        }
    }

    .ui-fileupload-buttonbar {
        display: none;
    }

    .ui-fileupload {
        display: none;
    }

    .showBox {
        .ui-fileupload {
            display: block;
        }
    }

    .ui-fileupload-content {
        margin-top: 0.5em;
        border-radius: 10px;
        padding: 5px;

        ul {
            overflow-y: auto;
            height: 40px;
        }
    }

    .ql-editor {
        min-height: 85px;
        height: 50px;
        border-radius: 2px;
        -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, .08);
        box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, .08);
        border: 1px solid #dbdbdf;

        &:focus {
            background-color: #fff;
            -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, .08);
            box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, .08);
            border: 1px solid rgba(3, 160, 231, .5);
        }
    }
}

.h-45 {
    height: 45px !important;
}

.pad-5 {
    padding: 5px;
}

::ng-deep {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 200px rgba(183, 183, 183, 0.2);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 6px;
        -webkit-box-shadow: inset 0 0 200px rgba(100, 100, 100, 0.42);
    }
}

.resizeable {
    resize: both;
    overflow: auto;
}
