/* assets/style.css */

/* Style pour le bouton de paiement Shopify */
#place_order.shopify-payment {
  background: #5e72e4 !important;
  border-color: #5e72e4 !important;
  color: white !important;
  font-weight: bold;
  transition: all 0.3s ease;
}

#place_order.shopify-payment:hover {
  background: #4c63d2 !important;
  border-color: #4c63d2 !important;
  transform: translateY(-1px);
}

#place_order.shopify-payment:disabled {
  background: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed;
  transform: none;
}

/* Style pour le message informatif */
.woocommerce-info.shopify-info {
  border-left: 4px solid #5e72e4;
  padding: 15px;
  background: #f8f9ff;
  border-radius: 4px;
}

/* Style pour le loader */
#wsi-loading {
  font-family: Arial, sans-serif;
}

/* Style pour le loader */
#wsi-loading {
  font-family: Arial, sans-serif;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#wsi-success {
  font-family: Arial, sans-serif;
  animation: fadeIn 0.5s ease-in;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animation pour les messages d'erreur */
.wsi-error-message {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Masquer les éléments non nécessaires */
.wc_payment_methods,
.payment_box {
  display: none !important;
}

/* Style pour l'admin */
.shopify-admin-section {
  background: white;
  padding: 20px;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.shopify-admin-section h2 {
  margin-top: 0;
  color: #23282d;
}

.connection-success {
  color: #46b450 !important;
  font-weight: bold;
}

.connection-error {
  color: #dc3232 !important;
  font-weight: bold;
}

.product-info-box {
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.product-info-box h3 {
  margin-top: 0;
  color: #0073aa;
}

.product-info-box p {
  margin-bottom: 8px;
}

.product-info-box strong {
  color: #23282d;
}
