.tags-popup {
    display: flex;
    flex-direction: column;
}

.tags-popup .base-popup-header {
    height: 70px;
    line-height: 70px;
    border-bottom: 2px solid #DDE2E8;
    margin-bottom: 0;
}

.tags-popup .base-popup-footer {
    position: relative;
    border-top: 2px solid #DDE2E8;
    display: flex;
    align-items: center;
}

.tags-popup .base-popup-inner {
    padding: 14px 16px 0px 16px;
    background: #ECF1FE;
    overflow: hidden;
    flex: 1;
    width: 514px;
}

.tags-popup .create-new-tag-button {
    cursor: pointer;
    width: 100%;
    padding: 6px 12px;
    color: #6A6D6F;
    border-radius: 4px;
}

.tags-popup .base-search-element {
    margin-bottom: 10px;
}

.tags-popup .create-new-tag-button .new-tag-label span {
    color: #5286EB;
}

.tags-popup .create-new-tag-button.active {
    background: #D5E6EE;
}

.tags-popup .base-toggle-button-element {
    padding-right: 8px;
}

.tags-popup .save-tag-button {
    cursor: pointer;
    padding: 0 36px;
    border-radius: 4px;
    outline: none;
    margin-left: auto;
}

.tags-popup .save-tag-button.fill {
    background: none;
    padding: 0;
    right: 40px;
    /*width: 34px;*/
    /*margin-left: 0px;*/
    /*background: #FFF;*/
    /*border-width: 3px;*/
    border-color: #CCC;
}

.tags-popup .save-tag-button .svg-element .spinner-element svg.filled circle {
    stroke: #4080EA;
}

.tags-popup:not(.fill).disabled.save-tag-button {
    background: #dce7ee;
}

.tags-popup .save-tag-button:hover:not(.disabled):not(.fill) {
    box-shadow: none;
    background-image: none;
}

.tags-popup .save-tag-button:focus:not(.disabled):not(.fill) {
    background: #4A6695;
}

.tags-popup .save-tag-button.focus:not(.disabled):not(.fill) {
    background: #4A6695;
    border: #4A6695;
}

.tags-popup .manage-tags-button svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.tags-popup .manage-tags-button svg path {
    fill: #7c5fe4 !important;
}

.tags-popup .manage-tags-button {
    margin-left: 20px;
    background: #fff;
    border-radius: 4px;
    line-height: normal;
    padding: 6px 12px;
    position: absolute;
    top: 20px;
    left: 3px;
    border: 1px solid #7c5fe4;
    transition: all 0.2s ease;
}

.tags-popup .manage-tags-button:hover {
    background: #7c5fe4;
}

.tags-popup .manage-tags-button:hover > div {
    color: #fff;
}

.tags-popup .manage-tags-button:hover > svg path {
    fill: #fff !important;
}

.tags-popup .manage-tags-button div {
    font-size: 13px;
    color: #7c5fe4;
    font-weight: 400;
    font-family: var(--default-font-family);
    display: inline-block;
}


.tags-popup .base-popup-title {
    text-align: center;
    border-bottom: none;
    font-weight: 500;
    font-size: 18px;
}

.tags-popup .tag-button {
    padding: 5px 4px;
    cursor: pointer;
}

.tags-popup .tag-button:hover {
    background: #fcfdff;
    border-radius: 5px;
}

.tags-popup .tag-button.edit-tag-box.editing:hover {
    background: none;
    border-radius: 0;
}

.tags-popup .tag-button.second-state label,
.tags-popup .tag-button.third-state label {
    color: #303030;
    font-size: 14px;
    font-weight: 500;
}

.tags-popup .tags-list {
    padding: 0px 6px 0px 6px;
    /*overflow-y: auto;*/
    height: 84%;
}

.tags-popup .tags-list.collapse {
    /*height: 69%;*/
    height: 72%;
}

.list-element {
    height: 100%;
    overflow: auto;
}

.tags-popup .tag-button .edit-tag-button {
    position: absolute;
    top: 7px;
    right: 7px;
}

.tags-popup .tag-button .edit-tag-button svg {
    width: 13px;
    height: 13px;
}

.tags-popup .tag-button.edit-tag-box .tag-edit-input-name {
    width: 50%;
    cursor: pointer;
    display: none;
    vertical-align: middle;
}


.tags-popup .tag-button.edit-tag-box .tag-edit-input-name.show {
    display: inline-block;
}

.tags-popup .tag-button.edit-tag-box .tag-edit-input-name .base-input-text-element .base-input-text {
    border: 0;
    height: 22px;
    padding-left: 5px;
}

.tags-popup .tag-button.edit-tag-box .base-toggle-button-label:not(.show) {
    display: none;
}

/* TAGS LIST */
.tags-element {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tags-element .tag-element {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 2px 12px;
    border-radius: 4px;
}

.tags-element .tag-label {
    font-size: 12px;
    color: #98999d;
    font-family: helvetica, arial, sans-serif;
}

.tags-element .tag-label:empty {
    display: none;
}

.tags-element .tag-element {
    margin-right: 6px;
}

.remove-tag-icon {
    position: absolute;
    right: 0px;
    top: 50%;
    margin-top: -5px;
    padding: 0px;
}

.remove-tag-icon svg {
    width: 10px;
    height: 10px;
}

.remove-tag-icon svg path {
    fill: #000000;
}


