.template-type4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 12px;
}

.tpl-type4-header * {
  margin: 0;
}

.tpl-type4-content-left {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.tpl-type4-content-mid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpl-type4-content-mid div {
  display: flex;
  gap: 4px;
  width: 100%;
}

.tpl-type4-content-mid div hr {
  flex-grow: 1;
  align-self: flex-end;
  border-style: dashed;
}

.tpl-type4-content-right {
  border: 1px solid #ccc;
  padding: 12px 16px;
  grid-row-start: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.tpl-type4-content-right-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: start;
}

.tpl-type4-content-right-top>div:nth-last-child(1) {
  display: flex;
  justify-content: center;
  align-items: center;
}


.template-type4 .buy_one_click, .get_consult_click {
  padding: 8px 12px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
}

.template-type4 .buy_one_click {
  background-color: #ccc;
}

.template-type4 .get_consult_click {
  border: 1px solid #ccc;
}

.template-type4 .cart-btn > a {
  background-color: #ccc;
  color: #000 !important;
  font-weight: 400;
}
.template-type4 .cart-btn > div {
  border: 1px solid #ccc;
}

.template-type4 .cart-btn > div * {
  color: #000 !important;
}

.template-type4 .cart-line {
  padding: 0;
}

.template-type4 .cart-line .cart-line-title {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 4px;
}

.template-type4 .delivery-days {
  margin-top: 12px;
}

.kz_raiting_info{
  display: flex;
  align-items: center;
  margin: 10px 0 20px !important;
  gap: 10px;
}

.big_stars{
  margin-top: 0 !important;
}

.big_stars_rewiews {
  margin: 4px 0 0 3px;
}


@media (min-width: 780px) {
  .template-type4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .tpl-type4-header {
    grid-column: span 2 / span 2;
  }
  .tpl-type4-content-right {
    grid-row-start: 2;
    grid-column-start: 2;
  }
}


@media (min-width: 780px) and (max-width: 1279px) {
  .tpl-type4-content-mid {
    grid-column: span 2 / span 2;
    text-align: center;
  }
  .tpl-type4-content-mid div {
    max-width: 75%;
    align-self: center;
  }
}

@media (min-width: 1280px) {
  .template-type4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tpl-type4-header {
    grid-column: span 3 / span 3;
  }
  .tpl-type4-content-right {
    grid-row-start: auto;
    grid-column-start: auto;
  }
}
