/* Toggle */

.toggle-agreement {
  display: flex;
  align-items: center;       /* Vertical centering */
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 20px;
  min-height: 50px;
  padding-top: 20px;
}

.toggle-agreement .button {
  flex-shrink: 0;            /* Prevent toggle from shrinking */
}

.toggle-agreement label {
  margin: 0;
  flex: 1;
  color: black;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  display: flex;
  align-items: center;       /* Align label content vertically too */
}

#app-cover {
  display: table;
  width: 600px;
  margin: 80px auto;
  counter-reset: button-counter;
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  align-items: center;
  width: 600px;
  height: 80px;
  box-sizing: border-box;
  padding: 20px;
}

.button-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #010101;
  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;
  left: 0;
}

.button {
  position: relative;
  width: 74px;
  height: 36px;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.toggle-button-cover > label {
  margin-top: -28px;
  display: table;
}

.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%;
  background-color: #dadada;
  transition: var(--transition) ease all;
  z-index: 1;
}

/* Button 3 */
.toggle-yesNo .knobs:before {
  content: "ΟΧΙ";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  font-size: 20px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #909090;
  border-radius: 50%;
  transition: var(--transition) ease all, left var(--transition) cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

.toggle-yesNo .checkbox:active + .knobs:before {
  width: 46px;
  border-radius: 100px;
}

.toggle-yesNo .checkbox:checked:active + .knobs:before {
  margin-left: -26px;
}

.toggle-yesNo .checkbox:checked + .knobs:before {
  content: "ΝΑΙ";
  left: 42px;
  background-color: #3f7d3c;
}

.toggle-yesNo .checkbox:checked ~ .layer {
  background-color: #d0e9ce;
}
