.app .messages {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}
.app .product{margin:0}
.app .details{margin-top:20px}

.product .thumbs {
  width: 100px;
  min-width:72px;
  display: inline-block;
  vertical-align: top;
  position: absolute;
  top: 10px;
  left: 0;
  transition:top .3s ease;
  transition:opacity .3s ease-out;
}
/*.header-up .thumbs {top:67px}*/
.product .thumbs a {
  margin:0 0 8px;
  display:block;
  box-sizing: border-box;
  border: 1px solid #fff;
  transition:border-color .2s ease-out;
  line-height: 0;
  position: relative;
}
.product .thumbs a.selected {
  border: 2px solid #222;
  pointer-events: none;
}
.product .thumbs a:hover {
  border-color:#999;
}
.product .thumbs img {
  display:block;
  z-index: 6;
  position: relative;

}

.product .thumb a, .co .thumb {
  display:block;
  line-height: 0;
  position: relative;
}

.product .gallery .starts {
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 40%;
  text-align: right;
  display: none;
}

.gallery .button-secondary {
  position: absolute;
  right: 0;
  bottom: 12px;
  line-height: 46px;
  height: 46px;
  padding: 0 24px;
}
.gallery .button-secondary svg {
  width: 20px;  vertical-align: -3px;
}

.product .preview {
  width: calc(70% - 80px);
  display: inline-block;
  vertical-align: top;
  margin: 0px 40px 0 0;
  position: sticky;
  top:56px;
  transition:top .3s ease;
  overflow: hidden
}
.header-up.product .preview {top:67px}
.product .preview .controls{
    position: absolute;
    bottom: 8px;
  right: 5%;
  width: 40%;
  text-align: right;
    z-index: 200;
}
.product .preview .controls button{
  margin: 0 8px 8px 0px;
border: 1px solid #555;
font-size: 11px;
padding: 11px 9px 7px 10px;
line-height: unset;
background: #fff;
color: #333;
fill: #333;
}
.product .preview .controls button:hover{
border-color:#999
}
.product .preview .controls svg{
    width:28px
}
.product .canvas {
  width: calc(100% - 110px);
  float: right;
  transition:opacity .3s ease-out, height .3s ease-out;
  opacity: 1;
  text-align: center;
  position: relative;
}
.product .canvas img{
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 100;
}
.product .canvas.off {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.product .button-note button + div {
  text-align: center;
}


.details .actions {
    position: sticky;
  bottom: 4px;
  background: #fff;
  box-shadow: #fff 0 0px 10px;
  padding:0
}








.form {
  padding: 0 0 24px;
}

.product-buttons input {
  line-height: 26px;
  width: calc(100% - 15px);
  margin: 4px 0 0;
}
.input, .inset {
  margin: 16px 0 0;
  position: relative;
}
.input:first-child {
    margin: 0;
}

.input label {
  font-weight: 600;
  display: block;
  line-height: normal
}
.input .rel{
  position: relative;
  display:block
}
.input label .note {
  color: #666;
display: block;
font-weight: 500;
margin: 4px 0;
}
.input label .note a{
  float: right;
  padding: 0px 4px;
  margin: 0;
  width: unset;
  border: none;
  color: #666;
}
.input label .note a.selected{
  color: #555;
font-weight: bold;
}
.input label .note a:hover{
  text-decoration: underline;
}
.input.char + .input.char {
  margin: 0;
}
.input.char + .input.char a {
  margin-top: 4px;
}
.input.more.char a{
    width: calc(100% - 86px);
    margin-right: 2px;
}
.input.char a.min {
    width: 36px;
    height: 41px;
    vertical-align: top;
}
.input.char a.min.off {
    opacity: .5;
    pointer-events: none
}

input:focus ~ .underinput {
 width: calc(100% - 2px);
}

.inputnote {
  position: absolute;
  right: 10px;
  bottom: 12px;
  color: #999;
  font-size: 13px;
  opacity: 0;
  transition:opacity .2s ease-out;
}

input:focus ~ .inputnote {
 opacity: 1
}

textarea {
  width: calc(100% - 43px);
  line-height: 24px;
  padding: 6px 4px 6px 34px;
  border: 1px solid #666;
  overflow: hidden;
  resize: none;
}
textarea:focus ~ .underinput {
 width: calc(100% - 4px);
}
/*.input.text {
    max-height: 343px;
    overflow: hidden;
    transition:max-height .5s ease-in-out;
}
.input.text.full {
    max-height: 2500px;
    transition:max-height .5s ease-in-out;
}*/
.input.text {
    line-height:0
}
.text .inputnote {
  opacity: 1;
  left: 8px;
  bottom:6px;
  line-height: 24px;
  text-align: center;
  width: 22px;
}
.text .inputnote ul, .text .inputnote li{
  padding:0;list-style: none;
}

.text .inputnote .error{
  color:#fff;
  background:#e30
}


.input.buttons a, .input.more a {
    float: none;
    font-size: 14px;
    border: 1px solid #ddd;
    text-align: center;
    box-sizing: border-box;
    transition:border-color .2s ease-out;
    padding: 9px 0;
    position: relative;
    text-decoration: none;
}
.input.more a {
  margin: 6px 6px 0 0;
  display: inline-block;
}
.input.buttons a {
  margin: 0;
}

.input.buttons a svg {
  height: 37px;
vertical-align: top;
margin: 1px 0;
fill: #222;
}
.input.buttons label {
  grid-column: 1 / -1;
}
.input.buttons.img img {
  height: 20px;
vertical-align: top;
margin: 1px 0;
fill: #222;
object-fit: contain;
width: unset;
max-width: 100%;
}
.input.buttons.img  a {
    padding: 9px 0 6px;
}
.input.buttons.img2 img {
  height: 35px;
vertical-align: top;
margin: 0;
object-fit: cover;
}
.input.buttons.img2  a {
    padding: 0;
}
.input.buttons .selected {
    border-color: #666;
    pointer-events: none;
  }
.input.buttons.multi .selected {
      pointer-events:all;
  }
.input.buttons .price{
  font-size: 12px;
  color:#555;
  margin-top:4px
}

.input.more a {
    width: 100%;
    border:1px solid #666;
    padding: 11px 14px;
    text-align: left;
}
.input.more svg {
  position: absolute;
  right: 8px;
  height: 18px;
  transform: rotate(270deg);
}
.input.more .up svg {
  transform: rotate(180deg);
}
.input.more .down svg {
  transform: rotate(0deg);
}
.input.buttons {
  display: grid;
  grid-gap:8px
}
.input.two {
  grid-template-columns: repeat(2, calc(50% - 4px));
}
.input.three {
  grid-template-columns: repeat(3, calc(33.33% - 5.33px));
}
.input.four{
  grid-template-columns: repeat(4, calc(25% - 6px));
}
.input.five {
  grid-template-columns: repeat(5, calc(20% - 6.4px));
}
.input.six {
  grid-template-columns: repeat(6, calc(16.66% - 6.66px));
}
.input.eight {
  grid-template-columns: repeat(8, calc(12.5% - 7px));
}
.input.eight a:nth-of-type(8n) {
    margin-right: 0
}
.input.eight a {
    line-height:30px
}
#item-size a span {display: block;}
.input a:hover {
  text-decoration: none;
  border-color: #999
}
.input.buttons.icons svg {height:30px}

.input.cols {line-height: 0}
.input.cols label{margin-bottom:4px;line-height: initial}
.col {
  display: inline-block;
  width: 43px;
height: 43px;
margin: 1px 1px 0 0;

}
.col:hover {
  margin: 2px 2px 1px 1px;
width: 41px;
height: 41px;
}
.col.selected {
  border: 2px solid #222;
width: 39px;
height: 39px;
pointer-events: none;
position: relative;
}
.multi .col.selected {
pointer-events: all;
}
.multi .col.selected:hover {
margin: 1px 1px 0 0;
}
.col.selected::after {
    display: block;
    content: '';
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: none;
    border: 1px solid #fff;
}
.multi.full .col:not(.selected) {
    opacity:.5;
    pointer-events: none;
}
.selected.so::before {
  content: "+";
  position: absolute;
  top: 18px;
  text-align: center;
  font-size: 24px;
  width: 100%;
  text-shadow: -1px 1px 0 #fffc, 1px 1px 0 #fffc, 1px -1px 0 #fffc, -1px -1px 0 #fffc;
}

.inpanel {
    position: relative;
}
.inpanel .panel {
    position: absolute;
    width: 100%;
    left:100%;
    transition:left .2s ease-in-out;
}
#pan-main, .inpanel .panel.on {
    left:0%;
    transition:left .2s ease-in-out;
}
.inpanel .panel.off {
    left:-100%!important;
    transition:left .2s ease-in-out;
}
.panel-back {
    font-size: 14px;
    margin: 30px 0 20px;
display: block;
font-weight: 600;
}
.panel-back:first-of-type {margin-top:0}
a.panel-back{
text-decoration: none
}
.panel-back svg{
    transform: rotate(90deg);
     height: 18px;
  vertical-align: -4px;
}


