/**
 * Estilos públicos para el plugin FlowNex AI Google Login
 */

.flownexai-google-login-wrapper {
  margin: 20px 0;
  text-align: center;
}

.flownexai-google-login-divider {
  position: relative;
  text-align: center;
  margin: 15px 0;
}

.flownexai-google-login-divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e5e5;
  z-index: 1;
}

.flownexai-google-login-divider span {
  display: inline-block;
  position: relative;
  padding: 0 10px;
  background-color: #fff;
  color: #777;
  font-size: 14px;
  z-index: 2;
}

.flownexai-google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.flownexai-google-login-button.standard {
  background-color: #fff;
  color: #757575;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flownexai-google-login-button.standard:hover {
  background-color: #f8f8f8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.flownexai-google-login-button.blue {
  background-color: #4285f4;
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flownexai-google-login-button.blue:hover {
  background-color: #3367d6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.flownexai-google-login-button.dark {
  background-color: #333;
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flownexai-google-login-button.dark:hover {
  background-color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.flownexai-google-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.flownexai-google-login-text {
  flex-grow: 1;
  text-align: center;
}

/* Estilos específicos para el checkout */
.flownexai-google-login-checkout-wrapper {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.flownexai-google-login-checkout-wrapper h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

/* Estilos específicos para el checkout de React */
.flownexai-google-login-checkout-react {
  margin: 15px 0;
  width: 100%;
}

.flownexai-google-login-checkout-react .flownexai-google-login-divider {
  margin: 10px 0;
}

.flownexai-google-login-checkout-react .flownexai-google-login-button {
  max-width: 100%;
  margin-top: 10px;
}

/* Ajustes específicos para el checkout de React */
.wc-block-components-checkout-form .flownexai-google-login-checkout-react {
  margin-top: 15px;
  margin-bottom: 20px;
}

.wc-block-components-checkout-form
  .flownexai-google-login-checkout-react
  .flownexai-google-login-divider
  span {
  background-color: #f7f7f7; /* Ajustar al color de fondo del checkout */
}

/* Responsive */
@media (max-width: 768px) {
  .flownexai-google-login-button {
    max-width: 100%;
  }
}

/* --- Modal de código único (OTP) - My Account --- */
.flownexai-unique-code-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* Oculta inicialmente, el JS la mostrará */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 16px;
}

.flownexai-unique-code-modal .modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.flownexai-unique-code-modal h5 {
  color: #222;
}

.flownexai-unique-code-modal .text-muted {
  font-size: 14px;
}

.flownexai-unique-code-modal label.form-label {
  font-weight: 500;
}

.flownexai-unique-code-modal #fx-alert {
  display: none;
}

.flownexai-unique-code-modal #fx-step-otp {
  display: none;
}

/* Spinners en botones: se ocultan por defecto y el JS los muestra/oculta */
.flownexai-unique-code-modal .spinner-border {
  display: none;
}
