/* --------------------------------------------------
   Global Styles & Reset
----------------------------------------------------- */
body,
input,
textarea,
select,
button {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------
   Conteneur commun
----------------------------------------------------- */
.ccp-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Titres */
.ccp-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #111;
}

.ccp-container h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
}

/* --------------------------------------------------
   Order Confirmation Page
----------------------------------------------------- */
.ccp-order-confirmation {
  /* Applique la mise en forme commune */
  padding: 20px;
}

.ccp-order-confirmation table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.ccp-order-confirmation th,
.ccp-order-confirmation td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

.ccp-order-confirmation thead {
  background: #f7f7f7;
}

.ccp-order-confirmation tfoot {
  background: #f1f1f1;
  font-weight: bold;
}

/* Boutons */
.button,
.ccp-continue-button {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: 10px auto;
  text-align: center;
}

.button:hover,
.ccp-continue-button:hover {
  background-color: #222;
}

/* --------------------------------------------------
   Billing Details Page
----------------------------------------------------- */
.ccp-billing-details {
  /* On réutilise le style commun */
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ccp-billing-details h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #111;
}

.ccp-billing-details form p {
  margin-bottom: 15px;
}

.ccp-billing-details form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.ccp-billing-details form input[type="text"],
.ccp-billing-details form input[type="email"],
.ccp-billing-details form select,
.ccp-billing-details form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Boutons du formulaire Billing */
.ccp-billing-details form input[type="submit"] {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.ccp-billing-details form input[type="submit"]:hover {
  background-color: #222;
}

/* --------------------------------------------------
   Shipping Process Page
----------------------------------------------------- */
.ccp-shipping-process {
  /* On réutilise le style commun */
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ccp-shipping-process h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #111;
}

.ccp-shipping-process form p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555;
}

.ccp-shipping-process form input[type="radio"] {
  margin-right: 8px;
}

/* Boutons du formulaire Shipping */
.ccp-shipping-process form input[type="submit"] {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.ccp-shipping-process form input[type="submit"]:hover {
  background-color: #222;
}

/* Layout en deux colonnes pour Shipping Process */
.ccp-shipping-process-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.ccp-shipping-left,
.ccp-shipping-right {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Style du résumé (Summary) */
.summary-item {
  margin-bottom: 10px;
  font-size: 16px;
}
.summary-item strong {
  display: inline-block;
  width: 130px;
}
.summary-item.summary-total {
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
}

/* Message d'erreur */
#shipping-error {
  padding: 10px;
  background-color: #ffe6e6;
  border: 1px solid #ff0000;
  color: #ff0000;
  text-align: center;
  margin-bottom: 15px;
}

/* --------------------------------------------------
   Responsive Design
----------------------------------------------------- */
@media (max-width: 768px) {
  .ccp-shipping-left,
  .ccp-shipping-right {
    flex: 100%;
    min-width: 100%;
  }
}
