
html, body, body > header { height: 100%; margin: 0; width:100%;}

body{
    background-color:black;
    color:white;
    height:100%;
    overflow:hidden;
    margin:0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hidden{
    display:none !important;
    height:0 !important;
}

.grid-container{
    grid-template-rows: 60px 1fr 10px;
    grid-template-columns: minmax(200px,4fr) 0.5fr 1fr 300px 1.5fr;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
}

#chainPreviewContainer{
    min-height:300px;
    overflow-y: auto;
    overflow-x: hidden;
}

#clipPreview {
    position:relative;
    min-height:70px;
    width:300px;

    background-size: auto 70px;
    background-repeat: no-repeat;
    background-position-x: center;
    margin-bottom:-10px;
}

#clipPreview:empty {
    background-image:url("imgs/ClipBG.webp");
}

.chainPrev{
  position:relative;
  min-height:300px;
  /*width:300px;*/
  color:white;
  background-image:url('imgs/SchnurGewellt.S.W.webp');
  background-size: 20px auto;
  background-repeat: repeat-y;
  background-position-x: center;
  padding:30px 0;
}

#chainPreview {
}

#chainPreviewTop{

}

.beisserPreview { 
    position:relative;
    min-height:120px;
    /*width:300px;*/
    background-size: auto 120px;
    background-repeat: no-repeat;
    background-position-x: calc(50% - 1px);
}

.beisserPreview:empty {
    background-image:url("imgs/BeisserBG.webp");
}

#beisserPreviewTop img {
  height: initial!important;
}

/*--------Accordion 1 Blau -------*/

.accordion .panel {
  margin: 0 auto;
  overflow:auto;
  background-color: rgba(84, 84, 84, 0.684);
  line-height: 1.4;
  padding: 0 20px;
  transition: all 0.5s;
  display:flow-root;
  display: grid;
  /* grid-template-rows: minmax(70px,200px); */
  /* grid-auto-rows: minmax(70px,200px); */
  grid-template-columns: repeat(auto-fill, minmax(50px,auto));
  gap: 10px;
}



.ketElement{
    position:relative;
    display:block;
}

.accordion .ketElement{
    /* float:left; */
    width: fit-content;
    height: fit-content;  
}

.ketElement{
    background-color:transparent;
    color:white;
    padding:5px;
}

.elementWithPrice.ketElement.Zwischenperle {
    grid-column: span 4;
}

.elementWithPrice.ketElement.beisser {
    grid-column: span 4;
}

.elementWithPrice.ketElement.schnur {
    grid-column: span 2;
}

.elementWithPrice.ketElement.clip {
    grid-column: span 2;
}

.elementWithPrice.ketElement.figur.perle {
  grid-column: span 2;
}

.show{
    display:block !important;
    height:fit-content !important;
}

.drop-highlight{
    border:1px solid white;
}

.chainPreviewContainer .ketElement{
    width: fit-content;
    margin: auto;
}

.chainPreview .ketElement{
    color:white;
    padding:5px;
    clear:both;
    background-color:transparent;
    /*margin: 0 auto;*/
    padding:0;
    width: fit-content;
    margin: auto;
}

#chainPreviewTop .ketElement{
  /*margin-left:0;*/
}

#chainPreviewTop .chainPrev{
  width:initial;
}

.ketElementContent{
    /*margin: 0 auto;*/
    position: relative;
    display: block;
    /*margin:auto;*/
    background-color:transparent;
}

.panel .ketElementContent{
    object-fit: contain;
    aspect-ratio: auto;
}

.gu-mirror .letter_overlay{
    left:30px;
}

.letter_overlay{
    position: absolute;
    color: black;
    font-size: 12pt;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
}

.letter-input{
    width: 25px;
    height: 30px;
    top: -20px;
    left: -7px;
    position: absolute;
    font-size: large;
    border: 0;
    border-bottom: 1px solid black;
    background-color:transparent;
    text-align: center;
}

.letter-input:focus{
    border: 0;
    border-bottom: 1px solid black;
    outline: none;
    background-color:transparent;
}

.letter-input-hint-container{
    position: absolute;
    color:red;
    transform: rotate(-90deg);
    top: -150px;
    left: -90px;
    font-size: medium;
    width: 200px;
}

.accordion .letter-input-hint-container{
  display:none;
}

.accordion {
    overflow:auto;
    /*margin-left: 10px;*/
    margin-right: 0;
    /*height: calc(100vh - 60px);*/
}

@media (width < 768px) {
  .accordion {
   display:none;
  }
  .accordion.showIt{
    display:flex;
    width: 100%;
  }
  #chainPreviewContainer.hideIt{
    display:none;
  }
}



#kettenlaenge {
  display: none;
}

@media (width > 768px) {
  #kettenlaenge {
    display:block;
  }
  #perlenLink{
    display:block;
    height:0;
  }
}

