.emoji-category-header {
    font-size: 16px;
    line-height: 30px;
    padding: 10px 15px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--bdc-lighter);
    border-top: 1px solid var(--bdc-lighter);
    text-align: center;
    margin: 0 var(--indent-negative);
}

.emoji-category-header h1 {
    display: inline-block;
    font-size: inherit;
    margin: 0;
    padding: 0;
}

.emoji-select-wrapper {
    display: flex;
    position: relative;
    line-height: 50px;
}

.emoji-select-wrapper a {
    text-decoration: none;
    transition: .2s;
}

.message-emodji {
    margin-top: 20px;
}

.emoji-select {
    font-size: 24px;
    width: 100%;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-gap: 0 5px;
    grid-auto-flow: row dense;
    background: #312738;
    border-radius: 7px;
    padding: 6px;
}

.emoji-select:after {
    content: '';
    display: block;
    clear: both;
}

.emoji-select a {
    flex: 1;
    min-width: 40px;
    text-align: center;
    padding: 5px 0 10px;
    border-right: 1px solid #21202a;
}

.emoji-select a:last-child{
    border-right: 0;
}
.emoji-select a:hover {
opacity: .5;
}

.emoji-select a.active {
    cursor: default;
    background-image: -webkit-gradient(linear, left top, right top, from(#f37f7f), to(#944b8c));
    background-image: -o-linear-gradient(left, #f37f7f, #944b8c);
    background-image: linear-gradient(to right, #f37f7f, #944b8c);
}

.emoji-select-adv {
    position: relative;
    flex: 0;
    font-size: 13px;
    line-height: 18px;
    border-left: 1px solid var(--bdc-lighter);
}

.emoji-select-adv-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
}

.emoji-select-adv-area {
    display: none;
    position: absolute;
    right: 55px;
    top: 20px;
    width: 270px;
    padding: 15px 20px;
    background: #fff;
    z-index: 1003;
    border-radius: 3px;
    box-shadow: 0 2px 9px rgba(0,0,0,.3);
}

.emoji-select-adv-area:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 100%;
    border: 7px solid transparent;
    border-left-color: #ccc;
}

.emoji-select-adv-area:after {
    content: '';
    position: absolute;
    top: 7px;
    left: 100%;
    border: 6px solid transparent;
    border-left-color: #fff;
}

.emoji-select-adv-period {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.emoji-select-adv-period a {
    position: relative;
    display: block;
    padding: 4px 0 5px 30px;
    color: #222;
}

.emoji-select-adv-period a:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: .2s;
}

.emoji-select-adv-period a:hover {
    color: #0097a7;
}

.emoji-select-adv-period a:hover:after {
    border-color: #ccc;
}

.emoji-select-adv-period a.active {
    color: #000;
}

.emoji-select-adv-period a.active:after {
    border: 5px solid #0097a7;
}

.emoji-select-adv-category {
}

.emoji-select-adv-category a {
    position: relative;
    display: block;
    line-height: 34px;
    padding: 0 10px;
    color: #222;
    border-radius: 2px;
}

.emoji-select-adv-category a:hover {
    color: #0097a7;
}

.emoji-select-adv-category a.active {
    background-color: #0097a7;
    color: #fff;
}

.emoji-select-adv-category a.active:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35px;
    background: rgba(0,0,0,.1) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAANUlEQVQYV2P89+/ffwYGBgYmJiZGEA0CMDFGGAOmAJkPVo0sANMNMgnDKGQr8OvEayc+1wIAGgkr7HgVYQQAAAAASUVORK5CYII=) no-repeat 50% 50%;
}
.rating-emoji {
       display: grid;
    margin-bottom: 20px;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-gap: 0 8px;
    grid-auto-flow: row dense;
    background: var(--fltx);
    border-radius: 10px;
    padding: 6px;
}

.rating-emoji:after {
    content: '';
    display: block;
    clear: both;
}

.rating-emoji .rating-emoji-item {
    text-align: center;
    text-decoration: none;
    padding: 10px 0 5px; 
    font-size: 28px;
    line-height: 38px;
    position: relative;
    cursor: default;
    color: var(--color-sand);
}

a.rating-emoji-item:hover {
    cursor: pointer;
    background: #00000024;
    font-size: 40px;
    border-radius: 10px;
}

.rating-emoji-item-count {
    display: block;
    font-size: 14px;
    line-height: 20px;
    margin-top: 3px;
}

.rating-emoji .rating-emoji-item.active {
    background-image:  var(--bgsm2);
    background-image: var(--bgsm3);
	background-image: var(--bgsm1);
    color: #fff;
    border-radius: 10px;
  
}

.page__emoji{
    margin-top: 20px;
}

@media screen and (max-width: 760px) {

    .rating-emoji,
    .emoji-select {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
}