




.floating-forms .form-group,
.floating-forms .form-row,
.floating-forms .bricks-search-form,
.floating-forms .brxe-form-group,
.floating-forms .coupon-form,
.checkout-section .form-row {
  position: relative;
  margin: 0;
  width: 100%;
}


.floating-forms input:focus,
.floating-forms textarea:focus,
.floating-forms select:focus,
.floating-forms .select2-container--default.select2-container--open .select2-selection--single,
.floating-forms .select2-container--default.select2-container--focus .select2-selection--multiple {
  outline-color: transparent !important;
  outline-style: solid !important;
  outline-width: 0 !important;
  box-shadow: var(--fl-focus-shadow) !important;
  border-color: var(--primary) !important;
  transition: all 0.2s;
}

.woocommerce input[aria-invalid="true"],
.woocommerce .input-text[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: var(--fl-error-focus-shadow) !important;
}




.floating-forms .select2-container .select2-selection--single,
.checkout-1-field__input,
.checkout-section #payment input.input-text,
.checkout-section #payment select,
.checkout-section #payment textarea,
.checkout-section .woocommerce-checkout-payment input.input-text,
.checkout-section .woocommerce-checkout-payment select,
.checkout-section .woocommerce-checkout-payment textarea {
  height: var(--f-input-height, 5rem) !important;
  background-color: var(--f-light-input-background, var(--bg-input)) !important;
  border: var(--px-border-btn) solid var(--border-checkout) !important;
  border-radius: var(--px-radius-btn) !important;
  box-sizing: border-box;
  outline: none;
  display: flex !important;
  align-items: center;
  padding: 0 var(--fl-input-padding-x) !important;
  width: 100%;
  color: var(--text-checkout);
  line-height: 1.2;
}


.floating-forms .select2-container .select2-selection--single .select2-selection__placeholder,
.checkout-section input::placeholder {
  color: var(--neutral-semi-light) !important;
  opacity: 1 !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}


.floating-forms .form-group > label,
.floating-forms .form-row > label,
.floating-forms .bricks-search-form > label,
.floating-forms .coupon-form > label,
.checkout-section .form-row > label:not(label[for="wc-stripe-new-payment-method"], label[for="wc-woocommerce_payments-new-payment-method"]) {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: var(--fl-label-top);
  left: var(--fl-label-left);
  transform: translateY(6px);
  transition: var(--fl-transition);
  z-index: 1;
  font-size: var(--f-label-size, var(--text-s));
  font-weight: 700;
  color: var(--fl-label-color);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -.04em;
}


.floating-forms label[for="wc-stripe-new-payment-method"],
.floating-forms label[for="wc-woocommerce_payments-new-payment-method"],
.floating-forms .wc_payment_method label {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0px);
  transition: var(--fl-transition);
}




.floating-forms .form-group:focus-within > label,
.floating-forms .form-row:focus-within > label:not(.woocommerce-form__label-for-checkbox),
.floating-forms .bricks-search-form:focus-within > label,
.floating-forms .coupon-form:focus-within > label,
.checkout-section .form-row:focus-within > label:not(label[for="wc-stripe-new-payment-method"], label[for="wc-woocommerce_payments-new-payment-method"]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  color: var(--fl-label-active-color);
  z-index: var(--fl-z-index);
}


.floating-forms .form-group:has(input:not(:placeholder-shown)) > label,
.floating-forms .form-group:has(textarea:not(:placeholder-shown)) > label,
.floating-forms .form-row:has(input:not(:placeholder-shown)) > label:not(.woocommerce-form__label-for-checkbox),
.floating-forms .form-row:has(textarea:not(:placeholder-shown)) > label:not(.woocommerce-form__label-for-checkbox),
.floating-forms .bricks-search-form:has(input:not(:placeholder-shown)) > label,
.floating-forms .coupon-form:has(input:not(:placeholder-shown)) > label,
.floating-forms .form-group:has(select:not([value=""])) > label,
.floating-forms .form-row:has(select:not([value=""])) > label:not(.woocommerce-form__label-for-checkbox),
.floating-forms .form-group:has(select option:checked:not([value=""])) > label,
.floating-forms .form-row:has(select option:checked:not([value=""])) > label:not(.woocommerce-form__label-for-checkbox),
.floating-forms .form-group:has(input:-webkit-autofill) > label,
.floating-forms .form-row:has(input:-webkit-autofill) > label:not(.woocommerce-form__label-for-checkbox),
.checkout-section .form-row:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown), select:not([value=""]), select option:checked:not([value=""]), input:-webkit-autofill) > label:not(label[for="wc-stripe-new-payment-method"], label[for="wc-woocommerce_payments-new-payment-method"]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  color: var(--fl-label-active-color);
  z-index: var(--fl-z-index);
}


.floating-forms .form-group:focus-within :is(input, textarea, select),
.floating-forms .form-row:focus-within :is(input.input-text, textarea, select),
.floating-forms .bricks-search-form:focus-within input,
.floating-forms .coupon-form:focus-within input,
.floating-forms .form-group:has(input:not(:placeholder-shown)) input,
.floating-forms .form-group:has(textarea:not(:placeholder-shown)) textarea,
.floating-forms .form-group:has(select:not([value=""])) select,
.floating-forms .form-group:has(select option:checked:not([value=""])) select,
.floating-forms .form-row:has(input.input-text:not(:placeholder-shown)) input.input-text,
.floating-forms .form-row:has(textarea:not(:placeholder-shown)) textarea,
.floating-forms .form-row:has(select option:checked:not([value=""])) select,
.floating-forms .bricks-search-form:has(input:not(:placeholder-shown)) input,
.floating-forms .coupon-form:has(input:not(:placeholder-shown)) input,
.checkout-section .form-row:focus-within input:not(label[for="wc-stripe-new-payment-method"], label[for="wc-woocommerce_payments-new-payment-method"]),
.checkout-section .form-row:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) input:not(label[for="wc-stripe-new-payment-method"], label[for="wc-woocommerce_payments-new-payment-method"]),
.checkout-section .form-row select {
  padding-top: var(--fl-input-padding-top) !important;
  padding-bottom: var(--fl-input-padding-bottom) !important;
  padding-left: var(--fl-input-padding-x) !important;
  padding-right: var(--fl-input-padding-x) !important;
  border-color: var(--primary) !important;
}