/*
 *  Copyright (c) 2018-present, Evgeny Nadymov
 *
 * This source code is licensed under the GPL v.3.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

.pinned-message {
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--panel-background);
    width: 250px;
    flex-shrink: 0;
    flex-grow: 0;
    /*padding: 6px;*/
    border-radius: 6px;
    position: relative;
}

.pinned-message .animated-counter {
    display: inline-flex;
    font-size: 14px;
}

.pinned-message-edit-button {
    padding: 6px;
    position: absolute;
    right: 6px;
}

.pinned-message-content {
    width: 100%;
    max-width: 228px;
    overflow: hidden;
    user-select: none;
    background: transparent;
    position: absolute;
    left: 0;
    transform: translateX(16px);
    will-change: transform;
    transition: transform 0.15s ease-in-out;
    padding: 6px 6px 6px 0;
}

.pinned-message-photo .pinned-message-content {
    transform: translateX(52px);
    max-width: 192px;
}

.pinned-message-tile {
    will-change: transform, opacity;
}

.pinned-message-tile-enter {
    opacity: 0;
    transform: scale(0);
}

.pinned-message-tile-enter.pinned-message-tile-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: transform .25s ease-in-out, opacity .25s ease-in-out;
}

.pinned-message-tile {
    will-change: transform, opacity;
}

.pinned-message-tile-exit {
    opacity: 1;
    transform: scale(1);
}

.pinned-message-tile-exit.pinned-message-tile-exit-active {
    opacity: 0;
    transform: scale(0);
    transition: transform .25s ease-in-out, opacity .25s ease-in-out;
}

.pinned-message-title {
    font-size: 14px;
    height: 19px;
    line-height: 19px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--message-in-reply-title);
}

.pinned-message-subtitle {
    font-size: 14px;
    line-height: 19px;
    position: relative;
    width: 100%;
    height: 19px;
}

#pinned-message-animated-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 38px;
    will-change: transform;
}

#pinned-message-animated-text-1,
#pinned-message-animated-text-2 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 19px;
}

.pinned-message-delete-button {
    margin-left: 12px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}
