@import url('normalize.css');

:root {
  --cnst-main-width: 1300px;
  --cnst-main-margin: -40px;
  --cnst-main-padding: 40px;

  --cnst-color-default: #111;
  --cnst-color-orange: #25A09C;

  --cnst-border-radius: 5px;

  --cnst-view-background: #f3f3f3;
  --cnst-view-border-radius: 10px;

  --cnst-tab-color: #111;
  --cnst-tab-background: #f3f3f3;
  --cnst-tab-active-color: #fff;
  --cnst-tab-active-background: #25A09C;
}
@media(max-width: 992px) {
  :root {
    --cnst-main-margin: -25px;
    --cnst-main-padding: 25px;
  }
}
@media(max-width: 768px) {
  :root {
    --cnst-main-margin: -15px;
    --cnst-main-padding: 15px;
  }
}

.cnst-btn {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  gap: 10px;
  margin: 0;
  padding: 14px 20px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--cnst-color-orange);
  border: 0;
  border-radius: var(--cnst-border-radius);
  outline: 0;
  transition: all .5s ease;
  cursor: pointer;
}

.cnst-check {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}
.cnst-check input {
  display: none;
  visibility: hidden;
  opacity: 0;
}
.cnst-check label {
  display: flex;
  flex-flow: row nworap;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid #ccc;
  transition: all .5s ease;
  border-radius: 5px;
  cursor: pointer;
}
.cnst-check label .cover {
  display: block;
  position: relative;
  overflow: hidden;
  width: 50px;
  height: auto;
  border-radius: 4px;
}
.cnst-check label .cover::before {
  content: '';
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  padding-top: 100%;
}
.cnst-check label .cover > * {
  display: block;
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
.cnst-check label .text {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  padding-right: 10px;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

.cnst-check:hover {
  z-index: 2;
}

.cnst-check input:checked + label {
  border-color: #25A09C;
  box-shadow: 0 0 0 1px #25A09C;
}



.cnst-check--window-mobile label {
  padding: 5px;
  background: #fff;
}
.cnst-check--window-mobile label .cover {
  width: 40px;
}


.cnst-check--thumb label {
  padding: 1px;
}
.cnst-check--thumb label .cover {
  width: 100%;
}
.cnst-check--thumb label .text {
  position: absolute;
  z-index: 2;
  top: calc(100% - 10px);
  left: 50%;
  -webkit-transform: translate(-50%,0);
          transform: translate(-50%,0);
  min-width: 110px;
  margin: 0;
  margin-top: -20px;
  padding: 6px 10px;
  font-size: 12px;
  color: #ffff;
  text-align: center;
  background: rgba(0,0,0,.9);
  border-radius: 4px;
  transition: all .5s ease;
  visibility: hidden;
  opacity: 0;
}
.cnst-check--thumb label .text::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 100%;
  left: 50%;
  -webkit-transform: translate(-50%,0);
          transform: translate(-50%,0);
  width: 10px;
  height: 10px;
  border: 5px solid transparent;
  border-bottom-color: rgba(0,0,0,.9); 
}

.cnst-check--thumb:hover label .text {
  margin-top: 0;
  visibility: visible;
  opacity: 1;
}

@media(max-width: 992px) {
  .cnst-check--thumb label .text {
    display: none;
  }
}

.cnst-section {
  display: flex;
  flex-flow: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  gap: 30px;
  width: 100%;
  max-width: var(--cnst-main-width) !important;
  margin: 0 var(--cnst-main-margin);
  padding: 50px var(--cnst-main-padding);
}



.cnst-header {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}

.cnst-header .title {
  display: block;
  margin: 0;
  padding: 0;
  padding-left: 25px;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  border-left: 4px solid #ff512f;
}



.cnst-container {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: flex-start;
  gap: 0;
}



.cnst-cover {
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  align-items: stretch;
  overflow: hidden;
  gap: 0;
  background: var(--cnst-view-background);
  border-radius: var(--cnst-view-border-radius);
}

.cnst-cover-types {
  display: none;
  position: relative;
  z-index: 1;
  flex-flow: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  margin: 0;
  padding: 10px;
}

.cnst-cover-view {
  display: block;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  background: var(--cnst-view-background);
  border-radius: var(--cnst-view-border-radius);
  box-shadow: 0 0 20px 0 rgba(0,0,0,.2);
}
.cnst-cover-view .render {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  padding-top: 100%;
}
.cnst-cover-view img {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.cnst-cover-view img#render-bg {
  z-index: 1;
}
.cnst-cover-view img#render-prof {
  z-index: 2;
}
.cnst-cover-view img#render-otk {
  z-index: 4;
}
.cnst-cover-view img#render-pod {
  z-index: 3;
}
.cnst-cover-view img#render-pet {
  z-index: 5;
}




