@import '../../../global/theme.less';

.root {
  .title {
    padding-left: 12px;
    font-size: 14px;
    font-weight: normal;
  }

  .icons {
    float: right;
    .icon {
      margin-left: 4px;
      display: inline-block;
      width: 20px;
      font-size: 12px;
      line-height: 20px;
      text-align: center;
      cursor: pointer;
      color: @light-chart-opt-bar-icon-color;
      transition: 0.3s;
      &:hover {
        color: @theme-color;
      }
    }
  }
}

.descriptionContainter {
  :global {
    .@{ant-prefix}-popover-inner {
      max-width: 350px !important;
      overflow: auto;
      border: 1px solid @normal-color!important;
      border-radius: 2px !important;
      box-shadow: 0 8px 16px @desc-box-color !important;
    }
    .@{ant-prefix}-popover-inner-content {
      overflow: auto;
    }
  }
}
.description {
  padding: 20px 20px;
  max-width: 302px;
  max-height: 350px;
  overflow: auto;
  p {
    line-height: inherit !important;
    margin: 0;
    white-space: pre-wrap;
  }
}

.descriptionIcon {
  color: @icon-desc-color !important;
}
.descriptionIcon:hover {
  color: @icon-desc-hover-color !important;
}

.descriptionModal {
  .footer {
    border-top: 1px solid @border-color-base;
    width: 100%;
    .modalButtonContainter {
      height: 60px;
      width: 256px;
      margin: auto;
      .modalButton {
        width: 100% !important;
        height: 36px !important;
        margin-top: 10px;
        border-radius: 20px !important;
        line-height: 17px;
        color: @desc-button-color;
      }
    }
  }

  .mobileDescription {
    width: 100%;
    max-height: 400px;
    padding: 5px 15px 0 15px;
    overflow-y: auto;
    p {
      line-height: inherit !important;
      margin: 0;
      white-space: pre-wrap;
      font-size: 14px !important;
    }
  }
  :global {
    .am-modal {
      border-radius: 12px !important;
      max-height: 460px !important;
      width: 300px;
    }
    .am-modal-content {
      border-radius: 8px !important;
      border: 1px solid @normal-color !important;
      box-shadow: 0 8px 16px @desc-box-color !important;
      text-align: left !important;
      .am-modal-body {
        padding: 0 !important;
      }
    }
  }
}
