/* Container form styling */
#crf-register-form,
#crf-otp-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Input fields - Let our main CSS handle styling */
#crf-register-form input,
#crf-verify-form input {
    /* Styles handled by custom-login-register.css */
}

/* Labels - Let our main CSS handle styling */
#crf-register-form label,
#crf-verify-form label {
    /* Styles handled by custom-login-register.css */
}

/* Buttons - Let our main CSS handle styling */
#crf_register_form button,
#crf-verify-form button,
#crf-register-form button,
#crf-verify-form button,
#crf_send_btn,
#crf_verify_btn {
    /* Styles handled by custom-login-register.css */
}

/* Error/message text */
#crf_message,
#crf_otp_message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #d00;
}

/* Hide OTP section initially; PHP sets inline display:none */
/* Base hidden overlay */
#crf-register-modal {
    display: none;
  position: fixed;
  inset: 5;               /* shorthand for top/left/right/bottom = 0 */
  background: rgba(0,0,0,0.6);
  display: flex;          /* keep flex centering */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

  
  /* Visible state */
  #crf-register-modal.open {
    display: flex;      /* flex for centering */
    opacity: 1;
  }
  

  /* Slide in */
  #crf-register-modal.open .modal-content {
    transform: translateY(0);
  }
  
  /* Close button style */
  #crf-close-register {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  /* 1. Base overlay (hidden by default) */

  /* 2. When “open” class is added, flex + fade in */
  #crf-register-modal.open {
    display: flex;               /* flex container now centers children */
    opacity: 1;
  }
  
  /* 3. Centered modal box */
  #crf-register-modal .modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;            /* prevent overflow */
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  /* 4. Slide in on open */
  #crf-register-modal.open .modal-content {
    transform: translateY(0);
  }
  #crf-register-modal.open {
    display: flex !important;
  }
  .checkout-register-prompt p {
    font-size: 0.95rem;
    color: #444;
  }
  
  .checkout-register-prompt a {
    color: #000;
    text-decoration: underline;
  }
  
  .checkout-register-prompt .button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1;
    /* kill any default transition/animation */
    transition: none !important;
    animation: none !important;
  }
  
  .checkout-register-prompt .button:hover,
  .checkout-register-prompt .button:focus {
    background: #333;
    /* no movement */
    transform: none !important;
  }
/* 1) More specific selector to override Woo globals */
.checkout-register-prompt .button,
#crf-register-modal .modal-content .button,
#crf-register-modal .modal-content button {
  /* Your custom look */
  background: #000 !important;
  color: #fff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 4px !important;
  text-transform: none !important;
  text-decoration: none !important;
  border: none !important;
  transition: none !important;
  animation: none !important;
}

/* 2) Hover state */
.checkout-register-prompt .button:hover,
#crf-register-modal .modal-content .button:hover,
#crf-register-modal .modal-content button:hover {
  background: #333 !important;
  transform: none !important;
}

/* 3) If Woo still adds .alt, target that too */
.checkout-register-prompt .button.alt,
#crf-register-modal .modal-content .button.alt {
  background: #000 !important;
  color: #fff !important;
}
/* Modern “Sign Up” button */
.checkout-register-prompt .button#crf-open-register,
#crf-register-modal .modal-content button#crf_send_btn {
  display: inline-block;
  padding: 0.4rem 1rem;               /* tighter vertical padding */
  font-size: 0.875rem;                /* slightly smaller text */
  font-weight: 600;                   /* semi-bold */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #000;                   /* black background */
  color: #fff;                        /* white text */
  border: none;
  border-radius: 2px;                 /* subtle corner rounding */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover state */
.checkout-register-prompt .button#crf-open-register:hover,
#crf-register-modal .modal-content button#crf_send_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Active (pressed) state */
.checkout-register-prompt .button#crf-open-register:active,
#crf-register-modal .modal-content button#crf_send_btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Extra-compact “Sign Up” button */
.checkout-register-prompt .button#crf-open-register,
#crf-register-modal .modal-content button#crf_send_btn {
  padding: 0.25rem 0.75rem;    /* less padding */
  font-size: 0.75rem;         /* smaller text */
  letter-spacing: 0.4px;
  border-radius: 1px;         /* tighter corners */
}

/* Tweak hover shadow */
.checkout-register-prompt .button#crf-open-register:hover,
#crf-register-modal .modal-content button#crf_send_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Only shrink the text, keep button dimensions */
.checkout-register-prompt .button#crf-open-register,
#crf-register-modal .modal-content button#crf_send_btn {
    font-size: 0.75rem;
    line-height: 1.2 !important;
    letter-spacing: 0.5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-left: 0.2rem;
    cursor: pointer;
    margin-top: 0.7rem;
}
/* Remove WooCommerce button :after decorative pseudo-element */
.woocommerce button.button:after,
.woocommerce-page button.button:after {
  content: none !important;
}

  /* Target only those labels that wrap a checkbox */
#crf-register-modal .modal-content label:has(input[type="checkbox"]) {
    display: grid;
    grid-template-columns: 1fr auto;  /* text in left col, box in right col */
    column-gap: 0.5rem;
    align-items: start;               /* aligns multiline text at top, checkbox centered */
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  /* Remove default margin on the checkbox itself */
  #crf-register-modal .modal-content label input[type="checkbox"] {
    margin: 0;
    /* if you want vertical center, use: 
       align-self: center;  */
    align-self: center;
  }
  