@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
}

.zipcode-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zipcode-confirmation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.zipcode-confirmation-dialog {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zipcode-confirmation-header {
  padding: 20px 24px 0;
  border-bottom: 1px solid #e9ecef;
}

.zipcode-confirmation-header h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.zipcode-confirmation-body {
  padding: 24px;
  text-align: center;
}

.zipcode-confirmation-icon {
  margin-bottom: 16px;
}

.zipcode-confirmation-message {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 12px;
}

.zipcode-confirmation-cart-info {
  font-size: 14px;
  color: #f39c12;
  margin-bottom: 0;
}

.zipcode-confirmation-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
}

.zipcode-confirmation-footer .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.zipcode-confirmation-cancel {
  background: #6c757d;
  color: white;
}

.zipcode-confirmation-cancel:hover {
  background: #5a6268;
}

.zipcode-confirmation-confirm {
  background: #007bff;
  color: white;
}

.zipcode-confirmation-confirm:hover {
  background: #0056b3;
}

@media (max-width: 576px) {
  .zipcode-confirmation-dialog {
    width: 95%;
    margin: 20px;
  }

  .zipcode-confirmation-footer {
    flex-direction: column;
  }

  .zipcode-confirmation-footer .btn {
    width: 100%;
  }
}

/* Styles pour le select de communes dans le formulaire d'adresse du checkout */
.bwa-checkout-commune-select-container {
  margin-bottom: 1rem;
}

.bwa-checkout-commune-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bwa-checkout-commune-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animation pour les erreurs */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

.input-error {
  border-color: #dc3545 !important;
}

.input-error:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
