/* Ocultar el botón 'Continue Shopping' en el carrito J2Store */
.cart-continue-shopping-button {
    display: none !important;
}

/* Ocultar columna de Quantity en el carrito de J2Store */
.j2store-cart-table th:nth-child(2),
.j2store-cart-table td:nth-child(2) {
    display: none !important;
}

/* Ocultar el botón 'Update' del carrito J2Store */
.cart-update-button {
    display: none !important;
}

/* Ocultar cualquier input de cantidad en J2Store */
.j2store .product-qty input[type="number"],
.product-qty input[type="number"] {
    display: none !important;
}

/* --- Estilo visual para el carrito J2Store --- */

/* Redondear esquinas de la tabla del carrito */
.j2store-cart-table.table-bordered,
.cart-footer.table-bordered,
.j2store .checkout-heading,
#j2store_paypal_form {
    width: 95%;
    border-radius: 12px;          /* nivel de redondeado (ajustable: 4–10px según gusto) */
    overflow: hidden;            /* asegura que los bordes del contenido sigan el redondeo */
    border-collapse: separate;   /* necesario para que border-radius funcione en tablas */
    border-spacing: 0;           /* elimina espacio entre celdas */
    margin-left: 10px;
    margin-right: 6px;
}

/* Opcional: sombra sutil para dar profundidad */
.j2store-cart-table,
.cart-footer,
.j2store .checkout-heading,
#j2store_paypal_form  {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}



/* Estilo moderno para los campos del formulario de login */
#login input[type="text"],
#login input[type="password"] {
  width: 50%;
  padding: 8px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

/* Efecto al enfocar */
#login input[type="text"]:focus,
#login input[type="password"]:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}

#login br {
  display: none;
}

#login .btn {
  display: block;
}

/* Etiquetas */
#login b {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-weight: 600;
}

/* Enlace de recuperación */
#login a {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

#login a:hover {
  color: #0056b3;
  text-decoration: underline;
}



/* EStilo para el formulario de registro de J2Store */
/* === Solo afecta al formulario de registro de J2Store === */
.j2store .inputbox,
.j2store .large-field {
  display: block;
  width: 97%;
  margin-bottom: 12px;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-left: 4px;
  margin-right: 4px;
}

.j2store input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  position: relative;
  cursor: pointer;
  margin-left: 4px;
}

.j2store label[for="privacyconsent"] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

/* Efecto al pasar el mouse */
.j2store input[name="privacyconsent"]:hover {
  border-color: #007bff;
}

/* Check interno */
.j2store input[name="privacyconsent"]:checked::after {
  content: "✔";
  color: white;
  font-size: 13px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Fondo azul cuando está marcado */
.j2store input[name="privacyconsent"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}




.j2store input[name="privacyconsent"]::after {
  display: inline-block !important;
  width: auto !important;
  /* content: " I accept the Privacy Policy"; */
  font-size: 15px;
  color: #333;
}

/* Selects del formulario de registro de J2Store */
.j2store select {
  display: block;
  width: 97% !important;
  margin-bottom: 12px;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-left: 4px;
  margin-right: 4px;

  /* Mejora la apariencia visual sin romper navegadores móviles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Pequeña flecha moderna */
  background-image: linear-gradient(45deg, transparent 50%, #777 50%),
                    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px; /* deja espacio para la flecha */
}

/* Efecto al enfocar */
.j2store input[type="text"]:focus,
.j2store input[type="password"]:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}

/* Efecto al enfocar los selects */
.j2store select:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}

/* Efecto al enfocar el checkbox */
.j2store input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.25);
  border-radius: 4px;
}

/* Alinear el checkbox y agregar texto */
label#privacyconsent {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

/* Texto después del checkbox */
label#privacyconsent::after {
  content: " I accept the Privacy Policy";
  margin-left: 8px;
  white-space: normal; /* permite que el texto se parta si es largo */
  line-height: 1.4;
}

/* Ajuste del checkbox */
label#privacyconsent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff; /* color azul moderno del check (funciona en la mayoría de navegadores) */
}

.j2store br {
  display: none !important;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.j2store .btn {
  margin-top: 20px;
  display: block;
}

/* Etiquetas y campos */
.j2store label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* Responsivo */
@media (max-width: 768px) {
  .j2store .row {
    display: block;
  }
  .j2store .col-md-6 {
    width: 100%;
  }
}

/* === PayPal Pro Form === */
.j2store.checkout td {
    padding-right: 0px;
    padding-left: 3%;
    padding-top: 1%;
}

/* === Estilos uniformes para todos los campos del formulario PayPal Pro === */
#paypalpro_form input[type="text"],
#paypalpro_form input[type="email"],
#paypalpro_form input[type="password"],
#paypalpro_form select,
#paypalpro_form textarea {
  display: block;
  width: 100%;                 /* Ancho homogéneo absoluto */
  max-width: 600px;            /* (Opcional) límite de ancho si el contenedor es grande */
  margin: 0 auto 14px auto;    /* Centrado y separación inferior */
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;      /* Mantiene el ancho exacto sin expandirse por padding o borde */
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Efecto de enfoque uniforme */
#paypalpro_form input:focus,
#paypalpro_form select:focus,
#paypalpro_form textarea:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}

/* === Normalización específica para SELECT === */
#paypalpro_form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px; /* espacio para la flecha personalizada */
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

/* === Corrección para Safari / Chrome === */
#paypalpro_form select::-ms-expand {
  display: none; /* Oculta la flecha en Edge */
}
#paypalpro_form select:focus {
  border-color: #007bff;
}

/* === Ajuste responsive === */
@media (max-width: 768px) {
  #paypalpro_form input,
  #paypalpro_form select,
  #paypalpro_form textarea {
    width: 100%;
    font-size: 16px;
  }
}

/* === Customer Note textarea === */
.customer-note textarea {
  display: block;
  width: 100%;                /* Ocupa todo el ancho disponible */
  max-width: 600px;           /* Igual que los inputs/selects */
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  box-sizing: border-box;
  resize: vertical;           /* Permite redimensionar solo verticalmente */
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 8px;
  margin-bottom: 15px;
  margin-left: 4px;
  margin-right: 4px;
}

/* Efecto de enfoque igual que los inputs/selects */
.customer-note textarea:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}

#billing-existing select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  outline: none;
  font-size: 15px;
  padding: 8px 10px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  overflow: hidden; /* evita que se corten bordes */
}

#billing-existing select:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

#billing-existing select option {
  white-space: normal;
  word-wrap: break-word;
}

/* Sombra y bordes cuando hay tamaño fijo (size>1) */
#billing-existing select[size] {
  border-radius: 8px;
  background-image: none !important;
}

/* Compatibilidad visual (Firefox y Safari) */
#billing-existing select::-webkit-scrollbar {
  width: 8px;
}
#billing-existing select::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
