.carddy {
  display: inline-grid;
  grid-template-areas:
    "image title"
    "image category"
    "image teacher"
    "image description"
    "image price"
    "image button"
    "info-cota info-cota";
  grid-template-columns: 300px 1fr;
  /* font-family: "Open Sans"; */
  background-color: #fff;
  background: linear-gradient(#f8f8f8, #fff);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
  border-radius: 0.25rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin: 0 6px 10px 0;
  width: 100%;
}

.carddy__o-title {
  grid-area: title;
  font-size: 18px;
  color: #29303b;
  /* overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;*/
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 8px;
  line-height: 19px;
}

.carddy__o-category {
  grid-area: category;
  text-transform: uppercase;
  font-size: 11px;
  color: #5f5f5f;
  display: flex;
  align-items: flex-end;
  /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
}

.carddy__o-teacher {
  grid-area: teacher;
  font-size: 18px;
  /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
  font-weight: 400;
  color: #be0606;
}

.carddy__o-image {
  grid-area: image;
  display: flex;
  height: auto;
  margin-right: 20px;
}

.carddy__o-image > .image {
  border-radius: 0.25rem;
  width: 100%;
  height: auto;
  /* width: 330px;
    height: 170px; */
}

.carddy__o-description {
  grid-area: description;
  color: #999;
  font-size: 12px;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

.carddy__o-price {
  grid-area: price;
  font-size: 12px;
  color: #29303b;
  text-align: right;
  font-weight: 300;
}

.carddy__o-button {
  grid-area: button;
  display: flex;
  justify-content: flex-end;
}

.carddy__o-button > .button {
  background-color: #be0606;
  border-color: #be0606;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0 32px 0 32px;
  border: none;
}

.price__original {
  font-weight: 600;
  font-size: 1.2em;
  color: #29303b;
}

.price__discount {
  font-weight: 900;
  font-size: 1.5em;
  color: red;
}

.carddy__o-info-cota {
  grid-area: info-cota;
}

@media (max-width: 767px) {
  .carddy {
    display: inline-grid;
    grid-template-areas:
      "image image"
      "title title"
      "teacher teacher"
      "category category"
      "description description"
      "price price"
      "button button";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .carddy__o-teacher,
  .carddy__o-description {
    margin-left: 0px !important;
  }

  .carddy__o-price {
    height: 40px;
    margin-top: 10px;
  }

  .carddy__o-button {
    height: 30px;
  }

  .carddy__o-button > .button {
    padding: 0 10px 0 10px;
  }

  .carddy__o-image > .image {
    width: 100%;
  }

  .mt-5 {
    margin-top: 0 !important;
  }
}
#finalizar_compra_button {
  background-color: #be0606;
}
