app-message {
    ion-header {
        ion-item {
            padding: var(--ion-padding-10) var(--ion-padding-15);
            background: var(--ion-background-content);

            &.search {
                margin: var(--ion-margin-0);
                padding: var(--ion-padding-10) var(--ion-padding-15);

                ion-input {
                    height: inherit;

                    input {
                        padding: var(--ion-padding-10) !important;
                    }
                }

                ion-icon {
                    position: absolute;
                    color: #ccc;
                    right: 2px;
                    font-size: 22px;
                    z-index: 99;
                }

                ion-button {
                    width: 48%;
                    margin: var(--ion-margin-0);

                    &:last-child {
                        margin-left: 4%;

                        &::part(native) {
                            --background: var(--ion-content-color);
                        }
                    }

                    &::part(native) {
                        min-height: 30px;
                        height: 30px;
                    }
                }
            }

            &::part(native) {
                --min-height: auto;
            }
        }
    }

    ion-content {
        ion-card {
            margin: var(--ion-margin-0);
            box-shadow: none;

            ion-card-header {
                padding: var(--ion-padding-0);

                ion-card-title {
                    font-size: var(--ion-font-size-14);
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: var(--ion-padding-15);
                    border-bottom: 1px solid #efefef;
                    margin: var(--ion-margin-0);

                    ion-icon {
                        width: 27px;
                        height: 33px;
                        padding: 3px 6px;
                        background: var(--ion-background-content);
                        border-radius: var(--ion-border-radius-100);
                        color: var(--ion-color);
                        margin-right: var(--ion-margin-10);
                    }

                    p {
                        padding: var(--ion-padding-0);
                        margin: var(--ion-margin-0);
                        font-size: var(--ion-font-size-14);
                        color: #000;
                        font-weight: 600;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;

                        span {
                            color: var(--ion-content-color);
                            font-size: var(--ion-font-size-14);
                            display: block;
                            font-weight: 400;
                            white-space: nowrap;
                        }

                        ion-chip {
                            margin: var(--ion-margin-0);
                            float: right;
                            padding: var(--ion-padding-0);
                            height: 18px;
                            width: 18px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 4px;
                            background: var(--ion-color);
                            color: #fff;
                            font-size: var(--ion-font-size-12);
                            line-height: 18px;
                        }
                    }

                    .left-data {
                        display: flex;
                        align-items: center;

                        .icons {
                            width: 39px;
                            height: 39px;
                            padding: 8px;
                            background: var(--ion-background-content);
                            border-radius: var(--ion-border-radius-100);
                            color: var(--ion-color);
                            margin-right: var(--ion-margin-10);
                            display: flex;
                            align-items: center;
                            justify-content: center;

                            &.family-members {
                                padding: var(--ion-padding-0);
                                overflow: hidden;
                            }
                        }

                        .content {
                            width: calc(100% - 49px);
                            max-width: 210px;

                            p {
                                span {
                                    white-space: normal;
                                    word-break: break-word;
                                    font-weight: 400;
                                    display: block;
                                    text-overflow: ellipsis;
                                    overflow: hidden;
                                }
                            }
                        }
                    }

                    &.unread {
                        background: #e7f2ff;
                    }
                }
            }
        }
    }
}