html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;

/* overflow: hidden; */
  font-family: "Source Sans Pro", sans-serif;
}

* {
  box-sizing: border-box;
}

.preloader {
  position: absolute !important;
  top: 50%;
  left: 50%;
  z-index: 10000;

  margin-top: -128px;
  margin-left: -128px;
}

#preload_logo {
  background-position: 0 0 !important;
  background-size: 256px 256px !important;
}

.configurator {
  /* height: 100%; */
  position: relative;

  width: 1px;
  min-width: 100%;
  height: 750px;
}

@media(min-width: 1024px) {
  .configurator {
    height: 100%;
  }
}

.configurator-view {
  position: relative;

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-color: #e1e1e1;
  border: 1px solid #e1e1e1;
}

.form__wrap {
  position: relative;

  width: 100%;
  height: 100%;
}

@media (min-width: 600px) {
  .configurator-view {
    flex-direction: row;
    height: calc(100% - 160px);
  }
}

@media (min-width: 1024px) {
  .form__wrap {
    display: flex;
  }

  .configurator-view {
    width: calc(100% - 265px);
    height: 100%;
  }
}

.model {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;

  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;

  background-color: #ffffff;
}

.model__item {
  display: block;

/* cursor: pointer;
    height: 100%; */
  width: 100%;
  height: auto;

/* flex: 50% 0 0;
    display: inherit;
    flex-direction: column;
    align-items: flex-start; */
  padding: 0;
}

.model__item:first-child {
  margin-bottom: 26px;
}

@media (max-width: 599px) {
  .model__item:first-child {
    flex-basis: calc(50% - 26px);
  }
}

@media (min-width: 600px) {
  .model {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .model__item {
    flex-basis: calc(50% - 13px);
  }

  .model__item:first-child {
    margin-bottom: 0;

    /* margin-right: 13px; */
  }

  .model__item:last-child {
    /* margin-left: 13px; */
  }
}

@media (min-width: 768px) {
  .model__item {
    display: inherit;
    flex: 50% 0 0;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 0;

    cursor: pointer;
  }
}

.model__item label {
  position: relative;

  display: block;
  margin-bottom: 20px;

  /* background: rgba(255, 255, 255, 0.4); */
}

.model__item input {
  position: absolute;

  opacity: 0;
}

.model__item--dual {
  /* color: #fff; */
  color: #070707;
  /* background-image: -moz-linear-gradient(63deg, rgb(238, 66, 66) 0%, rgb(247, 103, 103) 100%);
    background-image: -webkit-linear-gradient(63deg, rgb(238, 66, 66) 0%, rgb(247, 103, 103) 100%);
    background-image: -ms-linear-gradient(63deg, rgb(238, 66, 66) 0%, rgb(247, 103, 103) 100%); */
}

.model__item--mono {
  color: #070707;
  /* background-image: -moz-linear-gradient(90deg, rgb(251, 192, 45) 0%, rgb(253, 217, 82) 37%, rgb(255, 241, 118) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(251, 192, 45) 0%, rgb(253, 217, 82) 37%, rgb(255, 241, 118) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(251, 192, 45) 0%, rgb(253, 217, 82) 37%, rgb(255, 241, 118) 100%); */
}

.model__wrap {
  width: 100%;
  padding: 20px 5%;

  /* height: calc(100% - 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-around; */
}

.model__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 40px);
  padding: 20px 20px 0;
}

.model__item .model__title {
  margin-top: 0;
  margin-bottom: 10px;

  font-weight: 600;
  font-size: 36px;
  color: inherit;
  letter-spacing: 0.5px;
}

.model__grid {
  display: block;
  width: 100%;
  padding: 0 20px;

  background-image: inherit;
}

@media (min-width: 1024px) {
  .model__wrap .model__title {
    font-size: 60px;
  }
}

