.richmedia-icons {
  display: none;
  position: absolute;
  top: 50%;
}
.richmedia-card-clicked::before, .richmedia-card-rectangle-clicked::before{
  content: "";
  position: absolute;
  left: -webkit-calc(100% - 5px); /*may require prefix for old browser support*/
  left: calc(100% - 5px); /*i.e. half the height*/
  top: calc((100% - 6px)/2);
  top: -webkit-calc((100% - 6px)/2); 
  height: 12px;
  width: 12px;
  background: #dfe2e7;
  transform: rotate(45deg);
  border-top:inherit;
  border-right:inherit;
  box-shadow:inherit;
}
.hover-icons {
  font-size: 20px;
}
.richmedia-container {
  height: 100%;
  overflow-y: auto;
  .richmedia-card-rectangle {
    cursor: pointer;
  }
  .richmedia-card {
    padding: 8px;
    cursor: pointer;
    .cap-card-v2 {
      margin-right: 8px;
    }
  }
  .component-with-label-label {
    margin-bottom: 0px;
    font-size: 14px;
    line-height: 20px;
  }
  .component-with-label-inductive-text {
    color: #5e6c84;
  }
  #post-comments-label {
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 8px;
  }
  .richmedia-template-name {
    .component-with-label-label {
      margin-bottom: 6px;
    }
  }
  .custom-card {
    padding: 12px;
    background-color: white;
    height: 96px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  .existing-template-title-card {
    padding: 12px;
    background-color: white;
    height: 44px;
    width: 244px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  .custom-image {
    position: relative;
    .name-container {
      position: absolute;
      bottom: 0px;
      height: 44px;
      padding-top: 16px;
      padding-left: 12px;
      color: #ffffff;
      opacity: 0.7;
      width: 100%;
      background-image: linear-gradient(to top, black 0%, transparent 100%);
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
      div {
        color: #ffffff;
      }
    }
    img {
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
  }
  .custom-image-border-bottom img {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  .richmedia-card-container {
    width: 244px;
    margin: 8px;
    height: 56px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dfe2e7;
    display: flex;
    .title {
      padding: 12px;
      padding-top: 20px;
    }
    .image {
      padding: 8px;
      margin-right: 8px;
    }
  }
  .richmedia-card-rectangle-clicked, .richmedia-card-clicked {
    border: 1px solid #091e42;
    background-color: #dfe2e7;
    border-radius: 4px;
  }
  .card-nav-container {
    border: 1px solid #dfe2e7;
    border-radius: 4px;
    height: 56px;
    width: 20px;
    background: white;
    ::-webkit-scrollbar {
      display: none;
    }
    .cap-icon-v2 {
      color: #091e42;
    }
    .anticon {
      font-size: 14px;
    }
    .disabled-action .cap-icon-v2 {
      cursor: not-allowed;
      color: #b3bac5;
    }
    .cap-link-v2 {
      max-height: 100%;
      ::-webkit-scrollbar {
        display: none;
      }
    }
  }
  .embedded-mode {
    .cover-image-row {
      display: none !important;
    }
  }
}
.template-form-header {
  margin-bottom: 2.5rem;
}
.wechat-form-container {
  margin-right: 2.5rem;
}
.wechat-richmedia-row {
  margin-bottom: 1.5rem;
  // width: 50rem;
}
.overflow-wrap-fields {
  text-overflow: ellipsis;
  overflow: hidden;
  overflow-wrap: break-word;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}