.accordion input:checked+.panel {
    padding: 20px;
    transition: all 0.5s;
    height: calc-size(auto, size);
    min-height:280px;
    display: grid;
    /* min-height: 200px; */
    transition: height 0.5s linear, display 0.5s allow-discrete, min-height 0.5s linear;
    width: 100%;
    flex-grow: 500;
}

.accordion input:checked+.Buchstaben{
  min-height:100px;
}

.accordion .panel {
  height: 0;
  color: #333;
  /*padding: 0;*/
  transition: height 0.5s linear, display 0.5s allow-discrete, min-height 0.5s linear;
  /* display: none; */
  width: 100%;
}

.accordion .groupDiv {
    flex-shrink: 2;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    margin: 5px 0;
}

.blinkingBorder{
    animation: blinking 1s linear 3;
}

@keyframes blinking {
    0% {
        background-color:none;
      }
    50% {
        background-color:rgba(84, 84, 84, 0.684);
    }
    100% {
        background-color:none;
    }
  }

#chainPreviewContainer, #chainPreviewContainerTop, #previewTopRotContainer {
    scrollbar-width:none;
}

@media (width < 768px) {
  .chainPreviewContainerTopContainer:not(.collapse) {
    height:80px;
    padding: 15px;
  }
}
.collapse{
  display: none;
  height:0;
  padding:0;
}

.md:collapse{
  display: none;
  height:0;
  padding:0;
}

.admin .adminbutton{
  display:block;
  visibility:visible;
  height:initial;
  width:initial;
  color:black;
  padding:7px;
  background-color:white;
  border-radius:10px;
}

#chainPreviewContainerTop{
  transform: rotate(-0.25turn) scale(0.5) translateY(-200px);
}

.v-centered{
  align-items: center;
  display: flex
;
}

.loadingDiv{
  display:flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
}

.bgbutton {
    display:block;
    width:30px;
}

#order .bgbutton {
  font-size: 1.5em;
}

.startbutton{
  width: 90px;
  background-color: orange;
  border-radius: 10px;
  margin: 10px;
}

.startbuttonContainer{
  display:flex;
  flex-direction:column;
}

@media (width < 768px) {
  .perlen-view #lengthWarning {
      display:none;
  }
}

@media (width > 768px) {
  #kettenLink{
    display:none;
    height:0;
  }
}

#footer{
  height:50px;
}


#chainPreviewContainer::-webkit-scrollbar {
    width: 1em;
}

#chainPreviewContainer::-webkit-scrollbar-track {
  background: transparent;
}

#chainPreviewContainer::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  border-radius: 10px;
}

.outOfStock{
    display:none;
}

#chainPreviewContainer .outOfStock{
    display:block;
    border: 2 px solid red;
    background-color: red;
    color:black;
    padding: 5px;
    width:80px;
}

.admin .outOfStock{
  display:block;
  border: 2 px solid red;
  background-color: red;
  color:black;
  padding: 5px;
  width:80px;
}
  
.accordion label {
  cursor: pointer;
  background-color: #543d1b;
  background-image: url(imgs/walnut_DIFFUSE.jpg);
  background-repeat: repeat;
  background-attachment: fixed;
  border-bottom: 2px solid #000;
  display: block;
  padding: 5px;
  width: 100%;
  color: #fff;
  font-weight: 400;
  box-sizing: border-box;
  z-index: 100;
  border-radius: 0 10px 10px 0;
  padding-left: 20px;
}


.accordion label:has(+ input:checked) {
  border-radius: 0 10px 0 0;

}

.accordion .panel label {
  border-bottom: 0;
}

td {
  padding-top:12px;
}

.accordion input{
  display: none;
}

.accordion .panel input{
  display: initial;
  margin: 10px;
  text-indent: 7px;
}

.imageElemContainer{
  position:relative;
  width: fit-content;
}

.accordion .panel label{
    background-color: initial;
    color: white;
    display:initial;
}

.accordion .panel:checked label{
    background-color: initial;
    color:initial;
    display:initial;
}

.accordion input:checked+label:before {
  transition: 0.5s;
}

#order{
    position:fixed;
    right:0;
    bottom:55px;
    padding:20px;
}

#cost{
    padding-right:5px;
    font-size: 1em;
}

.logo-link{
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 70%;
  margin: 0 10px;
}

.logo-link{
  background-image: url(imgs/Logo_KetteliDesigner.webp);
}

@media (width < 400px) {
  .logo-link{
    background-image: url(imgs/Logo_KetteliDesignerSmall.webp);
  }
}

table a img {
  border-radius:20px
}

#greeting-overlay{
    position:absolute;
    z-index:1000;
    background-color:white;
    opacity: .9;
    border-radius:50px;
    top: 80px;
    right: 2%;
    left: 2%;
    bottom: 80px;
    color:black;
    padding:60px;

    display: flex;
    align-items: center;
    flex-direction: column;
}

