/*
Copyright 2015, 2016 OpenMarket Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_RoomHeader {
}

.mx_RoomHeader_wrapper {
    max-width: 960px;
    margin: auto;
    height: 83px;
    border-bottom: 1px solid #eeeeee;

    -webkit-align-items: center;
    align-items: center;
    
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.mx_RoomHeader_leftRow {
    margin-left: -2px;

    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    -ms-flex-order: 1;
    -webkit-order: 1;
    order: 1;

    -webkit-flex: 1;
    flex: 1;
}

.mx_RoomHeader_textButton {
    height: 48px;
    background-color: #76cfa6;
    border-radius: 48px;
    margin-right: 8px;
    color: #fff;
    line-height: 48px;
    text-align: center;

    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;

    cursor: pointer;

/*  
    -webkit-flex: 0 0 90px;
    flex: 0 0 90px;
*/
    padding-left: 12px;
    padding-right: 12px;
    }

.mx_RoomHeader_rightRow {
    margin-top: 4px;
    background-color: #fff;

    -webkit-box-ordinal-group: 3;
    -moz-box-ordinal-group: 3;
    -ms-flex-order: 3;
    -webkit-order: 3;
    order: 3;
}

.mx_RoomHeader_info {
    display: table-cell;
    /* height: 48px; */
    vertical-align: middle;
}

.mx_RoomHeader_simpleHeader {
    line-height: 83px;
    color: #454545;
    font-size: 22px;
    font-weight: bold;
    overflow: hidden;
    margin-left: 63px;
    text-overflow: ellipsis;
    width: 100%;
}

.mx_RoomHeader_simpleHeaderCancel {
    float: right;
    margin-top: 8px;
    padding: 24px;
    cursor: pointer;
}

.mx_RoomHeader_name {
    cursor: pointer;
    vertical-align: middle;
    height: 30px;
    overflow: hidden;
    color: #454545;
    font-weight: bold;
    font-size: 22px;
    padding-left: 19px;
    padding-right: 16px;
    /* why isn't text-overflow working? */
    text-overflow: ellipsis;
}

.mx_RoomHeader_nametext {
    display: inline-block;
}

.mx_RoomHeader_searchStatus {
    display: inline-block;
    font-weight: normal;
    opacity: 0.6;
}

.mx_RoomHeader_settingsButton {
    display: inline-block;
    visibility: hidden;
    position: relative;
    bottom: 10px;
    left: 4px;
}

.mx_RoomHeader_settingsButton object {
    pointer-events: none;
}

.mx_RoomHeader_leftRow:hover .mx_RoomHeader_name {
    color: #76cfa6;
}

.mx_RoomHeader_leftRow:hover .mx_RoomHeader_settingsButton {
    visibility: visible;
}

.mx_RoomHeader_leaveButton {
    visibility: hidden;
    margin-top: -1px;
}

.mx_RoomHeader_wrapper:hover .mx_RoomHeader_leaveButton {
    visibility: visible;
}


.mx_RoomHeader_nameEditing {
    padding-left: 8px;
    padding-right: 16px;
    margin-top: -5px;
}

.mx_RoomHeader_name input, .mx_RoomHeader_nameInput {
    border-radius: 3px;
    width: 260px;
    border: 1px solid #c7c7c7;
    font-weight: 300;
    font-size: 13px;
    padding: 9px;
}

.mx_RoomHeader_nameInput {
    margin-top: 6px;
}

.mx_RoomHeader_topic {
    vertical-align: bottom;
    float: left;
    max-height: 42px;
    color: #454545;
    font-weight: 300;  
    padding-left: 19px;
    padding-right: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mx_RoomHeader_avatar {
    display: table-cell;
    width: 48px;
    height: 50px;
    vertical-align: middle;
}

.mx_RoomHeader_avatar img {
	border-radius: 24px;
}

.mx_RoomHeader_button {
    display: table-cell;
    vertical-align: top;
    padding-left: 8px;
    padding-right: 8px;
    cursor: pointer;
}

.mx_RoomHeader_button object {
    pointer-events: none;
}

.mx_RoomHeader_voipButton {
    display: table-cell;
}

.mx_RoomHeader_voipButtons {
    margin-top: 18px;
}
