/* variant
------------------------------------------------------------------- */

.variant {
  transition: all 0.3s ease;
}

.card__details,
.card__container,
.card__container form,
.card__container label.c-form,
.variants-table {
  width: 100%;
}

.variant__scroll {
  overflow-y: auto;
  max-height: 82px;
  width: 100%;
}

.c-goods__item.product-wrapper .variant__scroll {
  max-height: 95px;
  text-align: center;
}

.c-goods__item.product-wrapper .variant__scroll span {
  text-align: left;
}

.variants-table label.c-form {
  display: flex;
  justify-content: space-between;
  box-shadow: 0 0 0 2px #f1f1f5;
  border-radius: 5px;
  align-items: center;
  padding: 0.5rem;
}

.variants-table tbody {
  display: flex;
  flex-wrap: wrap;
}

.variants-table tbody .variant__row {
  margin: 0 1rem 1rem 0;
}

.variants-table label.c-form.active {
  box-shadow: 0 0 0 2px var(--color-accent);
  color: var(--color-text);
}
.variants-table label.c-form .variant__checkbox,
.c-variant__price,
.variant__scroll label:before,
.variant__title,
.variant__img,
.variant__price--none .variant__price--old,
.variant__price--none .variant__price--current {
  display: none;
}

.variants-table label.c-form > span {
  display: flex;
  align-items: center;
}

.variant__checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #dadada;
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
  display: block;
}

.variant__checkbox::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  transition: all 0.3s ease;
}

.variants-table label input:checked ~ .variant__checkbox::before {
  content: "\F012C";
  display: inline-block;
  font: normal normal normal 24px/1 "Material Design Icons";
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: var(--text-xxs);
  line-height: 1;
  text-rendering: auto;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
}

.variants-table label div {
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.variants-table .variant__img img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.product-page .variant {
  margin-bottom: 15px;
}

.variant__scroll::-webkit-scrollbar {
  -webkit-appearance: none;
}
.variant__scroll::-webkit-scrollbar:vertical {
  width: 4px;
}
.variant__scroll::-webkit-scrollbar:horizontal {
  height: 4px;
}
.variant__scroll::-webkit-scrollbar-thumb {
  background-color: var(--color-bg-menu);
  border-radius: 6px;
}
.variant__scroll::-webkit-scrollbar-track {
  background-color: var(--color-bg);
}

@media (max-width: 767px) {
  .variant__scroll {
    max-height: 100px;
  }
}

.variant__scroll label {
  margin-top: 0 !important;
}

.variant__scroll label:hover {
  text-decoration: none;
}

@media (max-width: 767px) {
  .variant__scroll label:before {
    display: none;
  }
}

.variant__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 40px;
  -webkit-transition: box-shadow 0.3s;
  -webkit-transition: -webkit-box-shadow 0.3s;
  -o-transition: box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition:
    box-shadow 0.3s,
    -webkit-box-shadow 0.3s;
  cursor: pointer;
}

.variant__row * {
  cursor: pointer;
}

@media (max-width: 767px) {
  .variant__row {
    min-height: 32px;
  }
}

.variant__column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}

.variant__img {
  position: relative;
  min-width: 34px;
  max-width: 34px;
  width: 34px;
  min-height: 34px;
  max-height: 34px;
  height: 34px;
  margin-left: 0.5rem;
}

@media (max-width: 767px) {
  .variant__img {
    display: none;
  }
}

.variant__value {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.variant__name {
  font-size: var(--text-xxs);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .variant__name,
  .variant__price {
    font-size: var(--text-xxs);
  }
}

.variant__price {
  font-size: var(--text-xxs);
  font-weight: 500;
}

.variant__price--old {
  margin-right: 6px;
  color: #999;
}

@media (max-width: 767px) {
  .variant__price--old {
    margin-right: 0;
  }
}

.variant__price--current {
  color: #cd4449;
}

.variant__price--not-available {
  display: none;
  color: #999;
}

.variant__price--none .variant__price--not-available {
  display: block;
}

.c-product .variant {
  margin-top: 16px;
}

.c-product .variant__title {
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .c-product .variant__title,
  .c-product .variant__name {
    font-size: 1rem;
  }
}

.c-product .variant__scroll {
  max-height: 160px;
}

@media (max-width: 767px) {
  .c-product .variant__img {
    display: block;
  }
}

@media (max-width: 767px) {
  .c-product .variant__price {
    font-size: var(--text-xxs);
  }
}

.c-goods__item .variant {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .c-goods__item .variant {
    margin-bottom: 10px;
  }
}