.stage2a .rel {
    width: calc(100% - 116px);
    display: inline-block;
    margin:0 2px 3px 0
}
.stage2a .buttons {
    width: 110px;
    display: inline-block;
    margin: 0;
}
.stage2a .buttons a{
    padding: 11px 6px;
    margin-top: 0;
}

.full .fadeinput {
    display: none;
}

.fadeinput {
    display: block;
    height: 62px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
    pointer-events: none;
}

.input .swatch {
  display: block;
  width: 33px;
  height: 33px;
  position: absolute;
  top: 1px;
  left:1px
}
.swatch .col31 {display: block;  width:100%; height:33.33%; background: #000;position: absolute;top: 0}
.swatch .col33 {display: block;  width:100%; height:33.33%; background: #000;position: absolute;top: 66.66%}
.swatch .col31s {display: block;  width:100%; height:33.33%; background: #000;position: absolute;top: 0}
.swatch .col33s {display: block;  width:100%; height:33.33%; background: #000;position: absolute;top: 66.66%}
.swatch .col51 {display: block;  width:100%; height:20%; background: #000;position: absolute;top: 0}
.swatch .col52 {display: block;  width:100%; height:20%; background: #000;position: absolute;top: 20%}
.swatch .col54 {display: block;  width:100%; height:20%; background: #000;position: absolute;top: 60%}
.swatch .col55 {display: block;  width:100%; height:20%; background: #000;position: absolute;top: 80%}
.input.inner .swatch {
    width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 12px;
  vertical-align: text-top;
  position: relative;border: 1px solid #dddddd99;
}

#editDes, #viewDes {display: none}

.preview  .canvSvg text, .preview .canvSvg .ico {
    opacity: 1;
    transition:all .25s ease-in-out;
}
.preview .loading .canvSvg text {
    opacity: .1;
    transition:all .4s ease-in-out;
     scale: .99;
      transform: translateX(.5%) translateY(.5%);
}
.preview .loading .canvSvg .ico {
    opacity: .1;
    transition:all .4s ease-in-out;
}
.preview .loadingS .canvSvg text, .preview .loadingS .canvSvg .ico {
    opacity: 0!important;
    scale:.5;
    transition:none
}
.preview .svgpat {
  position: absolute;
  pointer-events: none;
}

.modalContent .panel-header {
    text-transform: none;
    letter-spacing: 0;
    line-height: unset;
    background: #fff;
    font-size: 14px;
    padding: 6px 0 0;
}

.modalContent .panel .inner {
    padding:0;
    margin:10px 0 0
}
.modalContent .panel .panel-header svg {
  top: 7px;
}

.loady {
  pointer-events: none;
  opacity: 0;
}

.loady.on {
  opacity: 1;
  transition: opacity 2s;
  transition-delay: 1s
}

#pixel-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 300px;
  left: 0;
}


@media only screen and (max-width: 1360px) {
    .product .preview{
      width: calc(60% - 40px);
      margin: 0 28px 0 0
    }
    .product .thumbs {
      width: 80px
    }
    .product .canvas {
        width: calc(100% - 90px);
    }
    .product .preview .controls{
      right: 6px;
    }
    .gallery .button-secondary {
      right: 12px;
      line-height: 42px;
      height: 42px;
      padding: 0 16px;
    }
}

@media only screen and (max-width: 1060px) {
  .product .preview{
    width: calc(60% - 19px);
    margin: 0 18px 0 0px;
    line-height: 0;
    padding:0 0 10px
  }
  .product .canvas {
      width: 100%;
  }
  .product .thumbs{
      position: relative;
      width: 100%
  }
  .product .thumbs a{
      width: 100px;
      margin: 0 10px 0px 0px;
      display: inline-block
  }
  .product .preview .controls{
      bottom: 115px;
  }
  .product .preview .controls button{
      padding:  10px 8px 9px 10px;
  }

}

@media only screen and (max-width: 900px) {
  .product .preview{
    top:56px;
}

@media only screen and (max-width: 760px) {
    .product .preview{
      width: 100%;
      margin: 0;
      top: 0;
      padding:0
    }
    .product .canvas {
        width: calc(100% - 110px);
    }

    .product .thumbs{
        position: sticky;
        width: 100px
    }
    .product .thumbs a{
        width: 100px;
        margin: 0 0px 10px 0px;
        display: block
    }
    .product .gallery .starts {
      display: block;
    }
    .product .preview .controls{
        bottom: 1px;
      right: 2px;
    }
    .product .preview .controls button{
      padding: 10px 8px 8px;
    }
    .product .preview .controls svg{
        width:24px
    }
    .details .actions {
        position: fixed;
        bottom: 0;
        background: white;
        padding: 10px 10px 8px;
        width: 100%;
        z-index: 50;
        left: 0;
    }
    .actions #editDes, .actions #viewDes {width: 30%;line-height: 40px;margin:0 10px 0 0}
    .actions #editDes.show, .actions #viewDes.show {display: inline-block;}
    .actions #addToCart {width: calc(70% - 30px);}
}

@media only screen and (max-width: 560px) {
  .product .canvas {
      width: 100%;
  }
  .product .thumbs{
      position: relative;
      width: 100%;
      margin-bottom: 24px
  }
  .product .thumbs a{
      width: 80px;
      margin: 0 10px 0px 0px;
      display: inline-block
  }
  .product .gallery .starts {
    width: 80px
  }
  .product .gallery .starts button{
    font-size: 10px;
    width: 58px;
    line-height: 15px;
    text-align: center;
    height: 58px;
    padding: 0 4px;
  }
  .product .details {margin-top:6px}
  .product .preview .controls{
      bottom: 105px;
  }
}

@media only screen and (max-width: 360px) {
  .col {height:38px}
  .col:hover {height: 36px;}
  .col.selected {height:34px}
  .input.buttons.icons svg {
    height: 26px;
  }
}
