@notes-prefix: pisell-sale-detail-notes-panel;

.@{notes-prefix} {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }

  &__section {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 10px;
    padding: 6px 12px;
    background: #0a0a10;
  }

  &__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  &__section-title {
    min-width: 0;
    overflow: hidden;
    color: #f5f7ff;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  &__card {
    position: relative;
    padding: 18px 48px 18px 18px;
    border: 1px solid rgba(157, 169, 197, 0.28);
    border-radius: 12px;
    background: rgba(11, 17, 32, 0.78);
    box-sizing: border-box;
  }

  &__text {
    margin: 0;
    color: #f5f7ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  &__menu-button {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: rgba(234, 240, 255, 0.78);
    font-size: 16px;
    line-height: 1;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);

    &:hover {
      color: #fff;
      background: rgba(127, 86, 217, 0.2);
    }
  }

  &__add {
    width: 100%;
    padding: 12px 8px;
    border: 1px solid rgba(157, 169, 197, 0.34);
    border-radius: 12px;
    color: #eaf0ff;
    font-size: 14px;
    font-weight: 800;
    background: rgba(11, 17, 32, 0.72);
    cursor: pointer;

    &:hover {
      border-color: rgba(191, 202, 226, 0.58);
      background: rgba(22, 31, 53, 0.88);
    }
  }

  &__reserved {
    min-height: 76px;
  }
}
