.post-feed-icons {
  width: 30px;
  height: 30px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

app-post-feed {
  background: var(--ion-background-content);

  ion-header {
    ion-toolbar {
      display: flex;
      justify-content: space-between;
      --background: var(--ion-color-white);
      box-shadow: 0px 1px 1px #dbdbdb;
      color: var(--ion-color);
      --min-height: 50px;
      border-radius: 0;

      ion-button {
        height: 30px;
        margin: var(--ion-margin-0) var(--ion-margin-15) var(--ion-margin-0) var(--ion-margin-0);
        --border-radius: 5px;
      }

      ion-buttons {
        margin: var(--ion-margin-0) var(--ion-margin-10) var(--ion-margin-0) var(--ion-margin-15);
      }

      ion-title {
        color: var(--ion-color);
        font-size: var(--ion-font-size-14);
        padding-left: var(--ion-padding-0);

        &.ios {
          position: relative;
        }
      }

      ion-icon {
        color: var(--ion-color);
        margin: var(--ion-margin-0);
        vertical-align: middle;
        font-size: 25px;
      }
    }
  }

  ion-content {
    --background: var(--ion-background-content);

    ion-card {
      margin: var(--ion-margin-15);
      padding: var(--ion-padding-15) var(--ion-padding-15) 0;
      box-shadow: 0px 0px 12px #ebebeb;
      border-radius: 8px;

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

        ion-card-title {
          font-size: var(--ion-font-size-14);
          display: flex;
          justify-content: space-between;
          margin-bottom: var(--ion-margin-10);
          align-items: center;

          &:last-child {
            margin-bottom: var(--ion-margin-0);
          }

          .left-data {
            display: flex;
            width: 100%;

            .icons {
              width: 39px;
              height: 39px;

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

                img {
                  border-radius: 100%;
                  height: inherit;
                  width: 100%;
                }
              }
            }

            .inner-data {
              width: calc(100% - 50px);

              .select-group {
                display: flex;

                &+.select-group {
                  margin-top: 10px;
                }

                .select-sangh {
                  &::part(native) {
                    color: var(--ion-content-color);
                  }

                  &.selected {
                    &::part(native) {
                      color: var(--ion-color);
                    }
                  }
                }
              }

              .w-50 {
                width: 50%;
                min-height: 20px;
              }
            }

            p {
              padding: var(--ion-padding-0);
              margin: var(--ion-margin-0);
              font-size: var(--ion-font-size-16);
              color: #000;
              font-weight: 600;

              span {
                color: var(--ion-content-color);
              }
            }

            ion-select {
              font-size: var(--ion-font-size-14);
              color: var(--ion-content-color);
              padding: var(--ion-padding-0) 7px;
              width: fit-content;
              border: 1px solid #dbdbdb;
              border-radius: 12px;
              margin-right: var(--ion-margin-10);

              &+ion-select {
                margin-right: var(--ion-margin-0);

                :not(.legacy-select) {
                  min-height: initial;
                }
              }
            }

            ion-button {
              color: var(--ion-color);
              padding: var(--ion-padding-0);
              width: fit-content;
              border: 1px solid #dbdbdb;
              border-radius: 12px;
              height: 20px;
              line-height: 20px !important;
              margin: var(--ion-margin-0);

              &::part(native) {
                font-size: 14px;
                background: none;
                text-transform: capitalize;
                font-weight: 600;
                box-shadow: none;
                padding: var(--ion-padding-0) 8px;
              }
            }
          }

          .custom-select {
            --border-width: 0;
            border-width: 0;
            font-size: 14px;
            border-radius: 5px;
            overflow: hidden;
            border-radius: 0.25rem;
            height: initial !important;

            &::part(icon) {
              display: none;
            }
          }
        }
      }

      ion-card-content {
        padding: var(--ion-padding-0) !important;

        ion-input {
          border: 1px solid #e9e9e9;
          margin-top: var(--ion-margin-10);
          border-radius: 8px;

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

    .bg {
      height: 76%;

      ion-card {
        padding: var(--ion-padding-10);

        .img-upload {
          display: flex;
          flex-wrap: wrap;

          div {
            display: flex;
            width: 48%;
            margin-bottom: var(--ion-margin-10);
            position: relative;

            &:nth-child(odd) {
              margin-right: var(--ion-margin-10);
            }

            img {
              border-radius: 10px;
              display: block;
              height: 100%;
            }

            ion-icon {
              position: absolute;
              background: var(--ion-color-white);
              font-size: 20px;
              border-radius: var(--ion-border-radius-100);
              color: #343434;
              right: 5px;
              top: 5px;
            }
          }
        }
      }

      ion-button {
        margin: var(--ion-margin-0) var(--ion-margin-15) var(--ion-margin-0) var(--ion-margin-15);

        &::part(native) {
          --background: var(--ion-background-button);
          color: var(--ion-color);
          box-shadow: none;
          font-size: var(--ion-font-size-14);
        }

        ion-icon {
          margin-right: 10px;
        }
      }
    }

    .search-data {
      position: absolute;
      bottom: 0px;
      top: auto;
      padding: var(--ion-padding-0);
    }
  }

  ion-footer {
    margin-bottom: 15px;

    .footer-icon {
      div {
        display: flex;
        align-items: center;
        color: #bdbdbd;
        font-weight: 600;
        padding: var(--ion-padding-10) var(--ion-padding-15);
        border-top: 1px solid #e1e1e1;
        font-size: var(--ion-font-size-14);
      }

      .tag-shravak-div {
        padding: var(--ion-padding-0) var(--ion-padding-15);
      }

      ion-icon {
        width: 18px;
        height: 18px;
        padding: 6px;
      }


      ion-text {
        width: calc(100% - 40px);
      }
    }

    input[type="text"] {
      padding: var(--ion-padding-0) !important;
      font-size: var(--ion-font-size-14) !important;
      height: 35px;
      width: calc(100% - 30px);
      border: 0;
      outline: none;
    }
  }

  .sangh-post {

    ion-title,
    ion-buttons ion-icon {
      color: var(--ion-color-sangh);
    }

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

    .bg {
      ion-card {
        ion-button {
          &::part(native) {
            color: var(--ion-color-sangh);
          }
        }
      }
    }

    .footer-icon {
      .tag-people-sangh {
        display: block;
      }

      .tag-people-shravak {
        display: none;
      }

      ion-icon {
        color: var(--ion-color-sangh);
      }
    }
  }
}

.tag-people-sangh {
  display: none;
}

.tag-people-shravak {
  display: block;
}

ion-modal {
  &.post-option {
    ion-content {
      p {
        padding: var(--ion-padding-10) var(--ion-padding-15);
        margin: var(--ion-margin-0);
        font-size: var(--ion-font-size-14);
        color: #000;
        font-weight: 600;

        span {
          color: var(--ion-content-color);
          display: block;
        }
      }

      .footer-icon {
        >div {
          display: flex;
          align-items: center;
          color: var(--ion-color);
          font-weight: 600;
          padding: var(--ion-padding-10) var(--ion-padding-15);
          border-top: 1px solid #e1e1e1;
          font-size: var(--ion-font-size-14);

          &.discardpost {
            color: red;

            ion-icon {
              color: red;
            }
          }
        }

        ion-icon {
          width: 18px;
          height: 18px;
          padding: 6px;
        }
      }

      &.sangh-post {
        .footer-icon {
          >div {
            color: var(--ion-color-sangh);

            &.discardpost {
              color: red;

              ion-icon {
                color: red;
              }
            }
          }
        }

        .tag-people-sangh {
          display: block;
        }

        .tag-people-shravak {
          display: none;
        }
      }
    }
  }
}

ion-popover {
  &.crop-popover {
    overflow: hidden;

    &::part(content) {
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
    }

    .popover-viewport {
      overflow: hidden;

      .backdrop {
        overflow: hidden;

        .modal-body {
          padding-bottom: 30px;
          overflow: auto;
          height: 90vh;
        }

        .modal-footer {
          position: absolute;
          bottom: 0;
          height: 40px;
          width: 100%;

          button {
            background: var(--ion-color);
            height: 40px;
            width: 100%;
            color: #fff;
          }
        }
      }
    }
  }
}

.mention-popup {
  display: none;
  margin: val(--ion-margin-10) auto -10px;
  height: 260px;
  width: 70%;
  background-color: var(--ion-color-white);
  border: 1px solid var(--ion-background-gray);
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0px -1px 10px 2px var(--ion-background-gray);
  transition: 300ms;

  .list-ios {
    margin-bottom: var(--ion-margin-0);
  }

  &.open {
    display: block;
    position: sticky;
    z-index: 11;
    bottom: 0;
  }

  ion-label {
    border: none;
  }

  ion-item {
    margin-bottom: var(--ion-margin-0);
  }
}

.icon-common {
  background: var(--ion-background-content);
  border-radius: var(--ion-border-radius-100);
  color: var(--ion-color);
  margin-right: var(--ion-margin-10);
}