/* Modal global */
.cgmi-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
  
    /* ✅ Flex centré */
    /* display: flex; */
    justify-content: center;
    align-items: center;
  }
  
  .cgmi-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
  }
  
  .cgmi-close {
    position: absolute;
    right: 10px; top: 10px;
    font-size: 20px;
    cursor: pointer;
  }
  
  /* Toast */
  #cgmi-toast {
    display: none;
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 5px;
    color: #fff;
    z-index: 10001;
    font-weight: 600;
  }

  [data-products] [data-add-to-cart=auto-hide] .cgmi-added-to-cart {
        display: inline-block !important;
        background-color: #26b119 !important;
  }
  [data-products] [data-add-to-cart=auto-hide] .cgmi-added-to-cart:hover {
        color: #fff !important;
  }
  .single_cart_redirection {
    flex: 1 !important;
    background-color: #26b119 !important;
  }
  #cgmi-toast.success { background: #4caf50; }
  #cgmi-toast.error { background: #f44336; }
  
  .cgmi-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.cgmi-replace-modal-content,
.cgmi-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 475px;
  position: relative;
}
.cgmi-replace-modal-content h3,
.cgmi-modal-content h3 { 
  margin-top: 0; 
  font-size: 20px;
  text-align: center;
  color: #26b119;
  text-align: center;
  margin-bottom: 5px;
}
.cgmi-replace-modal-content {
  position: relative;
}
.cgmi-replace-modal-content p {
  text-align: center;
}
.cgmi-replace-close {
  position: absolute;
  right: 3%;
  top: 0%;
  font-size: 25px;
}
#cgmi-replace-confirm:hover,
#cgmi-replace-confirm {
  background-color: #26b119;
  color: #ffffff;
}
#cgmi-replace-cancel:hover, 
#cgmi-replace-cancel {
  background-color: #100C08;
  color: #ffffff;
}
.cgmi-modal-inner {
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
 }
.cgmi-close {
    position: absolute; top: 10px; right: 15px;
    font-size: 20px; cursor: pointer;
}
.cgmi-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}
.cgmi-replace-close {
  cursor: pointer;
}
#cgmi-postcode-input {
  margin-bottom: 20px;
}
#cp-contact-us,
.woocommerce-orders-table__cell-pv-installation a,
.woocommerce-orders-table__cell-pv-installation a:hover,
#cgmi-postcode-validate {
  background-color: #26b119 !important;
  color: #ffffff !important;
}
#cgmi-open-quote {
  background-color: #2db126;
  width: 100%;
}
.wc-proceed-to-checkout .checkout-button {
  display: none;
}
section.devis-form-section > div > div > form > div.acf-fields.acf-form-fields.-top > div.acf-field.acf-field-repeater.acf-field-68cd1d881909e > div.acf-input > div > table > thead > tr {
  display: none !important;
}
.cgmi-reset-box {
  max-width: 420px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}
.cgmi-reset-box h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}
.cgmi-reset-box label {
  display: block;
  font-weight: 600;
  margin: 10px 0 5px;
}
.cgmi-reset-box input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}
.cgmi-reset-box button {
  background-color: #26b119;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.cgmi-reset-box button:hover {
  background-color: #26b119;
}
.cgmi-reset-box.error {
  color: #ec3434;
  font-weight: 600;
  margin-bottom: 15px;
}