@import '../../../../../assets/scss/variables';

.card-container {
  min-height: 200px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: #ffffff;
  font-family: 'Open Sans';

  .card-wrapper {
    padding-top: 22px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 16px;
  }

  .restmenge {
    font-size: 16px;
    font-weight: bold;
    line-height: 28px;
    color: $hima-color-text-neutral;
  }

  .card-details {
    display: flex;
    flex-direction: row;
    padding-top: 20px;
    .icon {
      .thumbnail {
        max-width: 59px;
        max-height: 111px;
        box-shadow: 0 0 18px 0 #b8b3b7;
        border-radius: 6px;
      }
    }

    .details-info {
      padding-left: 15px;
      display: grid;
      grid-template-columns: 250px auto;

      .general {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        font-weight: bold;
        color: #000000;

        .format-description {
          max-width: 60%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;

          &.expand {
            max-width: 80%;
          }
        }

        .format-edition {
          display: flex;
          flex-direction: row;

          span {
            padding-right: 3px;
          }
        }

        .price {
          display: flex;
          flex-direction: row;

          .currency {
            padding-left: 3px;
          }
        }

        .features {
          display: flex;
          flex-direction: row;
          position: relative;

          span {
            color: #596470;
            padding-right: 5px;
            cursor: pointer;
          }

          &__tooltip {
            position: absolute;
            left: -10px;
            bottom: 25px;

            &-container {
              position: relative;
            }
          }
        }

        .feature-tooltip {
          background-color: #5a728a;
          color: #ffffff;
          padding: 12px 36px 12px 12px;
          border-radius: 5px;
          position: relative;
          width: max-content;
          max-width: 250px;

          lib-icon {
            margin-left: 5px;
            cursor: pointer;
            position: absolute;
            top: 10px;
            right: 10px;
          }
        }

        .feature-tooltip-arrow-down {
          width: 0;
          height: 0;
          border-left: 10px solid transparent;
          border-right: 10px solid transparent;
          border-top: 10px solid #5a728a;
          margin-top: -1px;
        }
      }

      .quantity-placement {
        display: flex;
        flex-direction: row;

        .labels,
        .datas {
          display: flex;
          flex-direction: column;
        }

        .datas {
          font-size: 16px;
          font-weight: bold;
          color: #000000;
          padding-left: 27px;

          .data {
            padding-bottom: 4px;

            &.short {
              max-width: 200px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }
          }
        }

        .labels {
          font-size: 16px;
          color: #000000;

          .label {
            padding-bottom: 4px;
          }
        }
      }

      .item {
        padding-bottom: 4px;
      }
    }
  }

  .actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 26px;
  }
}
