.dining-mode-hide{
  top: 2.6em !important;
  transition: 1s !important;

}
.dining-mode-hide span{
  width: 100vw !important;
  border: none !important;
  border-radius: 0 !important;

}
.dining-mode-hide :before{
  opacity: 0 !important;
}
.toggle-button-cover {
  display: table-cell;
  position: relative;
  width: 200px;
  height: 140px;
  box-sizing: border-box;
}

.button-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}

.button-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: min-content;
  left: 0;
}

.button {
  width: 4em;
  overflow: hidden;
  z-index: 11;
  transition: 0.5s;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 17 */
#dining-mode-toggle .knobs:before,
#dining-mode-toggle .knobs span {
  content: "Takeaway";
  position: absolute;
  left: 0;
  width: 45%;
  height: 1em;
  color: #fff;
  font-size: medium;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
}

#dining-mode-toggle .knobs:before {
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
  z-index: 2;
  opacity: 1;
}

#dining-mode-toggle .knobs span {
  background-color: #32a1cd;
  border-radius: 0 0 1em;
  transition: 0.3s;
  z-index: 1;
  border: 1px solid var(--header-bordercolor-1);
}

#dining-mode-toggle .checkbox:checked + .knobs:before {
  content: "Dine In";
  left: 53%;
}

#dining-mode-toggle .checkbox:checked + .knobs span {
  left: revert-layer;
  right: 0;
  background-color: #00aa00;
  border-radius: 0 0 0 1em;
}

#dining-mode-toggle .checkbox:checked ~ .layer {

}
#dining-mode-toggle {
    position: fixed;
    top: 4.3em;
    left: 0;
    width: 100%;
    height: 2.4em;
    overflow: hidden;
    z-index: 1;
    transition: 0.5s;
}
.dining-mode-pos-hide img{
    top: -30px !important;
}
/* Button 5 */
#button-5 {
  perspective: 60px;
  overflow: visible;
}
#button-5 .knobs span {
    border-inline: 1px solid var(--header-bordercolor-2);
}
#button-5 .knobs:before,
#button-5 .knobs span {
  content: "";
  position: absolute;
  display: block;
  width: -webkit-fill-available;
  height: 2.8em;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  vertical-align: revert-layer;
  padding-block: .8em;
  top: -1px;
  padding-inline: 0.4em;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-5 .knobs:before {
  background-color: #32a1cd;
}

#button-5 .knobs span:before {
  content: "Take Away";
  text-shadow: 1px 1px 2px #000;
}

#button-5 .knobs:before,
#button-5 .layer {
  transform: rotateY(0);
  transform-origin: center;
}

#button-5 .checkbox:checked + .knobs:before,
#button-5 .checkbox:checked + .knobs span {
}

#button-5 .checkbox:checked + .knobs:before {
  transform: rotateY(180deg);
  background-color: #00aa00;
}

#button-5 .checkbox:checked + .knobs span:before {
  content: "Dine In";
  left: 42px;
}

#button-5 .checkbox:checked ~ .layer {
  background-color: #fcebeb;
  transform: rotateY(-180deg);
}

#button-5 .knobs,
#button-5 .knobs:before,
#button-5 .layer {
  transition: 0.3s ease all;
}
