.secret-toggle {
  align-items: center;
  justify-content: center;
}

.wp-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 26px;
}

.wp-switch-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.wp-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dcdcde;
  transition: 0.3s;
  border-radius: 24px;
}

.wp-switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s linear;
  border-radius: 50%;
}

.wp-switch-checkbox:checked + .wp-switch-slider {
  background-color: #2271b1;
}

.wp-switch-checkbox:focus + .wp-switch-slider {
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px #2271b1;
}

.wp-switch-checkbox:checked + .wp-switch-slider:before {
  transform: translateX(var(--on-translate, 34px));
}

.wp-switch-text {
  position: absolute;
  color: white;
  font-size: 11px;
  font-weight: 500;
  user-select: none;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.wp-switch-text-on {
  left: 4px;
  opacity: 0;
}

.wp-switch-text-off {
  right: 4px;
}

.wp-switch-checkbox:checked ~ .wp-switch-text-on {
  opacity: 1;
}

.wp-switch-checkbox:checked ~ .wp-switch-text-off {
  opacity: 0;
}

.rekai-shortcode-generator {
  max-width: 800px;
  margin-top: 20px;
}

.rekai-shortcode-generator h2 {
  margin-top: 0;
}

.rekai-shortcode-type,
.rekai-shortcode-attributes,
.rekai-shortcode-preview {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.rekai-shortcode-output {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f0f1;
  padding: 15px;
  border-radius: 4px;
}

.rekai-shortcode-output code {
  flex: 1;
  padding: 10px;
  background: #fff;
  border: 1px solid #dcdcde;
}

#rekai-shortcode-type {
  min-width: 200px;
}

#rekai-shortcode-description {
  margin-top: 10px;
  font-style: italic;
}

#rekai-selector-section {
  max-height: 0;
  overflow-y: hidden;
  &.animate {
    transition: max-height 500ms;
  }
  &.show {
    max-height: 600px;
    max-height: calc-size(auto);
  }
}

.secret-toggle {
  span::before {
    content: "\f530";
  }
  &.show {
    span::before {
      content: "\f177";
    }
  }
}
