/* Container for floating label; ensures relative positioning */
.wc-block-components-floating-label {
  position: relative;
}

/* Style for the input */
.wc-block-components-floating-label input {
  background-color: #fff;
  border: 1px solid hsla(0, 0%, 7%, .8);
  border-radius: 4px;
  box-sizing: border-box;
  color: #2b2d2f;
  font-family: inherit;
  font-size: 1em !important;
  height: 3.125em;
  line-height: 1em;
  margin: 0;
  min-height: 0;
  padding: 1.5em .5em .5em;
  width: 100%;
}

/* Style for the label, positioned absolutely over the input */
.wc-block-components-floating-label label {
  position: absolute;
  top: 1.3em;
  left: 0.5em;
  transition: all 0.2s ease;
  font-size: 1em;
  pointer-events: none;
  color: hsla(0, 0%, 7%, .7);
}

/* When input is focused or has a value, float the label */
.wc-block-components-floating-label input:not(:-moz-placeholder) + label {
  transform: translateY(-1.2em);
  font-size: 0.8em;
  color: hsla(0, 0%, 7%, .7);
}
.wc-block-components-floating-label input:focus + label,
.wc-block-components-floating-label input:not(:placeholder-shown) + label {
  transform: translateY(-1.2em);
  font-size: 0.8em;
  color: hsla(0, 0%, 7%, .7);
}