@media (min-width: 1024px) {
  .model__grid {
    display: grid;
    width: 100%;
    height: calc(100% - 80px);

    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .model__item label {
    margin-bottom: 0;

    background-color: rgba(255, 255, 255, 0);
  }
}

.model__wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.model__price {
  font-size: 24px;
  line-height: 1.25;
  color: inherit;
  letter-spacing: 0.5px;
}

.model__item .button {
  position: relative;
  position: absolute;
  right: 0;
  bottom: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-end;
  float: right;
  width: 145px;
  height: 41px;
  padding: 0 30px 0 0;

  font-size: 14px;
  line-height: 2.143;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  letter-spacing: 1px;

  background-color: #070707;
  cursor: pointer;
}

.model__item .button:after {
  content: "";
  position: absolute;
  right: 20px;

  width: 18px;
  height: 10px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='20'%3E%3Cpath d='M26.1 0L24.5 1.6 31.7 8.9 0 8.9 0 11.1 31.7 11.1 24.5 18.4 26.1 20 36 10 26.1 0Z' fill='rgb(255, 255, 255)'/%3E%3C/svg%3E");
  background-size: contain;

  transition: right 0.35s ease-in-out;
}

.model__item .button:hover:after {
  right: 10px;
}

#gameContainer {
  background-color: transparent;
}

#gameContainer canvas {
  width: 100% !important;
  height: 100% !important;
}

.color-mobile-close,
.color-mobile {
  display: none;
}

/* .color-mobile, .color-mobile-close {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background-color: #f9f9f9;
    width: 48px;
    height: 48px;
    z-index: 10;
    border: none;
    cursor: pointer;
    fill: #000;
    transition: all .35s ease-in-out;
}

.color-mobile[disabled] {
    opacity: .5;
    pointer-events: none;
}

.color-mobile:hover, .color-mobile-close:hover {
    background-color: #353434;
    fill: #fff;
}

.color-mobile:focus, .color-mobile-close:focus {
    background-color: #232323;
    fill: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

.color-mobile:active, .color-mobile-close:active {
    fill: #353434;
}

.color-mobile-close {
    right: 6px;
    top: 7px;
    left: auto;
}

@media (min-width: 600px) {
    .color-mobile, .color-mobile-close {
        display: none;
    }
} */

/* View */
.view {
  order: 1;
  width: 100%;

/* height: calc(100% - 80px); */
  height: 50%;
}

@media (min-width: 600px) {
  .view {
    order: 2;
    width: calc(100% - 130px);
    height: 100%;
  }
}

/* Menu: Parts */

.menu-parts {
  order: 2;
  width: 100%;
  height: 80px;
}

.menu-parts ul {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.part-item {
  display: flex;
  flex: 85px 1 0;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 85px;
  height: 80px;
  margin: 0;
  padding: 0;

  list-style: none;
  font-weight: bold;
  font-size: 10px;
  text-align: center;
  color: rgb(0, 0, 0);

  background-color: #ffffff;
  border-right: 1px solid #f0f0f0;
  border-bottom: 3px solid #000000;
  cursor: pointer;

  transition: 0.35s all ease-in-out;
}

.part-item img {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  pointer-events: none;
}

.part-item:last-child {
  border-right: 0;
}

.part-item:hover {
  color: #ffffff;

  background-color: #353434;
  border-right: 1px solid #f0f0f0;
}

.part-item:focus {
  background-color: #232323;
}

.part-item.selected {
  color: #000000;

  background-color: #f9f9f9;
  border-bottom-color: #f76767;
}

.part-item.selected:hover,
.part-item.selected:focus {
  border-right-color: #f0f0f0;
  border-bottom-color: #f76767;
}

@media (min-width: 600px) {
  .menu-parts {
    order: 1;
    width: 130px;
    height: 100%;
  }

  .menu-parts ul {
    flex-direction: column;
    width: 130px;
  }

  .part-item {
    flex: 117px 0 0;
    width: 100%;
    height: 117px;

    font-size: 14px;
    line-height: 1.286;

    border-right: 4px solid #000000;
    border-bottom: 1px solid #cccccc;
  }

  .part-item:last-child {
    border-right: 4px solid #000000;
    border-bottom-width: 0;
  }

  .part-item:hover {
    border-right: 4px solid #000000;
  }

  .part-item.selected,
  .part-item.selected:hover,
  .part-item.selected:focus {
    border-right-width: 4px;
    border-right-color: #f76767;
    border-bottom-color: #f0f0f0;
  }
}

/* Menu: Colors*/
.menu-colors {
  /* min-height: 390px; */
  position: absolute;

/* top: 0; */
  top: calc(50% + 80px);
  left: 0;

  display: flex;

/* opacity: 0;
    z-index: -1; */
  /* opacity: 1;
    z-index: 1; */
  flex-direction: column;
  width: 100%;

/* height: 100%; */
  height: calc(50% - 80px);
  padding: 15px 5px;

  background-color: #ffffff;

  transition: all 0.35s ease-in-out;
}

/* .menu-colors.visible {
    opacity: 1;
    z-index: 10;
} */

.part-title {
  margin-top: 0;
  margin-bottom: 0;

  font-size: 24px;
  line-height: 1.25;
  color: rgb(0, 0, 0);
  letter-spacing: 0.5px;
}

.menu-colors__active {
  margin-bottom: 15px;

  font-weight: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgb(114, 114, 114);
}

.menu-colors__active strong {
  font-weight: bold;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-colors__cart .price {
  margin-top: 0;
  margin-bottom: 10px;

  font-size: 24px;
  line-height: 1.25;
  color: rgb(0, 0, 0);
}

.menu-colors__cart .btn--cart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;

  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;

  background-color: #000000;
  border: none;
  cursor: pointer;

  transition: all 0.35s ease-in-out;
}

.menu-colors__cart .btn--cart:after {
  content: "+";
  position: relative;
  top: -2px;

  margin-left: 7px;

  font-size: 20px;
  color: #ffffff;
}

.menu-colors__cart .btn--cart:hover,
.menu-colors__cart .btn--cart:active,
.menu-colors__cart .btn--cart:focus {
  background-color: #f76767;
}

.menu-colors__cart .btn--cart:focus {
  box-shadow: 0 0 7px 0 rgba(247, 104, 104, 0.35);
}

.color-list ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;

  list-style: none;
}