#overlay_container {
  height: 100%;
  overflow: scroll;
  padding-bottom: 2%;
  border-radius: 10px;
}

#picklist-overlay{
  position:absolute;
  z-index:1000;
  background-color:white;
  opacity: .9;
  border-radius:50px;
  top: 80px;
  right: 2%;
  left: 2%;
  bottom: 80px;
  color:black;
  padding:60px;
}

#order-overlay{
  position:absolute;
  z-index:1000;
  background-color:white;
  opacity: .9;
  border-radius:50px;
  top: 80px;
  right: 2%;
  left: 2%;
  bottom: 80px;
  color:black;
  padding:60px;
}
.accordion .orderContainer .panel{
  color:white;
  padding:30px;
}

.accordion .orderContainer .panel input{
  color:black;
}

#agb-overlay{
  position:absolute;
  z-index:1000;
  background-color:white;
  opacity: .9;
  border-radius:50px;
  top: 80px;
  right: 2%;
  left: 2%;
  bottom: 80px;
  color:black;
  padding:60px;
}
#agb{
  overflow-y:scroll;
}

#welcome{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 300px;
}

#welcome h1{
  text-align: center;
}

.welcometext{
  align-content: center;
  align-items: center;
  text-align: center;
}

.heart-container{
  display:flex;
  width: fit-content;
}

#startOver {
    position: fixed;
    right: 0;
    top: 0;
    padding: 20px;
}

.elementWithPrice img{
    margin-bottom:20px; 
}

.chainPreviewContainer .elementBezeichnung{
    display:none;
}

.chainPreviewContainer img{
    margin-bottom:0;
}

.elementBezeichnung{
  min-width: 50px;
  font-size: max(0.75rem,min(1rem,80%));
  font-weight: bold;
  z-index: 5000;
  color: white;
  position: absolute;
  top: max(20px, 50%);
  text-align: center;
  vertical-align: middle;
  border-radius: 10px 0 0 10px;
  padding: 3px;
  background-color: rgba(0, 0, 0, 0.4);
  right: 0;
}
.elementBezeichnung:empty{
  display:none;
}

.fadeOut {
    visibility: hidden;
    opacity: 0;
  }

.fadeIn {
    visibility: visible;
    opacity: 1;
    transition: opacity 2s linear;
  }

#startEmail{
    border: 1px solid black;
    margin: 10px;
    border-radius: 10px;
    padding: 0 10px;
    text-align: center;
}

h1{
  font-weight: 700 !important;
  border-bottom: 40px !important;
}

.lds-heart {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    transform: rotate(45deg);
    transform-origin: 40px 40px;
  }
  .lds-heart div {
    top: 32px;
    left: 32px;
    position: absolute;
    width: 32px;
    height: 32px;
    background: #000;
    animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .lds-heart div:after,
  .lds-heart div:before {
    content: " ";
    position: absolute;
    display: block;
    width: 32px;
    height: 32px;
    background: #000;
  }
  .lds-heart div:before {
    left: -24px;
    border-radius: 50% 0 0 50%;
  }
  .lds-heart div:after {
    top: -24px;
    border-radius: 50% 50% 0 0;
  }
  @keyframes lds-heart {
    0% {
      transform: scale(0.95);
    }
    5% {
      transform: scale(1.1);
    }
    39% {
      transform: scale(0.85);
    }
    45% {
      transform: scale(1);
    }
    60% {
      transform: scale(0.95);
    }
    100% {
      transform: scale(0.9);
    }
  }


  .shepherd-enabled.shepherd-element {
    margin-left: 20px !important;
}

html, body {
  overscroll-behavior-x: none;
}


#orderComment{
  margin-left: 30px;
  color:black;
}

#printContainer tr img{
  width:50px;
}

#printContainer td{
  padding:16px;
}

#printContainer #chainPreview {
  margin:0;
}

#printContainer #chainPreviewContainer {
  position:relative;
  float:right;
}

#printContainer table {
  position:relative;
  float:left;
}

#printContainer #qrDiv{
  position: absolute;
  bottom: 0;
}

#printContainer h1{
  font-size: xx-large;
  padding-bottom: 20px;
}


/* Manual Style for Vorlagen-Table */


/* WP Styles for Vorlagen-Table*/


.wp-block-table .has-border-color td, .wp-block-table .has-border-color th, .wp-block-table .has-border-color tr, .wp-block-table .has-border-color>* {
    border-color: inherit;
}
.wp-block-table .has-fixed-layout td, .wp-block-table .has-fixed-layout th {
    word-break: break-word;
}
.wp-block-table td, .wp-block-table th {
    border: 1px solid;
    padding: .5em;
}
:is(th, td, div._important), :-webkit-any(th, td, div._important) {
    display: table-cell;
}
.has-text-align-center {
    text-align: center;
}

td {
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
    padding-bottom: 20px;
    line-height: 0.5;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

table {
    border-collapse: separate;
    text-indent: initial;
    border-spacing: 2px;
}
