@import '../../variables.scss';

.equipmentItem {
    padding: 12px;
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    position: relative;
    background-color: #fff;
    cursor: pointer;

    .equipmentMessage {
        display: flex;
        gap: 24px;
        justify-content: space-between;

        img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 12px;
            flex-shrink: 0;
        }

        .messageRight {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 8px 0;

            .name {
                display: flex;
                align-items: center;
                gap: 24px;
            }

            .tag {
                padding: 4px 8px;
                border-radius: 4px;
            }

            .robotMessageRow {
                display: flex;
                align-items: center;

                img {
                    width: 12px;
                    height: 12px;
                }

            }

            .copyText {
                display: flex;
                align-items: center;
                gap: 4px;
                width: 100%;

                .ellipsis {
                    max-width: calc(100% - 30px);
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
            }

            .copyText svg {
                color: #773fbf;
                transition: color 0.4s;
            }

            .copyText svg:hover {
                color: #3a1e5e;
            }
        }
    }

    .mediaWrap {
        padding: 6px 0;

        .mediaItem {
            display: flex;
            align-items: center;

            svg {
                width: 16px;
                height: 16px;
            }

            .mediaDate {
                color: var(--color);
                // display: inline-flex;
                // align-items: center;
                gap: 3px;
                max-width: calc(100% - 30px);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                position: relative;
                display: flex;
                align-items: center;
                gap: 4px;
                line-height: 1;



            }

            .mediaState {
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background-color: var(--color);
                flex-shrink: 0;
                margin: 0 6px;
            }
        }

        .account {
            display: flex;
            align-items: center;

            span {
                color: #1890ff;
            }

            .accountName {
                max-width: calc(100% - 36px);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                position: relative;
            }
        }

        .raising {
            display: flex;
            align-items: center;
            gap: 4px;
        }
    }
}

.textEllipsis {
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}