.color-item {
  margin-right: 9px;
  margin-bottom: 10px;
  padding: 3px;

  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;

  transition: all 0.35s ease-in-out;
}

.color-item img {
  display: block;
  width: 18px;
  height: 18px;

  border-radius: 50%;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);

  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  pointer-events: none;
}

.color-item.selected,
.color-item.selected:hover,
.color-item:hover,
.color-item:focus {
  border-color: #f76767;
  box-shadow: 0 0 4px 0 rgba(247, 104, 104, 0.35);
}

.color-item:focus {
  box-shadow: 0 0 7px 0 rgba(247, 104, 104, 0.35);
}

.menu-colors__title,
.color-list,
.btn--cart,
.part-item {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

@media (min-width: 600px) {
  .menu-colors {
    position: static;

    flex-direction: row;
    width: 100%;
    height: 160px;
    min-height: auto;
    padding: 20px 0;
  }

  .part-title {
    font-size: 30px;
    line-height: 30px;
  }

  .menu-colors__cart .price {
    line-height: 35px;
  }

  .menu-colors__title {
    flex: 210px 0 0;
  }

  .color-list ul {
    margin: 4px 25px 0;
  }

  .menu-colors__cart {
    flex: 170px 0 0;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .menu-colors {
    flex-direction: column;
    width: 265px;
    height: 100%;
    padding: 45px 30px;

    border: 1px solid #e1e1e1;
    border-left: none;
  }

  .color-list ul {
    margin: 0 -15px 0 0;
  }

  .menu-colors__title,
  .menu-colors__cart {
    flex: auto 0 0;
    width: 100%;
  }

  .menu-colors__cart {
    margin-top: auto;
  }
}

.loading {
  background-color: #231f20;
}

.loading .configurator-view {
  background-color: #231f20;
  border-color: #231f20;
}

.loading .menu-colors {
  display: none;
}

/* Sizes */
.size {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;

  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;

  background-color: #ffffff;
}

.size__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 600px) {
  .size__title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.size__title h3 {
  margin-top: 0;
  margin-bottom: 0;

  font-weight: 600;
  font-size: 36px;
  text-align: center;
  color: #000000;
  letter-spacing: 0.5px;
}

.size-tables__item {
  width: 100%;
  max-width: 310px;
  margin: auto;
}

.size__help,
.size__submit {
  display: block;
  width: 200px;
  margin: 20px auto 10px;
  padding: 10px 15px;

  text-align: center;
  color: #333333;
  text-decoration: none;

  background-color: #eeeeee;
  border: none;
}

.size__help {
  margin: 0 auto;
}


.size__submit {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;

  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;

  background-color: #333333;
  border-color: #333333;
  cursor: pointer;
  
  transition: all 0.35s ease-in-out;
}

.size__popup_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #333333 !important;
  border-color: #333333 !important;
  cursor: pointer;
  transition: all 0.35s ease-in-out;
  border-radius: 0;
}

.size-group__title {
  width: 100%;
  margin: 0;

  font-size: 24px;
  line-height: 1.25;
  text-align: left;
  color: #000000;
  letter-spacing: 0.5px;
}
.size-group__summary {
  position: relative;

  display: flex;
  align-items: center;
  margin: 0 0 10px;

  font-size: 18px;
  color: #787878;
}
.size-group__summary::-webkit-details-marker {
  display: none;
}
.size-group__summary::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  display: block;
  width: 20px;
  height: 20px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='285' height='285' viewBox='0 0 284.9 284.9'%3E%3Cpath fill='%23787878' d='M282.1 76.5l-14.3-14.3c-1.9-1.9-4.1-2.9-6.6-2.9 -2.5 0-4.7 1-6.6 2.9L142.5 174.4 30.3 62.2c-1.9-1.9-4.1-2.9-6.6-2.9 -2.5 0-4.7 1-6.6 2.9L2.9 76.5C1 78.4 0 80.6 0 83.1c0 2.5 1 4.7 2.9 6.6l133 133c1.9 1.9 4.1 2.9 6.6 2.9s4.7-1 6.6-2.9L282.1 89.6c1.9-1.9 2.8-4.1 2.8-6.6C284.9 80.6 284 78.4 282.1 76.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
details[open] .size-group__summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='285' height='285' viewBox='0 0 284.9 284.9'%3E%3Cpath fill='%23787878' d='M282.1 195.3L149 62.2c-1.9-1.9-4.1-2.9-6.6-2.9s-4.7 1-6.6 2.9L2.9 195.3C1 197.2 0 199.4 0 201.9c0 2.5 1 4.7 2.9 6.6l14.3 14.3c1.9 1.9 4.1 2.9 6.6 2.9 2.5 0 4.7-1 6.6-2.9l112.2-112.2 112.2 112.2c1.9 1.9 4.1 2.8 6.6 2.8 2.5 0 4.7-1 6.6-2.8l14.3-14.3c1.9-1.9 2.8-4.1 2.8-6.6C284.9 199.4 284 197.2 282.1 195.3z'/%3E%3C/svg%3E");
}
@media(min-width: 1024px) {
  .size-group__summary {
    pointer-events: none;
  }
  .size-group__summary::after {
    display: none;
  }
}
.size-group__summary:focus,
.size-group__title:focus {
  outline: none;
}
.size-group__subtitle {
  margin: 10px 0;

  font-size: 20px;
  line-height: 1.25;
  text-align: center;
  color: #000000;
  letter-spacing: 0.5px;
}

