@media (max-width: 768px) {
  .tim-review {
    grid-template-areas:
      "title title title title"
      "product product overall overall"
      "options options options options"
      "buttons buttons buttons buttons"
      "pros pros pros pros"
      "cons cons cons cons";
  }

  .tim-review__buttons a {
    flex: 0 0 100%;
  }
}
@media (min-width: 769px) {
  .tim-review {
    grid-template-areas:
      "title title title title"
      "product overall options options"
      "buttons buttons options options"
      "pros pros cons cons";
  }

  .tim-review__buttons a {
    /*     flex: 0 0 40%; */
    flex: 0 0 100%;
  }
}

.tim-review {
  margin: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 1px;
  background-color: #e6e6e6;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  overflow: hidden;
  /* padding: 1px; */
}

.tim-review > div {
  background-color: white;
  text-align: center;
}
.tim-review__title {
  grid-area: title;
  font-weight: 600;
  font-size: 20px;
}
.tim-review__product {
  word-wrap: break-word;
  grid-area: product;
  display: flex;
  flex-direction: column;
  padding: 0 15px 15px 15px;
  font-weight: 600;
}
.tim-review__product img {
  width: 100%;
  margin-top: auto !important;
  margin-bottom: auto !important;
}
.tim-review__overall__wrapper {
  grid-area: overall;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.tim-review__overall {
  margin-top: auto;
  margin-bottom: auto;
}
.tim-review__pros {
  /* display: none; */
  text-align: left;
  grid-area: pros;
  /* border: 1px solid #e6e6e6; */
  /* border-radius: 5px; */
}
.tim-review__pros > div {
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  overflow: hidden;
}
.tim-review__pros > div:last-child {
  display: none;
}
.tim-review__cons {
  /* display: none; */
  text-align: left;
  grid-area: cons;
  /* border: 1px solid #e6e6e6; */
  /* border-radius: 5px; */
}
.tim-review__cons > div {
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  overflow: hidden;
}
.tim-review__cons > div:first-child {
  display: none;
}
.tim-review__options {
  padding-top: 25px;
  grid-area: options;
  display: flex;
  flex-direction: column;
}
.tim-review__buttons {
  display: flex;
  justify-content: space-around;
  row-gap: 15px;
  flex-wrap: wrap;
  grid-area: buttons;
}
/* .tim-review__buttons:after {
  content: "";
  flex: 0 0 40%;
} */

.padding-cell {
  padding: 15px;
}

.tim-review__overall circle {
  display: inline;
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.tim-review__pros ul,
.tim-review__cons ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 10px;
}

.tim-review__pros li:before,
.tim-review__cons li:before {
  content: "-";
  margin-right: 5px;
}

.tim-review__pros .pros-cons__header,
.tim-review__cons .pros-cons__header {
  font-size: 20px;
  font-weight: 600;
}

.option__wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
.option__label {
  float: left;
}
.option__rating {
  float: right;
}
.option__bar {
  margin-top: 10px;
  /* display: flex; */
  /* justify-content: start; */
  /* justify-content: space-between; */
}

.option_progress:after {
  position: absolute;
  right: 0;
  width: 40px;
  height: 30px;
  margin-top: -20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: -20px;
  content: attr(data-value-percent);
  background-image: url("data:image/svg+xml;utf8,<svg width='255' height='198' viewBox='0 0 255 198' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M127.5 198C31.2855 132 -103.415 0 127.5 0C358.415 0 223.715 132 127.5 198Z' fill='white'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.3));
  filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.3));
}
.option__icon {
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("assets/images/star-grey.svg");
  list-style: none;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
.option__icon_active {
  background-image: url("assets/images/star-yellow.svg");
}

.tim-review__buttons a {
  /* border: 2px solid; */
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
  color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.tim-review__buttons a:hover {
  opacity: 0.75;
  /* background-color: transparent !important; */
}

/* Admin */

#tim_review_buttons_meta_box .wp-picker-container {
  vertical-align: middle;
  margin-top: 2px;
}

#tim_review_buttons_meta_box li {
  display: flex;
  flex-wrap: wrap;
}

.tim-review-table__wrapper {
  text-align: center;
  border-radius: 5px;
  border: solid #e6e6e6 1px;
}

.tim-review-table__wrapper table {
  border-spacing: 0;
  border-collapse: collapse;
  border-style: hidden;
  width: 100%;
  table-layout: fixed;
}

.tim-review-table__wrapper .tim-review__product {
  /* width: 140px; */
  margin: auto;
}

.tim-review-table__wrapper .tim-review__overall {
  /* min-width: 140px; */
}

.tim-review-table__wrapper .tim-review__buttons {
  /* min-width: 140px; */
}

.tim-review__table__num {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #de6436;
  color: #fff;
  padding: 3px 10px;
}

.tim-review-table__wrapper table thead tr th {
  font-family: Roboto;
}

@media screen and (max-width: 600px) {
  .tim-review-table__wrapper {
    border: 0 !important;
  }
  .tim-review-table__wrapper table {
    border: 0 !important;
  }
  .tim-review-table__wrapper table thead {
    display: none;
  }
  .tim-review-table__wrapper table tr {
    border-bottom: 1px solid #ddd !important;
    display: block;
    margin-bottom: 10px;
  }
  .tim-review-table__wrapper table td {
    border-bottom: 1px dotted #ccc !important;
    display: block;
    font-size: 13px;
    /* text-align: right; */
  }
  .tim-review-table__wrapper table td:last-child {
    border-bottom: 0 !important;
  }
}