.cnst-content {
  display: flex;
  flex-flow: column;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  padding-left: 50px;
}

.cnst-content-types,
.cnst-content-tabs {
  display: block;
  position: relative;
  overflow: hidden;
  margin: -10px var(--cnst-main-margin);
  padding: 10px var(--cnst-main-padding);
}
.cnst-content-types::before,
.cnst-content-types::after,
.cnst-content-tabs::before,
.cnst-content-tabs::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: var(--cnst-main-padding);
}
.cnst-content-types::before,
.cnst-content-tabs::before {
  left: 0;
  background: linear-gradient(90deg,#fff 25%, transparent 100%);
}
.cnst-content-types::after,
.cnst-content-tabs::after {
  right: 0;
  background: linear-gradient(-90deg,#fff 25%, transparent 100%);
}
.cnst-content-types .swiper-slide,
.cnst-content-tabs .swiper-slide {
  width: auto;
}
.cnst-content-types .swiper-slide:last-of-type,
.cnst-content-tabs .swiper-slide:last-of-type {
  padding-right: 50px;
}

.cnst-content-types {
  margin-bottom: 30px;
}

.cnst-content-tabs {
  margin-bottom: 10px;
}

.cnst-content-tab {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  min-width: 160px;
  margin: 0;
  padding: 10px 20px;
  font-size: 18px;
  color: var(--cnst-color-default);
  white-space: nowrap;
  background: var(--cnst-tab-background);
  border-radius: var(--cnst-border-radius);
  transition: all .5s ease;
  cursor: pointer;
}
.cnst-content-tab::before {
  content: '';
  display: block;
  position: absolute;
  top: 100%;
  left: 20px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 10px solid transparent;
  border-top-color: var(--cnst-tab-background);
  opacity: 0;
  transition: all .5s ease;
}
.cnst-content-tab .selected {
  font-size: 14px;
  opacity: .5;
}

.cnst-content-tab.active {
  color: var(--cnst-tab-active-color);
  background: var(--cnst-tab-active-background);
}
.cnst-content-tab.active::before {
  border-top-color: var(--cnst-tab-active-background);
  margin-top: 0;
  opacity: 1;
}
.cnst-content-tab.active .selected {
  opacity: .7;
}



.cnst-content-options {
  display: block;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
}
.cnst-content-options-grid {
  display: none;
  grid-template-columns: repeat(8,1fr);
  gap: 10px;
}
.cnst-content-options-grid.active {
  display: grid;
}



.cnst-content-footer {
  display: flex;
  position: relative;
  z-index: 1;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  margin-top: 20px;
  padding: 0;
}



.cnst-color {
  display: block;
  position: relative;
}
.cnst-color input {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
}
.cnst-color .thumb {
  display: block;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.cnst-color label {
  display: block;
  margin: 0;
  padding: 5px 0 5px 40px;
  font-size: 14px;
  cursor: pointer;
}

@media(max-width: 1200px) {
  .cnst-content-options-grid {
    grid-template-columns: repeat(6,1fr);
  }
}

@media(max-width: 768px) {
  .cnst-container {
    display: flex;
    flex-flow: column;
    align-items: stretch;
    gap: 20px;
  }

  .cnst-cover-types {
    display: flex;
  }

  .cnst-content {
    padding-left: 0;
  }

  .cnst-content-types {
    display: none;
  }

  .cnst-content-tabs::before,
  .cnst-content-tabs::after {
    display: none;
  }

  .cnst-content-tab {
    font-size: 16px;
  }
  .cnst-content-tab .selected {
    font-size: 12px;
  }

  .cnst-content-options-grid {
    grid-template-columns: repeat(8,1fr);
    gap: 5px;
  }
}

@media(max-width: 600px) {
  .cnst-content-options-grid {
    grid-template-columns: repeat(7,1fr);
  }
  .cnst-content-tab {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
  }
}

@media(max-width: 500px) {
  .cnst-content-footer {
    flex-flow: column;
    align-items: stretch;
  }
}