.size-group__list {
  margin: 0;
  padding: 0;
}

.size-group__list li {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 0;

  list-style: none;
}

.size-group__list li button {
  display: inline-block;
  min-width: 70px;
  padding: 0.6180469716em 1.41575em;

  font-weight: 600;
  color: #333333;
  text-decoration: none;
  text-shadow: none;

  background-color: #eeeeee;
  border-style: solid;
  border-color: #eeeeee;
  cursor: pointer;
}

.size-group__list li button:hover {
  background-color: #d5d5d5;
  border-color: #d5d5d5;
}

.size-group__list li button:focus {
  outline: none;
}

.size-group__list li button.checked {
  color: #ffffff;
  background-color: #333333;
  border-color: #333333;
}

.size-group__leg label {
  display: block;
  margin-bottom: 10px;
}

.size-group__leg label span {
  display: inline-block;
  width: 90px;

  font-size: 18px;
}

.size-group__leg label input {
  width: calc(100% - 100px);
  height: 46px;
  padding: 3px 15px;

  background-color: #eeeeee;
  border: none;
}

@media (min-width: 1024px) {
  .size-tables {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .size-tables__item {
    margin: 0;
    padding: 0 30px;
  }

  .size-tables__item--preselect {
    flex: 70% 0 0;
    width: 70%;
    max-width: initial;
  }

  .size-tables__item--custom {
    flex: 30% 0 0;
    width: 30%;
    max-width: initial;
  }
  .size-group__title {
    text-align: center;
  }
}

table.cart .product-thumbnail img {
  max-width: 100% !important;
}
