/*
 * Project: Tag users for inputs and text-area
 * Description: Provide a way to tag users into the text inputs and text area
 * Author: Cristhian-Ortellado
 * Website: https://github.com/Cristhian-Ortellado
 */

.tag-component-container {
    display: flex;
    flex-direction: column;
    width: 320px;
    box-shadow: 1px 1px 11px -7px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 1px 1px 11px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 1px 1px 11px -7px rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    background: rgb(255, 255, 255);
    position: absolute;
    z-index: 9;
}

.btn-close-tag-list {
    background-color: transparent;
    border: 0;
}
.btn-close-tag-list:focus {
    outline: none;
}

.tag-component-container div.tag-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 10px 5px 10px 0;
    margin-left: 25px;
}
.tag-component-container div.tag-header button {
    font-size: 1.2em;
    color: rgba(0, 0, 0, 0.5);
}

.tag-component-container div.tag-header p {
    all: revert;
    text-align: justify;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0em;
}
.tag-component-container .tag-list-users {
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

.tag-component-container .item-list {
    display: flex;
    justify-content: start;
    flex-direction: row;
    padding: 10px 25px;
    align-items: center;
    vertical-align: center;
    cursor: pointer;
}
.tag-component-container .item-list:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.tag-component-container .user-letters {
    border-radius: 100%;
    color: #fff;
    background-color: var(--primary-color-2);
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: center;
}
.tag-component-container .body-user-item {
    display: flex;
    flex-direction: column;
    vertical-align: center;
}
.tag-component-container .body-user-item .user-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 15px;
    color: black;
    margin: 0 5px;
}
.tag-component-container .body-user-item .subtitle {
    color: #6f6f6f;
    margin: 0 5px;
    font-size: 12px;
}

.tagged-user-not-editable {
    color: #0057a8;
    padding: 2px;
}

.tagged-user-not-editable .tagged-user-symbol:before {
    content: "@";
    opacity: 0.6;
}

.form-control.form-comment[contenteditable="true"] {
    display: inline-block;
}

/*new tag-component-container*/

.tag-component-container.new {
    background: rgb(255, 255, 255);
    position: absolute;
    z-index: 10;
}

.tag-component-container.new div.tag-header {
    display: flex;
    justify-content: none;
    flex-direction: row;
    align-items: center;
}

.tag-component-container.new div.tag-header .title {
    text-align: justify;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0em;
}

.tag-component-container.new div.tag-header .btn-close-tag-list {
    margin-left: auto;
}

.tag-component-container.new .spinner {
    visibility: hidden;
    padding: 0 0.5rem;
    font-size: 10px;
    opacity: 0.8;
}

.tag-component-container.new.loading .spinner {
    visibility: visible;
}
