/* =============================================================
 * Rebill SDK – Anulación de CSS externo (FunnelKit / WFACP / Elementor)
 *
 * Solo neutraliza propiedades heredadas. No impone diseño propio;
 * deja que el SDK de Rebill aplique sus estilos nativos.
 * ============================================================= */

/* ── 1. Protección de contenedores ── */
#rebill-sdk-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 60px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}

#rebill-sdk-mount,
#rebill-sdk-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 60px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

rebill-checkout {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 60px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* ── 2. Reset universal: anular herencia de FunnelKit/Elementor/tema ── */
#rebill-sdk-mount *,
#rebill-sdk-mount *::before,
#rebill-sdk-mount *::after {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-rendering: auto !important;
  -moz-osx-font-smoothing: auto !important;
  -webkit-font-smoothing: auto !important;
  box-sizing: border-box !important;
}

/* ── 3. Anular estilos forzados en inputs genéricos ── */
#rebill-sdk-mount input,
#rebill-sdk-mount select,
#rebill-sdk-mount textarea {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background-color: initial !important;
  border: initial !important;
  border-radius: initial !important;
  padding: initial !important;
  margin: initial !important;
  height: auto !important;
  min-height: initial !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
  outline: initial !important;
  float: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* ── 4. Anular texto/labels ── */
#rebill-sdk-mount label,
#rebill-sdk-mount p,
#rebill-sdk-mount span,
#rebill-sdk-mount strong,
#rebill-sdk-mount a {
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: inherit !important;
}

/* ── 5. Anular botones ── */
#rebill-sdk-mount button,
#rebill-sdk-mount button[type="button"],
#rebill-sdk-mount button[type="submit"] {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  float: none !important;
}

/* =============================================================
 * 6. ESTILOS para componentes del SDK de Rebill
 *    Diseño Material Outlined: label sobre el borde
 * ============================================================= */

/* Contenedor de inputs */
#rebill-sdk-mount .inputs-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Cada componente de input */
#rebill-sdk-mount rebill-input-email,
#rebill-sdk-mount rebill-input-text,
#rebill-sdk-mount rebill-input-phone,
#rebill-sdk-mount rebill-input-number,
#rebill-sdk-mount rebill-input-select {
  display: block !important;
  width: 100% !important;
}

/* .input-container */
#rebill-sdk-mount .input-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  position: relative !important;
}

/* ── .input-wrapper: borde outlined ── */
#rebill-sdk-mount .input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  background: #fff !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 6px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Focus → borde azul */
#rebill-sdk-mount .input-wrapper:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb !important;
}

/* ── El input real (.input-element) ── */
#rebill-sdk-mount .input-element {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 16px 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #1f2937 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  float: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Input con icono izquierdo */
#rebill-sdk-mount .has-left-icon .input-element {
  padding-left: 2.75rem !important;
}

/* ── Floating label: estilo outlined (sobre el borde) ── */
#rebill-sdk-mount .input-label {
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  transform: translateY(-50%) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  pointer-events: none !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 4px !important;
  background: #fff!important;
  z-index: 1 !important;
}

/* Label con icono izquierdo */
#rebill-sdk-mount .has-left-icon .input-label {
  left: 2.75rem !important;
}


body #payment ul li input[type=number], 
body #payment ul li input[type=password], 
body #payment ul li input[type=tel], 
body #payment ul li input[type=text], 
body #payment ul li select {
    padding: 0px 15px !important;
    margin: 0px 0 !important;

}
/* Label flotado → sube al borde, fondo blanco corta la línea */
#rebill-sdk-mount .input-element:focus ~ .input-label,
#rebill-sdk-mount .input-element:not(:placeholder-shown) ~ .input-label {
  top: 0 !important;
  transform: translateY(-50%) !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  background: #fff !important;
  padding: 0 6px !important;
  left: 10px !important;
}

/* Label flotado + focus → color azul */
#rebill-sdk-mount .input-element:focus ~ .input-label {
  color: #2563eb !important;
}

/* Label flotado + icono izquierdo */
#rebill-sdk-mount .has-left-icon .input-element:focus ~ .input-label,
#rebill-sdk-mount .has-left-icon .input-element:not(:placeholder-shown) ~ .input-label {
  left: 10px !important;
}

/* ── Icono izquierdo ── */
#rebill-sdk-mount .icon-left {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9ca3af !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Icono → azul en focus */
#rebill-sdk-mount .input-wrapper:focus-within .icon-left {
  color: #2563eb !important;
}

/* ── Mensaje de error ── */
#rebill-sdk-mount .error-message {
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #ef4444 !important;
  margin-top: 6px !important;
  margin-left: 14px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* ── Estado de error: borde rojo ── */
#rebill-sdk-mount .input-element.input-error {
  color: #1f2937 !important;
}

#rebill-sdk-mount .input-wrapper:has(.input-error) {
  border-color: #ef4444 !important;
}

#rebill-sdk-mount .input-wrapper:has(.input-error):focus-within {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Label → rojo en error */
#rebill-sdk-mount .input-wrapper:has(.input-error) ~ .error-message,
#rebill-sdk-mount .input-wrapper:has(.input-error) .input-label {
  color: #ef4444 !important;
}

/* Label flotado en error */
#rebill-sdk-mount .input-wrapper:has(.input-error) .input-element:focus ~ .input-label,
#rebill-sdk-mount .input-wrapper:has(.input-error) .input-element:not(:placeholder-shown) ~ .input-label {
  color: #ef4444 !important;
}

/* ── 8. WooCommerce Blocks: contener overflow ── */
.wc-block-checkout__payment-method,
.wp-block-woocommerce-checkout-payment-block {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-components-checkout-step__content,
.wc-block-components-radio-control-accordion-content {
  overflow: hidden !important;
}

/* ── 9. Mensajes del plugin ── */
.rebill-sdk-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0;
}

.rebill-sdk-msg--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.rebill-sdk-msg--success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.rebill-sdk-msg--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
html body #wfacp-e-form .woocommerce-checkout #payment ul.payment_methods label {
    
    background:#fff !important; 
}