body.tia-quiet-open { overflow-x:hidden; }

#tia-quiet-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    background:#102a43;
    color:#fff;
    padding:12px 16px;
    border-radius:999px;
    cursor:pointer;
    font-size:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.22);
}

#tia-quiet-panel {
    position: fixed;
    top:0;
    right:-420px;
    width:400px;
    height:100vh;
    z-index:100000;
    background:#fffaf0;
    box-shadow:-10px 0 30px rgba(0,0,0,.18);
    transition:right .35s ease;
    display:flex;
    flex-direction:column;
    font-family:inherit;
}

body.tia-quiet-open #tia-quiet-panel { right:0; }

.tia-quiet-head {
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid rgba(16,42,67,.12);
}

#tia-quiet-close {
    border:0;
    background:transparent;
    font-size:28px;
    cursor:pointer;
    color:#102a43;
}

.tia-quiet-sub {
    padding:0 18px 14px;
    color:#66788a;
    font-size:13px;
    line-height:1.55;
}

.tia-quiet-mini {
    display:block;
    margin-top:10px;
    font-size:13px;
    line-height:1.65;
    color:#7b8794;
}

#tia-quiet-messages {
    flex:1;
    overflow-y:auto;
    padding:14px 18px;
}

.tia-msg {
    position:relative;
    max-width:82%;
    padding:10px 12px;
    border-radius:14px;
    margin:0 0 12px;
    font-size:14px;
    line-height:1.45;
    word-wrap:break-word;
}

.tia-left { margin-right:auto; }
.tia-right { margin-left:auto; text-align:left; }

.tia-amber { background:#ffe7ba; }
.tia-blue { background:#d9ecff; }
.tia-green { background:#ddf7df; }
.tia-purple { background:#efe1ff; }
.tia-gray { background:#edf0f3; }

.tia-delete {
    position:absolute;
    top:-7px;
    right:-7px;
    width:20px;
    height:20px;
    border:0;
    border-radius:999px;
    background:#102a43;
    color:#fff;
    cursor:pointer;
    font-size:13px;
    line-height:20px;
    padding:0;
}

.tia-quiet-write {
    padding:14px;
    border-top:1px solid rgba(16,42,67,.12);
}

#tia-quiet-input {
    width:100%;
    height:76px;
    resize:none;
    padding:10px;
    box-sizing:border-box;
    border-radius:10px;
    border:1px solid #d8dee6;
}

#tia-quiet-count {
    margin-top:6px;
    font-size:12px;
    color:#7b8794;
    text-align:right;
}

#tia-quiet-send {
    margin-top:8px;
    width:100%;
    padding:10px;
    border:0;
    border-radius:10px;
    background:#102a43;
    color:white;
    cursor:pointer;
}

#tia-quiet-error {
    margin-top:8px;
    font-size:12px;
    color:#b42318;
    min-height:16px;
}
