@import "../variables/_all";

.card {
  display: inline-block;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.33);
  background: white;
  border-radius: 4px;
  border: 1px solid $card-border-color;
  max-width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
}

.card-inner {
  max-width: 480px;
}

.card-image-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.card-image {
  width: $card-image-width;
}

.card-col {
  margin-left: 4px;
  &:first-child {
    margin-left: 0;
  }
  &.card-image-col {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: $card-image-background-color;
    border: 1px solid $card-image-border-color;
    border-radius: 2px;
    max-width: $card-image-max-width;
  }
  &.card-info-col {

  }

}

.card-inner {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  justify-content: flex-start;
}

.card-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 4px 0;

  th {
    font-weight: normal;
    font-size: $card-th-font-size;
    color: $card-th-color;
  }
  th, td {
    padding: 2px 4px;
  }
}

.card-wrap {
  margin: 16px 0;
  text-align: center;
  padding: 8px 0;
}